Powered By

Free XML Skins for Blogger

Powered by Blogger

Friday, September 12, 2008

BW Start Routines in Transfer Rules in SAP BW BI

Use

You have the option of creating a start routine in the transfer rules maintenance screen. This start routine is run for each data package after the data has been written to the PSA and before the transfer rules have been executed. The entire data package in the transfer structure format is used as parameter for the routine.

Functions

You can change the data package by adding or deleting records.

If you add or delete records, this might not be detected by the error handling.

The start routine contains a return parameter that causes processing of the entire package to be terminated with an error message for values <> 0.

The option of creating a start routine is available only for the PSA transfer method. The routine is not displayed if you switch to the IDoc transfer method.

For general information on routines, see Update Routines and Start Routines.

Example

You want to use an InfoSource with direct update to load additional texts from a flat file. You do not need the Japanese and Russian texts that are supplied with the file. These are filtered out by a start routine. The code for this start routine is shown below:

1.

*DATA:l_s_datapak_line type TRANSFER_STRUCTURE,

2.

* l_s_errorlog TYPE rssm_s_errorlog_int.

3.

delete datapak where LANGU='J'.

4.

delete datapak where LANGU='R'.

5.

*abort<>0 means skip whole data package!!

No comments: