Inbound Goods Receipts IDOCS using L_IDOC_INPUT_WMMBXY

Hi Guys.
I am (trying to) creating Inbound material goods movement document using L_IDOC_INPUT_WMMBXY. I wrote a custom program mapped Control segment and data segment.  Control segment with the message type, IDOC type, etc.  Data segments with E1MBXYH, E1MBXYI, E1MBXYJ. Seems everything good to me, but when i execute the program the function module executes with sy-subrc = 0, but i am not seeing any idocs in WE02.  Am i missing anything here.
Thanks
Shankar

Hi,
The FM L_IDOC_INPUT_WMMBXY is the processing function module that will take the IDOC contents and create the GR document i.e. it does not create create the actual IDOC.
If you want to create an IDOC in ABAP that will be processed by L_IDOC_INPUT_WMMBXY then use a function such as IDOC_WRITE_AND_START_INBOUND giving the necessary control record and data segments.  This will create the IDOC in the DB and trigger the inbound processing routine.
Cheers,
Pete

Similar Messages

  • Inbound Goods receipt - IDOC WMMBXY/WMMBID02

    I am able to post a GR with WMMBID02, but the status msg 53 only says 'Application document posted'. Why does it not provide the document number in message?

    Hi,
      You need to do this programitically. For ex:
    PERFORM idoc_status_fill USING c_idoc_status_ok_incomplete
                                                               v_idoc_docnum
                                                                   c_success
                                                                        c_id
                                                                        44
                                                          struct_emkpf-mblnr
                                                          struct_emkpf-mjahr
                                                                       space
                                                                       space
                                                          p_i_tab_step-fname
                                                                       space
                                                                       space
    FORM idoc_status_fill USING value(status)
                                value(docnum)
                                value(msgty)
                                value(msgid)
                                value(msgno)
                                value(msgv1)
                                value(msgv2)
                                value(msgv3)
                                value(msgv4)
                                value(routid)
                                value(segnum)
                                value(segfld).
      i_idoc_status-uname  = sy-uname.
      i_idoc_status-status = status.
      i_idoc_status-docnum = docnum.
      i_idoc_status-msgid  = msgid.
      i_idoc_status-msgno  = msgno.
      i_idoc_status-msgty  = msgty.
      i_idoc_status-msgv1  = msgv1.
      i_idoc_status-msgv2  = msgv2.
      i_idoc_status-msgv3  = msgv3.
      i_idoc_status-msgv4  = msgv4.
      i_idoc_status-segnum = segnum.
      i_idoc_status-segfld = segfld.
      i_idoc_status-repid  = sy-repid.
      i_idoc_status-routid = routid.
      APPEND i_idoc_status.
      CLEAR i_idoc_status.
    ENDFORM.                    " idoc_status_fill

  • Goods receipt - IDOC (WMMBXY/WMMBID02) error

    I am creating an inbound goods receipt with IDOC WMMBID02 and get the error 'Document date / / is incorrect in item 0000000001'. Error code: F5833.
    Error Diagnosis: 'Service financial accounting:  document date "  /  /" is technically incorrect in item "0000000001" of the accounting document.'
    Anyone know why I get this error. Appears to be FI related.

    Hi,
      The error occurs in the following function module:
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
           EXPORTING
                DATE                      = I_BLDAT
           EXCEPTIONS
                PLAUSIBILITY_CHECK_FAILED = 01.
      CHECK NOT SY-SUBRC IS INITIAL.
      MESSAGE E833 WITH I_BLDAT I_POSNR.
    Please check the documentation for the function module for details.
    regards
    Aveek

  • Goods receipt by using Vl31N for production order.

    Hi
    we can do Goods receipt by using inbound delivery VL31N, with confirmation control key in PO, for purchase orders.
    I want to do Goods receipt using Inbound delivery( VL31N), this is my requirement.
    how to do it.

    Hi
    I dont think you will be able to do Goods receipt against prodcution order using inbound delivery VL31N. Inbound deliveries are normally created for Purchase orders and then GR can be posted wrt to the inbound delivery.
    Prod order is normally within warehouse only so you can use MB31 and post GR directly against Prod order.
    If you can explain more about your scenario hope we may help
    Please let us know
    thanks

  • Goods Receipts Idoc

    Hi,
    Could you please help me out how to create Goods Receipt Idoc?
    I am using WMMBID02 with WMMBXY also in partner profile, but it is not generating any idoc?
    Please help me out.
    Kind Regards,
    Maulik Shah

    Hi,
    I think the below link is useful to you
    EXIT MB_CF001 for WMMBXY
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/52/16ae23543311d1891c0000e8322f96/frameset.htm
    Regards
    Satya

  • Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'

    Hi experts,
    For a Handling Unit number, im Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'
    Im passing the below values to the BAPI, to create a Material document and transfer order.
    GOODSMVT_HEADER- PSTNG_DATE (System Date)
    GOODSMVT_HEADER - DOC_DATE (System date)
    GOODSMVT_HEADER- PR_UNAME (SY-NAME)
    GOODSMVT_CODE- GM_CODE ( 01)
    GOODSMVT_ITEM-MOVE_TYPE (Movement type): movement type '101'
    GOODSMVT_ITEM- DELIV_NUMB_TO_SEARCH (Delivery)
    GOODSMVT_ITEM-DELIV_ITEM_TO_SEARCH (Delivery item)
    GOODSMVT_ITEM-PLANT (Plant) VEPO- WERKS
    GOODSMVT_ITEM-STGE_LOC (Storage location) VEPO- LGORT
    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-UNLOAD_PT ( HU number)
    GOODSMVT_ITEM-MVT_IND (Movement indicator) = 'B'
    I dont know what values has to be passed to the following fields in BAPI
    *GOODSMVT_ITEM-SU_PL_STCK_1*
    *GOODSMVT_ITEM-SU_PL_STCK_2*
    *GOODSMVT_ITEM-ST_UN_QTYY_1*
    *GOODSMVT_ITEM-ST_UN_QTYY_2*
    *GOODSMVT_ITEM-UNITTYPE_1*
    *GOODSMVT_ITEM-UNITTYPE_2*
    All those values has to be updated in the Material document.
    Please help me on this.
    Thanks & regards,
    Leo
    Edited by: Thomas Zloch on Nov 17, 2011 10:11 AM

    I konw that I'm digging an old thread but let's have a look. I have the same problrm (filling the DMBTR field from the BAPI). I have not tried yet but checking the code of the BAdI I found that the EXTENSIONIN_TO_MATDOC method of the MB_BAPI_GOODSMVT_CREATE BAdI is called before creating the material posting and it has the IMSEG table as changing parameter. I will give it a try soon. Hope that it will work.
    Has anyone experience with it by any chance?
    Adam

  • Copy data from a UDO form to Goods Receipt PO using UI API

    Hi, all
    I tried to copy data from a UDO form to Goods Receipt PO using UI API through following codes.
    It works fine while copying to a Item-type Goods Receipt PO.
    But when the doctype is set to service, I got errors.
    I use for-loop to copy two items, Description and LineTotal, into the matrix of Goods Receipt PO form, but both failed.
    any suggestion?
    Edited by: Chao-Yi Wu on Aug 25, 2009 5:50 AM

    Hi  Chao-Yi Wu ,
    SBO_Application.ActivateMenuItem("2306")
    Dim oFormGR As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
    Dim omtxIQC, omtxGR As SAPbouiCOM.Matrix
    Dim oedIQC, oedGR, oed As SAPbouiCOM.EditText
    Dim ocbIQC, ocbGR As SAPbouiCOM.ComboBox
    oFormGR.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
    oedIQC = oFormIQC.Items.Item("13").Specific
    oedGR = oFormGR.Items.Item("4").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("21").Specific
    oedGR = oFormGR.Items.Item("24").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("edComments").Specific
    oedGR = oFormGR.Items.Item("16").Specific
    oed = oFormIQC.Items.Item("3").Specific
    oedGR.Value = oedIQC.Value + ", Goods Recript PO:" + oed.Value
    ocbIQC = oFormIQC.Items.Item("cbDocType").Specific
    ocbGR = oFormGR.Items.Item("3").Specific
    If ocbIQC.Selected.Value = "I" Then
         ocbGR.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
    Else
         ocbGR.Select(1, SAPbouiCOM.BoSearchKey.psk_Index)
    End If
    omtxIQC = oFormIQC.Items.Item("mtx_0").Specific
    For i As Integer = 1 To omtxIQC.RowCount
    omtxGR = oFormGR.Items.Item("38").Specific
           If ocbIQC.Selected.Value = "I" Then
                oedIQC = omtxIQC.Columns.Item("c_ItemCode").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("c_AQty").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("11").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("col_19").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("14").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
       Else  
    omtxGR = oFormGR.Items.Item("39").Specific
               oedIQC = omtxIQC.Columns.Item("c_Descrp").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
               oedIQC = omtxIQC.Columns.Item("col_16").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("12").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
      End If
                Next
    for items the matrix is 38 and for service the matrix is 39
    Rgds
    Micheal

  • 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,
    Alex

    No one can help me?

  • Help needed on Outbound Goods Receipt (IDoc)...

    Hi Experts,
      Can we use the message type WMMBXY and IDoc type WMMBID02 for Outbound Goods Receipts scenario also (Sending Goods Receipts information to target system).
      Because WMMBID02 seems to be for Inbound going by the documentation in WE60. Can we use this for outbound as well? All the field mapping is perfect with respect to this IDoc and all the required fields exist in this IDoc.
       I am struggling to find a suitable outbound process code and processing function module to trigger Idoc from MIGO Transaction once the goods receipt is created / generated.
      Please advice me on how to achieve the above functionality.
    Thanks in Advance.

    Hi,
    check with this link it might be helpful to u ...
    <u>Purchase Order
    Re: Problem to send idoc for a Good Receipt created
    https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=1279261</u>
    Hope this will surely help u ...
    regards,
    sana.
    reward for useful answers...

  • Account Assignment in an automatic PO created from a goods receipt idoc

    Hi guys,
    I'm doing a goods receipt via the IDOC MBGMCR that is automatically creating a PO.  Is there a way to make the item on that PO using the account assignement "K" (Cost Center) ?
    In the BAPI for the goods movement, they are calling the function module "ME_CREATE_PO_ITEM" to create/prepare the item.  In that called, they defaulted the account assignement to space!!! I don't know how I can overwrite it.  Is it possible via configuration ??
    Many thanks,
    Stéphane

    Hi Stephen,
    Did you find an answer to your query, i have the same question i want to default the account assignment 'K' for each item for a particular stock transport order.
    I'm wondering if it can be configured or do i need to have ABAP do it.
    your reply is greatly appreciated,
    Thanks,
    Michelle

  • Goods receipt idoc posting

    Hello All,
    I want to post an idoc for Goods receipt. Can anyone tell me the mandatory fields in Idoc for creating goods receipt through we19 idoc test tool.
    IDOC type: WMMBID02
    IDoc type: WMMBXY
    And if anyone has sample program to create GR idoc through ABAP program, please send it too. Thanks!
    Ricky

    I found using IDoc Type MBGMCR02 and message MBGMCR and much better IDoc/msg type to use then the WMMBID02 if you are doing a goods receipt or transfer order whether in WM or IM. It calls in a BAPI (configured via the WE20 partner profile ) to create a goods movement.

  • Print Prog-Auto Print Barcode Label for Goods Receipt(MIGO) using Smartform

    Hi Guru's
    I have created a smartform that prints barcodes on a label.
    My tests print successfully to the Printronix thermal label printer.
    Is there perhaps a SAP Standard print program that i can use in my output type that will call my smartform upon goods receipt(MIGO)?
    please bear in mind that i am looking for a print program that calls a SMARTFORM. not a sapscript.
    /SMB40/M07DR does not exist on my system. and I am going to use output type WEE1 - for LABEL Printing
    Awaiting your feedback.
    Thanks in advance geniuses!

    Good luck dude,
    In that same program I noticed We01 that will print a smartform GR. I think if you use form entry_we01 in your output control you should do well.

  • Cancelling Goods Receipt and Using of Batch Number

    Hello,
    i did a wrong goods receipt with the MIGO and canceled after two days the material document with movement typ 102.The Material uses a Batch number.
    Now i want to use the old Batch number to do the right goods receipt, but the System says that the Batch number already exists.
    I thought when i cancel the material document i can use the old Batch number.
    I would be happy about every message.

    SAP does not stop you from re-using an existing batch number. The message that you get is in a SAP standard delivery just a warning, as it is from a business process unusual that the same batch can be received multiple times.
    If it is an error in your case, then somebody in your organization has changed the message attributes. so you should talk to them (see the change log in your DEV system) to know why this was done and  what the solution for your case could be

  • Posting Post Goods Issue Idoc using XI

    Hi Experts,
    My scenario is file to idoc.
    I will get the shipping conformation XML file from the client by using that xml file i have to post the PGI idoc, is it possible to post the PGI idoc using shipping conformation xml.
    i have one assumption regarding this please correct me if i am wrong.
    Already shipping conformation Idoc is there, so by using the shipping conformation xml if i post the shipping conformation idoc, is there any possibility that it will automatically update the PGI idoc. Why i got this idea is the shipping conformation xml file whcih was send by the client is matching with fileds in shipping conformation idoc but not with the PGI idoc. So without having the common fileds in xml file and the respective idoc we cannot post the idoc.
    Kindly suggest me the possbile solutions for the scenario.
    Thanks & Regards,
    Venkat

    Hi,
    If you want to post an IDOCbased on the data comping from Client.
    as i understood.
    1. your client is sending data which is similar to shipping conformation idoc.
    2. your requirement is to send PGI IDOC.
    You can go for BPM where you will do 2 mappings 1 for File to Shipping confirmation and other 2nd for Shipping to PGI.
    So at target side you can directly post PGI IDOC.
    Regards,
    Akshay Jamgaonkar.
    Reward points if find  useful.

  • Goods Receipt by using movement type 511

    Dear All,
    We are inwardig some goods using 511 movement type.
    Is there any possible to inward the goods as special stock ( with respect to production or sales orders) aganist 511 movement type.
    Regards,
    Venkat.

    Hi
    Not Possible
    In Movement type: 511 you cannot use Special Stocks
    Regards
    S.Baskaran

Maybe you are looking for

  • AFP Finder Bug Report/Collapse AFP Folders over the Command Line

    Hello, I have a MacPro server that I am using to deliver scanned images of business recoreds.  I absolutely love how cover flow and spotlight work toghether and in fact this is one of the main reasons I chose Apple in 2009. However, the number of rec

  • Max. Number of testsockets in batch model

    I haven't found any information about the max. number of testsockets in the batch model. We need to test up to 32 UUT at the same time. The UUTs are not of the same type, so we need to run different test sequences for different UUT types at the same

  • Put music on your computer

    I have a ipod nano running windows xp. I have itunes loaded. Can't get itunes to recognize a music CD. I put in a music CD and itunes opens. There is a "processing" window that opens for a split second then disappears. That's it. I read through the m

  • Shipment Pricing

    Dear All, The client wants to derive the container rate in Shipment Pricing  from the condition record which should be editable when he is creating Shipment Cost by VI01.I had created a condition record in TK11.When I am testing it I find that the va

  • Please check your network connection and try again?

    Help, I am in Prague, have a network connection, as I am using it to send this email...but when trying to log into FaceTime, on my macbook pro, I get this message ' Please check your network connection and try again.'  I miss my daughter, want to tal