Entering content frameFunction documentation Conversions and Segment Enhancements Locate the document in its SAP Library structure

Use

The function module uses conversion modules to adopt the relevant field conversions for the most recently prepared IDoc record (all EDIDD records that belong to a segment group) and logs any errors that occur.

Features

The interface of the function module that contains the function exit for conversions and segment enhancements is defined as follows:

Name

EXIT_SAPLWPDA_<3-char. abbreviation> (001–008 and 016) or EXIT_SAPLWBBY_INTERFACE_014 for bonus buys

Input

Parameters for error log

 

Error flag

Select the flag if you want to log errors

 

Status ID

Status ID of the current status header line is required

 

Serial number

Number of the current status item line is required

 

First key

First prepared key for this IDoc

 

INIT_LOG

Select the flag if error messages have already been prepared

 

Error counter

The number of errors which have occurred so far

 

STATUS

Error status of the most serious errors to have occurred so far.

The higher the value, the more serious the error. The highest number is 4.

 

Parameters that can be used to change the data

 

Segment counter 1

Number of no. 1 segments in this segment group

 

Segment counter 2

Number of no.2 segments in this segment group

 

.
.
.

.
.
.

 

Segment counter n

Number of no. n segments in this segment group

 

Segment counter (local)

Number of segments prepared for this segment group

 

Segment counter (global)

Total number of segments prepared so far

Output

Error code

Greater than 0 if errors occur during conversion, 0 if no errors occur.

Tables

IDOC_DATA_TEMP

Tables with the segments of the IDoc record currently being prepared.

 

IDOC_DATA

Table with all IDoc records prepared so far (except the one currently being prepared)

Activities

You may have to program more tasks.

 

 

Leaving content frame