using error stack and error dtps in sap bi 7.0

11
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 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

Upload: piedone64

Post on 09-Nov-2014

36 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Using Error Stack and Error DTPs in SAP BI 7.0

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

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

Page 2: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 2

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

Page 3: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 3

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

Page 4: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 4

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

Page 5: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 5

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

Page 6: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 6

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

Page 7: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 7

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

Page 8: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 8

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

Page 9: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 9

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

Page 10: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 10

Related Content

Handling of Data Records with Errors

Error Stack

Temporary Storage

For more information, visit the EDW homepage.

Page 11: Using Error Stack and Error DTPs in SAP BI 7.0

Using Error Stack and Error DTPs in SAP BI 7.0

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

© 2011 SAP AG 11

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.