Ansicht
Dokumentation

EXIT_SAPLWPDA_005 -

EXIT_SAPLWPDA_005 -

RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This function exit is used to change or add to IDoc data created in POS outbound processing for follow-on items.

1.) Change existing IDoc segments:
You need the following paramters for this:
-- PI_E1WPN02_CNT: This counter indicates how often segment
E1WPN02 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 follow-on
item.
You can use this information to modify the IDoc data.
-- PX_SEGMENT_COUNTER: Total number of all IDoc segments already
prepared except those for the current follow-on item.
You can use this information to modify the IDoc data.
-- PXT_IDOC_DATA_TEMP: Table containing the IDoc record to be
converted. This table contains alls segments that belong to the
follow-on item currently being prepared.
You can modify the data accordingly.
-- PIT_IDOC_DATA: Table containing all IDoc records already
prepared with the exception of the current one.
You can use the information in this table to modify the current
follow-on item.
However, you should not change this table.

2.) Add to existing IDoc segments:
You need the following parameters for this:
-- PI_E1WPN02_CNT: See above for description.
-- PI_SEG_LOCAL_CNT: Number of segments for the current follow-on
item. Must be updated when data is added to the IDoc data
(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 a line is added, 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 the FORM routine 'convert_position_nart' in
include LXWPDF00, for example.






CPI1466 during Backup   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2499 Date: 20240329 Time: 022154     sap01-206 ( 18 ms )