Bapi bapi_goodsmvt_create for goods receipt of process order

Hello All ,
I am trying to a GR with MIGO for a process order .Its giving me error like
Content of order 2000002339: 100001374 transferred to interface (IMSEG): 100001374
I am not able to trace the error out .I am passing the below parameters .pls check
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '02'.   "01 - MB01 - Goods Receipts for Purchase Order
itab-move_type  = '101'.
itab-mvt_ind    = 'F'.
itab-plant      = '1AAE'.
itab-material   = '100001374'.
itab-entry_qnt  = '1'.
itab-move_stloc = 'B100'.
itab-stge_loc   = 'B100'.
itab-orderid  = '002000002339'.
append itab .
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
  EXPORTING
    goodsmvt_header             = gmhead
    goodsmvt_code               = gmcode
  TESTRUN                     = ' '
IMPORTING
    goodsmvt_headret            = wa_head
   materialdocument            = lv_mblnr
  MATDOCUMENTYEAR             =
  TABLES
    goodsmvt_item               = itab
  GOODSMVT_SERIALNUMBER       =
    return                      = errmsg
Pls reply ..
Thanks .

HI ...
Since this is a production order ,i used the GM code as '02'.bcoz the documentation says the same .
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
i also tried changing it to '01' ,its not working still...
Pls reply
Thanks .

