Ansicht
Dokumentation

EXIT_SAPLV55K_020 -

EXIT_SAPLV55K_020 -

BAL_S_LOG - Application Log: Log header data   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to modify the control record and the data records of IDoc SHPMNTxx which can be sent by partners as an electronic message for creating or changing shipments.

Example

This function module is called per shipment. The control record of the processed IDoc and the data segments of all IDocs are passed on to the function module. The data segments associated with the IDoc currently being processed can be 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
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 'E1EDT20'.
* ... process a specific data segment
data: f_e1edt20 like e1tedt20
f_e1edt20 = idoc_data-sdata.
* ... modify the data
idoc_data-sdata = f_e1edt20.
modify idoc_data.
endcase.
endloop.






General Material Data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1526 Date: 20240420 Time: 052642     sap01-206 ( 28 ms )