SlideShare a Scribd company logo
3
Most read
9
Most read
16
Most read
Using Selective Deletion in
Process Chains
Applies to:
SAP BW 3.0b, SAP BW 3.5, Will also work on SAP BI 7
For more information, visit the Business Intelligence homepage
Summary
Before loading the data to InfoCube, sometimes we need to delete the particular date range data in InfoCube
based on some selections i.e. using selective deletion and then load the data to InfoCube.
Author: Surendra Kumar Reddy Koduru
Company: ITC Infotech India Ltd. (Bangalore/INDIA)
Created on: 08 March 2009
Author Bio
Surendra Kumar Reddy Koduru is a SAP BI consultant currently working with ITC Infotech India
Ltd (Bangalore/INDIA). He has over 4+ years of experience in various BW/BI
implementation/Support projects.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 1
Using Selective Deletion in Process Chains
Table of Contents
Scope:.................................................................................................................................................................3
Why? ...............................................................................................................................................................3
Steps: ..............................................................................................................................................................3
Related Content................................................................................................................................................16
For more information, visit the Business Intelligence homepage.....................................................................16
Disclaimer and Liability Notice..........................................................................................................................17
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 2
Using Selective Deletion in Process Chains
Scope:
This article tells you how to use the Selective Deletion in Process Chains. I.e. Using “DELETE_FACTS”
TCode , how to generate the selective deletion program and then using that program how to delete the data
in InfoCube.
Why?
Sometimes, before loading the data to InfoCube, we need to delete the data based on some selective
deletion, E.g. Date, then we need to load the data to InfoCube. Every time we don’t want to do this activity
manually, and we need to automate this process.
Steps:
InfoCube Data deletion by using Selective Deletion through Process Chains. In some cases we need to
delete the InfoCube data based on selective deletion.
E.g.: We have Planning InfoCube in BW system and the data will get from APO system, in APO they will run
planning on weekly basis and they plan from SY-DATUM to next 30 days. So once APO system will
completes the SNP Weekly runs, then BW system need to extract the data from APO.
But before loading the data to BW Plan InfoCube, first we need to delete the existing data from SY-DATUM
to next 30 days data, after that I need to load the data. Because APO SNP runs will happen every Week, if
we load the data directly to Plan InfoCube, it will give wrong information in reports, because every time we
are loading from SY-DATUM to next 30 days. (E.g.: Suppose APO SNP first run date is 01.02.2009, so after
the APO run we loaded Plan data to BW InfoCube i.e. from date = SY-DATUM (01.02.2009) and to date =
01.03.3009.
Then on 08.02.2009 second SNP run was happen, so if I load data from SY-DATUM (08.02.2009) to
08.03.2009, then the data is duplicated in InfoCube, because we already loaded from 01.02.2009 to
01.03..2009 in the first SNP run, and now we are again loading from 08.02.2009 to 08.03.2009, so finally
InfoCube is having the data from 08.02.2009 to 01.03.2009 from first SNP run and 08.02.2009 to 08.03.2009
from second run, this is wrong data. So first we need to delete the data from 08.02.2009 to 01.03.2009 and
then load the data from 08.02.2009 to 08.03.2009).
We can achieve this by using “DELETE_FACTS” Transaction code. I want to automate the complete
process using Process Chains.
Give DELETE_FACTS Tcode in Command field screen and enter and give InfoCube name and select
Generate selection program option and then execute.
It will generate the following G* Program,
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 3
Using Selective Deletion in Process Chains
Take this program (GP4CZFNBBW1W0RMMVJ0908CTNKK) and then go to SE38 and give program name
and click on Variants option.
Give the Varient name ZVAR_DEL and then click on create.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 4
Using Selective Deletion in Process Chains
It will display the selection screen. Our intension is we need to delete the data based on 0Calday (Calendar
Day), so press F1 and find the screen fields for that Calendar Day.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 5
Using Selective Deletion in Process Chains
Click on Technical name button.
In the following screen you can find the Screen Field for Calendar Day. I.e. C016-LOW.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 6
Using Selective Deletion in Process Chains
Once you find the screen field number then close the screen. And click on the Attributes Button.
Then give Description for the Variant. And select your screen field C016.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 7
Using Selective Deletion in Process Chains
Click on Selection Variable and select “D: Dynamic date calculation”
Then select Name of Variable like below and double click on that it will open the following screen.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 8
Using Selective Deletion in Process Chains
I want to delete the data from Current day to next 30 days. So select Current date –xxx, current date + yyy
and double click.
And give the values like below.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 9
Using Selective Deletion in Process Chains
Then Save
Come back to SE38 and select Variants option and Click on Display button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 10
Using Selective Deletion in Process Chains
It will open the Variants screen, here select our Variant ZVAR_DEL and click on Display button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 11
Using Selective Deletion in Process Chains
See the values for that variant. It shows SY-DATUM to next 30 days date.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 12
Using Selective Deletion in Process Chains
So we created a selective deletion program to delete data from InfoCube, and whenever you execute this
program with using Variant ZVAR_DEL, it will delete the data from that day to next 30 days.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 13
Using Selective Deletion in Process Chains
So create a Process Chain and keep this Program in Process Chain.
In the above Process Chain in ABAP Program node you need to give our program name and Variant like
below.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 14
Using Selective Deletion in Process Chains
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 15
Using Selective Deletion in Process Chains
Related Content
Reports Check in Application Server
Using Text Variables with Customer Exits in Report Headings
For more information, visit the Business Intelligence homepage.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 16
Using Selective Deletion in Process Chains
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 17
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

