1、BAPIGOODSMVTCREATEFU BAPI_GOODSMVT_CREATEGOODSMVT_CODE_Short TextAssign Code to Transaction for Goods MovementDescriptionThis parameter transfers the new key assignment of the GM_CODE to the relevant transactions in Inventory Management.For more information on the individual parameter fields, see th
2、e data element documentation in the ABAP Dictionary.Function ModuleBAPI_GOODSMVT_CREATEPost goods movements with MB_CREATE_GOODS_MOVEMENTFunctionalityYou can use this method to create a material document for a goods movement.You can only create one material document each time you call up the method.
3、You can use a simulation function before posting the goods movement to check how the data is updated in the database. The standard system is configured so that the goods movement is posted immediately, without prior simulation.Ensure that you transfer the data in the same way as it is managed in the
4、 database. For example: Material number 18-character with leading zeros Batches with uppercase lettersEnsure that the header data of the material document includes the posting date for all transactions/events listed below. Populate the PSTNG_DATE field (import structure GOODSMVT_HEADER) in the inter
5、face BAPI2017_GM_HEAD_01 for this purpose.NotesFrom Release ERP2005 onwards, it is possible to populate customers own fields in database tables using the BAPI, without carrying out a modification.The enhancements are passed on to the BAPI in a container and can be processed within the BAPI function
6、module.Technically, this is realized via an extension parameter (ExtensionIn) (see below or tab page Tables - Long Text) .Authorization check checkIn the MM Inventory Management component, the method does not perform any authorization checks.Note that the system can also check authorization objects
7、of other applications during the posting of a goods movement, depending on the business transaction.TransferThe following information about the material document that is to be created is passed on to the method: A structure with the header data A structure with the code for the movement A table with
8、 the item data A table with the serial numbersThe posting is made by the function module MB_CREATE_GOODS_MOVEMENT.ConfirmationsMessages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.Further informationThe method can only perform your func
9、tion if no error messages were generated in the Return table. This is the case if the header data and all the items were processed successfully.Transaction control is not implemented. The calling program therefore has to execute the Commit Work itself after this method has been successfully invoked
10、(in other words, if no errors were reported in the Return parameter).Which fields must be populated during the various transactions/events?The following example scenarios illustrate which fields have to be populated for which business transactions/events (code).There are the following types of trans
11、actions/events:1. GM_Code 01: Goods receipt for purchase order2. GM_Code 02: Goods receipt for production order3. GM_Code 03: Goods issue4. GM_Code 04: Transfer posting5. GM_Code 05: Other goods receipt6. GM_Code 06: Reversal of goods movements7. GM_Code 07: Subsequent adjustment with regard to a su
12、bcontract orderEntering the movement indicatorDepending on the transaction, you must enter the following in the movement indicator field: GM_Code 01 (Goods receipt for purchase order): B GM_Code 02 (Goods receipt for production order): F For all other transactions, leave the field blank.For 1: GM_Co
13、de 01: Goods receipt for purchase order Purchase order knownThe following fields must be populated:o Purchase ordero Purchase order itemo Movement typeo Movement indicatoro Quantity in unit of entryo ISO code unit of measurement for unit of entry orquantity proposalThe following fields may have to b
14、e populated (this is not a complete list):o Minimum shelf life expiration date (if set up in the system)o Reason for movement (if set up in the system)o Batch (if the material is handled in batches and no automatic batch assignment has been set up)o Storage location (if no storage location us specif
15、ied in the purchase order item)The following fields can be populated (this is not a complete list):o Stock typeo Item texto Unloading pointo Delivery completed indicatorThe following fields must not be populated (this is not a complete list):o Account assignment fields (the account assignment is ado
16、pted from the purchase order)o Reservationo Receiving/issuing materialo Receiving/issuing planto Receiving/issuing storage locationIn the case of a purchase order item with the item category subcontracting, only the GR item is to be passed on in the interface. The GI items are determined automatical
17、ly in the system. Purchase order unknown: Shipping notification knownThe following fields must be populated:o Deliveryo Delivery itemo Movement typeOther fields as under Purchase order known. The system determines the relevant purchase order item via the delivery/delivery item. Purchase order unknow
18、n: Purchase order is to be created automaticallyThe following fields must be populated:o Material numbero Planto Storage locationo Vendoro Movement typeo Movement indicatoro Quantity in unit of entryo ISO code unit of measurement for unit of entryThe following fields may have to be populated (this i
19、s not a complete list):o Minimum shelf life expiration date (if set up in the system)o Reason for movement (if set up in the system)o Batch (if the material is handled in batches and batches are not assigned automatically)The following fields can be populated (this is not a complete list):o Stock ty
20、peo Item texto Unloading pointYou cannot populate the following fields (this is not a complete list):o Account assignment fields (automatic creation of purchase order items with account assignment is not supported)o Reservationo Receiving/issuing materialo Receiving/issuing planto Receiving/issuing
21、storage location Purchase order unknown: A purchase order is not to be createdThe following fields must be populated:o Material numbero Planto Storage locationo Vendoro Movement typeo Movement indicatoro Quantity in unit of entryo ISO code unit of measurement for unit of entryThe following fields ma
22、y have to be populated in some cases (this is not a complete list)o Minimum shelf life expiration date (if set up in the system)o Reason for movement (if set up in the system)o Batch (if the material is handled in batches and automatic assignment of batch numbers is not set)The following fields can
23、be populated (this is not a complete list)o Special stock indicatoro Item texto Unloading pointo Goods recipientThe following fields cannot be populated (this is not a complete list)o Account assignment fields (automatic creation of purchase order items with account assignment is not supported)o Res
24、ervationo Receiving/issuing materialo Receiving/issuing planto Receiving/issuing storage locationo Receiving/issuing batchThe input combinations listed above for the GM_CODE 01 can be combined within an input table so that they can be posted in a material document. Items can also be posted for diffe
25、rent purchase orders, provided that all the purchase orders relate to the same vendor. Transfer of subcontracting componentsWhen the end product (ordered material of a subcontract order) is posted using movement type 101, the populated unique identification of the document line (LINE_ID) is addition
26、ally needed for the transfer of the subcontracting components.More information on LINE_ID and PARENT_IDThe following fields must be populated for the components:o Unique identification of the document lineo Identification of the immediately superordinate lineo Material numbero Planto Storage locatio
27、no Quantity in unit of entryThe following fields can be filled for the components:o All other fields in the method that are included in this list.The following fields cannot be populated for the components:o All fields that are not included in the list above. The movement indicator must be initial.
28、Additional fields in goods-receipt-based invoice verificationWhen you post a goods receipt to purchase order with movement type 102, an issue with reference to a previously posted goods issue, the following fields must also be transferred:o REF_DOC_IT (LFPOS): Item of a reference documento REF_DOC (
29、LFBNR): Document number of a reference documento REF_DOC_YR (LFBJA): Fiscal year of a reference documentOnly if you transfer these fields can you be sure that the link to the original goods movement is retained.For 2 GM_Code 02: Goods receipt for production orderThe following fields have to be popul
30、ated:o Ordero Movement typeo Movement indicatoro Quantity in unit of entryo ISO code unit of measurement for unit of entry orquantity proposalThe following fields may have to be populated in some cases (this is not a complete list):o Minimum shelf life expiration date (if set up in the system)o Reas
31、on for movement (if set up in the system)o Batch (if the material is handled in batches and automatic batch number assignment is not set)o Storage location (if storage location has not been specified in the order)The following fields can be populated (this is not a complete list):o Order item (co-product)o Stock typeo Item texto Unloading pointo Delivery completed indicatorThe following fields cannot be populated (this is not a complete list):o Account assignment fields (the account assignments are adopted from the purchase order)o Reservationo Re
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1