Similar Messages

  • Partial reversal of a goods receipt from process order

    Dear All
    Could anyone please help me with explaining how to do a partial reversal of a goods receipt from process order? If Iu2019m using trans CORS I have to cancel the entire operation, which I donu2019t want to do. If Iu2019m using MIGO and MT 102 I only reverse the goods receipts of the produced material, the corresponding components from the BoM is not reversed with MT 262 as they are if I cancel with CORS, and I donu2019t want to do a second MIGO transaction in which I cancel the components with MT 261. I have also tried to create an operation with a negative quantity, but without any success.
    Itu2019s not an option for the business to reverse the entire quantity and then perform a new goods receipt with the right quantity.

    Hi again,
    I have been trying to do the reversal with CORR but Iu2019m getting the error message u201CMixed confirmation types (time ticket/time event) are not allowedu201D, message number RU179.
    Anyone who can help me on the way?
    /WM consultant on unknown territory

  • Goods receipt against process order with inbound idoc

    Hi Experts,
    We need to post good receipt against process order with movement type 101 and for By-product 531.
    Can we use inbound idoc-WMMBID02,with message type WMMBXY to achieve this functionality?
    Or please advise if we can achieve this  from any other Idoc type.
    We are getting below field values for external system
    1. process order number
    2.plant
    3.material
    4.quantity in unit of entry
    5.unit of measure
    6.storage location
    7. movement type
    8.Batch
    Kindly advise how can we achieve this.
    Best Regards
    CS

    261 and 262 are two different movement types INDEPENDENT of each other. I definitely know for the fact that SAP allows you to create a 262 without a 261. if you were to restrict it... you can disable access through a tcode for that mov. type 262 and ask users to use MBST to cancel any material documents created via 261 movt type.. that would ensure a smooth process

  • BAPI needed  for  Goods Receipt Purchase Order(Transaction : MIGO)

    Hi all,
    We have a requirement where in we need to post the documents throuh BAPI for Goods receipt Purchase order(Transaction: MIGO).
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    Hi,
    use 'BAPI_GOODSMVT_CREATE'
    Check this sample.
    code
    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.
    [/code]
    Also check the Bapis
    BAPI_PO_CREATE --> To create Purchase Order
    BAPI_PO_CHANGE --> To change Purchase Order
    BAPI_PO_GETDETAIL --> Todisplay Purchase Order
    Regards,
    Raj.

  • Not to update Goods receipt on process order in LIMS system

    Dear all,
    I am working on SAP-LIMS interface project.
    Please help me out with the below requriement:
    Release of process order (COR1) in SAP creates lot creation in LIMS (creates an inspection lot in QIWL table which is read by LIMS system to download data from SAP to LIMS).
    When we do goods receipt (MB31) against the process order, currently it updates same inspection lot in QIWL table to send the same record for LIMS system again.
    We have a requirement not to update on Goods Receipt to LIMS system.
    Please let me know if there are any user-exits/BADIs for the same.
    I know that goods receipt MB31 runs the FM MB_POST_DOCUMENT in background.
    Please let me know if somebody has worked on this requirement.
    P.S. - We need the functionality of updating goods receipt on purchase order in LIMS.
    Thanks,
    Sachin

    Hi,
    If you post GR in Plant - A, then the stocks in the warehouse will reflect for Plant - A & not in Plant - B.
    Although the warehouse is the same, it is linked to the combination of Plant & Storage location. You can check the warehouse stocks using LS26, just specify the warehouse number & material number.
    But there is also a concept of planning plant & production plant, so Plant A can be where the planning takes place, while Plant B is where the actual production takes place. In this case, although you produce in Plant B, the GR will be done in Plant A.
    Hope the above clarifies.
    Regards,
    Vivek

  • BAPI needed for goods receipt for delivery created from sales order

    Hi experts,
    I need help.
    I want to post goods receipt for the delivery created from sales order. I have tried out BAPI BAPI_GOODSMVT_CREATE but I am not able to post it.
    Is there any way to post this? I need BAPI and not FM MB_*....
    Thanks & REgards,
    Bhavin A. Shah

    Hi,
    Please refer to link,
    https://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_GOODSMVT_CREATE-ABAP
    Regards
    Shree

  • BAPI/FM for goods receipt for a Sub Contracting PO

    Hi All,
    Is there a BAPI/FM to perform goods receipt for a sub contracting PO? BAPI_GOODSMVT_CREATE can not perform goods receipt for sub contracting PO.
    My purpose would be served if I can know how to find the component material of a subcontrcting PO.
    Please help.
    Thanks,
    Rana

    Thanks for your input
    Well, I wanted to ask if the BAPI is capable of performing GR for SC PO. Instead of a question, that went as a statement :-). Your recommendation helped me to find answer to my question.
    Thanks again.

  • Goods receipt from process Order, different plants same warehouse

    Hi All,
    Would really apreciate guidence on my issue below.
    We plane to implement the following Org Structure:
    Plant A                 Plant B
        Warehouse 0001
    warehouse 001 shared by both plants
    I execute a process order in plant A, when I perform Goods Receipt against the process order will it show under Plant A or both Plants A & B.
    Plant A executes for Plant B as Plant B is new and all master data is set up in Plant A.
    My hope is to get the business to execute Plant B process orders in Plant B but this will require huge effort I think as masetr data will need changing etc.
    Thanks
    Stuart

    Hi,
    If you post GR in Plant - A, then the stocks in the warehouse will reflect for Plant - A & not in Plant - B.
    Although the warehouse is the same, it is linked to the combination of Plant & Storage location. You can check the warehouse stocks using LS26, just specify the warehouse number & material number.
    But there is also a concept of planning plant & production plant, so Plant A can be where the planning takes place, while Plant B is where the actual production takes place. In this case, although you produce in Plant B, the GR will be done in Plant A.
    Hope the above clarifies.
    Regards,
    Vivek

  • Fields under the tab Goods Receipt in process order.

    Hello Experts,
    While creation of process order, the fields under the tab 'Goods Receipt' are disabled and already checked.
    Fields are 'Goods Receipt' and 'Goods Receipt, Non-Valuated'. Fields are 'WEPOS' and 'WEUNB' accordingly.
    Whereas when we create the process order of same material but with different plant, the field 'Goods Receipt, Non-Valuated' is disabled and checked and other field 'Goods Receipt' is enabled.
    The material is finished product.
    Could you please guide us, is there any configuration in order type dependent parameters for the same.
    Many Thanks in advacne.
    Regards,
    Mayur
    Edited by: Mayur_PP on Nov 21, 2011 1:28 PM

    Hi Niki
    For Financial books, MBEW-STPRS would suffice....
    This would also generate a CO doc...
    But, if you want to anlayse variances in CO, then you need a break up of STPRS i.e. Itemization which is calculated from CK11N and stored in MBEW-LPLPR
    BR, Ajay M

  • Standard web services for Goods receipt and purchase order

    Hi,
    Can you please tell me the std web services for creating the Purchase order and Goods receipt?
    Is there a link where i can get the information on this implementation?
    Thanks
    Srini

    Hi,
    Please reffer ES workplace.
    [Order to Cash|http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=9B0DDD8CCC484FA79EBBBA7F78B57DA7]
    Thanks
    Farooq

  • Pallet Label print after TO of Goods receipt of process Order

    Hello,
    After the GR of Process Order I need to prin tthe Pallet label through Transfer Order.
    Example .. CH-6200 ( SKU Product ) is produce 60 kg.. after process Order..
    The output of the process order is nothing but the 6 can each of 10 kg. 
    Now My pallet limitation is 2 can per pallet which I have maintained in the Material master ( Warehouse Management View 2: 2 can per pallet)
    Not I want to prin the the pallet label i.e. during TO ....number of label is going to print are 3.. ( 2 can per pallet) .
    Can anyone suggest me is there nany standard form for Pallet Label print in WM.
    Thanks
    Vaibhva BAnsod

    Hi again,
    I have been trying to do the reversal with CORR but Iu2019m getting the error message u201CMixed confirmation types (time ticket/time event) are not allowedu201D, message number RU179.
    Anyone who can help me on the way?
    /WM consultant on unknown territory

  • Goods Receipt against Process order mvt 262

    Hi,
    Is it possible to not to receive material against process order (262 mvt) if it is not issued using process order using 261.
    Do the needful.
    Regards
    Mohan

    261 and 262 are two different movement types INDEPENDENT of each other. I definitely know for the fact that SAP allows you to create a 262 without a 261. if you were to restrict it... you can disable access through a tcode for that mov. type 262 and ask users to use MBST to cancel any material documents created via 261 movt type.. that would ensure a smooth process

  • Goods receipt from Process order

    Dear experts,
    when you made GR from process order it doesn't appear in the report KKBC_ord or any report related to the comparison between actual and target for Orders I don't know the reason so because of that there is not target costs in the report So please I need your advice for this issue.
    thanks
    Nassar

    Hi
    Kindly check that a valid standard cost is available in the material master.
    Real target cost comes when you do the variance calculation so you need to do that.
    Regards
    Rajneesh Saxena

  • BAPI FM for goods receipt

    guyz!
    can any one say me, is there bapi function module to create goods receipt and reverse the existing goods receipt?
    thnx
    manas

    hi,
    BAPI_GOODSMVT_CANCEL  you can use this to cancel.
    You can search these function modules in SE37 BY giving
    "BAPIGOODS" etc..words..
    regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • Number range for Goods receipt against Purchase order

    Hi All,
    Please help me with the transaction code of creating new number range to receive goods for the new year.
    Message is Number range for trans./event type WE in year 2010 does not exist
    SAPXPT

    OMBT click on the groups button, select the
    Material documents for goods movements and inventory diffs.
    WA WE WF WH WI WL WO WQ WR WS WV WW WZ
    And then select the maintain icon, you need to maintain the number range
    for the year 2010.
    ands OMBA for accounting finance doc number range
    hope this helps

Maybe you are looking for

  • Open PDF document with Adobe Reader

    Hi everyone, I am building an application to be published as an AIR app. I need to add a PDF along with the application, so the user needs to have access to this document. When the user clicks to open the PDF is there a way the document can be opened

  • Files from Windows Vista do not open in Bridge CS5

    I am having trouble opening my images from Window Explorer level with Bridge. I tried to open my jpgs with "open with" option  and my PC does nothing. Same happens when I double click the raw images. I have my jpgs assigned to open in windows but I a

  • Oracle 10.2.0.3 client patchset number ?

    Hi All, Does anyone know the 10.2.0.3 client patchset number for Windows? Thanks in Advance Mallikarjun

  • Can I add a 3rd party SSD to a dv7 that has the 750GB Hybrid drive?

    I have been given contradictory answers from 2 different HP sales reps. I am looking to purchase a dv7 with a single storage drive, and will at some later time like to add a second storage drive to the empty bay. One rep told me that both the dv6 and

  • Can't Delete DataGridViewRow WIthout Exception

    I have a DataGridView with 3 columns that is bound to a DataTable.  The first DataGridView column is a DataGridViewLinkColumn that is clicked by the user to delete a row.  In my example below, if you left-click the cell that contains text "$200.00",