/SAPMP/BAPI_GOODSMVT_CREATE - Mill Products: Post Goods Movements with Single-Unit Batch Information
Vendor Master (General Section) Addresses (Business Address Services)This documentation is copyright by SAP AG.
Functionality
You use this method to create a material document for a goods movement, while taking into account single-unit batch information.
Only one material document can be created each time the method is called.
You can use a simulation function prior to posting to check how the data is written to the database. In the standard system, the goods movement is posted without prior simulation.
Ensure that you transfer the data in the same form as it appears in the database, for example:
- 18-character material number that begins with zeros
- Batches in upper case type
Ensure to enter the posting date for all of the operations in the header data of the material document.Do so by filling the PSTNG_DATE field (import structure GOODSMVT_HEADER) in the BAPI2017_GM_HEAD_01 interface.
Example
Notes
Transfer
The following information is transferred to the method using the material document to be created:
- A structure containing the header data
- A structure containing the code for the movement
- A table containing the item data
- A table containing single-unit batch information for the item data
- Table parameter IS_MP_GOODSMVT_ITEM (/SAPMP/BAPI2017_GM_ITEM_CREATE structure)
- INDEX_GDSMVTfield
- A unique assignment to an entry in the GOODSMVT_ITEM table has to be made using the index for this entry.
- SU_BATCH_SET field
- The field has to be filled with the value 'X', because the value BLANK has a particular meaning in theSU_BATCH and SU_BATCH_TP fields. If the SU_BATCH_SET field contains the value BLANK, the single-unit batch information is taken from the default values in the material master.
- A table containing the serial numbers
The method uses the method BAPI_GOODSMVT_CREATE and its parameters.
Confirmations
Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
Further information
Parameters
GOODSMVT_CODEGOODSMVT_HEADER
GOODSMVT_HEADRET
GOODSMVT_ITEM
GOODSMVT_SERIALNUMBER
IS_MP_GOODSMVT_ITEM
MATDOCUMENTYEAR
MATERIALDOCUMENT
RETURN
TESTRUN
Exceptions
Function Group
MP/SAPLMB_BUS2017PERFORM Short Reference BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 4242 Date: 20120525 Time: 125706 triton ( 110 ms )






