Ansicht
Dokumentation

/SAPMP/BAPI_GOODSMVT_CREATE - Mill Products: Post Goods Movements with Single-Unit Batch Information

/SAPMP/BAPI_GOODSMVT_CREATE - Mill Products: Post Goods Movements with Single-Unit Batch Information

ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to create a material document for a goods movement. The single-unit batch information is taken into account.

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 the SU_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

EXTENSIONIN
GOODSMVTREFEWM
GOODSMVTSERVPARTDATA
GOODSMVT_CODE
GOODSMVT_HEADER
GOODSMVT_HEADRET
GOODSMVT_ITEM
GOODSMVT_SERIALNUMBER
IS_MP_GOODSMVT_ITEM
MATDOCUMENTYEAR
MATERIALDOCUMENT
RETURN
TESTRUN

Exceptions

Function Group

MP/SAPLMB_BUS2017

General Material Data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4355 Date: 20240419 Time: 023701     sap01-206 ( 52 ms )