<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344450#M801854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to solve the issue but by using the BAPI_GOODSMVT_CANCEL which works like gem in case of multiple reversals against one PO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one query Is there a function difference between Cancellation of PO and Reversal of PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it just the difference in usages of the two BAPI's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ameya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2008 13:01:13 GMT</pubDate>
    <dc:creator>former_member202429</dc:creator>
    <dc:date>2008-01-23T13:01:13Z</dc:date>
    <item>
      <title>Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344449#M801853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI_GOODSMVT_CREATE to post Goods Receipts and also to reverse the Goods Receipt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I execute the following scenario against the same PO&lt;/P&gt;&lt;P&gt;1) Post a Goods Receipt with Qty 1kg - &lt;STRONG&gt;Success&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) Reverse the Goods Receipt - &lt;STRONG&gt;Success&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3) Again Post a Good Receipts with Qty 3kg - &lt;STRONG&gt;Success&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4) Reverse the Goods Receipt - &lt;STRONG&gt;Failure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After step 4 it gives be error: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Deficit of PU GR quantity 3 KG"&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI does not work for multiple reversals against the same PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also specified the Material Doc no and year for reversal.&lt;/P&gt;&lt;P&gt;Any Suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 12:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344449#M801853</guid>
      <dc:creator>former_member202429</dc:creator>
      <dc:date>2008-01-23T12:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344450#M801854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to solve the issue but by using the BAPI_GOODSMVT_CANCEL which works like gem in case of multiple reversals against one PO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one query Is there a function difference between Cancellation of PO and Reversal of PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it just the difference in usages of the two BAPI's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ameya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 13:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344450#M801854</guid>
      <dc:creator>former_member202429</dc:creator>
      <dc:date>2008-01-23T13:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344451#M801855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ameya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go thru the &lt;STRONG&gt;BAPI_GOODSMVT_CREATE&lt;/STRONG&gt;  code--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;reward if help.&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZRICH_0001 .&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structures for BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: GM_HEADER  TYPE BAPI2017_GM_HEAD_01.&lt;/P&gt;&lt;P&gt;DATA: GM_CODE    TYPE BAPI2017_GM_CODE.&lt;/P&gt;&lt;P&gt;DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.&lt;/P&gt;&lt;P&gt;DATA: GM_ITEM    TYPE TABLE OF&lt;/P&gt;&lt;P&gt;                 BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: GM_RETURN  TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: GM_RETMTD  TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setup BAPI header data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;GM_HEADER-PSTNG_DATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;GM_HEADER-DOC_DATE   = SY-DATUM.&lt;/P&gt;&lt;P&gt;GM_CODE-GM_CODE      = '04'.                                " MB1A&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write 971 movement to table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR GM_ITEM.&lt;/P&gt;&lt;P&gt;MOVE '412'                 TO GM_ITEM-MOVE_TYPE     .&lt;/P&gt;&lt;P&gt;MOVE 'Q'                 TO GM_ITEM-SPEC_STOCK.&lt;/P&gt;&lt;P&gt;MOVE '3800533484'  TO GM_ITEM-MATERIAL.&lt;/P&gt;&lt;P&gt;MOVE '1'     TO GM_ITEM-ENTRY_QNT.&lt;/P&gt;&lt;P&gt;*MOVE 'PC'    TO GM_ITEM-ENTRY_UOM.&lt;/P&gt;&lt;P&gt;MOVE '1060'  TO GM_ITEM-PLANT.&lt;/P&gt;&lt;P&gt;MOVE '0007'  TO GM_ITEM-STGE_LOC.&lt;/P&gt;&lt;P&gt;*MOVE '0901'   TO GM_ITEM-MOVE_REAS.&lt;/P&gt;&lt;P&gt;MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.&lt;/P&gt;&lt;P&gt;MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPEND GM_ITEM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call goods movement BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          GOODSMVT_HEADER  = GM_HEADER&lt;/P&gt;&lt;P&gt;          GOODSMVT_CODE    = GM_CODE&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          GOODSMVT_HEADRET = GM_HEADRET&lt;/P&gt;&lt;P&gt;          MATERIALDOCUMENT = GM_RETMTD&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          GOODSMVT_ITEM    = GM_ITEM&lt;/P&gt;&lt;P&gt;          RETURN           = GM_RETURN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF NOT GM_RETMTD IS INITIAL.&lt;/P&gt;&lt;P&gt;  COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_ALL'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_ALL'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE:/ GM_RETMTD.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT GM_RETURN.&lt;/P&gt;&lt;P&gt;  WRITE:/ GM_RETURN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the BAPI_GOODSMVT_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;You can use this method to create a material document for a goods movement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only create one material document each time you call up the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that you transfer the data in the same way as it is run in the database, for example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material number 18-figure with leading zeros&lt;/P&gt;&lt;P&gt;Batches with uppercase letters&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;Authorization check check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the MM Inventory Management component, the method does not execute any authorization checks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following information about the material document that is to be created is transferred to the method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a structure with header data&lt;/P&gt;&lt;P&gt;a structure with the code for the movement&lt;/P&gt;&lt;P&gt;a table with the item data&lt;/P&gt;&lt;P&gt;a table with the serial numbers&lt;/P&gt;&lt;P&gt;The posting is carried out in the SAP R/3 via the MB_CREATE_GOODS_MOVEMENT function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Confirmations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further Information&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which fields have to be filled during the various transactions/ events?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following sample scenarios demonstrate which fields have to be filled for which business transactions/events (code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are the following types of transactions/events:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. GM_Code 01: Goods receipt for purchase order&lt;/P&gt;&lt;P&gt;2. GM_Code 02: Goods receipt for production order&lt;/P&gt;&lt;P&gt;3. GM_Code 03: Goods issue&lt;/P&gt;&lt;P&gt;4. GM_Code 04: Transfer posting&lt;/P&gt;&lt;P&gt;5. GM_Code 05: Other goods receipts&lt;/P&gt;&lt;P&gt;6. GM_Code 06: Reversal of goods movements&lt;/P&gt;&lt;P&gt;7. GM_Code 07: Subsequent adjustment to a subcontract order&lt;/P&gt;&lt;P&gt;Entering the movement indicator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the transaction, you must enter the following in the movement indicator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GM_Code 01 (Goods receipt for purchase order): B&lt;/P&gt;&lt;P&gt;GM_Code 02 (Goods receipt for production order): F&lt;/P&gt;&lt;P&gt;For all other transactions, you leave the field blank.&lt;/P&gt;&lt;P&gt;For 1: GM_Code 01: Goods receipt for purchase order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order known&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Purchase order&lt;/P&gt;&lt;P&gt;Purchase order item&lt;/P&gt;&lt;P&gt;Movement type&lt;/P&gt;&lt;P&gt;Movement indicator&lt;/P&gt;&lt;P&gt;Quantity in unit of entry&lt;/P&gt;&lt;P&gt;ISO code unit of measurement for unit of entry or&lt;/P&gt;&lt;P&gt;quantity proposal&lt;/P&gt;&lt;P&gt;The following fields may have to be filled in some cases (incomplete listing):&lt;/P&gt;&lt;P&gt;Shelf life expiration date (if it has been configured like this in the system)&lt;/P&gt;&lt;P&gt;Reason for movement (if it has been configured like this in the system)&lt;/P&gt;&lt;P&gt;Batch (if the material is handled in batches and batch numbers are not assigned automatically)&lt;/P&gt;&lt;P&gt;Storage location (if a storage location has not been specified in the purchase order item)&lt;/P&gt;&lt;P&gt;The following fields can be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Stock type&lt;/P&gt;&lt;P&gt;Item text&lt;/P&gt;&lt;P&gt;Unloading point&lt;/P&gt;&lt;P&gt;Delivery completed indicator&lt;/P&gt;&lt;P&gt;You cannot fill the following fields (incomplete listing):&lt;/P&gt;&lt;P&gt;Account assignment fields (account assignment is adopted from the purchase order)&lt;/P&gt;&lt;P&gt;Reservation&lt;/P&gt;&lt;P&gt;Receiving/issuing material&lt;/P&gt;&lt;P&gt;Receiving/issuing plant&lt;/P&gt;&lt;P&gt;Receiving/issuing storage location&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Purchase order unknown: Shipping notification known&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Delivery&lt;/P&gt;&lt;P&gt;Delivery item&lt;/P&gt;&lt;P&gt;Movement type&lt;/P&gt;&lt;P&gt;Other fields, such as those under "Purchase order known". The system determines the relevant purchase order item via the delivery/delivery item.&lt;/P&gt;&lt;P&gt;Purchase order unknown: Purchase order should be created automatically&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Material number&lt;/P&gt;&lt;P&gt;Plant&lt;/P&gt;&lt;P&gt;Storage location&lt;/P&gt;&lt;P&gt;Vendor&lt;/P&gt;&lt;P&gt;Movement type&lt;/P&gt;&lt;P&gt;Movement indicator&lt;/P&gt;&lt;P&gt;Quantity in unit of entry&lt;/P&gt;&lt;P&gt;ISO code unit of measurement for unit of entry&lt;/P&gt;&lt;P&gt;The following fields may have to be filled in some cases (incomplete listing):&lt;/P&gt;&lt;P&gt;Shelf life expiration date (if it has been configured like this in the system)&lt;/P&gt;&lt;P&gt;Reason for movement (if it has been configured like this in the system)&lt;/P&gt;&lt;P&gt;Batch (if the material is handled in batches and batches are not assigned automatically)&lt;/P&gt;&lt;P&gt;The following fields can be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Stock type&lt;/P&gt;&lt;P&gt;Item text&lt;/P&gt;&lt;P&gt;Unloading point&lt;/P&gt;&lt;P&gt;You cannot fill the following fields (incomplete listing):&lt;/P&gt;&lt;P&gt;Account assignment fields (automatic creation of purchase order items with account assignment is not supported)&lt;/P&gt;&lt;P&gt;Reservation&lt;/P&gt;&lt;P&gt;Receiving/issuing material&lt;/P&gt;&lt;P&gt;Receiving/issuing plant&lt;/P&gt;&lt;P&gt;Receiving/issuing storage location&lt;/P&gt;&lt;P&gt;Purchase order unknown: A purchase order should not be created&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Material number&lt;/P&gt;&lt;P&gt;Plant&lt;/P&gt;&lt;P&gt;Storage location&lt;/P&gt;&lt;P&gt;Vendor&lt;/P&gt;&lt;P&gt;Movement type&lt;/P&gt;&lt;P&gt;Movement indicator&lt;/P&gt;&lt;P&gt;Quantity in unit of entry&lt;/P&gt;&lt;P&gt;ISO code unit of measurement for unit of entry&lt;/P&gt;&lt;P&gt;The following fields may have to be filled in some cases (incomplete listing):&lt;/P&gt;&lt;P&gt;Shelf life expiration date (if it has been configured like this)&lt;/P&gt;&lt;P&gt;Reason for movement (if it has been configured like this)&lt;/P&gt;&lt;P&gt;Batch (if the material is handled in batches and automatic assignment of batch numbers is not set)&lt;/P&gt;&lt;P&gt;The following fields can be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Special stock indicator&lt;/P&gt;&lt;P&gt;Item text&lt;/P&gt;&lt;P&gt;Unloading point&lt;/P&gt;&lt;P&gt;Goods recipient&lt;/P&gt;&lt;P&gt;The following fields cannot be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Account assignment fields (automatic creation of purchase order items with account assignment is not supported)&lt;/P&gt;&lt;P&gt;Reservation&lt;/P&gt;&lt;P&gt;Receiving/issuing material&lt;/P&gt;&lt;P&gt;Receiving/issuing plant&lt;/P&gt;&lt;P&gt;Receiving/issuing storage location&lt;/P&gt;&lt;P&gt;Receiving/issuing batch&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Transfer of subcontracting components&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;More information on LINE_ID and PARENT_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following fields have to be filled for the components:&lt;/P&gt;&lt;P&gt;Unique identification of the document line&lt;/P&gt;&lt;P&gt;Identification of the immediately superior line&lt;/P&gt;&lt;P&gt;Material number&lt;/P&gt;&lt;P&gt;Plant&lt;/P&gt;&lt;P&gt;Storage location&lt;/P&gt;&lt;P&gt;Quantity in unit of entry&lt;/P&gt;&lt;P&gt;The following fields can be filled for the components:&lt;/P&gt;&lt;P&gt;All other fields in the method that are included in this list.&lt;/P&gt;&lt;P&gt;The following fields cannot be filled for the components:&lt;/P&gt;&lt;P&gt;All fields that are not included in the list above. The movement indicator must be initial.&lt;/P&gt;&lt;P&gt;Additional fields in goods-receipt-based invoice verification&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;REF_DOC_IT (LFPOS): Item of a reference document&lt;/P&gt;&lt;P&gt;REF_DOC (LFBNR): Document number of a reference document&lt;/P&gt;&lt;P&gt;REF_DOC_YR (LFBJA): Fiscal year of a reference document&lt;/P&gt;&lt;P&gt;Only when you transfer these fields is it guaranteed that the reference to the original goods movement stay the same.&lt;/P&gt;&lt;P&gt;For 2 GM_Code 02: Goods receipt for production order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Order&lt;/P&gt;&lt;P&gt;Movement type&lt;/P&gt;&lt;P&gt;Movement indicator&lt;/P&gt;&lt;P&gt;Quantity in unit of entry&lt;/P&gt;&lt;P&gt;ISO code unit of measurement for unit of entry or&lt;/P&gt;&lt;P&gt;quantity proposal&lt;/P&gt;&lt;P&gt;The following fields may have to be filled in some cases (incomplete listing):&lt;/P&gt;&lt;P&gt;Shelf life expiration date (if the system has been configured like this)&lt;/P&gt;&lt;P&gt;Reason for movement (if the system has been configured like this)&lt;/P&gt;&lt;P&gt;Batch (if the material is handled in batches and automatic batch number assignment is not set)&lt;/P&gt;&lt;P&gt;Storage location (if storage location has not been specified in the order)&lt;/P&gt;&lt;P&gt;The following fields can be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Order item (co-product)&lt;/P&gt;&lt;P&gt;Stock type&lt;/P&gt;&lt;P&gt;Item text&lt;/P&gt;&lt;P&gt;Unloading point&lt;/P&gt;&lt;P&gt;"Delivery completed" indicator&lt;/P&gt;&lt;P&gt;The following fields cannot be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Account assignment fields (the account assignments are adopted from the purchase order)&lt;/P&gt;&lt;P&gt;Reservation&lt;/P&gt;&lt;P&gt;Receiving/issuing material&lt;/P&gt;&lt;P&gt;Receiving/issuing plant&lt;/P&gt;&lt;P&gt;Receiving/issuing storage location&lt;/P&gt;&lt;P&gt;Receiving/issuing batch&lt;/P&gt;&lt;P&gt;For 3 GM_Code 03: Goods issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goods issue without reference to a reservation&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Material number&lt;/P&gt;&lt;P&gt;Plant&lt;/P&gt;&lt;P&gt;Storage location&lt;/P&gt;&lt;P&gt;Movement type&lt;/P&gt;&lt;P&gt;Movement indicator&lt;/P&gt;&lt;P&gt;Quantity in unit of entry&lt;/P&gt;&lt;P&gt;ISO code unit of measurement for unit of entry&lt;/P&gt;&lt;P&gt;The following fields may have to be filled in some cases (incomplete listing):&lt;/P&gt;&lt;P&gt;Special stock (e.g. sales order, project, vendor etc.)&lt;/P&gt;&lt;P&gt;Shelf life expiration date (if the system is configured like this)&lt;/P&gt;&lt;P&gt;Reason for movement (if the system has been configured like this)&lt;/P&gt;&lt;P&gt;Batch (if the material is handled in batches and automatic batch number assignment is not set)&lt;/P&gt;&lt;P&gt;Account assignment fields&lt;/P&gt;&lt;P&gt;The following fields can be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Special stock indicator&lt;/P&gt;&lt;P&gt;Item text&lt;/P&gt;&lt;P&gt;Unloading point&lt;/P&gt;&lt;P&gt;Goods recipient&lt;/P&gt;&lt;P&gt;The following fields cannot be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Reservation&lt;/P&gt;&lt;P&gt;Receiving/issuing material&lt;/P&gt;&lt;P&gt;Receiving/issuing plant&lt;/P&gt;&lt;P&gt;Receiving/issuing storage location&lt;/P&gt;&lt;P&gt;Receiving/issuing batch&lt;/P&gt;&lt;P&gt;Goods issue with reference to a reservation&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Reservation number&lt;/P&gt;&lt;P&gt;Reservation item&lt;/P&gt;&lt;P&gt;Record type of the reservation&lt;/P&gt;&lt;P&gt;Movement indicator&lt;/P&gt;&lt;P&gt;Quantity in unit of entry&lt;/P&gt;&lt;P&gt;ISO code unit of measurement for unit of entry&lt;/P&gt;&lt;P&gt;The following fields may have to be filled in some cases (incomplete listing):&lt;/P&gt;&lt;P&gt;Shelf life expiration date (if this has been configured in the system)&lt;/P&gt;&lt;P&gt;Reason for movement (if this has been configured in the system)&lt;/P&gt;&lt;P&gt;Batch (if the material is handled in batches and automatic batch number assignment is not set)&lt;/P&gt;&lt;P&gt;Storage location (if not planned in the reservation)&lt;/P&gt;&lt;P&gt;The following fields can be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Special stock indicator&lt;/P&gt;&lt;P&gt;Item text&lt;/P&gt;&lt;P&gt;Unloading point&lt;/P&gt;&lt;P&gt;Goods recipient&lt;/P&gt;&lt;P&gt;The following fields cannot be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Movement type&lt;/P&gt;&lt;P&gt;Material&lt;/P&gt;&lt;P&gt;Plant&lt;/P&gt;&lt;P&gt;Account assignment fields&lt;/P&gt;&lt;P&gt;For 4 GM_Code 04: Transfer posting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transfer posting without reference to a reservation&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Material number&lt;/P&gt;&lt;P&gt;Plant&lt;/P&gt;&lt;P&gt;Storage location&lt;/P&gt;&lt;P&gt;Movement type&lt;/P&gt;&lt;P&gt;Movement indicator&lt;/P&gt;&lt;P&gt;Quantity in unit of entry&lt;/P&gt;&lt;P&gt;ISO code unit of measurement for unit of entry&lt;/P&gt;&lt;P&gt;The following fields may have to be filled in some cases (incomplete listing):&lt;/P&gt;&lt;P&gt;Receiving material&lt;/P&gt;&lt;P&gt;Receiving plant&lt;/P&gt;&lt;P&gt;Receiving storage location&lt;/P&gt;&lt;P&gt;Receiving batch (if material is handled in batches and you want to change batches)&lt;/P&gt;&lt;P&gt;Receiving/issuing special stock (e.g. sales order, project, vendor etc.)&lt;/P&gt;&lt;P&gt;Shelf life expiration date (if this has been configured in the system)&lt;/P&gt;&lt;P&gt;Reason for movement (if this has been configured in the system)&lt;/P&gt;&lt;P&gt;Batch (if the material is handled in batches and automatic batch number assignment is not set)&lt;/P&gt;&lt;P&gt;The following fields can be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Special stock indicator&lt;/P&gt;&lt;P&gt;Item text&lt;/P&gt;&lt;P&gt;Account assignment fields (for automatic posting lines: Expense/income from stock transfer)&lt;/P&gt;&lt;P&gt;The following fields cannot be filled (incomplete listing):&lt;/P&gt;&lt;P&gt;Reservation&lt;/P&gt;&lt;P&gt;Transfer posting with reference to a reservation&lt;/P&gt;&lt;P&gt;See goods issue with reference to a reservation&lt;/P&gt;&lt;P&gt;For 5 GM_Code 05: Other goods receipts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other goods receipt without reference to a reservation&lt;/P&gt;&lt;P&gt;See goods issue without reference to a reservation&lt;/P&gt;&lt;P&gt;Other goods receipt with reference to a reservation&lt;/P&gt;&lt;P&gt;See goods issue with reference to a reservation&lt;/P&gt;&lt;P&gt;For 6 GM_Code 06: Reversal of goods movements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;For 7. GM_Code 07: Subsequent adjustment to a subcontract order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ordered material of subcontract order&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Unique identification of document line (can be assigned to anything)&lt;/P&gt;&lt;P&gt;Posting date in document header&lt;/P&gt;&lt;P&gt;Document number of purchasing document&lt;/P&gt;&lt;P&gt;Item number of purchasing document&lt;/P&gt;&lt;P&gt;Material number check&lt;/P&gt;&lt;P&gt;Plant check&lt;/P&gt;&lt;P&gt;Movement type (select movement type 121)&lt;/P&gt;&lt;P&gt;Movement indicator (must be O)&lt;/P&gt;&lt;P&gt;Further entries are not allowed. The entry quantity for the ordered material of a subcontract order must be zero.&lt;/P&gt;&lt;P&gt;Components&lt;/P&gt;&lt;P&gt;The following fields have to be filled:&lt;/P&gt;&lt;P&gt;Unique identification of document line (can be assigned to anything)&lt;/P&gt;&lt;P&gt;Identification of the immediately superior line&lt;/P&gt;&lt;P&gt;Plant&lt;/P&gt;&lt;P&gt;Material number check&lt;/P&gt;&lt;P&gt;Quantity in unit of entry; can also be negative&lt;/P&gt;&lt;P&gt;The following fields can be filled:&lt;/P&gt;&lt;P&gt;Storage location&lt;/P&gt;&lt;P&gt;All other fields in the method that are included in this list.&lt;/P&gt;&lt;P&gt;The following fields may not be filled:&lt;/P&gt;&lt;P&gt;All fields that are not in the list above. The movement indicator must be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information on LINE_ID and PARENT_ID&lt;/P&gt;&lt;P&gt;Additional fields in goods-receipt-based invoice verification&lt;/P&gt;&lt;P&gt;When you post a subsequent adjustment, the following fields must also be transferred:&lt;/P&gt;&lt;P&gt;REF_DOC_IT (LFPOS): Item of a reference document&lt;/P&gt;&lt;P&gt;REF_DOC (LFBNR): Document number of a reference document&lt;/P&gt;&lt;P&gt;REF_DOC_YR (LFBJA): Fiscal year of a reference document&lt;/P&gt;&lt;P&gt;Only when you transfer these fields is it guaranteed that the reference to the original goods movement stays the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 13:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344451#M801855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T13:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344452#M801856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I did not understand how does this answer my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 14:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344452#M801856</guid>
      <dc:creator>former_member202429</dc:creator>
      <dc:date>2008-01-23T14:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344453#M801857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ameya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one problem with BAPI_GOODSMVT_CANCEL , i just red ur query .. so i wnats to ask one thing.&lt;/P&gt;&lt;P&gt;ie .. i working with cancel BAPI, iam just just executing the BAPI directly for testing. Not implimenting any other program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me its asking REASON , how to pass the REASON , dont have any import paramater to pass the REASON code in the CACEL BAPI ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do that pls help me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 05:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344453#M801857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T05:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344454#M801858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movement type specific Reason code setting are done in SPRO inside MM&lt;/P&gt;&lt;P&gt;There's an setting where you can specify whether reason code is mandatory or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have an access to SAP server right now, I would be able to give you the full path tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 17:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344454#M801858</guid>
      <dc:creator>former_member202429</dc:creator>
      <dc:date>2008-03-11T17:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344455#M801859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just discovered this issue myself, but unfortunately started with test data that had already be reversed so that I got the deficit of PU GR stock error from the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fail to see how this question has been answered as there has not been an explantion of why the BAPI cannot "find" the recieved stock after the first reversal. This is surely a problem in the BAPI itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Cancel method is a superior method for cancelling MatDoc, but in my circumstance it does not have custom processing that was added to the Create method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone discovered why the BAPI cannot find the material? Is there an open ticket on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 23:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344455#M801859</guid>
      <dc:creator>denisbridger</dc:creator>
      <dc:date>2011-02-07T23:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344456#M801860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cancellation is not exactly same as reversal.&lt;/P&gt;&lt;P&gt;technically you can reverse partial qtys but cancellation is always for full quantity and i don't it's functional impact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you passed materail doc , material year . you should pass materail doc item also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post with GM code 01 , &lt;/P&gt;&lt;P&gt;pass all details as like GR for PO with BWART = 102 or any reversal movement type like 110 which is relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass below fields as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from Mahajan's post:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;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:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;REF_DOC_IT (LFPOS): Item of a reference document&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;REF_DOC (LFBNR): Document number of a reference document&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;REF_DOC_YR (LFBJA): Fiscal year of a reference document&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;quantity calculations:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Get PO history from EKBE and calcuate what qtys can be reversed for given article doc.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;for ex:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;suppose we have two GRs and their reversals as like below.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;( all&amp;nbsp; fields from EKBE )&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;for given PO item , we get below details:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;BELNR&lt;/TD&gt;&lt;TD width="64"&gt;BWART&lt;/TD&gt;&lt;TD width="64"&gt;MENGE&lt;/TD&gt;&lt;TD width="64"&gt;LFBNR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;GR1&lt;/TD&gt;&lt;TD align="right"&gt;101&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD&gt;GR1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;GR2&lt;/TD&gt;&lt;TD align="right"&gt;101&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD&gt;GR1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;GR3&lt;/TD&gt;&lt;TD align="right"&gt;102&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;GR1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;GR4&lt;/TD&gt;&lt;TD align="right"&gt;102&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD&gt;GR1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;GR5&lt;/TD&gt;&lt;TD align="right"&gt;102&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;GR2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;GR6&lt;/TD&gt;&lt;TD align="right"&gt;102&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD&gt;GR2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Now we can have two items in GOODSMVT_ITEM&amp;nbsp; each for GR1 and GR2&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;for GR1 we can reverse qty up to 10 - ( 2+ 3) = 5. &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;likewise for GR2, we can reverse qty up to 10 - (1 + 6) = 3.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Now about PO qty deficit error:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;if we don't pass article doc , item and year, BAPI will by default fetch first GR against that PO item and check the qtys which obviously won't match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344456#M801860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-08T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Movement reversal using BAPI_GOODSMVT_CREATE - Multiple Times</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344457#M801861</link>
      <description>&lt;P&gt;Can you explain how did you use BAPI_GOODSMVT_CANCEL against the same PO. What values did you pass and if possible can you show the code&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ash&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 10:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-movement-reversal-using-bapi-goodsmvt-create-multiple-times/m-p/3344457#M801861</guid>
      <dc:creator>former_member758494</dc:creator>
      <dc:date>2021-07-22T10:24:21Z</dc:date>
    </item>
  </channel>
</rss>