More Related Content

PDF
SAP BI Generic Extraction Using a Function Module.pdf
PDF
Errors in process chains
DOC
User exits
PDF
BW Adjusting settings and monitoring data loads
PDF
How to write a routine for 0 calday in infopackage selection
PDF
Data Migration Tools for the MOVE to SAP S_4HANA - Comparison_ MC _ RDM _ LSM...
PDF
Sap S/4hana Mill Products Industry
PDF
Ldap sync with sap(rfc)
SAP BI Generic Extraction Using a Function Module.pdf
Errors in process chains
User exits
BW Adjusting settings and monitoring data loads
How to write a routine for 0 calday in infopackage selection
Data Migration Tools for the MOVE to SAP S_4HANA - Comparison_ MC _ RDM _ LSM...
Sap S/4hana Mill Products Industry
Ldap sync with sap(rfc)

What's hot (20)

PPT
Engineer-to-Order (ETO) – Quotation Processing (232).ppt
PDF
Lo extraction part 4 update methods
PPTX
Presentation introduction to sap
PDF
Shd0 transaction variants
PPTX
SAP Engineering Control Center interface to PTC Creo: Product Presentation
PDF
SAP S4HANA Billing and E-Invoicing for Customer Payments
PDF
Introducing enhancement framework.doc
PDF
Sap testing tutorial
PDF
Selecting SAP S/4 HANA- Digital Core migration strategy - Greenfield vs Brow...
PDF
Rda step by step
PDF
Sap bw lo extraction
PPTX
Sap for beginners
PPTX
Time Series Vs Order based Planning in SAP IBP
PDF
Sap bw 4 hana vs sap bw on hana
PDF
Performance tuning in sap bi 7.0
PDF
sap sales and distribution tutorial ppt
PDF
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
PPTX
BPC 10.1 basics
PDF
Analysis process designer (apd) part 1
PDF
Technical Overview of CDS View - SAP HANA Part II
Engineer-to-Order (ETO) – Quotation Processing (232).ppt
Lo extraction part 4 update methods
Presentation introduction to sap
Shd0 transaction variants
SAP Engineering Control Center interface to PTC Creo: Product Presentation
SAP S4HANA Billing and E-Invoicing for Customer Payments
Introducing enhancement framework.doc
Sap testing tutorial
Selecting SAP S/4 HANA- Digital Core migration strategy - Greenfield vs Brow...
Rda step by step
Sap bw lo extraction
Sap for beginners
Time Series Vs Order based Planning in SAP IBP
Sap bw 4 hana vs sap bw on hana
Performance tuning in sap bi 7.0
sap sales and distribution tutorial ppt
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
BPC 10.1 basics
Analysis process designer (apd) part 1
Technical Overview of CDS View - SAP HANA Part II
Ad

