Ansicht
Dokumentation
EXIT_SAPLV50E_006 - Foreign Trade data - Item: User exit - Check completeness of data
General Data in Customer Master rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
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 you want the system to regard the foreign trade data as 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 sales and distribution documents and in materials management documents.
Parameters
C_COMPLETEI_EXPORT_ITEM
I_EXP_IMP_FLAG
Exceptions
Function Group
XV50General Data in Customer Master RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 1786 Date: 20240523 Time: 055503 sap01-206 ( 24 ms )