Ansicht
Dokumentation

EXIT_SAPLV50E_005 - Foreign Trade data - Header: User exit: Check completeness of data

EXIT_SAPLV50E_005 - Foreign Trade data - Header: User exit: Check completeness of data

General Data in Customer Master   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

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

For this reason, you can use all foreign trade header data (I_EXPORT_HEADER) 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 receipt/import, and value 'E' for dispatch/export.

If you want the system to regard the foreign trade header 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 header (field I_EXP_IMP_FLAG = 'E') as complete, provided that the mode of transport (field I_EXPORT_HEADER-EXPVZ), the office of exit (field I_EXPORT_HEADER-ZOLLA) and the indicator for the means of transport crossing the border (field I_EXPORT_HEADER-KZGBE) 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_HEADER-EXPVZ IS INITIAL ) AND
NOT ( I_EXPORT_HEADER-ZOLLA IS INITIAL ) AND
NOT ( I_EXPORT_HEADER-KZGBE IS INITIAL ) .
C_COMPLETE = 'X'.
ENDIF.
ENDIF.
...

Note

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





Parameters

C_COMPLETE
I_EXPORT_HEADER
I_EXP_IMP_FLAG

Exceptions

Function Group

XV50

General Data in Customer Master   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 1832 Date: 20240523 Time: 083853     sap01-206 ( 36 ms )