Similar to _Using Selective Deletion in Process Chains.pdf (12)

PPT
SAP BI Training in Chennai
PDF
Process chain
PDF
Day 8.1 system_admin_tasks
PDF
Modeling
PDF
Analysis process designer (apd) part 2
PDF
BW310 - Fact Sheet.compressed
PPT
SAP BI/DW Training with BO Integration
PDF
SAP BW BI ONLINE TRAINING
PPTX
Deletion from a linked list
PDF
Fm extraction
PDF
GDPR - Employee Deletion in SAP
SAP BI Training in Chennai
Process chain
Day 8.1 system_admin_tasks
Modeling
Analysis process designer (apd) part 2
BW310 - Fact Sheet.compressed
SAP BI/DW Training with BO Integration
SAP BW BI ONLINE TRAINING
Deletion from a linked list
Fm extraction
GDPR - Employee Deletion in SAP
Ad

Recently uploaded (20)

PPTX
ai tools demonstartion for schools and inter college
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Nekopoi APK 2025 free lastest update
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
L1 - Introduction to python Backend.pptx
PDF
AI in Product Development-omnex systems
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
System and Network Administration Chapter 2
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Transform Your Business with a Software ERP System
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
top salesforce developer skills in 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
ai tools demonstartion for schools and inter college
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Nekopoi APK 2025 free lastest update
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
L1 - Introduction to python Backend.pptx
AI in Product Development-omnex systems
Adobe Illustrator 28.6 Crack My Vision of Vector Design
System and Network Administration Chapter 2
Which alternative to Crystal Reports is best for small or large businesses.pdf
Transform Your Business with a Software ERP System
Reimagine Home Health with the Power of Agentic AI​
CHAPTER 2 - PM Management and IT Context
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
top salesforce developer skills in 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Odoo Companies in India – Driving Business Transformation.pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free

