Ansicht
Dokumentation
EXIT_SAPLV50E_002 - MM documents - header: User exit for default of import header data
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up Addresses (Business Address Services)This documentation is copyright by SAP AG.
Functionality
Using this function module, you can determine individual import header data that is to be assigned to a materials management document (purchase order), if the routines proposed by the system are not sufficient or if you want to overwrite the data determined by the system.
For this reason, you can use the following IMPORT parameters:
- Document header of purchase order as field string (I_PURCHASE_ORDER_HEADER)
- Vendor master as field string (I_VENDOR_MASTER)
You can use import header data determined until now by the system as CHANGING parameters, such as:
- Field string of ALL import header data (C_IMPORT_HEADER_DATA)
The import header data determined in this function module - all C_* field strings - are copied to the calling program.
Example
If you want road transport (value: '3') always to be assigned to the inland mode of transport (field C_IMPORT_HEADER_DATA-IEVER), you must add the following statement to the user exit:
...
C_IMPORT_HEADER_DATA-IEVER = '3'.
...
Note
The system does NOT call up this function module UNTIL the standard proposal routines for import header data have been processed. This means that any data changes in the user exit will not overwritten by the system.
Note
The field string that has been copied (C_IMPORT_HEADER_DATA) contains all foreign trade header data. This may even include data that is only relevant for export processing in Sales and Distribution.
These fields can be filled in the user exit. However, they can neither be displayed nor used otherwise in materials management documents.
Make sure that you fill only those fields in the user exit that are relevant for import processing.
Note
The following fields CANNOT be overwritten in the user exit or are resetto their original values after the system has called up the user exit.
- Client (C_IMPORT_HEADER_DATA-MANDT)
- Number of foreign trade data (C_IMPORT_HEADER_DATA-EXNUM)
- Currency of statistical value (C_IMPORT_HEADER_DATA-GRWCU)
- Currency of customs value (C_IMPORT_HEADER_DATA-WZOCU)
- Status: Document data complete (system) (C_IMPORT_HEADER_DATA-AUSOK)
Parameters
C_IMPORT_HEADER_DATAI_PURCHASE_ORDER_HEADER
I_VENDOR_MASTER
Exceptions
Function Group
XV50RFUMSV00 - Advance Return for Tax on Sales/Purchases PERFORM Short Reference
This documentation is copyright by SAP AG.
Length: 2813 Date: 20240523 Time: 080216 sap01-206 ( 29 ms )