SlideShare a Scribd company logo
Using Error Stack and Error DTPs
 in SAP BI 7.0




Applies to:
SAP BI 7.0 developers and support Users. For more information, visit the EDW homepage.



Summary
In this document we aim to discuss the procedure to collect the erroneous records in the error stack and load
them to the target using an error DTP in SAP BI 7.0. This document also highlights the various options in
handling errors using a DTP.



Author:      Dinesh V
Company: IGate Services Limited
Created on: 24 Feb 2011



Author Bio
           Dinesh is working as a SAP BW/BI Consultant in IGate Services Pvt Ltd, India. His expertise
           include SAP BW 3.5, SAP BI 7.0 and ABAP developments




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     1
Using Error Stack and Error DTPs in SAP BI 7.0




Table of Contents
Introduction ......................................................................................................................................................... 3
Steps in Handling Erroneous Records ............................................................................................................... 4
   Step 1: Analyze Erroneous Records ............................................................................................................... 4
   Step 2: Enable Error Stack ............................................................................................................................. 5
   Step 3: Define Semantic Groups .................................................................................................................... 6
   Step 4: Settings for Error Stack ...................................................................................................................... 7
   Step 5: Execute the DTP load ......................................................................................................................... 8
   Step 6: Validate Erroneous records in Error Stack ......................................................................................... 8
   Step 7: Create and execute the Error DTP ..................................................................................................... 9
Related Content ................................................................................................................................................ 10
Disclaimer and Liability Notice .......................................................................................................................... 11




SAP COMMUNITY NETWORK                                      SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                                          2
Using Error Stack and Error DTPs in SAP BI 7.0




Introduction
Error Stack is a request-based table (PSA table) into which erroneous data records from a data transfer
process (DTP) are written. The error stack is based on the data source (PSA, DSO or Info Cube), that is,
records from the source are written to the error stack.
For a data transfer process (DTP), you can specify how you want the system to respond when data records
contain errors. If you activate error handling, the records with errors are written to the error stack. You can
use a special data transfer process, the error DTP, to update the records to the target.




Figure 1: - Process Flow Chart




SAP COMMUNITY NETWORK                   SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                       3
Using Error Stack and Error DTPs in SAP BI 7.0




Steps in Handling Erroneous Records
Step 1: Analyze Erroneous Records
Go to the Update tab of the DTP of the target where there are erroneous records. Error Stack is available
after each processing step of the DTP request. This allows you to find out which processing step the error
occurred in.

Examples of Incorrect Data Records

     Field contains invalid characters or lowercase characters
     Error during conversion
     A routine returns a return code <> 0
       Characteristic value is not found for master data
     Duplicate data records with relation to keys
       If no SID exists for the characteristic value
     If no SID exists for the value of the navigation attribute




Figure 2:- Data Transfer Process




SAP COMMUNITY NETWORK                   SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                       4
Using Error Stack and Error DTPs in SAP BI 7.0



Step 2: Enable Error Stack
Change the DTP to Edit Mode and on the Update tab of DTP; select the Error Handling mechanism based
on how you want system to respond to data records with errors.

The various error handling mechanisms are explained as below:-
     No update, no reporting (default) - If errors occur, the system terminates the update of the entire data
         package. The request is not released for reporting. The system continues checking the records
         however.
     Update valid records, no reporting (request red) - This option allows you to update valid data. This
         data is only released for reporting after the administrator checks the incorrect records that have not
         been updated and manually releases the request by setting the overall status on the Status tab page
         in the monitor (QM action).
     Update valid records, reporting possible - Valid records can be reported immediately. Automatic
         follow-up actions, such as adjusting the aggregates, are also carried out.

Note: Specify the maximum number of incorrect data records allowed before the system              terminates the transfer
      process. If you leave this blank, handling for incorrect data records is not activated, and the update is terminated
      as soon as the first error occurs.




Figure 3:- Error Handling of DTP




