SlideShare uma empresa Scribd logo
1 de 11
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

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.30Sabyasachi Das
 
Analysis process designer (apd) part 2
Analysis process designer (apd) part   2Analysis process designer (apd) part   2
Analysis process designer (apd) part 2dejavee
 
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.0gireesho
 
Errors in process chains
Errors in process chainsErrors in process chains
Errors in process chainsSiva Kollipara
 
Enhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAPEnhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAPAabid Khan
 
BW Adjusting settings and monitoring data loads
BW Adjusting settings and monitoring data loadsBW Adjusting settings and monitoring data loads
BW Adjusting settings and monitoring data loadsLuc Vanrobays
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extractionObaid shaikh
 
How to use abap cds for data provisioning in bw
How to use abap cds for data provisioning in bwHow to use abap cds for data provisioning in bw
How to use abap cds for data provisioning in bwLuc Vanrobays
 
SAP BO Web Intelligence Basics
SAP BO Web Intelligence BasicsSAP BO Web Intelligence Basics
SAP BO Web Intelligence BasicsKiran Joy
 
Lo extraction part 3 extractor logic
Lo extraction   part 3 extractor logicLo extraction   part 3 extractor logic
Lo extraction part 3 extractor logicJNTU University
 
Technical Overview of CDS View – SAP HANA Part I
Technical Overview of CDS View – SAP HANA Part ITechnical Overview of CDS View – SAP HANA Part I
Technical Overview of CDS View – SAP HANA Part IAshish Saxena
 
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.pdfKoushikGuna
 
Various Table Partitioning in SAP HANA
Various Table Partitioning in SAP HANAVarious Table Partitioning in SAP HANA
Various Table Partitioning in SAP HANADebajit Banerjee
 
Customer exit variables in sap
Customer exit variables in sapCustomer exit variables in sap
Customer exit variables in sapsaborhade
 

Mais procurados (20)

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
 
Analysis process designer (apd) part 2
Analysis process designer (apd) part   2Analysis process designer (apd) part   2
Analysis process designer (apd) part 2
 
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
 
Errors in process chains
Errors in process chainsErrors in process chains
Errors in process chains
 
Enhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAPEnhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAP
 
BW Adjusting settings and monitoring data loads
BW Adjusting settings and monitoring data loadsBW Adjusting settings and monitoring data loads
BW Adjusting settings and monitoring data loads
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extraction
 
How to use abap cds for data provisioning in bw
How to use abap cds for data provisioning in bwHow to use abap cds for data provisioning in bw
How to use abap cds for data provisioning in bw
 
SAP BO Web Intelligence Basics
SAP BO Web Intelligence BasicsSAP BO Web Intelligence Basics
SAP BO Web Intelligence Basics
 
Lo extraction part 3 extractor logic
Lo extraction   part 3 extractor logicLo extraction   part 3 extractor logic
Lo extraction part 3 extractor logic
 
Technical Overview of CDS View – SAP HANA Part I
Technical Overview of CDS View – SAP HANA Part ITechnical Overview of CDS View – SAP HANA Part I
Technical Overview of CDS View – SAP HANA Part I
 
Usgage of ABAP in BI
Usgage of ABAP in BIUsgage of ABAP in BI
Usgage of ABAP in BI
 
HANA Modeling
HANA Modeling HANA Modeling
HANA Modeling
 
Sap BusinessObjects 4
Sap BusinessObjects 4Sap BusinessObjects 4
Sap BusinessObjects 4
 
Extractioncockpit
Extractioncockpit Extractioncockpit
Extractioncockpit
 
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 BW - Info cube
SAP BW - Info cubeSAP BW - Info cube
SAP BW - Info cube
 
Various Table Partitioning in SAP HANA
Various Table Partitioning in SAP HANAVarious Table Partitioning in SAP HANA
Various Table Partitioning in SAP HANA
 
Customer exit variables in sap
Customer exit variables in sapCustomer exit variables in sap
Customer exit variables in sap
 
SAP BI/BW
SAP BI/BWSAP BI/BW
SAP BI/BW
 

Destaque

PS Financials interview questions and answers
PS Financials interview questions and answersPS Financials interview questions and answers
PS Financials interview questions and answersbellisa611
 
Currency conversion in bi 7.0
Currency conversion in bi 7.0Currency conversion in bi 7.0
Currency conversion in bi 7.0gireesho
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bishabari76
 
SAP PS - system statuses maintenance
SAP PS - system statuses maintenanceSAP PS - system statuses maintenance
SAP PS - system statuses maintenanceAskar Kozhepyanov
 
Sap Ps Case Study Thomas Fanciullo
Sap Ps Case Study Thomas FanciulloSap Ps Case Study Thomas Fanciullo
Sap Ps Case Study Thomas FanciulloMichael WANG
 
SAP MM Interview questions
SAP MM Interview questionsSAP MM Interview questions
SAP MM Interview questionsIT LearnMore
 
Sap Overview pdf
Sap Overview pdfSap Overview pdf
Sap Overview pdfpimporn
 

Destaque (11)

PS Financials interview questions and answers
PS Financials interview questions and answersPS Financials interview questions and answers
PS Financials interview questions and answers
 
Currency conversion in bi 7.0
Currency conversion in bi 7.0Currency conversion in bi 7.0
Currency conversion in bi 7.0
 
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
 

Semelhante a 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 stepPhani 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
 
Maintaining aggregates
Maintaining aggregatesMaintaining aggregates
Maintaining aggregatesSirisha Kumari
 
Programming Interface & SAP BDC
Programming Interface & SAP BDCProgramming Interface & SAP BDC
Programming Interface & SAP BDCSyam Sasi
 
Sap Interview Questions - Part 1
Sap Interview Questions - Part 1Sap Interview Questions - Part 1
Sap Interview Questions - Part 1ReKruiTIn.com
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewerotchmarz
 
Dso job log and activation parameters
Dso job log and activation parametersDso job log and activation parameters
Dso job log and activation parameterssakthirobotic
 
Data sevice architecture
Data sevice architectureData sevice architecture
Data sevice architecturePankaj 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 bivikram2355
 
Data extraction and retraction bpc bi
Data extraction and retraction bpc  biData extraction and retraction bpc  bi
Data extraction and retraction bpc bisakthirobotic
 
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 bwRajat 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_generictovetrivel
 
Lo extraction part 6 implementation methodology
Lo extraction   part 6 implementation methodologyLo extraction   part 6 implementation methodology
Lo extraction part 6 implementation methodologyJNTU University
 
Lo extraction part 7 enhancements
Lo extraction   part 7 enhancementsLo extraction   part 7 enhancements
Lo extraction part 7 enhancementsJNTU University
 

Semelhante a 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
 
Dso job log and activation parameters
Dso job log and activation parametersDso job log and activation parameters
Dso job log and activation parameters
 
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
 
Lo extraction part 7 enhancements
Lo extraction   part 7 enhancementsLo extraction   part 7 enhancements
Lo extraction part 7 enhancements
 

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