BAPI_GOODSMVT_CREATE  for Processing a Goods Reciept for a Delivery

We have a requirement to use the Goods Movement Create BAPI to create Goods Reciepts for deliveries since it mimics MIGO.  Problem is that we cannot get this BAPI working to Goods Reciept our Deliveries... Has anyone used it for Deliveries? What data is required for the BAPI to work?
thanks,
brian

Give a try on the following BAPI:
BAPI_OUTB_DELIVERY_CONFIRM_DEC
Check its documentation.
Let me know,
Leonardo De Araujo

Similar Messages

  • Not Possible to Process Goods Reciept for an Asset Purchase Order.Pl. Help!

    Dear All,
                                                                              I m not able to do Goods Reciept for a Purchase Order . It is an Asset P.O.As  i  wants to Process Goods Reciept am getting a System Message in task Bar as --> "No Goods Reciept Possible for Purchase Order
    XXXXXXXXXX. Message No. M7036.
    Can ne one please help me what to check in this P.O , The Message generated is not an Error it is a Message in task bar with Green Tick, Hope you got it.
    Please Help ,
    Rgds n thanx in advance.
    sap11

    Hi,
    Following could be the possible reasons for this message:
    o   The purchase order contains no items in the specified plant. - If you have specified plant in MIGO Screen, remove it and keep it blank, let system determine it from PO.
    o   The item specified does not exist. - If you are entering PO line item in MIGO screen then keep it blank and let it get determined form PO
    o   Currently, the scheduling agreement has no open schedule lines, or the schedule lines have not yet been transferred. - This is applicable in case of GR against Scheduling Agreement
    o   The item category of the purchase order items in the plant does not allow goods receipts. - Check the Item Category in PO, it should be blank.
    o   The purchase order items in the plant have been deleted or are blocked.
    o   For confirmation control for the order item(s) to be carried out, a confirmation (shipping notification) must have been received. This has not yet been entered. - Check under "Confirmations" Tab in PO whether any confirmation control key has been specified or selected wrongly. If yes then either create Inbound delivery in VL31N and then do MIGO or remove the Confirmation Control Key from PO ans Save and then do MIGO.

  • Call BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order

    Hi,
    I'm calling the bapi BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order, but the following code doesn't work. It doesn't give me any kind of error message but it does nothing as well...
    Can anyone help me please?
    Thank You
    Hugo
    Code
    DATA: wa_goodsmvt_header  LIKE bapi2017_gm_head_01,
                            wa_goodsmvt_code    LIKE bapi2017_gm_code,
                            wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
                      DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS  0 WITH HEADER LINE,
                            it_return        LIKE bapiret2 OCCURS  0 WITH HEADER LINE.
                      wa_goodsmvt_header-pstng_date = SY-DATUM.
                      wa_goodsmvt_header-doc_date   = SY-DATUM.
                      wa_goodsmvt_header-ref_doc_no = '4500000020'.
                      wa_goodsmvt_code-gm_code = '01'.          "Goods receipt for purchase Order
                      it_goodsmvt_item-stge_loc  = 'BPF2'.
                      it_goodsmvt_item-move_type = '101' .
                      it_goodsmvt_item-entry_qnt = 17.
                      it_goodsmvt_item-entry_uom = 'KG'.
                      it_goodsmvt_item-mvt_ind   = 'B'.
                      it_goodsmvt_item-po_number = '4500000020'.
                      it_goodsmvt_item-po_item   = '00010'.
                      it_goodsmvt_item-material  = '50'.
                      APPEND it_goodsmvt_item.
                      CALL FUNCTION  'BAPI_GOODSMVT_CREATE'
                        EXPORTING
                          goodsmvt_header  = wa_goodsmvt_header
                          goodsmvt_code    = wa_goodsmvt_code
                        IMPORTING
                          materialdocument = wa_bapi2017_gm_head
                        TABLES
                          goodsmvt_item    = it_goodsmvt_item
                          return            = it_return.
                        data: begin of errmsg occurs 10.
                                include structure bapiret2.
                        data: end of errmsg.
                        data: wmenge like iseg-menge,
                              errflag.
                        clear errflag.
                        loop at errmsg.
                          if errmsg-type eq 'E'.
                            write:/'Error in function', errmsg-message.
                            errflag = 'X'.
                          else.
                            write:/ errmsg-message.
                          endif.
                        endloop.
                        if errflag is initial.
                          commit work and wait.
                          if sy-subrc ne 0.
                            write:/ 'Error in updating'.
                            exit.
                          else.
                            write:/ 'Ok'.
                          endif.
                        endif.
                        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                        EXPORTING
                        wait = ' '.

    Hi,
    Thank you for the asnwer! I'm a rookie at ABAP so please forgive my stupid questions
    I've changed the code to:
    DATA: wa_goodsmvt_header  LIKE bapi2017_gm_head_01,
                            wa_goodsmvt_code    LIKE bapi2017_gm_code,
                            wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
                      DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS  0 WITH HEADER LINE,
                            it_return        LIKE bapiret2 OCCURS  0 WITH HEADER LINE.
                      wa_goodsmvt_header-pstng_date = SY-DATUM.
                      wa_goodsmvt_header-doc_date   = SY-DATUM.
                      wa_goodsmvt_header-ref_doc_no = '4500000020'.
                      wa_goodsmvt_code-gm_code = '01'.          "Goods receipt for purchase Order
                      it_goodsmvt_item-plant     = 'BP01'.
                      it_goodsmvt_item-stge_loc  = 'BPF2'.
                      it_goodsmvt_item-move_type = '101' .
                      it_goodsmvt_item-entry_qnt = 10.
                      it_goodsmvt_item-entry_uom = 'KG'.
                      it_goodsmvt_item-mvt_ind   = 'B'.
                      it_goodsmvt_item-po_number = '4500000020'.
                      it_goodsmvt_item-po_item   = '10'.
                      it_goodsmvt_item-material  = '50'.
                      APPEND it_goodsmvt_item.
                      CALL FUNCTION  'BAPI_GOODSMVT_CREATE'
                        EXPORTING
                          goodsmvt_header  = wa_goodsmvt_header
                          goodsmvt_code    = wa_goodsmvt_code
                        IMPORTING
                          materialdocument = wa_bapi2017_gm_head
                        TABLES
                          goodsmvt_item    = it_goodsmvt_item
                          return            = it_return.
                          write:/ it_return-message.
    And the return message is : Material document data and PO data do not match (Material)
    Any idea of what might be the problem?
    Thanks

  • Adding a goods reciept for production sets no unit price

    Hey All,
    We are performing a goods reciept for production using DI API.
    We use a non continuous stock system
    On the Bom we have set te price to 5 EUR.   When we report a completion using the Business one client the unit price of the goods issue has a value of 5.
    When we add the goods receipt using DI API the price is not set.  After some investigaton we have seen that the DI API automatically uses the last purchase price of the Parent item.  According to me, this means that DI API is using the same logic as the SAP Business one Client
    This is a code example of how we are adding the goods receipt:
    SAPbobsCOM.Company m_company = new SAPbobsCOM.Company();
                    //Set the company properties
                    m_company.Server = "Server";
                    m_company.CompanyDB = "TEST";
                    m_company.UseTrusted = false;
                    m_company.DbUserName = "sa";
                    m_company.DbPassword = "******";
                    m_company.UserName = "manager";
                    m_company.Password = "manager";
                    m_company.DbServerType = BoDataServerTypes.dst_MSSQL2005;
                    //Connect
                    m_company.Connect();
                    Documents doc = (Documents)m_company.GetBusinessObject(BoObjectTypes.oInventoryGenEntry);
                    //doc.Lines.ItemCode = "383100";
                    doc.Lines.BaseType = (int)BoObjectTypes.oProductionOrders;
                    doc.Lines.BaseEntry = 20035;
                    doc.Lines.Quantity = 1;
                    doc.Lines.BatchNumbers.BatchNumber = "TEST";
                    doc.Lines.BatchNumbers.Quantity = 1;
                    doc.Lines.WarehouseCode = "01";
                    int error = doc.Add();
                    if (error != 0)
                        //Error
                        MessageBox.Show("Error occured with code: " + m_company.GetLastErrorCode() + " " + m_company.GetLastErrorDescription());
    Kind regards
    Tom Baeyens
    Produmex

    no replay, clossing threat.

  • Trapping Events such as Goods Reciept for Purchase Order

    Hi,
    I want to be able to trap events such as a Goods Reciept and respond to it.
    Because this can happen both in the goods reciept form or the AP Invoice Form or by automatic posting, is there a way to 'listen' for this event behind the scenes ?
    I also want to do it with reciepting production orders.
    Thanks
    Nick

    HI,
    USe SP_TRANSACTIONNITOFICATION for trapping events at SQL server SIDE.
    I am suggesting:
    1. Create your table
    2. Write a simple code in T-SQL into SP_TRANSACTIONNITOFICATION  which the monitored event inserts rows into your table
    3. Check the table from your addon and process the rows inside,
    Or use the following solution:
    Re: Stored Proc - BP Account On Hold
    It is hard, but working.
    Regards,
    J.

  • Problem in Goods Reciept for PO w/ Internal Order. (GL Acct related)

    Hello guys not too long ago I asked you guys how to post an IO to a PR. So far it works except when I post the PO (after converting it from the PR) it to the Good Reciept I get an error message appeared.
    It goes something like this ...
    "Account determination for entry HXXX KBS HXXX not possible"
    "Diagnosis - The system did not find an account for this transaction. This means that the account determination for key HCMI KBS HCMI is not maintained in MM  Customizing (Valuation). The key is made up of:
    o  Chart of account                      
    o  Transaction key (= Posting transaction)
    o  Valuation grouping code               
    o  Account grouping code                 
    o  Valuation class"                       
    System response - The system cannot update a G/L account for this transaction. You cannot post the transaction.
    If you have the authorization, check the Account determination in Customizing for Valuation.                                       
    </b>
    From what I understand there is no G/L account assigned does not have a corresponding G/L account. My question is if that is the case, how does one assign a G/L Acct for that particular IO? And would that solve error I am getting? Thanks people and take care.

    Hi Chad.
    What about if you check with your MM Functional Consultant and try to provide him/her the OMWW transaction (MM Account Determination Wizard) to check whether the G/L Account is correctly set for this combination of data.
    regards,
    Daniel Carvalho.

  • Unable to post goods reciept for the Purchase order from EWM

    Hi,
    I am working in ECC - SCM EWM system.Created Inbound delivery ,warehouse order and warehouse task.When confirming the Warehouse task the goods reciept should be posted in the ECC system.
    But the GR is not getting posted in ECC.When I check the QRFC moniter in SCM ,the RFC is getting failed due to an error message
    "Deficit of BA Unrestricted-use 1,500 EA : 004-2638".
    Can any one help me inresolving this issue.
    Regards
    Govind

    Please reply if any update on the above query is present.

  • BW Cubes for reporting of Goods Receipts for materials

    Hi,
    I need information regarding cubes, I beleive they will be from MM area, required to be installed to report on Goods receipt for materials and the associated amount Spend that will result from those receipts, including related charges and fees.
    Please share the information.
    Thanks,
    Rajani

    HI,
    If you need to get only goods receipts at MM Side you should be aware of movement types generally 1* in your system to get their values and Quantities.
    If you are going from FI Side you can have FI Document type WE for GR which will help you in getting the spend amount .
    Hope this helps for you.
    Thanks.
    Arun

  • FOC goods reciept for IMPORT

    hi gurus,
    i m facing one problem -
    i recieved certain imported material FOC from vendor,for that i  made one PO with FOC indicator
    but i have to pay custom duty thr'o MIRO and again i have to avail benifit of that.
    what should i do?
    whether diff process is there ?.
    regards,
    sujit

    Hi
    If you are maintaining Moving average price for the material then for zero price as well as for a price of 0.01 is going to effect your MAP. as you are adding stock to your existing inventory. so the MAP has to adjust itself after updating the stock.
    Thanks & Regards
    Kishore

  • Process order goods movement for process order

    Hi PP gurus,
    In my client's company in MIGO with movement type 261 user isuing material and then doing confirmation with COR6. In migo system should not allow less quantity than mentioned in BOM. Is there any standard setting for it.
    Jayesh

    With the help User Exit you can control the said requirement.
    Best Regards,
    Raghavendra K Nayak

  • Hey every one ... Does any one suggest for me a good browser for my tablet

    Hi
    I would like to have a better browser... Every browser i had tried is not good like if i wanna to upload a file i have to choose only from the gallery and nothing on the settings can change it.. I have tried dolphin browser, boat .. Etc almlst all of them but still and the built in browser every time i try to upload something it shut down by itself 
    Thanks for reading 

    I FIXED IT!
    FYI for the rest of you that might be having the same problem. DON'T USE A BELKIN ROUTER WITH AOL ON A MBP!!!!! It ***** wirelessly. or even hard connected, it won't connect. I went to best buy today, and got a refund on the belkin. I then went to J&R and got a D-Link router. And now it works perfect. I can now chat on AOL yet again, and I tried all the other web browsers I have and messengers, and warcraft 3 online via battlenet. And it works great. I want to give you guys a special thanks for taking time out to answer back to my post. FYI! Belkin wireless G routers do not connect you to AOL wirelessly on MBP's. No matter how much you mess around on them. I highly recommend a D-Link Router. They are easy to set up as long as you READ ( AND I MEAN IT!!!) read the instructions before you set anything up on it. Use the CD that it comes with, and you'll be good to go. Set it up and it works great Almost no dead zones in the house, and now I can use the MBP with all it's cababilities. Thanks people. I really appreciate it.
    P.S. I called belkin last night when i decided to get a refund on my router for today and when i talked to the tech, after puersuading him to tell me the truth. And stop BS'ing me, he broke down and admited that AOL does not work wirelessly on MBP's. So to make a long story short this time, There you go. And one last note, I'm very happy now with my d-link router. I honestly thought it would suck. Not being a brand name router or anything. But amazingly, it works like a brand name item! Again, many thanks all.
    Bruce

  • Good receipt for  Qualtiy management.

    Dear Experts,
    How can perform  good receipt directly into the quality.

    Hello Chandan,
    For a particular material , if you want to post stock to quality inspection during goods reciept ,
    Go to material master (MM02) in purchasing view there is chcek box for post tinspection stock.
    Tick this indicator :
    with this you Specifies whether the material is subject to quality inspection (without inspection lot processing) and whether a goods receipt is posted to inspection stock. The indicator is copied to purchase order items and goods receipt items as a default value.
    Now after doing goods reciept for that particular material . You can view the stock in MMBE under quality inspection Tab.
    Hope this helps.
    Br,
    Tushar

  • Posting of Goods Issue for a Delivery (Different movement types)

    Hello SD Experts,
    We have this process wherein we use Deliveries w/o reference. There's a customization in place for this process, the movement type is determined through the item category of the material.
    Given this scenario, my question is if it is possible to process the goods issue of a delivery with multiple item which require different movement types (diffrent items and item categories thus it have different movement types)?
    Thank you for your kind consideration.

    Hello,
    Yes, you can.
    As you know LO is std delv doc for delv w/o reference.
    And I cat determination for that LO delv doc are
    Delv Type  __ I Cat Group  __  Usage __ High I Cat  __  Def I Cat  __ Man I Cat __ Man I Cat
    LO _____________________TEXT ______________ DLTX          
    LO ________DIEN____________________________ DLX _______DLX     
    LO ________LEER___________________________ DLN          
    LO ________LEER________________DLNG_______DLNZ          
    LO ________LEIS_____________________________DLX_______DLX     
    LO________ NLAG____________________________ DLX          
    LO________NORM____________________________DLN          
    LO________NORM________CHSP_______________DLN          
    LO________NORM________CHSP____KLN________KLN          
    LO________NORM________CHSP____TANN______TANN          
    LO________NORM________PACK_______________DLN________DLX________DLP
    LO________VERP____________________________DLN          
    LO________VERP_________PACK_______________HUPM______DLN     
    LO ________VOLL____________________________ DLNG          
    LO ________ WERT____________________________ DLW          
    Corresponding maintain movement type in Schedule line cat (Tcode VOV6) & determination that in TCode VOV5.
    If you want diff movement type then create your own 'Z' Sch line cat with you desired Movement type (Tcode VOV6) and determine the Sch line Cat accordingly in TCoDe VOV5.
    Thanks & Regards
    JP

  • Message no. RU 195:Automatic goods receipt for order 619271463 is not possi

    dear expert:
    when i confirm the production order via co15  ,sytstm prompt :
    Automatic goods receipt for order 619271463 is not possible
    Message no. RU 195
    Diagnosis
    Order 619271463 contains several operations, which have a control key which indicates "automatic goods receipt".
    However, an automatic goods receipt is only allowed once per order for the following reason:
    If the automatic goods receipt is posted more than once, this would lead to incorrect stock quantities.
    Procedure
    Check the control keys of the operations in order 619271463. Change the control keys in such a way, that an automatic goods receipt occurs for one operation only.
    production order is confirmed  but it cann't be delivered automatically.
    help me analyse it .
    best reagards.

    Hi,
    In normal scenario in a production order each routing operation will consist a control key with settings for automatic goods reciept.
    So in a production order you can use only one control key with automatyic goods recipt. This will be the last operation of the order. From message mentioned by you it is showing as may u have mentioned auto goods reciept for more than one operation.
    PP01 is normal confirmation control key & PP99 is for milestone with auto goods reciept. PP95 - w/o milestone with auto GR.
    Please check control key & correct it.
    Hope this will help you.
    Regards,
    Ashish

  • 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.

Maybe you are looking for