Ansicht
Dokumentation
EXIT_SAPLV50E_004 -
BAL_S_LOG - Application Log: Log header data Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
Using this function module, you can determine individual import item 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)
- Document item of purchase order as field string (I_PURCHASE_ORDER_LINE_ITEM)
- General data in the purchasing info record as field string (I_PURCH_INFO_RECORD_GENERAL)
You can use export header data determined until now by the system as CHANGING parameters, such as:
- Field string of ALL import item data (C_IMPORT_LINE_ITEM_DATA)
The import item data determined in this function module - all C_* field strings - are copied in the calling program.
Example
If imports for purchasing organization 0001 are always samples, value '12' must always be assigned to the business transaction type (field C_IMPORT_LINE_ITEM_DATA-EXART).
You can do this by adding the following statement to the user exit:
...
IF I_PURCHASE_ORDER_HEADER-EKORG EQ '0001'.
C_IMPORT_LINE_ITEM_DATA-EXART = '12'.
ENDIF.
...
Note
The system does NOT call up this function module UNTIL the standard proposal routines for import item 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_LINE_ITEM_DATA) contains all foreign trade item 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 export processing.
Note
The following fields CANNOT be overwritten in the user exit or are reset to their original values after the system has called up the user exit:
The following fields are not to be overwritten |
---|
------------------------------------------------------------------------ |
| Client | C_IMPORT_LINE_ITEM_DATA-MANDT | |
------------------------------------------------------------------------ |
| Number of foreign trade data | C_IMPORT_LINE_ITEM_DATA-EXNUM | |
------------------------------------------------------------------------ |
| Currency of statistical value | C_IMPORT_LINE_ITEM_DATA-GRWCU | |
------------------------------------------------------------------------ |
| Currency of customs value | C_IMPORT_LINE_ITEM_DATA-WZOCU | |
------------------------------------------------------------------------ |
| Status: Document data complete (sys)| C_IMPORT_LINE_ITEM_DATA-AUSOK | |
------------------------------------------------------------------------ |