• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,451
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
129
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Using Error Stack and Error DTPs in SAP BI 7.0Applies to:SAP BI 7.0 developers and support Users. For more information, visit the EDW homepage.SummaryIn this document we aim to discuss the procedure to collect the erroneous records in the error stack and loadthem to the target using an error DTP in SAP BI 7.0. This document also highlights the various options inhandling errors using a DTP.Author: Dinesh VCompany: IGate Services LimitedCreated on: 24 Feb 2011Author 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 developmentsSAP 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.0Table of ContentsIntroduction ......................................................................................................................................................... 3Steps 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 ..................................................................................................... 9Related Content ................................................................................................................................................ 10Disclaimer and Liability Notice .......................................................................................................................... 11SAP 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.0IntroductionError Stack is a request-based table (PSA table) into which erroneous data records from a data transferprocess (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 recordscontain errors. If you activate error handling, the records with errors are written to the error stack. You canuse a special data transfer process, the error DTP, to update the records to the target.Figure 1: - Process Flow ChartSAP 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.0Steps in Handling Erroneous RecordsStep 1: Analyze Erroneous RecordsGo to the Update tab of the DTP of the target where there are erroneous records. Error Stack is availableafter each processing step of the DTP request. This allows you to find out which processing step the erroroccurred 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 attributeFigure 2:- Data Transfer ProcessSAP 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.0Step 2: Enable Error StackChange the DTP to Edit Mode and on the Update tab of DTP; select the Error Handling mechanism basedon 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 DTPSAP 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.0Step 3: Define Semantic GroupsGo to Extraction tab of the DTP and click on Semantic Groups to define the Semantic Groups to define thekey fields of error stack.This setting is only relevant if you are transferring data to Data Store objects (DSO) with data fields that areoverwritten. If errors occur, all subsequent data records with the same key are written to the error stack alongwith the incorrect data record.This guarantees the serialization of the data records, and consistent data processing. The serialization of thedata records and thus the explicit definition of key fields for the error stack are not relevant for targets thatare 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 GroupsSAP 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.0Step 4: Settings for Error StackAlso the DTP Error Stack settings can be modified by clicking on the Goto  Settings for DTP TemporaryStorage 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 StorageSAP 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.0Figure 6:- Settings for Temporary StorageStep 5: Execute the DTP loadSave and activate the DTP after the settings are completed. Execute the DTP to load the data from the PSAto 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 StackIn the monitor for the data transfer process, you can navigate to the PSA maintenance by choosing ErrorStack 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 DataSAP 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.0Step 7: Create and execute the Error DTPClick on the Creating Error DTP on the Update tab of DTP to move data from error stack to the target. Withan error DTP, you can update the data records to the target manually or by means of a process chain. Theerror DTP uses the full update mode to extract data from the error stackOnce the data records have been successfully updated, they are deleted from the error stack. If there areany 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 DTPsFigure 9:- Error DTP in the Administrator WorkbenchSAP 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.0Related ContentHandling of Data Records with ErrorsError StackTemporary StorageFor 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.0Disclaimer and Liability NoticeThis document may discuss sample coding or other information that does not include SAP official interfaces and therefore is notsupported 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 orcode sample, including any liability resulting from incompatibility between the content within this document and the materials andservices offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of thisdocument.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 11