Handling Error Stack in DTP
Handling Error Stack in DTP
DTP
Applies to:
SAP BI 7.0 Consultants. For more information, visit the EDW.
Summary
Document explains about handling Error Stack, which would improve error handling in DTP.At runtime,
erroneous data records are written to an error stack if the error handling for the data transfer process is
activated. Error stack is further used to update the data to the target destination once the error is resolved.
Author Bio
Suraj Tigga is a Senior SAP BI / ABAP consultant at Capgemini Consulting, India. Suraj joined
Capgemini Consulting in 2008 and has worked on multiple SAP BI implementation and support
projects.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 1
SAP BW - Handling Error Stack in DTP
Table of Contents
Scenario .............................................................................................................................................................. 3
Step-by-Step Solution ..................................................................................................................................... 3
Error Handling (Error Stack)......................................................................................................................................... 4
Setting for DTP Temporary Storage............................................................................................................................. 5
Transformation Code (Update MOTINOR)................................................................................................................... 6
No Update, No Reporting ............................................................................................................................................. 7
Valid Records Updated, No Reporting (Request Red) ................................................................................................. 8
Valid Records Update, Reporting Possible (Request Green)....................................................................................... 9
Reload Error Stack..................................................................................................................................................... 11
Related Content ................................................................................................................................................ 12
Disclaimer and Liability Notice .......................................................................................................................... 13
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 2
SAP BW - Handling Error Stack in DTP
Scenario
Temporary Data Storage and Error Stack improve error handling in DTP which doesn‟t exist in Infopackage.
Temporary Storage area contains all the data whereas Error Stack will have only erroneous records. Error
Handling for DSO is possible only in DTP. Reloading Bad Request without deleting request in the Data
Target is possible only in DTP using Manual Update option.
In the below example, records in DSO with non blank „Date until which bid/quotation is binding (valid-to date)‟
values are erroneous records and these records would be rectified in error stack and reloaded again.
Step-by-Step Solution
Temporary Data Storage and Error Stack improve error handling in DTP which doesn‟t exist in
Infopackage.Temporary Storage area contains all the data whereas Error Stack will have only erroneous
records. Temporary Storage area can be switched on/off at each stage of Summary.
Data transfer process supports in handling data records with errors. The data transfer process also supports
error handling for DataStore objects. In case with InfoPackages, one can determine how the system
responds if errors occur. At runtime, the incorrect data records are sorted and can be written to an error
stack (request-based database table). After the error has been resolved, one can further update data to the
target from the error stack. It is easier to restart failed load processes if the data is written to a temporary
store after each processing step. This allows us to determine the processing step in which the error
occurred. One can also display the data records in the error stack from the monitor for the data transfer
process request or in the temporary storage for the processing step (if filled). In data transfer process
maintenance, one can determine the processing steps that one want to store temporarily.
Below steps would help us understand the basic idea of the Error Stack and how it would be handled to
rectify the erroneous records.
Error Handling: Explains the error handling and types of captured errors in Error Stack
No Update, No Reporting: Error Occurs, the whole data package is terminated.
Valid Records Updated, No Reporting (Request Red): Valid records updated. After manual release of
request, data is available for reporting.
Valid Records Updated, Reporting Possible (Request Green): Valid records are updated and available
for reporting.
DSO
Correct Records
ERROR STACK
Non Blank ‘Date’:
Erroneous Records
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 3
SAP BW - Handling Error Stack in DTP
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 4
SAP BW - Handling Error Stack in DTP
In these settings, one can specify the processing steps after which you want the system to temporarily store
the DTP request (such as extraction, filtering, removing new records with the same key and transformation).
One can also specify when the temporary storage should be deleted. This can be done either after the
request has been updated successfully to the target, when the request is deleted or a specified amount of
time after the request is processed. Under Level of Detail, one can specify how one want to track the
transformation.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 5
SAP BW - Handling Error Stack in DTP
Error stack would be populated with the records with non blank „Date until which bid/quotation is binding
(valid-to date)‟, which can further be rectified.
Error Message (Message Class: YBI)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 6
SAP BW - Handling Error Stack in DTP
No Update, No Reporting
No Update, No Reporting: Once error occurs, the whole data package is terminated. This request is not
released for reporting.
Step1: Execute the DTP for Error Handling “No Update, No Reporting”
Execution would be incomplete giving the error details for the records which have non-blank „Date until which
bid/quotation is binding (valid-to date)’.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 7
SAP BW - Handling Error Stack in DTP
Execution would result in display of erroneous records and the error stack would be populated with those:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 8
SAP BW - Handling Error Stack in DTP
Error Stack:
Valid records are updated properly to DSO and rest would be loaded from Error Stack
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 9
SAP BW - Handling Error Stack in DTP
(Target DSO (No of records): 16170, Source DSO (No of records): 19734)
3564 records are loaded in the Error Stack.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 10
SAP BW - Handling Error Stack in DTP
Step1: Error Stack records („Date until which bid/quotation is binding (valid-to date)’
would be made blank and further loaded from Error Stack DTP):
Save the Error Stack. Execute the Error Package , 35464 records are loaded to DSO successfully.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 11
SAP BW - Handling Error Stack in DTP
Related Content
For more information, visit the EDW Homepage.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 12
SAP BW - Handling Error Stack in DTP
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 13