Batch Data Capture to do a Goods Receipt via transaction MIGO.

Hi All,
I have a new requirement to perform a Batch Data Capture of a goods receipt via transaction code MIGO.
Currently the BDC approach is not feasible due to the fact that screen configuration is dynamic and may differ at times between different users and user profiles. 
Therefore I have tried to use function module 'MIGO_GR_CREATE' instead.  However after some initial investigation it has become clear that a material document number that is generated by SAP may not be returned by this function module after successful execution of a "GR". 
Therefore does anyone know any function module to use in order to do a "GR" by passing or submitting a purchase order number + purchase order line item number (and possibly a delivery note number) and get back a material document number after successful/complete execution.
Thanks.

HI ,
You can use 'BAPI_GOODSMVT_CREATE' to create goods recipt.
Check this code for reference..
        MOVE x_purchaseorder TO goods_mvt_tab-ebeln.
        MOVE eban-bnfpo      TO goods_mvt_tab-ebelp.
        MOVE up_tab-feld_12  TO goods_mvt_tab-menge.
        MOVE eban-werks      TO goods_mvt_tab-werks.
        MOVE eban-lgort      TO goods_mvt_tab-lgort.
        APPEND goods_mvt_tab.
  LOOP AT goods_mvt_tab.
    MOVE sy-datum            TO y_goodsmvt_header-pstng_date.
    MOVE goods_mvt_tab-ebeln TO y_goodsmvt_item-po_number.
    MOVE goods_mvt_tab-ebelp TO y_goodsmvt_item-po_item.
    MOVE '101'               TO y_goodsmvt_item-move_type.
    MOVE 'B'                 TO y_goodsmvt_item-mvt_ind.
    MOVE goods_mvt_tab-menge TO y_goodsmvt_item-entry_qnt.
*    MOVE 'PCE'               TO Y_GOODSMVT_ITEM-ENTRY_UOM_ISO.
    MOVE 'PC'               TO y_goodsmvt_item-entry_uom_iso.
    MOVE goods_mvt_tab-werks TO y_goodsmvt_item-plant.
    MOVE goods_mvt_tab-lgort TO y_goodsmvt_item-stge_loc.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header             = y_goodsmvt_header
        goodsmvt_code               = ls_movement_code
        testrun                     = y_testrun
      IMPORTING
        materialdocument            = y_materialdocument
      TABLES
        goodsmvt_item               = y_goodsmvt_item
        return                      = y_return.
Regards,
Sachin M M