SAP COMMUNITY NETWORK                       SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                           5
Using Error Stack and Error DTPs in SAP BI 7.0


Step 3: Define Semantic Groups
Go to Extraction tab of the DTP and click on Semantic Groups to define the Semantic Groups to define the
key fields of error stack.
This setting is only relevant if you are transferring data to Data Store objects (DSO) with data fields that are
overwritten. If errors occur, all subsequent data records with the same key are written to the error stack along
with the incorrect data record.
This guarantees the serialization of the data records, and consistent data processing. The serialization of the
data records and thus the explicit definition of key fields for the error stack are not relevant for targets that
are not updated by overwriting like Info Cube.

The fields in the source can be enabled in the semantic group definition as per the below rules:
       By default, all fields in the source that are uniquely assigned to a key field of the target DSO in the
        transformation are checked in the semantic group screen.
       The fields whose assignment is not unique are not checked by default, but can be enabled.
       The fields in source which are assigned to the data field in the target DSO cannot be checked.




Figure 4:- Define Semantic Groups




SAP COMMUNITY NETWORK                   SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                       6
Using Error Stack and Error DTPs in SAP BI 7.0




Step 4: Settings for Error Stack
Also the DTP Error Stack settings can be modified by clicking on the Goto  Settings for DTP Temporary
Storage of the DTP.
The various options available in the Settings for Temporary Storage are as given below:
    Delete Temporary Storage – To delete the records in the Error Stack as per below conditions:-

           o   With Request Status ‘Green’

           o   With Request Status ‘Red’

           o   After ‘x’ days

      Level of Detail - you specify how you want to track the transformation.

      Fill Temporary Storage - you 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)




Figure 5:- Display Settings for DTP Temporary Storage




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     7
Using Error Stack and Error DTPs in SAP BI 7.0




Figure 6:- Settings for Temporary Storage

Step 5: Execute the DTP load
Save and activate the DTP after the settings are completed. Execute the DTP to load the data from the PSA
to the data target. If there are erroneous records in the data load, they are collected in the error stack.
You can access the error stack by clicking on the error stack on top of DTP.

Step 6: Validate Erroneous records in Error Stack
In the monitor for the data transfer process, you can navigate to the PSA maintenance by choosing Error
Stack in the toolbar, and display and edit erroneous records in the error stack.
Validate and correct the erroneous records similar to editing the PSA and save the records.




Figure 7:- Change Error Stack Data




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     8
Using Error Stack and Error DTPs in SAP BI 7.0



Step 7: Create and execute the Error DTP
Click on the Creating Error DTP on the Update tab of DTP to move data from error stack to the target. With
an error DTP, you can update the data records to the target manually or by means of a process chain. The
error DTP uses the full update mode to extract data from the error stack
Once the data records have been successfully updated, they are deleted from the error stack. If there are
any erroneous data records, they are written to the error stack again in a new error DTP request.
When a DTP request is deleted, the corresponding data records are also deleted from the error stack.




Figure 8:- Creating Error DTPs




Figure 9:- Error DTP in the Administrator Workbench




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     9
Using Error Stack and Error DTPs in SAP BI 7.0



Related Content
Handling of Data Records with Errors
Error Stack
Temporary Storage
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                                                                                                      10
Using Error Stack and Error DTPs in SAP BI 7.0




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.




SAP COMMUNITY NETWORK                            SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                                11

More Related Content

What's hot

How to create generic delta
How to create generic deltaHow to create generic delta
How to create generic delta
Jacques Kalees
 
Lo extraction part 2 database update logic
Lo extraction   part 2 database update logicLo extraction   part 2 database update logic
Lo extraction part 2 database update logic
JNTU University
 
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Hybrid provider based on dso using real time data acquisition in sap bw 7.30Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Sabyasachi Das
 
Lo extraction part 4 update methods
Lo extraction   part 4 update methodsLo extraction   part 4 update methods
Lo extraction part 4 update methods
JNTU University
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extraction
Obaid shaikh
 
