Ansicht
Dokumentation

EXIT_SAPLV56I_010 - IDOC TPSSHT01: Modification of IDOC Transportation Segments

EXIT_SAPLV56I_010 - IDOC TPSSHT01: Modification of IDOC Transportation Segments

CPI1466 during Backup   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Before processing, you can influence the contents of the IDoc TPSSHT01 that contains the shipments grouped together or changed by a transportation planning system.

Example

Notes

This function module is called up for each single shipment. It receives the control record of the processed IDoc and the data segments of all the IDocs are transferred.

The data segments belonging to the current IDoc are determined as follows:
* Loop through one IDoc's segments
*...Position to section of entries for IDOC
data: tabix_from like sy-tabix.
read table idoc_data
with key docnum = idoc_contrl-docnum
binary search.
if sy-subrc ne 0.
exit.
endif.
tabix_from = sy-tabix. "begin of section
*...Read section of IDOC data
loop at idoc_data from tabix_from.
if idoc_data-docnum ne idoc_contrl-docnum.
exit. "end of section
endif.
*.....Process the corresponding segment
case idoc_data-segnam.
when 'E1TPSHH'.
* ... process a specific data segment
data: f_e1tpshh like e1tpshh.
f_e1tpshh = idoc_data-sdata.
f_e1tpshh-srvid1 = 'xxxxx'.
idoc_data-sdata = f_e1tpshh.
modify idoc_data.
endcase.
endloop.

Further information





Parameters

CURRENT_CARRIER
CURRENT_MESTYP
IDOC_CONTRL
IDOC_DATA

Exceptions

Function Group

XV56

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1688 Date: 20240604 Time: 073606     sap01-206 ( 24 ms )