BAPI_GOODSMVT_CREATE Goods Receipt Reversal
Hello All,
According to SAP docs I need to use goodsmvt_code-gm_code = '06' but with movement type 102 I get an error message "Goods movement not possible with movement type 102". Works fine if I use regular goods receipt code '01' and movement 102. Please let me know if Im missing something here.
Also, how do you post goods receipt reversal referencing goods receipt and not PO with BAPI_GOODSMVT_CREATE?
Thanks,
Leon
Hi Leon,
I found the following documentation by SAP seems to be helpful for you.
<b>You can use the Cancel method to reverse goods movements. But you may also want to cancel a goods movement without referring to a material document (see the Cancel method).
If you want to work without referring to the document, you have to fill the field BAPI_GM_ITEM_CREATE-XSTOB in the interface (import table GOODSMVT_ITEM). In this case, the system converts the movement type assigned in the interface to the reversal movement type. Alternatively, you can set the reversal movement type in the interface. In this case, the BAPI_GM_ITEM_CREATE_XSTOB field must be transferred blank.
If you want to cancel a goods movement with reference to a reservation (without using the Cancel method) you can only transfer the field BAPI_GM_ITEM_CREATE_XSTOB if it is filled. Movement types are not transferred when you post with reference to a reservation, as the movement type is contained in the reservation item.</b>
Similar Messages
-
HI
Following error is coming in goods receipt reversal account determination for entry dsds prd bs01_zc01 not possible,
dsds-company code,bs01-plant,zc01-valuation class,why system asking to assign gl account in obyc for prd,(price difference account).
Regards
SamHi,
Is the material valuated at standard cost and there has been a price change? -
Goods receipt reversal - material valuation
Friends can any one explain the goods receipt reversal scenario
and how it will affect the material valuation.
I am going through SAP HELP but i did not understood, the concept behind it and how it affect the material valuation once the goods receipt is entered and
after cancelling the good receipt in case of "moving price" and the material valuation carried out.
Please help me
and also i want to know transaction for goods reciept reversal .....
Edited by: VENKATESH MADANAGOPAL on Dec 15, 2008 7:29 AMDear Venkatesh,
Most goods movements in Inventory Management lead to changes in stock quantity and therefore in stock value: In the case of goods receipts, the stock value increases and in the case of goods issues, the stock value is reduced.
For materials valuated at a moving average price, the material price can also change in the case of goods receipts for purchase orders. This is the case if the purchase order price differs from the material price.
Planned Delivery Costs for a purchase order are also included in valuation when goods are received. When the goods receipt is posted, provisions are created for planned delivery costs; thus the material is immediately valuated at the expected price. A subsequent debit/credit when the invoice is received is only necessary if there are variances between the stipulations of the order and the invoice.
It is also possible to post the net value of goods received. In this way, cash discounts that have been agreed upon are taken into account in valuation at this point. This means that when a goods receipt is posted for a material with moving average price control, the value of the order minus the cash discount is debited.
Material price changes can also occur during the following transactions in Inventory Management:
Regards..... Sri -
BAPI_GOODSMVT_CREATE-Goods receipt in with sd-delivery in another plant?
Hello to all.
I have a strange situation.
We use the mentioned bapi to post goods-receipts.
In this case we use the movement type 101.
Inside sap-standard , inside the migo, there is a possibility to do the same, online.
And also, if a sd-delivery from another plant is present.
The posting initiated by the migo is more complete as it fills the entire document flow properly.
I would like to trigger exactly this behaviour in the background, via RFC-call.
As I now use the BAPI_GOODSMVT_CREATE, the documentary told me, that this is not possible.
How else can I achieve this ?
Does anybody know the solution ?
Will I have to do it via WS_DELIVERY_UPDATE_2 instead ?
Best regards
Robert.
Edited by: Robert Dornfeld on Nov 11, 2011 12:04 PMRefer Note 424014 - BAPI: Goods receipt for the outbound delivery
When you post a goods receipt for an outbound delivery (with reference to a stock transport order) with Bapi BAPI_GOODSMVT_CREATE, you must fill the following fields so that the purchase order as well as the delivery are updated correctly:
GOODSMVT_ITEM-MOVE_TYPE (Movement type): generally movement type '101'
GOODSMVT_ITEM-DELIV_NUMB (Delivery)
GOODSMVT_ITEM-DELIV_ITEM (Delivery item)
GOODSMVT_ITEM-PLANT (Plant)
GOODSMVT_ITEM-STGE_LOC (Storage location)
GOODSMVT_ITEM-ENTRY_QNT (Quantity)
GOODSMVT_ITEM-ENTRY_UOM (Unit of measure)
GOODSMVT_ITEM-PO_NUMBER (Purchase order)
GOODSMVT_ITEM-PO_ITEM (Purch. order item)
GOODSMVT_ITEM-MVT_IND (Movement indicator) = 'B'
Now the order history and the document flow of the delivery are updated. In order to use fields DELIV_NUMB and DELIV_ITEM, you must implement the enhancements of Note 356665.
If the delivery note number / delivery (field MKPF-XBLNR) is supposed to be updated in the material document header, field GOODSMVT_HEADER-REF_DOC_NO must be filled with the delivery number when you call the Bapi BAPI_GOODSMVT_CREATE.
The field should only be filled if the delivery number is unique.The delivery is transferred at item level (table GOODSMVT_ITEM, field DELIV_NUMB) so that different delivery numbers can occur in a material document.In this case, there is no unique delivery so that a blank field GOODSMVT_HEADER-REF_DOC_NO would be useful. -
Goods Receipt Reversal (Excisable Materials)
Hi,
For exisable Materials, we created the Purchase Order, done the Goods Receipt (Only Part I), done the Invoice Verification.
We could not do the Capture & Post Invoice.
Now we need to cancel the Goods Receipt.
Can we simply reverse the Invoice Verification (MR8M) and Material Document (MBST)?
Do we need to do something extra as these are the Excisable Materials. Please note that the Material exists in QA Stock only.
Regards,
PK>
PK wrote:
> Hi,
>
> For exisable Materials, we created the Purchase Order, done the Goods Receipt (Only Part I), done the Invoice Verification.
>
> We could not do the Capture & Post Invoice.
>
> Now we need to cancel the Goods Receipt.
>
> Can we simply reverse the Invoice Verification (MR8M) and Material Document (MBST)?
>
> Do we need to do something extra as these are the Excisable Materials. Please note that the Material exists in QA Stock only.
>
> Regards,
> PK
Hi,
If the material is not actually going to be reversed to vendor, that means its only GRN reversal due to other reasons, you can follow the steps as mentioned.
Part1 entries if created at GRN will automatically get nullified once GRN is cancelled.
Regards..
ak -
Good Receipt Reversal using Idoc WMMBXY
Hi to all,
I've the following issue in a 4.6C R/3.
I want to reverse a Goods Receipt from Purchase Order (MB01; goods movement 102) using inbound idoc WMMBXY.
When I try to reverse some quantity in the PO of a material position without batch, there's no problem, the Idoc enter and reversal goes well.
But when I try to reverse some quantity (i.e. 3 PCE) of a material position not batch managed, Idoc goes in status 51 and gives following error:
"Deficit of PU GR quantity 3 PCE : [MATERIAL] [PLANT] [ST.LOC] [BATCH]
Message no. M7 021"
Anyone can help me?
Thanks a lot,
AlexNo one can help me?
-
Post Goods Receipt Reversal with VL09 for customer returns in WM
Hi,
We have performed Goods receipt and stock was putaway with a TO confirmation in WM. Now we want to reverse the goods receipt and the quantity is not in 904 area for returns. How can I get the stock back to 904 from regular storage type with same dynamic bin number as my customer return delivery number? Basically When I do VL09 system complains that it canot find the dynamic bin number which is same as my delivery number. Answer will be rewarded.
thanks,
Sarveshthe optional solution can be as following steps:
1) create the bin manually with ls01n: storage type 904, bin name is the delivery number,
2) reverse with vl09 and a material doc will be created.
3) check the bin stock with ls24, you will see negative stock in 904.
4) create TO to offset this negative qty with lt06 with above mentioned material doc. this TO's source bin is just the one in regular storage type.
5) confirm TO
6) don't forget to delete the bin created in step 1, this is because it is created manually but not dynamic bin that will dissapear automatically.
pls reward if helpful. -
Goods Receipt Reversal For Excisable Materials
Hi,
We did the Goods Receipt For Excisable Materials. At the time of Goods Receipt, we selected the Excise Option "Only Part 1". And out RG23A Part I Register got updated.
Later we had to reverse the Goods Receipt.
What I want to know is that what do I need to to reverse the entry in RG23A Part I Register.
Do I need to update the Register using T Code, J1I5, If yes which Rcpt/Issu classification codes option should I select.
IIM Issued for use/installation or in manufacture
IPD Issued for clearance/Removal on payment of duty
IWD Issued for clearance/Removal without payment of duty
IDH Removal from factory on payment of duty for Home use
IDE Removal on payment of duty for export under no bond
IWE Removal without payment of duty for export under bond
IWT Removal without payment of duty for transfers
IWO Removal without payment of duty for other purpose
Please guide.
Regards,Hi,
as per your thread you have posted you have captured the Excise Duty.that means Part I is done . Before Posting the Vendor Invoice (MIRO) transaction you have to post the Excise Invoice by the help of the Transaction code J1IEX..selecting POST option.
At the Month End you have update the register by the the Transaction code J1I5.( Selecting the proper Register) After that you have to go for J2I6 to get the all excise values you have taken Excise Credit for the month.
As per your requirement If you want to Cancel the Excise Invoice after capturing the Excise value,,,,then you have to cancel the GR and Cancel the Excise invoice by J1IEX ( by selecting Cancel option).
With Regards,
Sudipto -
Goods Receipt reversal posing for Inbound delivery
Hi Gurus,
There is an interface running which create, IDOC, Inbound delivery, HU and material received (material document created - 521mvt type) to stock.
Now there is some problem in the HU weight and I need to reverse the Material docuement with 522 mvt type.
As the GR is created through VL32n, I can not reverse the GR using MBST or MIGO cancellation. I am also not allowed to reverse through VL09. I am getting error This is not possible with movement type 522.
Kindly inform me if you have any suggestion to reverse this material document.
Best Regards,
MohanHi,
VL09 is the correct transaction.
I doubt if this will work but try looking at theconfig of the 521 and 522 movement types and check the "allowed transactions" see if VL09 is linked to it, if not then link it and try VL09 again.
It is a longshot but VL09 shouldwork (although my HU knowledge is not good).
Steve B -
Deleted Delivery Unable to do the Goods receipt reversal
Hello Experts,
Instead of deleting the particular delivery line items, user has deleted the STO delivery completely by using VL02N transaction code. Now in the purchase order history we have only GR and invoice document related to STO. (We already reversed the billing and deleted the delivery)
Now we are unable to reverse the GR and getting the error "Delivery cannot be updated". This error because of the deleted delivery.
Please advice how to proceed further. Now the overall from accounts it is showing imbalance.
Please note, we are doing STO between company code to company code.
Regards
Rifaie MSatish,
From you, i understood that for cancelling the GR i have to give delivery number reference.
But in my case the delivery number itself deleted. I do not have delivery number in purchase order history. This has been deleted by the end user by mistakenly.
Please advice
Regards
Rifaie M -
Variance Journal Appear in Reversal Goods Receipt of CO Production Order
Good afternoon
Currently we face a problem that variance journal appear when doing Reversal Goods Receipt (MBST) of CO Production Order.
But the variance journal appear after we reverse goods receipt for the second time, third time, and so on.
No problem for the first time cancellation.
Here is the example:
Step 1. We do the Goods Receipt on CO Production Order #1
Journal
Inventory (Db) 36000
COGM Allocation (Cr) 36000
Step 2. We do the Goods Receipt Reversal on CO Production Order #1 (with reference to Step 1)
Journal
COGM Allocation (Db) 36000
Inventory (Cr) 36000
Step 3. We do the Goods Receipt again on CO Production Order #1
Journal
Inventory (Db) 36000
COGM Allocation (Cr) 36000
Step 4 (Problem). We do the Goods Receipt Reversal again on CO Production Order #1 (with reference to Step 3)
Journal
Inventory (Cr) 36000
COGM Allocation (Db) 54000
Purchase Price Variant (Cr) 18000
Why Variance appear in Step 4 ? Is there any mistake ?
Note:
*We use Price Control "V" for this material
*No Goods Issue were made
*No Settlement Process were made
*Only this 4 transaction for this CO Production Order
Thanks in advance for your helpDone... Closed... Please refer to SAP Notes 1666871.
Thx... -
What is d BAPI for reversal of Good Receipt Note(GRN) for movement type 102
Hi ABAPers,
I have got requirement like this , I have done Goods Receipt Note (GRN) based on Purchse order Number using '.BAPI_GOODSMVT_CREATE' with 101 movement type.
But now my requirement is reversal of good receipt note(GRN) based on Material Document Number (or) Purchase Order Number with 102 movement type. what is the bapi name i need to use. and i need to give reason for the reversal of GRN.
please tell me the field name for reason in bapi.
i have searched in the net, but i could not get proper answer to this isse.
Highly appriciate who gives answer as early as possible. I need to complete this task EOD. please give replies.
Thanks & Regards,
Vinay Kumar.Hi,
If your material document has specific movement type i.e. 101, if you cancel document using BAPI_GOODSMVT_CANCEL, it automatically picks associated movement type 102 defined in customizing setting, you don't need to pass 102 explicitly while cancelling.
I have not seen reason code in this bapi, but it is required to pass reason code then you may try transaction code MBST using BDC.
Thanks,
Ashok Veer -
Creating goods receipt with refernce to PO number using BAPI_GOODSMVT_CREAT
Hi Gurus,
I have a requirment where in, I need to create a goods receipt with reference to a PO number which has been created by BAPI_PO_CREATE1, using another BAPI BAPI_GOODSMVT_CREATE. How can I do this? what are all the values that I need to fill in GOODSMVT Create BAPI.
Please help its very urgent... Need to submit by EOD.
Thanks,
Sumahi
hope this code will help you,.
Reward if help.
REPORT ZRICH_0001 .
Structures for BAPI
DATA: GM_HEADER TYPE BAPI2017_GM_HEAD_01.
DATA: GM_CODE TYPE BAPI2017_GM_CODE.
DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.
DATA: GM_ITEM TYPE TABLE OF
BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.
DATA: GM_RETURN TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
DATA: GM_RETMTD TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.
Setup BAPI header data.
GM_HEADER-PSTNG_DATE = SY-DATUM.
GM_HEADER-DOC_DATE = SY-DATUM.
GM_CODE-GM_CODE = '04'. " MB1A
Write 971 movement to table
CLEAR GM_ITEM.
MOVE '412' TO GM_ITEM-MOVE_TYPE .
MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
MOVE '3800533484' TO GM_ITEM-MATERIAL.
MOVE '1' TO GM_ITEM-ENTRY_QNT.
*MOVE 'PC' TO GM_ITEM-ENTRY_UOM.
MOVE '1060' TO GM_ITEM-PLANT.
MOVE '0007' TO GM_ITEM-STGE_LOC.
*MOVE '0901' TO GM_ITEM-MOVE_REAS.
MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.
MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.
APPEND GM_ITEM.
Call goods movement BAPI
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = GM_HEADER
GOODSMVT_CODE = GM_CODE
IMPORTING
GOODSMVT_HEADRET = GM_HEADRET
MATERIALDOCUMENT = GM_RETMTD
TABLES
GOODSMVT_ITEM = GM_ITEM
RETURN = GM_RETURN.
IF NOT GM_RETMTD IS INITIAL.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ELSE.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ENDIF.
WRITE:/ GM_RETMTD.
LOOP AT GM_RETURN.
WRITE:/ GM_RETURN.
ENDLOOP.
check the BAPI_GOODSMVT_CREATE.
Functionality
You 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.
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 simulating beforehand.
Ensure that you transfer the data in the same way as it is run in the database, for example,
Material number 18-figure with leading zeros
Batches with uppercase letters
Note that for all transactions/events listed below, the posting date is entered in the header data of the material document. In the BAPI2017_GM_HEAD_01 interface, fill the PSTNG_DATE (import structure GOODSMVT_HEADER) field.
Notes
Authorization check check
In the MM Inventory Management component, the method does not execute any authorization checks.
Note that during a posting of a goods movement, depending on the business transaction of the system, authorization objects of other applications can also be checked.
Transfer
The following information about the material document that is to be created is transferred to the method:
a structure with header data
a structure with the code for the movement
a table with the item data
a table with the serial numbers
The posting is carried out in the SAP R/3 via the MB_CREATE_GOODS_MOVEMENT function module.
Confirmations
Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
Further Information
The method can only carry out your function 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 called (in other words, if no errors were reported in the Return parameter).
Which fields have to be filled during the various transactions/ events?
The following sample scenarios demonstrate which fields have to be filled for which business transactions/events (code).
There are the following types of transactions/events:
1. GM_Code 01: Goods receipt for purchase order
2. GM_Code 02: Goods receipt for production order
3. GM_Code 03: Goods issue
4. GM_Code 04: Transfer posting
5. GM_Code 05: Other goods receipts
6. GM_Code 06: Reversal of goods movements
7. GM_Code 07: Subsequent adjustment to a subcontract order
Entering the movement indicator
Depending on the transaction, you must enter the following in the movement indicator:
GM_Code 01 (Goods receipt for purchase order): B
GM_Code 02 (Goods receipt for production order): F
For all other transactions, you leave the field blank.
For 1: GM_Code 01: Goods receipt for purchase order
Purchase order known
The following fields have to be filled:
Purchase order
Purchase order item
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry or
quantity proposal
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this in the system)
Reason for movement (if it has been configured like this in the system)
Batch (if the material is handled in batches and batch numbers are not assigned automatically)
Storage location (if a storage location has not been specified in the purchase order item)
The following fields can be filled (incomplete listing):
Stock type
Item text
Unloading point
Delivery completed indicator
You cannot fill the following fields (incomplete listing):
Account assignment fields (account assignment is adopted from the purchase order)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
In the case of a purchase order item with the "subcontracting" item category, only the GR item in the interface is to be transferred. The system automatically determines GI items.
Purchase order unknown: Shipping notification known
The following fields have to be filled:
Delivery
Delivery item
Movement type
Other fields, such as those under "Purchase order known". The system determines the relevant purchase order item via the delivery/delivery item.
Purchase order unknown: Purchase order should be created automatically
The following fields have to be filled:
Material number
Plant
Storage location
Vendor
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this in the system)
Reason for movement (if it has been configured like this in the system)
Batch (if the material is handled in batches and batches are not assigned automatically)
The following fields can be filled (incomplete listing):
Stock type
Item text
Unloading point
You cannot fill the following fields (incomplete listing):
Account assignment fields (automatic creation of purchase order items with account assignment is not supported)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Purchase order unknown: A purchase order should not be created
The following fields have to be filled:
Material number
Plant
Storage location
Vendor
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this)
Reason for movement (if it has been configured like this)
Batch (if the material is handled in batches and automatic assignment of batch numbers is not set)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Account assignment fields (automatic creation of purchase order items with account assignment is not supported)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
The 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 different purchase orders, provided that all the purchase orders refer to the same vendor.
Transfer of subcontracting components
During the posting of the ordered material of a subcontract order with movement type 101, for the transfer of the subcontracting components, the filled unique identification of the document line (LINE_ID) is also required.
More information on LINE_ID and PARENT_ID
The following fields have to be filled for the components:
Unique identification of the document line
Identification of the immediately superior line
Material number
Plant
Storage location
Quantity in unit of entry
The following fields can be filled for the components:
All other fields in the method that are included in this list.
The following fields cannot be filled for the components:
All fields that are not included in the list above. The movement indicator must be initial.
Additional fields in goods-receipt-based invoice verification
When 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:
REF_DOC_IT (LFPOS): Item of a reference document
REF_DOC (LFBNR): Document number of a reference document
REF_DOC_YR (LFBJA): Fiscal year of a reference document
Only when you transfer these fields is it guaranteed that the reference to the original goods movement stay the same.
For 2 GM_Code 02: Goods receipt for production order
The following fields have to be filled:
Order
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry or
quantity proposal
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if the system has been configured like this)
Reason for movement (if the system has been configured like this)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Storage location (if storage location has not been specified in the order)
The following fields can be filled (incomplete listing):
Order item (co-product)
Stock type
Item text
Unloading point
"Delivery completed" indicator
The following fields cannot be filled (incomplete listing):
Account assignment fields (the account assignments are adopted from the purchase order)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
For 3 GM_Code 03: Goods issue
Goods issue without reference to a reservation
The following fields have to be filled:
Material number
Plant
Storage location
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Special stock (e.g. sales order, project, vendor etc.)
Shelf life expiration date (if the system is configured like this)
Reason for movement (if the system has been configured like this)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Account assignment fields
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
Goods issue with reference to a reservation
The following fields have to be filled:
Reservation number
Reservation item
Record type of the reservation
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if this has been configured in the system)
Reason for movement (if this has been configured in the system)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Storage location (if not planned in the reservation)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Movement type
Material
Plant
Account assignment fields
For 4 GM_Code 04: Transfer posting
Transfer posting without reference to a reservation
The following fields have to be filled:
Material number
Plant
Storage location
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Receiving material
Receiving plant
Receiving storage location
Receiving batch (if material is handled in batches and you want to change batches)
Receiving/issuing special stock (e.g. sales order, project, vendor etc.)
Shelf life expiration date (if this has been configured in the system)
Reason for movement (if this has been configured in the system)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Account assignment fields (for automatic posting lines: Expense/income from stock transfer)
The following fields cannot be filled (incomplete listing):
Reservation
Transfer posting with reference to a reservation
See goods issue with reference to a reservation
For 5 GM_Code 05: Other goods receipts
Other goods receipt without reference to a reservation
See goods issue without reference to a reservation
Other goods receipt with reference to a reservation
See goods issue with reference to a reservation
For 6 GM_Code 06: Reversal of goods movements
You can use the Cancel method to reverse goods movements. But you may also want to cancel a goods movement without referring to a material document (see the Cancel method).
If you want to work without referring to the document, you have to fill the field BAPI_GM_ITEM_CREATE-XSTOB in the interface (import table GOODSMVT_ITEM). In this case, the system converts the movement type assigned in the interface to the reversal movement type. Alternatively, you can set the reversal movement type in the interface. In this case, the BAPI_GM_ITEM_CREATE_XSTOB field must be transferred blank.
If you want to cancel a goods movement with reference to a reservation (without using the Cancel method) you can only transfer the field BAPI_GM_ITEM_CREATE_XSTOB if it is filled. Movement types are not transferred when you post with reference to a reservation, as the movement type is contained in the reservation item.
For 7. GM_Code 07: Subsequent adjustment to a subcontract order
Ordered material of subcontract order
The following fields have to be filled:
Unique identification of document line (can be assigned to anything)
Posting date in document header
Document number of purchasing document
Item number of purchasing document
Material number check
Plant check
Movement type (select movement type 121)
Movement indicator (must be O)
Further entries are not allowed. The entry quantity for the ordered material of a subcontract order must be zero.
Components
The following fields have to be filled:
Unique identification of document line (can be assigned to anything)
Identification of the immediately superior line
Plant
Material number check
Quantity in unit of entry; can also be negative
The following fields can be filled:
Storage location
All other fields in the method that are included in this list.
The following fields may not be filled:
All fields that are not in the list above. The movement indicator must be blank.
More information on LINE_ID and PARENT_ID
Additional fields in goods-receipt-based invoice verification
When you post a subsequent adjustment, the following fields must also be transferred:
REF_DOC_IT (LFPOS): Item of a reference document
REF_DOC (LFBNR): Document number of a reference document
REF_DOC_YR (LFBJA): Fiscal year of a reference document
Only when you transfer these fields is it guaranteed that the reference to the original goods movement stays the same. -
Hi Friends,
I need to create a goods receipt for an inbound delivery.
Iam planning to use either MB_CREATE_GOODS_MOVEMENT or BAPI_GOODSMVT_CREATE.
But every time iam getting the error saying that the 101 movement type cant be used.
In my case i need to use both the movement types 101 and 543.
Basically i need to populate both the main item and component material information.
If any one has done this, Can you please give me the sample code.
Regards
SasiHi,
Iam usig the gm_code as 05.
I am paasing the movement indicator ,in that particular field.
lw_goodsmvt_item-material = lw_imseg-matnr.
lw_goodsmvt_item-plant = lw_imseg-werks.
lw_goodsmvt_item-batch = lw_imseg-charg.
IF lw_imseg-sgtxt = 'F'.
lw_goodsmvt_item-move_type = '101'.
lw_goodsmvt_item-mvt_ind = 'B'.
lw_goodsmvt_item-NO_MORE_GR = 1.
lw_goodsmvt_item-stge_loc = lw_imseg-lgort.
ELSEIF lw_imseg-sgtxt = 'C'.
lw_goodsmvt_item-move_type = '543'.
endif.
lw_goodsmvt_item-entry_qnt = lw_imseg-erfmg.
lw_goodsmvt_item-entry_uom = lw_imseg-erfme.
lw_goodsmvt_item-expirydate = lw_imseg-mhdat.
lw_goodsmvt_item-DELIV_NUMB =
lw_goodsmvt_item-DELIV_ITEM =
am i doing something wrong here.
iam gettign the following error message
Goods movement not possible with mvmt type 101
Goods movement not possible with mvmt type 543 -
Goods Receipt Report With 101 movement type using bapi_goodsmvt_create
Dear Abapers,
i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using
bapi_goodsmvt_create and data should upload through excel sheet.
still facing problems, i have searched sdn forum n sdn code also, but relevant answer i could not find.
What are all the inputs i need to take and please give some valuable inputs to me.
please do help ..... thanks for advance..
Thanks & regards,
Vinay.
Moderator message : Spec dumping is not allowed, show the work you have already done. Thead locked.
Edited by: Vinod Kumar on Sep 27, 2011 10:58 AMDear Abapers,
i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using
bapi_goodsmvt_create and data should upload through excel sheet.
still facing problems, i have searched sdn forum n sdn code also, but relevant answer i could not find.
What are all the inputs i need to take and please give some valuable inputs to me.
please do help ..... thanks for advance..
Thanks & regards,
Vinay.
Moderator message : Spec dumping is not allowed, show the work you have already done. Thead locked.
Edited by: Vinod Kumar on Sep 27, 2011 10:58 AM
Maybe you are looking for
-
With Java8, how can I make my tooltips behave as they did with Java7?
Since some of my customers may want to run Java8, I decided to try my application with Java8. There were quite a few problems most of which were resolved when I decided to do a revamp in anticipation having to have the system run on Android and ios p
-
Location of files of XML Publisher....
Hi, Where are the files produced using the XML Desktop Publisher supposed to be located in the EBS System...??? In the same location as .rdf files (for all the installed languages)???? Note: EBS System: 11.5.10 Thank you, Sim
-
Can I redistribute TFS SDK dlls?
I want to set up an application on a machine that does not have Visual Studio installed since it is a server. Tthere is a service that runs periodically on that machine that I would like to have updated configuration files pulled from our developer
-
Hello all, Working on exporting two clips out of Compressor. The clips are both 1 minute in length. The setting is for QT with Photo JPEG quality, same frame rate and size as source. Each time I try to export, I get "Status: Failed: Quicktime Error -
-
JNLP running but JAR not executing
I have a wierd problem... My JNLP gets deplyed the entire procedure of copying the file and checking for updates takes place... But the JAR file does not get executed... or rather the application doesn't start... When i try to run the jar file otherw