Sap bw4 hana
Sap bw4 hanaSap bw4 hana
Sap bw4 hana
Nisit Payungkorapin
 
Errors in process chains
Errors in process chainsErrors in process chains
Errors in process chains
Siva Kollipara
 
Dso job log and activation parameters
Dso job log and activation parametersDso job log and activation parameters
Dso job log and activation parameters
sakthirobotic
 
Step by step on changing ecc source systems without affecting data modeling o...
Step by step on changing ecc source systems without affecting data modeling o...Step by step on changing ecc source systems without affecting data modeling o...
Step by step on changing ecc source systems without affecting data modeling o...
Andre Bothma
 
Usgage of ABAP in BI
Usgage of ABAP in BIUsgage of ABAP in BI
Usgage of ABAP in BI
Biswabrata Das
 
Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0
gireesho
 
Currency conversion in bi 7.0
Currency conversion in bi 7.0Currency conversion in bi 7.0
Currency conversion in bi 7.0
gireesho
 
SAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfSAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdf
KoushikGuna
 
SAP BI/BW
SAP BI/BWSAP BI/BW
SAP HANA for SAP Overview
SAP HANA for SAP OverviewSAP HANA for SAP Overview
SAP HANA for SAP Overview
Iliya Ruvinsky
 
Lo extraction part 7 enhancements
Lo extraction   part 7 enhancementsLo extraction   part 7 enhancements
Lo extraction part 7 enhancements
JNTU University
 
SAP ABAP OVERVIEW
SAP ABAP OVERVIEWSAP ABAP OVERVIEW
SAP ABAP OVERVIEW
Aspire Techsoft Academy
 
Data ingestion and Acquisition on SAP Analytics Cloud
Data ingestion and Acquisition on SAP Analytics CloudData ingestion and Acquisition on SAP Analytics Cloud
Data ingestion and Acquisition on SAP Analytics Cloud
Madhumita Banerjee
 
Sap system-measurement-guide
Sap system-measurement-guideSap system-measurement-guide
Sap system-measurement-guide
otchmarz
 
CDS Views.pptx
CDS Views.pptxCDS Views.pptx
CDS Views.pptx
Suman817957
 

What's hot (20)

How to create generic delta
How to create generic deltaHow to create generic delta
How to create generic delta
 
Lo extraction part 2 database update logic
Lo extraction   part 2 database update logicLo extraction   part 2 database update logic
Lo extraction part 2 database update logic
 
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Hybrid provider based on dso using real time data acquisition in sap bw 7.30Hybrid provider based on dso using real time data acquisition in sap bw 7.30
Hybrid provider based on dso using real time data acquisition in sap bw 7.30
 
Lo extraction part 4 update methods
Lo extraction   part 4 update methodsLo extraction   part 4 update methods
Lo extraction part 4 update methods
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extraction
 
Sap bw4 hana
Sap bw4 hanaSap bw4 hana
Sap bw4 hana
 
Errors in process chains
Errors in process chainsErrors in process chains
Errors in process chains
 
Dso job log and activation parameters
Dso job log and activation parametersDso job log and activation parameters
Dso job log and activation parameters
 
Step by step on changing ecc source systems without affecting data modeling o...
Step by step on changing ecc source systems without affecting data modeling o...Step by step on changing ecc source systems without affecting data modeling o...
Step by step on changing ecc source systems without affecting data modeling o...
 
Usgage of ABAP in BI
Usgage of ABAP in BIUsgage of ABAP in BI
Usgage of ABAP in BI
 
Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0
 
Currency conversion in bi 7.0
Currency conversion in bi 7.0Currency conversion in bi 7.0
Currency conversion in bi 7.0
 
SAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfSAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdf
 
SAP BI/BW
SAP BI/BWSAP BI/BW
SAP BI/BW
 
SAP HANA for SAP Overview
SAP HANA for SAP OverviewSAP HANA for SAP Overview
SAP HANA for SAP Overview
 
