Ansicht
Dokumentation

EXIT_SAPLV50E_006 -

EXIT_SAPLV50E_006 -

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this function module, you can specify what foreign trade item data must be filled so that the system regards it as complete.

For this reason, you can use all foreign trade item data (I_EXPORT_ITEM) as IMPORT parameters.

In order to distinguish between receipt/import and dispatch/export, the system has been set up so that indicator I_EXP_IMP_FLAG has value 'I' for goods receipt, value 'I' for receipt/import, and value 'E' for dispatch/export.

If you want the system to regard the foreign trade item data as complete, CHANGING parameter C_COMPLETE (which contains the result of the completion check carried out by the system) must be set to 'X'.

If the foreign trade data are incomplete, CHANGING parameter C_COMPLETE must be set to ' '.

Example

If you want the system to regard the export document item (field I_EXP_IMP_FLAG = 'E') as complete, provided that the commodity code (field I_EXPORT_ITEM-STAWN) and the origin country of the material (field I_EXPORT_ITEM-HERKL) have been maintained, you must add the following statement to the user exit:

...
IF ( I_EXP_IMP_FLAG EQ 'E' ).
CLEAR: C_COMPLETE.
IF NOT ( I_EXPORT_ITEM-STAWN IS INITIAL ) AND
NOT ( I_EXPORT_ITEM-HERKL IS INITIAL ) .
C_COMPLETE = 'X'.
ENDIF.
ENDIF.
...

Note

This completion check applies to foreign trade data both in SD and MM documents.






ROGBILLS - Synchronize billing plans   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 1564 Date: 20240418 Time: 234143     sap01-206 ( 29 ms )