_Using Selective Deletion in Process Chains.pdf

  • 1. Using Selective Deletion in Process Chains Applies to: SAP BW 3.0b, SAP BW 3.5, Will also work on SAP BI 7 For more information, visit the Business Intelligence homepage Summary Before loading the data to InfoCube, sometimes we need to delete the particular date range data in InfoCube based on some selections i.e. using selective deletion and then load the data to InfoCube. Author: Surendra Kumar Reddy Koduru Company: ITC Infotech India Ltd. (Bangalore/INDIA) Created on: 08 March 2009 Author Bio Surendra Kumar Reddy Koduru is a SAP BI consultant currently working with ITC Infotech India Ltd (Bangalore/INDIA). He has over 4+ years of experience in various BW/BI implementation/Support projects. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1
  • 2. Using Selective Deletion in Process Chains Table of Contents Scope:.................................................................................................................................................................3 Why? ...............................................................................................................................................................3 Steps: ..............................................................................................................................................................3 Related Content................................................................................................................................................16 For more information, visit the Business Intelligence homepage.....................................................................16 Disclaimer and Liability Notice..........................................................................................................................17 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 2
  • 3. Using Selective Deletion in Process Chains Scope: This article tells you how to use the Selective Deletion in Process Chains. I.e. Using “DELETE_FACTS” TCode , how to generate the selective deletion program and then using that program how to delete the data in InfoCube. Why? Sometimes, before loading the data to InfoCube, we need to delete the data based on some selective deletion, E.g. Date, then we need to load the data to InfoCube. Every time we don’t want to do this activity manually, and we need to automate this process. Steps: InfoCube Data deletion by using Selective Deletion through Process Chains. In some cases we need to delete the InfoCube data based on selective deletion. E.g.: We have Planning InfoCube in BW system and the data will get from APO system, in APO they will run planning on weekly basis and they plan from SY-DATUM to next 30 days. So once APO system will completes the SNP Weekly runs, then BW system need to extract the data from APO. But before loading the data to BW Plan InfoCube, first we need to delete the existing data from SY-DATUM to next 30 days data, after that I need to load the data. Because APO SNP runs will happen every Week, if we load the data directly to Plan InfoCube, it will give wrong information in reports, because every time we are loading from SY-DATUM to next 30 days. (E.g.: Suppose APO SNP first run date is 01.02.2009, so after the APO run we loaded Plan data to BW InfoCube i.e. from date = SY-DATUM (01.02.2009) and to date = 01.03.3009. Then on 08.02.2009 second SNP run was happen, so if I load data from SY-DATUM (08.02.2009) to 08.03.2009, then the data is duplicated in InfoCube, because we already loaded from 01.02.2009 to 01.03..2009 in the first SNP run, and now we are again loading from 08.02.2009 to 08.03.2009, so finally InfoCube is having the data from 08.02.2009 to 01.03.2009 from first SNP run and 08.02.2009 to 08.03.2009 from second run, this is wrong data. So first we need to delete the data from 08.02.2009 to 01.03.2009 and then load the data from 08.02.2009 to 08.03.2009). We can achieve this by using “DELETE_FACTS” Transaction code. I want to automate the complete process using Process Chains. Give DELETE_FACTS Tcode in Command field screen and enter and give InfoCube name and select Generate selection program option and then execute. It will generate the following G* Program, SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 3
  • 4. Using Selective Deletion in Process Chains Take this program (GP4CZFNBBW1W0RMMVJ0908CTNKK) and then go to SE38 and give program name and click on Variants option. Give the Varient name ZVAR_DEL and then click on create. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 4
  • 5. Using Selective Deletion in Process Chains It will display the selection screen. Our intension is we need to delete the data based on 0Calday (Calendar Day), so press F1 and find the screen fields for that Calendar Day. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 5
  • 6. Using Selective Deletion in Process Chains Click on Technical name button. In the following screen you can find the Screen Field for Calendar Day. I.e. C016-LOW. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 6
  • 7. Using Selective Deletion in Process Chains Once you find the screen field number then close the screen. And click on the Attributes Button. Then give Description for the Variant. And select your screen field C016. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 7
  • 8. Using Selective Deletion in Process Chains Click on Selection Variable and select “D: Dynamic date calculation” Then select Name of Variable like below and double click on that it will open the following screen. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 8
  • 9. Using Selective Deletion in Process Chains I want to delete the data from Current day to next 30 days. So select Current date –xxx, current date + yyy and double click. And give the values like below. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 9
  • 10. Using Selective Deletion in Process Chains Then Save Come back to SE38 and select Variants option and Click on Display button. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 10
  • 11. Using Selective Deletion in Process Chains It will open the Variants screen, here select our Variant ZVAR_DEL and click on Display button. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 11
  • 12. Using Selective Deletion in Process Chains See the values for that variant. It shows SY-DATUM to next 30 days date. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 12
  • 13. Using Selective Deletion in Process Chains So we created a selective deletion program to delete data from InfoCube, and whenever you execute this program with using Variant ZVAR_DEL, it will delete the data from that day to next 30 days. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 13
  • 14. Using Selective Deletion in Process Chains So create a Process Chain and keep this Program in Process Chain. In the above Process Chain in ABAP Program node you need to give our program name and Variant like below. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 14
  • 15. Using Selective Deletion in Process Chains SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 15
  • 16. Using Selective Deletion in Process Chains Related Content Reports Check in Application Server Using Text Variables with Customer Exits in Report Headings For more information, visit the Business Intelligence homepage. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 16
  • 17. Using Selective Deletion in Process Chains SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 17 Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.