Ansicht
Dokumentation

EXIT_SAPLWPDA_002 -

EXIT_SAPLWPDA_002 -

Addresses (Business Address Services)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

This function exit is used to change or add to the IDoc data created in POS inbound for the material master.

1.) Change existing IDoc segments:
You require the following parameters for this:
-- PI_E1WPA(xx)_CNT: In the case of segments that occur several
times, these counters indicate how often the segment E1WPA(xx)
occurs in table PXT_IDOC_DATA_TEMP.
You can use this information to modify the IDoc data.
-- PI_SEG_LOCAL_CNT: Number of segments for the current material
master record.
You can use this information to modify the IDoc data.
-- PX_SEGMENT_COUNTER: Total number of all IDoc segments prepared
so far except those for the current material master record.
You can use this information to modify the IDoc data.
-- PXT_IDOC_DATA_TEMP: Table containing an IDoc record to be
converted. This table contains all the segments that belong to
the material master record currently being prepared.
You can modify this data accordingly.
-- PIT_IDOC_DATA: Table containing all prepared IDoc records except
the current records.
You can use the information in this table to modify the current
material master record.
However, this table should not be changed.

2.) Add to existing IDoc segments:
You need the following parameters for this:
-- PI_E1WPA(xx)_CNT: See above for description.
-- PI_SEG_LOCAL_CNT: Number of segments for the current material
master record. Must be updated when IDoc data is added (see
below).
-- PX_SEGMENT_COUNTER: See above for description.
-- PXT_IDOC_DATA_TEMP: To add to the IDoc record, add the relevant
data to segment E1WXX01 and insert this in the table. You can
add this segment to the table several times. Each time
you add a line, parameter PI_SEG_LOCAL_CNT increases by a
value of 1.
-- PIT_IDOC_DATA: See above for description.

3.) Error handling (optional):
If errors occur when you change or add to your IDoc data, and you
want to have this recorded in a preparation log, you need extra
parameters for this. Please see the program examples provided for
information on how to log errors.
You can follow FROM routine 'convert_position_artstm' in Include
LXWPDF00, for example.






Fill RESBD Structure from EBP Component Structure   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2581 Date: 20240329 Time: 003046     sap01-206 ( 13 ms )