Lo extraction part 7 enhancements
Lo extraction   part 7 enhancementsLo extraction   part 7 enhancements
Lo extraction part 7 enhancements
 
SAP ABAP OVERVIEW
SAP ABAP OVERVIEWSAP ABAP OVERVIEW
SAP ABAP OVERVIEW
 
Data ingestion and Acquisition on SAP Analytics Cloud
Data ingestion and Acquisition on SAP Analytics CloudData ingestion and Acquisition on SAP Analytics Cloud
Data ingestion and Acquisition on SAP Analytics Cloud
 
Sap system-measurement-guide
Sap system-measurement-guideSap system-measurement-guide
Sap system-measurement-guide
 
CDS Views.pptx
CDS Views.pptxCDS Views.pptx
CDS Views.pptx
 

Viewers also liked

PS Financials interview questions and answers
PS Financials interview questions and answersPS Financials interview questions and answers
PS Financials interview questions and answers
bellisa611
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
shabari76
 
SAP PS - system statuses maintenance
SAP PS - system statuses maintenanceSAP PS - system statuses maintenance
SAP PS - system statuses maintenance
Askar Kozhepyanov
 
Sap Ps Case Study Thomas Fanciullo
Sap Ps Case Study Thomas FanciulloSap Ps Case Study Thomas Fanciullo
Sap Ps Case Study Thomas Fanciullo
Michael WANG
 
SAP PS overview
SAP PS overviewSAP PS overview
SAP PS overview
varun maheshwari
 
SAP mm module
SAP mm moduleSAP mm module
SAP mm module
Naveen Kumar
 
SAP PS Intro
SAP PS IntroSAP PS Intro
SAP PS Intro
Naga Venkata K
 
SAP MM Interview questions
SAP MM Interview questionsSAP MM Interview questions
SAP MM Interview questions
IT LearnMore
 
Sap mm full
Sap mm fullSap mm full
Sap mm full
Murali Nadh
 
Sap Overview pdf
Sap Overview pdfSap Overview pdf
Sap Overview pdf
pimporn
 

Viewers also liked (10)

PS Financials interview questions and answers
PS Financials interview questions and answersPS Financials interview questions and answers
PS Financials interview questions and answers
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
 
SAP PS - system statuses maintenance
SAP PS - system statuses maintenanceSAP PS - system statuses maintenance
SAP PS - system statuses maintenance
 
Sap Ps Case Study Thomas Fanciullo
Sap Ps Case Study Thomas FanciulloSap Ps Case Study Thomas Fanciullo
Sap Ps Case Study Thomas Fanciullo
 
SAP PS overview
SAP PS overviewSAP PS overview
SAP PS overview
 
SAP mm module
SAP mm moduleSAP mm module
SAP mm module
 
SAP PS Intro
SAP PS IntroSAP PS Intro
SAP PS Intro
 
SAP MM Interview questions
SAP MM Interview questionsSAP MM Interview questions
SAP MM Interview questions
 
Sap mm full
Sap mm fullSap mm full
Sap mm full
 
Sap Overview pdf
Sap Overview pdfSap Overview pdf
Sap Overview pdf
 

Similar to Using error stack and error dt ps in sap bi 7.0

Rda step by step
Rda   step by stepRda   step by step
Rda step by step
Phani Kumar
 