Similar Messages

  • Batch Data Capture of transaction 'MIRO' via background execution

    Hi All,
    I am currently working on a report that amongst other things conducts a batch data capture (i.e. BDC) via a recording of transaction code 'MIRO' in order to create an Invoice Verification with the 'Invoice Receipt' number being the only expected output after successful execution.
    I am populating only the following fields (i.e. via the recording) with data processed within the report program:
    -  INVFO-BLDAT
    - RM08M-EBELN
    - INVFO-XBLNR
    - INVFO-WRBTR
    The problem however is that this same recording works when I execute the report in the foreground but does not work when I run it in the background work process.  Could there be a common and well known cause to this? 
    Please help!  I just need the same recording to be able to run in the background work process as well as it runs in the foreground.
    Thank you.

    Hi!
    For technical reasons, batch input and the new single screen enjoy                    
    transactions are no compatible. See Notes 381630 & 381593 for more                    
    detail. Notes are attached.                                                                               
    381630 0004 0.400 Batch input for Enjoy transaction in MM not possib                  
    381593 0008 0.430 MIRO/MIR7/MIRA: Batch Input is not possible                                                                               
    Hope the information helps you.                                                       
    Erika

  • Automatic and manual batch determination at the time of Goods receipt

    hi,
    where i can have the settings for automatic and manual batch determination at the time of Goods receipt and goods issue..
    E.g.: If i am receiving material from vendor then my requirement is system will generate batch automatically...
    Where  we can get this setting?
    Tx
    Uts

    Dear,
    You assign the batch number either
    Manually
    Automatically, using internal batch number assignment, refer to Customizing for Batch Management under Internal batch number assignment.
    Internal batch number assignment is activated for the complete client, unless you exempt individual plants or materials using a customer exit (see Configure customer exits for intern. batch number assignment in Customizing for Batch Management).
    The R/3 System informs you that the internal batch number assignment is active. You are however only informed once per transaction, for example, when you enter the first item on the multiple-entry screen.
    Please refer: http://help.sap.com/saphelp_45b/helpdata/en/25/283cb44f7811d18a150000e816ae6e/frameset.htm
    Regards,
    Syed Hussain.

  • Capture excise invoice before goods receipt

    Do we have any advantages of capturing excise invoice before goods receipt ?

    In terms of distribution of labor, yes. It gives more control to the excise personnel in your org rather than allow the control to the stores personnel who may or may not have sufficient knowlegde to handle these legal documents.

  • Custom report Open goods receipt like transaction ME2L, param 'WE101''

    Good morning,
    I have develop a report to process the same Open goods receipt extracted by the transaction ME2L using the parameter 'WE101';  I know where is the customizing to see the criterions of selection 'WE101' (  IMG under Materials Management -> Purchasing ->Reporting -> Maintain Purchasing Lists -> Scope of List -> Define Scope of List. Select any one option & double click ) but I don't know ho create a report that use the same selection.
    There is a function or which is the query to select Open goods receipt like transaction ME2L?
    I need it because i have to extract data like ME2L and after continuing to elaborate it...
    very thanks for any help.
    Marco

    Hi Kaveri,
    For Open PO Reports try using these standard reports:
    ME2N, ME2M, ME2L, ME80FN.
    Also, when you run them, try to execute these reports in the background with immediate Job. Later, you can check the spool for results.
    Hope this helps!
    Regards,
    Shilpa

  • Should the Goods Receipt Inventory Transaction include Item Cost selection?

    When processing a Goods Receipt inventory transaction, the Price List pull down does not display "Item Cost" as a selection.
    The user can make the Unit Price field visible and active, compare the cost displayed from the Price List selected to the current Item cost and update if different. This forces the user to be very cost cognizant as none of the price lists available are guaranteed to be equal to the current item cost.
    Update of the record can cause a cost revaluation in moving average or a cost varinance account adjustment in a standard cost system.
    The companies I have talked to would prefer to select Item Cost in the price list field as they can do in the Stock Posting.
    I am looking for further input on this.
    Thanks,
    Jim

    No replies since April 2009, closing.

  • Posting goods receipt  using transaction MB1C

    Hi
    When I  posting goods receipt  using transaction MB1C , I am getting following error
    Account  310000 for Transo/event key BSX is a A control Account.
    Please tell me the solution for this error.
    kalai.

    Dear Suriya,
    If your issue is still un-resolved, Just try with:
    T. Code: FS00
    Key-in your G/L Account - 310000 & Company Code, in respective fields; go to
    Tab: Create/bank/interest
    Here, you will find a Box: Post automatically only. Enable the box (check-mark the box) for GR/IR clearing account.
    Jope, this may help in some ways.
    Best Regards,
    Amit.
    Note: In continuation to others' suggestion, I'll also suggest to consult FI-Personnel, at your end.

  • Report for date variances between delivery and goods receipt date

    dear guru ,
    i search a standard report for date variances between delivery date in the purchase order and the goods receipt date.
    Do you help me ?
    Thanks

    Hi,
    Use Report ME80FN and here check the delivery schedule option in output screen.

  • Serial data tab page missing during Goods Receipt for Mvt type 501

    I have created and asigned the Seria data profile in plant data/Storage 2 of the material master record. Now i want to do the Goods receipt of this material with Mvtr type 501 w.r.t any documents for 5 no's and want the serial number to be createdment. I also have made relevant settings for automatic serial number and equipemnt number synchr, but wen i m in MIGO--Goods Receipt OtherMvt type 501 and enter, the serial data tab page is missing..
    How can I activate this tab page....Any steps missing....
    Can some one throw lights on this.....
    Refered relevant threads but not much useful to my query....
    Thanks
    Murad Shaikh

    Try 501 with MB1C, OR
    Check through Path SPRO -> Sales and Distribution -> Basic Functions -> Serial Numbers -> Determine Serial Number Profiles -> Select Profile 'MM' & double click on Serializing procedure at left & maintain obligatory(03) for procedure MMSL i.e. Maintain goods receipt and issue doc. Also press F1 in Serial Number Usage to read the usage.

  • Batch entry in process order in Goods receipt tab mandatory

    Hi,
    There is a field in Good receipt tab of process order (AFPO-CHARG). We want to make it mandatory field. Is there any way to do that & it should be dependent on order type-plant.
    regards,
    Mohit

    HI,
    Good receipt tab of process order (AFPO-CHARG
    I think you are asking about batch field for header material.
    If you want to make it mandatory then you can do it by creating screen varient (SHD0).
    You find many online help documents and threads on screen varient, search it over here on sdn or on net also.
    Regards,
    Dhaval

  • User Specified date for Exchange Rate in Goods Receipt

    Hi All,
              Exchange rate in Goods receipt will be picked up on the Posting date. Our requirement is that the exchange rate should be picked up on user specified date but not the posting date.
    Is there any possibility to achieve this functionality either by 
    1) Customization change
    2) User Exits or BAdI's
    3) FM to control the exchange rate date while posting the GR?
    Any pointers regarding this will be appreciated.
    Regards
    Barada

    Hi
    Did you find any solution to your problem? We have similar situation. Here is OSS note 619330 not sure if it will work withut material ledder. Let me know if you have found any alternate

  • Cenvat Availment Duties Not captured Correctly during Import Goods Receipt

    For Import Procurement we follow the following cycle
    PO->Customs MIRO->Goods Receipt>J1IEX->Vendor MIRO
    While Posting the Goods Receipt we give the Customs MIRO number and system Should calculate the duties like CVD,Cess on CVD and Add duty on Imports only based on this Customs MIRO number.
    But in our case its calculating the value based on amount given in PO and not based on the Customs MIRO number.
    Uptill December the values where posted correctly.But Only from January we are facing this problem?
    Thanks & Regards
    Sentil

    Hi Senthil
    The Custom duty, CVD, Ecess on CVD, Ecess on Customs and ADC are polulated on goods receipt through the MIRO document once MIRO document is posted and referred. If MIRO is not done, then system has to copy from PO.
    You said that its calculating the value based on amount given in PO and not based on the Customs MIRO number. But lwt me know whether they are populating to excise fields in MIGO. Also check whether all these are getting loaded on material? (Whether both FI documents are accurate or not?)
    Basically, these condition types shall be marked as accruals.

  • Open delivery for goods receipt via RF

    I am trying to do a good recepit through the RF menu. Once I click on the goods receipt , it takes me to the screen which asks for PO/delivery #, Material # and quantity.
    When I enter in the PO, mat # and Qty , it gives me the error message "No Open Delivery"
    So I went through the RF screen overview documentation which also says that "Material must exist in the order and in the open delivery"
    Can anyone please explain what this means and how can I create an open delivery?
    Thanks

    1) you need to create custom RF Tcode where you can design a screen to enter the batch and update it.
    2) Serial number is at IM level, if you want to trace it at the WM level then you need to go for custom program.( In standard it is not possible to track serial number at bin level)
    3) try doing research on LM71, LM72, LM73, LM74. LM76.
    4) There is not standard RF tcode to create TO, you need develop a custom Tcode.
        You need to sit with business to design the screens of this Tcode( mandatory field would be material, source storage, bin, destination storage, bin, SUT, )
       you can call function module L_TO_CREATE_SINGLE)

  • Goods receipt message empty - MIGO with purchase order

    Hi,
    In MIGO, I do a goods receipt with reference to purchase order. On the purchase ordre the flag "Goods Receipt Message" is flagged.
    In my business workspace I receive the email, the message title is ok but message is empty, the text is not displayed. The issue is in my ECC6 system, it works fine in 4.6C system.
    Where can I customize the content of the mail.
    Can I see it in SO10, is this a standard text ?
    Thank you.

    closed

  • Determination of a door for goods receipt via MIGO without inboud delivery

    All,
    Has anyone set up configuration to determine a warehouse management door for goods receipt when there is no inbound delivery?  I wish to utilize door to assist in queue determination and I am unable to find the right settings for door determination on goods receipt.
    Thank you,
    Sandy

    For making the Inbound delivery as required for processing a goods recipt, you need to use the confirmation control key in the PO.
    The ASN from the Vendor vvia EDI will post as an Inbound delivery in the PO.
    In the configuartion of the confirmation control key maintain the Confirmation sequence with Inbound Delivery and mark it as GR relevant and GR assignment.
    SPRO - IMG - MM- Purchasing - Confimrations - Set up confimrmation control.
    This setting will ensure that GR does not happen without an IBD

Maybe you are looking for

  • Several Solaris Versions(2.6,7,8) on the same disk. Possible ?

    Hello folks! I hope someone will be able to help me here. I've been after this problem for weeks now! Here it is: for testing purposes I need to install Solaris 2.6, 7, and 8 on the same machine (Ultra 2 enterprise). I started with the installation o

  • Part Appraisal column in appraisal document

    Hi,    In a template we have one appraise , one appraiser and one role as part appraiser... In R/3 that part appraiser column is coming in the editable mode.. but in standard BSP itself that part appraisal column is coming in the display mode always/

  • How to raise requistion for internal demand

    Hi experts, we need the ability to create a requisition for internal demand against a cost centre.  For example, there is a material that we have to manufacture for an exhibition.  How can we create an internal demand, that causes a production order

  • Upgrade U110 with WiFi Link 5300

    Can the U110's wireless card be upgraded to use Intel's WiFi Link 5300? 

  • Q10 Reboot issues

    My Q10 seems to have a mind of its own. If seems to reboot quite often. If you put it down too hard it reboots, if you pick it up too fast it reboots, if I move too fast with it in my hand it hangs up on the person I'm talking to and it reboots! Wtf?