Ansicht
Dokumentation
EXIT_SAPLV56I_002 - IDOC TPSDLS: Modification of IDOC in Delivery Item Group
RFUMSV00 - Advance Return for Tax on Sales/Purchases BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Functionality
You use this customer exit to modify the delivery item group in an IDOC of the type TPSDLS01. The modification takes place after insertion of the segment in the IDOC table. The current segment is the last entry in the table.
You call up the exit after creating the following segment types: E1TPDLI, E1TPDII, and E1TPCOC. Each time you call the exit, you can either modify or supplement data in segments that already exist, or you can add on additional segments.
Example
1) In this example, you find coding to be able to access the delivery
item. A field is changed.
* Declaration of Datastructures
data: e1tpdli like e1tpdli. "delivery item segment
data: last_seg type i. "index of last idoc table entry
* determine idoc table size and read last segment
describe table idoc_data lines last_seg.
read table idoc_data index last_seg.
* do something if the written segment was delivery item segment
if segment_name = 'E1TPDLI'.
e1tpdli = idoc_data-sdata. "get the data contents of the segment
e1tpdli-hazmat = 'ABC001' "change hazard material number
idoc_data-sdata = e1tpdli. "write back segment contents
modify idoc_data index sy-tabix.
endif.
2) In this example you find coding to be able to add on a segment after
the commodity segment (the IDOC must be changed first).
* Declaration of Datastructures
data: e1tpnew like e1tpnew. "a new segment
* do something if the written segment was action code segment
if segment_name = 'E1TPCOC'.
e1tpnew-newfield = '0001'. "set the field values of new segment
idoc_data-sdata = e1tpnew. "write segment contents
idoc_data-segnam = 'E1TPNEW'. "set segment name
append idoc_data.
endif.
Notes
Further information
Parameters
DELIVERY_HEADERDELIVERY_ITEM
IDOC_DATA
SEGMENT_NAME
Exceptions
IDOC_ERRORFunction Group
XV56CPI1466 during Backup TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 2247 Date: 20240523 Time: 075734 sap01-206 ( 31 ms )