Errors while sending packages from oltp to bi (one of error at the time of da...
Errors while sending packages from oltp to bi (one of error at the time of da...Errors while sending packages from oltp to bi (one of error at the time of da...
Errors while sending packages from oltp to bi (one of error at the time of da...
bhaskarbi
 
Co pa extraction
Co pa extractionCo pa extraction
Co pa extraction
Mohammed ALI
 
SAP BOBJ Rapid Marts Overview I
SAP BOBJ Rapid Marts Overview ISAP BOBJ Rapid Marts Overview I
SAP BOBJ Rapid Marts Overview I
Ramakrishna Kamurthy
 
Maintaining aggregates
Maintaining aggregatesMaintaining aggregates
Maintaining aggregates
Sirisha Kumari
 
Programming Interface & SAP BDC
Programming Interface & SAP BDCProgramming Interface & SAP BDC
Programming Interface & SAP BDC
Syam Sasi
 
Sap Interview Questions - Part 1
Sap Interview Questions - Part 1Sap Interview Questions - Part 1
Sap Interview Questions - Part 1
ReKruiTIn.com
 
Lsmw
LsmwLsmw
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
otchmarz
 
Data sevice architecture
Data sevice architectureData sevice architecture
Data sevice architecture
Pankaj Sharma
 
Data extraction and retraction in bpc bi
Data extraction and retraction in bpc biData extraction and retraction in bpc bi
Data extraction and retraction in bpc bi
vikram2355
 
Data extraction and retraction bpc bi
Data extraction and retraction bpc  biData extraction and retraction bpc  bi
Data extraction and retraction bpc bi
sakthirobotic
 
Creating new unit of measure in sap bw
Creating new unit of measure in sap bwCreating new unit of measure in sap bw
Creating new unit of measure in sap bw
Rajat Agrawal
 
Day 6.3 extraction_business_content_and_generic
Day 6.3 extraction_business_content_and_genericDay 6.3 extraction_business_content_and_generic
Day 6.3 extraction_business_content_and_generic
tovetrivel
 
Bte
BteBte
Bte
BteBte
Lo extraction part 6 implementation methodology
Lo extraction   part 6 implementation methodologyLo extraction   part 6 implementation methodology
Lo extraction part 6 implementation methodology
JNTU University
 
Sap business warehouse_v1
Sap business warehouse_v1Sap business warehouse_v1
Sap business warehouse_v1
Marco Aurélio Galvão
 
Reporting data in alternate unit of measure in bi 7.0
Reporting data in alternate unit of measure in bi 7.0Reporting data in alternate unit of measure in bi 7.0
Reporting data in alternate unit of measure in bi 7.0
Ashwin Kumar
 
SAP HANA Developer Access Beta program - 7 steps towards your first HANA report
SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportSAP HANA Developer Access Beta program - 7 steps towards your first HANA report
SAP HANA Developer Access Beta program - 7 steps towards your first HANA report
Ronald Konijnenburg
 

Similar to Using error stack and error dt ps in sap bi 7.0 (20)

Rda step by step
Rda   step by stepRda   step by step
Rda step by step
 
Errors while sending packages from oltp to bi (one of error at the time of da...
Errors while sending packages from oltp to bi (one of error at the time of da...Errors while sending packages from oltp to bi (one of error at the time of da...
Errors while sending packages from oltp to bi (one of error at the time of da...
 
Co pa extraction
Co pa extractionCo pa extraction
Co pa extraction
 
SAP BOBJ Rapid Marts Overview I
SAP BOBJ Rapid Marts Overview ISAP BOBJ Rapid Marts Overview I
SAP BOBJ Rapid Marts Overview I
 
Maintaining aggregates
Maintaining aggregatesMaintaining aggregates
Maintaining aggregates
 
Programming Interface & SAP BDC
Programming Interface & SAP BDCProgramming Interface & SAP BDC
Programming Interface & SAP BDC
 
Sap Interview Questions - Part 1
Sap Interview Questions - Part 1Sap Interview Questions - Part 1
Sap Interview Questions - Part 1
 
Lsmw
LsmwLsmw
Lsmw
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
 
Data sevice architecture
Data sevice architectureData sevice architecture
Data sevice architecture
 
Data extraction and retraction in bpc bi
Data extraction and retraction in bpc biData extraction and retraction in bpc bi
Data extraction and retraction in bpc bi
 
Data extraction and retraction bpc bi
Data extraction and retraction bpc  biData extraction and retraction bpc  bi
Data extraction and retraction bpc bi
 
Creating new unit of measure in sap bw
Creating new unit of measure in sap bwCreating new unit of measure in sap bw
Creating new unit of measure in sap bw
 
Day 6.3 extraction_business_content_and_generic
Day 6.3 extraction_business_content_and_genericDay 6.3 extraction_business_content_and_generic
Day 6.3 extraction_business_content_and_generic
 
Bte
BteBte
Bte
 
Bte
BteBte
Bte
 
Lo extraction part 6 implementation methodology
Lo extraction   part 6 implementation methodologyLo extraction   part 6 implementation methodology
Lo extraction part 6 implementation methodology
 
Sap business warehouse_v1
Sap business warehouse_v1Sap business warehouse_v1
Sap business warehouse_v1
 
Reporting data in alternate unit of measure in bi 7.0
Reporting data in alternate unit of measure in bi 7.0Reporting data in alternate unit of measure in bi 7.0
Reporting data in alternate unit of measure in bi 7.0
 
SAP HANA Developer Access Beta program - 7 steps towards your first HANA report
SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportSAP HANA Developer Access Beta program - 7 steps towards your first HANA report
SAP HANA Developer Access Beta program - 7 steps towards your first HANA report
 

Using error stack and error dt ps in sap bi 7.0

  • 1. Using Error Stack and Error DTPs in SAP BI 7.0 Applies to: SAP BI 7.0 developers and support Users. For more information, visit the EDW homepage. Summary In this document we aim to discuss the procedure to collect the erroneous records in the error stack and load them to the target using an error DTP in SAP BI 7.0. This document also highlights the various options in handling errors using a DTP. Author: Dinesh V Company: IGate Services Limited Created on: 24 Feb 2011 Author Bio Dinesh is working as a SAP BW/BI Consultant in IGate Services Pvt Ltd, India. His expertise include SAP BW 3.5, SAP BI 7.0 and ABAP developments SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 1
  • 2. Using Error Stack and Error DTPs in SAP BI 7.0 Table of Contents Introduction ......................................................................................................................................................... 3 Steps in Handling Erroneous Records ............................................................................................................... 4 Step 1: Analyze Erroneous Records ............................................................................................................... 4 Step 2: Enable Error Stack ............................................................................................................................. 5 Step 3: Define Semantic Groups .................................................................................................................... 6 Step 4: Settings for Error Stack ...................................................................................................................... 7 Step 5: Execute the DTP load ......................................................................................................................... 8 Step 6: Validate Erroneous records in Error Stack ......................................................................................... 8 Step 7: Create and execute the Error DTP ..................................................................................................... 9 Related Content ................................................................................................................................................ 10 Disclaimer and Liability Notice .......................................................................................................................... 11 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 2
  • 3. Using Error Stack and Error DTPs in SAP BI 7.0 Introduction Error Stack is a request-based table (PSA table) into which erroneous data records from a data transfer process (DTP) are written. The error stack is based on the data source (PSA, DSO or Info Cube), that is, records from the source are written to the error stack. For a data transfer process (DTP), you can specify how you want the system to respond when data records contain errors. If you activate error handling, the records with errors are written to the error stack. You can use a special data transfer process, the error DTP, to update the records to the target. Figure 1: - Process Flow Chart SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 3
  • 4. Using Error Stack and Error DTPs in SAP BI 7.0 Steps in Handling Erroneous Records Step 1: Analyze Erroneous Records Go to the Update tab of the DTP of the target where there are erroneous records. Error Stack is available after each processing step of the DTP request. This allows you to find out which processing step the error occurred in. Examples of Incorrect Data Records  Field contains invalid characters or lowercase characters  Error during conversion  A routine returns a return code <> 0  Characteristic value is not found for master data  Duplicate data records with relation to keys  If no SID exists for the characteristic value  If no SID exists for the value of the navigation attribute Figure 2:- Data Transfer Process SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 4
  • 5. Using Error Stack and Error DTPs in SAP BI 7.0 Step 2: Enable Error Stack Change the DTP to Edit Mode and on the Update tab of DTP; select the Error Handling mechanism based on how you want system to respond to data records with errors. The various error handling mechanisms are explained as below:-  No update, no reporting (default) - If errors occur, the system terminates the update of the entire data package. The request is not released for reporting. The system continues checking the records however.  Update valid records, no reporting (request red) - This option allows you to update valid data. This data is only released for reporting after the administrator checks the incorrect records that have not been updated and manually releases the request by setting the overall status on the Status tab page in the monitor (QM action).  Update valid records, reporting possible - Valid records can be reported immediately. Automatic follow-up actions, such as adjusting the aggregates, are also carried out. Note: Specify the maximum number of incorrect data records allowed before the system terminates the transfer process. If you leave this blank, handling for incorrect data records is not activated, and the update is terminated as soon as the first error occurs. Figure 3:- Error Handling of DTP SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 5
  • 6. Using Error Stack and Error DTPs in SAP BI 7.0 Step 3: Define Semantic Groups Go to Extraction tab of the DTP and click on Semantic Groups to define the Semantic Groups to define the key fields of error stack. This setting is only relevant if you are transferring data to Data Store objects (DSO) with data fields that are overwritten. If errors occur, all subsequent data records with the same key are written to the error stack along with the incorrect data record. This guarantees the serialization of the data records, and consistent data processing. The serialization of the data records and thus the explicit definition of key fields for the error stack are not relevant for targets that are not updated by overwriting like Info Cube. The fields in the source can be enabled in the semantic group definition as per the below rules:  By default, all fields in the source that are uniquely assigned to a key field of the target DSO in the transformation are checked in the semantic group screen.  The fields whose assignment is not unique are not checked by default, but can be enabled.  The fields in source which are assigned to the data field in the target DSO cannot be checked. Figure 4:- Define Semantic Groups SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 6
  • 7. Using Error Stack and Error DTPs in SAP BI 7.0 Step 4: Settings for Error Stack Also the DTP Error Stack settings can be modified by clicking on the Goto  Settings for DTP Temporary Storage of the DTP. The various options available in the Settings for Temporary Storage are as given below:  Delete Temporary Storage – To delete the records in the Error Stack as per below conditions:- o With Request Status ‘Green’ o With Request Status ‘Red’ o After ‘x’ days  Level of Detail - you specify how you want to track the transformation.  Fill Temporary Storage - you 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) Figure 5:- Display Settings for DTP Temporary Storage SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 7
  • 8. Using Error Stack and Error DTPs in SAP BI 7.0 Figure 6:- Settings for Temporary Storage Step 5: Execute the DTP load Save and activate the DTP after the settings are completed. Execute the DTP to load the data from the PSA to the data target. If there are erroneous records in the data load, they are collected in the error stack. You can access the error stack by clicking on the error stack on top of DTP. Step 6: Validate Erroneous records in Error Stack In the monitor for the data transfer process, you can navigate to the PSA maintenance by choosing Error Stack in the toolbar, and display and edit erroneous records in the error stack. Validate and correct the erroneous records similar to editing the PSA and save the records. Figure 7:- Change Error Stack Data SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 8
  • 9. Using Error Stack and Error DTPs in SAP BI 7.0 Step 7: Create and execute the Error DTP Click on the Creating Error DTP on the Update tab of DTP to move data from error stack to the target. With an error DTP, you can update the data records to the target manually or by means of a process chain. The error DTP uses the full update mode to extract data from the error stack Once the data records have been successfully updated, they are deleted from the error stack. If there are any erroneous data records, they are written to the error stack again in a new error DTP request. When a DTP request is deleted, the corresponding data records are also deleted from the error stack. Figure 8:- Creating Error DTPs Figure 9:- Error DTP in the Administrator Workbench SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 9
  • 10. Using Error Stack and Error DTPs in SAP BI 7.0 Related Content Handling of Data Records with Errors Error Stack Temporary Storage 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 10
  • 11. Using Error Stack and Error DTPs in SAP BI 7.0 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. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 11