Need to do MIGO against PO instead of MIGO against Outbound Delivery

Hi Experts,
Inorder to avoid Manual errors, I am trying to do MIGO against PO, instead of MIGO against Outbound Delivery. The requirement is to fetch the Batch and Delivery quantity based on outbound delivery for a PO and populate with other PO details in MIGO tcode.
I have tried using BADI's MB_MIGO_ITEM_BADI, however in Method ITEM_MODIFY, there is only importing parameter IS_GOITEM having PO details, batch and quantity. I need batch and quantity in the changing parameters of table type (useful for batch split purpose).
In MB_MIGO_BADI, tried with LINE_MODIFY method. PO, batch and quantity are present in changing parameter CS_GOITEM (it is not of table type).
I have written the logic for fetching the outbound delivery details (batch and quantity) based on PO, I need to know the place where to place it in MIGO.
Thanks in Advance,
Regards,
Murthy.

u can use line modify
here is a sample below;
CS_GOITEM-EXBWR is changed with  tp_dmbtr.
sample:
if cs_goitem-bwart eq '939'. "
      PERFORM f_get_material_value IN PROGRAM Zcl_item_harici_up
       USING    cs_goitem-matnr
                cs_goitem-werks
                cs_goitem-bwtar
       CHANGING up_DMBTR
                zmtart.
      tp_dmbtr = tp_dmbtr + cs_goitem-menge * up_DMBTR.
CS_GOITEM-EXBWR = tp_dmbtr.
endif.

Similar Messages

  • Manual (Dynamic) Interim Destination Storage Type instead of 916 for Outbound delivery T.O

    HI,
    we would like to create transfer order manually for outbound delivery.here both source and destination need to be given manual
    i know that the interim storage type 916 given in the interface movement type , while T.O creation for the outbound delivery
    we would like to have the destination interim storage type as a manual entry so i kept both destination and source storage type blank,and system permits to do picking (T.O Creation  )
    Created Transfer Order, with source and destination details and confirmed T.O.
    But when i do the goods issue getting error as
    Storage bin MT1   does not exist (check your entry)
    Message no. L9009
    when i checked table LIPS-  LGTYP and   LGPLA , both fields are empty.
    Please let me know how can i make this functionality.
    Thanks.

    The requirement is , my interim storage areas are real storage areas,for which goods are issued the stock goes to interim storage area and PGI will be made after verification ,but the interim storage area is dependent on the customer , not a fixed one which we will know only when we deliver the goods .
    I use that process too, with verification on the final storage area before shipping, but what I do is to use SD in conjunction with WM. I use the gates in the Outbound Delivery, to separate the stock, since WM creates a bin in 916 for each delivery document and I can use that to know in which gate each quant is.
    That way, everything goes to 916, but I have a report that tells me which stock is near each gate, so I can run the audit process before shipping.
    It's not completely standard, but WM standard is very hard to use without an additional UI layer on top anyway.

  • Need BAPI for MIGO to create a Goods Receipt against PO &Outbound Delivery

    Hi Friends,
    GRN’s (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
    I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
    PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
              If PO Number = EKKO-EBELN    GR against Purchase Order
                            = LIKP-VBELN      GR against Outbound Delivery
    Based on the above condition I need to create a Goods Receipt. 
    Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
    The fields available are with us are...
    Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number… SLED
    Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
    Please provide sample code if possible.
    Waiting for replies,
    Thanks and Regards,
    Sudha

    Hi Friends,
    GRN’s (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
    I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
    PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
              If PO Number = EKKO-EBELN    GR against Purchase Order
                            = LIKP-VBELN      GR against Outbound Delivery
    Based on the above condition I need to create a Goods Receipt. 
    Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
    The fields available are with us are...
    Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number… SLED
    Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
    Please provide sample code if possible.
    Waiting for replies,
    Thanks and Regards,
    Sudha

  • MIGO against Outbound Delivery, fully GR-booked items appear again

    Hello gurus,
    I am totally confused with the MIGO behavior. Please help me out.
    We have a user Movement Type 9xx, which is made as a copy of MvT 101. We use this MvT 9xx to support our intra company Stock Transfer Order process.
    After STO is created, Outbound Delivery is made and Goods Issue is done we can do MIGO GR for the corresponding Outbound Delivery. (Well, I have to post GR again Outbound Delivery not STO because otherwise the outbound delivery document flow <in table VBFA> is not updated.)
    Say I have two items (X and Y) in one outbound delivery.
    If I post a GR 101 against outbound delivery item X and then I do MIGO GR against the same outbound delivery I only see item Y. This is perfectly correct.
    But the strange thing is that if I post a GR 9xx against the outbound delivery item X and I try again to post GR 9xx against the same outbound delivery (at this time I want to do GR for item Y) the both items (X and Y) are displayed on the MIGO screen.
    What can I do to let MIGO don't display the item X when a full qty GR 951 has taken place?
    Because of some constrains we need to realize MIGO GR against outbound delivery on item level. Is this doable?
    Any help will be appreciated. Thanks in advance.
    Yongmei

    Dear Yongmei,
    From your explanation, it appears that there is a difference in the attributes for the two Mvt types. I wld suggest you to compare the Quantity updation rules for both the Mvt types in OMJJ.
    Also check all the settings have been made for 9xx in OMJJ.
    Hope this helps.
    Regards
    Keshav

  • Need to create One outbound delivery against multiple PO and Schedule lines

    Hi Experts.
    I needed your help in regards to creating one single outbound delivery for multiple PO/SA lines(in one shipment) using either FM GN_DELIVERY_CREATE or
    W_FRM_DELIVERY_CREATE_GENERAL.
    I have tried setting up the indicator XKOMDLDN-KZAZU = 'X' in the interface to combine orders in one delivery but I am still getting multiple deliveries.
    If somebody had sucess with  the above then can you please let me know what other parameters do I have to set or let me know if I have to code this in a user exit/badi which will be called inside these FM's.
    OR
    Please let me know if there are any other alternatives to the above FM's to post one single delivery against mupltiple PO's.
    Thanks
    Raj

    Hi,
    I am little bit disappointed since I did not get even a single reply for the issue that I raised. Anyways finally after couple of days debugging VL10d and going thru SAP support website I found couple of solutions. Here it is in case anybody else needs it in the future.
    I am using solution 2 below.
    Solution 1.
    From SAP portal website u2013 Apply SAP note 386340 (Grouping purchase orders into one delivery using VL10*)
    Note- This solution will affect all your plants and delivery types that is using VL10d transaction or any other transactions calling FM GN_DELIVERY_CREATE
    Solution 2.
    This is the solution that I am using and it is done by implementing BADI  u2018LE_SHP_GN_DLV_CREATEu2019 method MOVE_KOMDLGN_TO_LIKP.
    1) Here I am checking for two fields (IS_XKOMDLGN-WERKS and IS_XKOMDLGN-LFART) are equal to the plant and delivery type that I need to combine deliveries for.
    2) If step 1 above is true then I am updating the header structure CS_LIKP-LFDAT (delivery date) to todays date (sy-datlo).
    Thanks
    SHR.

  • Need a Report for a List of PO's against a Sales Order

    Need a Report for a List of PO's against a Sales Order

    Hi
    We can get through Me2n, with selection parameters with account assignment as C (Sales Order)
    Regards
    Prasanna

  • Error in MIGO against Outbound delivery in INTRA STO

    Hi,
    I'm doing intra company STO.
    I've done all the settings for STO for both the plants under different comp codes.
    Now against my scheduling ageement, material is issed from supplied plant.
    When I'm trying to do GR against outbound delivery, system is giving me the error as"Enter Chapter ID for the material"
    Please note that I've maintained chapter id for both plants for this material & also maintained excise details.
    Excise duties are coming properly.
    When I chk at item level, chapter ID was not displaying n also, the field is grey , so i'm nt able to change it manually.
    Please help me to ressolve this issue.
    Thanks & Regards,
    Piyush

    Hi Kiran,
    Yes it is reflecting in material master, too.
    But in MIGO, it's not.
    Initially it's giving me warning message as" Chapter ID is changed to******"
    And later the above said error.
    Regards,
    Piyush

  • FM for migo against outbound delivery

    call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
      TESTRUN                     = ' '
    IMPORTING
        goodsmvt_headret            = mthead
      MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
        return                      = errmsg
    I am using this FM for migo against outbound delivery can i get waht parameters i have to pass
    for this FM for outbound delivery

    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'.   "01 - MB01 - Goods Receipts for Purchase Order
    itab-move_type  = '101'.
      itab-mvt_ind    = 'B'.
      itab-plant      = 'FD11'.
      itab-material   = '0000900152'.
      itab-entry_qnt  = '1.000'.
      itab-move_stloc = 'FG'.
      itab-stge_loc   = 'FG' .
      itab-po_number  = '5500004086'.
    itab-DELIV_NUMB = '0171000465'.
    itab-DELIV_ITEM    = '10'.
      itab-PO_ITEM    = '10'.
    call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
      TESTRUN                     = ' '
    IMPORTING
        goodsmvt_headret            = mthead
      MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
        return                      = errmsg
    Error in function
    Material document data and PO data do not match (Material)
    i am getting this error
    help me

  • MIGO for GRN against Outbound delivery

    Hi,
    I have a requirement for creation of GRN against outbound delivery using MICO tcode, i have used the FM 'BAPI_GOODSMVT_CREATE but in table T158G for MIGO tcode there is no number assigned in our system landscape as it is std table, but respectively (MB01,MB31,etc no's are there) how to create number for MIGO in table T158G and correspondingly Movement Indicator which should be used for Outbound delivery, please kindly sujjest me.
    Thanks in advance,
    Puneetraj.

    Hi
    No, I am not having any release procedure.
    Yes, I have picked the qty in VL02N
    In vendor master, I have assigned the supplying plant to vendor.
    Actually, i have created the plant as vendor and assigned it to itself.
    Its not a error message. plz see the message.
    Document 0080016192   does not contain any selectable items
    Message no. M7064
    Diagnosis
    The document or document item entered cannot be adopted.
    Possible reasons for this are:
    The document items have already been processed
    (Suggest zero lines indicator set?).
    the document items have been deleted or are blocked.
    the document items have been created for a different plant.
    (for reservations only) movements are not yet allowed for the reservation items.
    (for reservations only) the document items are retrograde components of the order. These are posted using the order confirmations.
    A confirmation must exist for the document items.
    The document items must be released first.
    The document is an R/2 document.
    Procedure
    Make sure your entries are correct.
    If the system has already processed the total quantity, you can set the Suggest zero lines indicator. The system will suggest the quantity zero for the items that have already been processed.
    If you have entered a particular item, cancel the item. If you do not enter an item, the system searches all of the open items in the document.
    If the document is a purchase order, production order or a reservation, you can enter search criteria in the dialog box.
    You access the dialog box by choosing Enter with reference on the initial screen.
    If the document is an SAP R/2 document, you have to cancel it manually by entering the reversal movement type.
    Regards
    Neeraj Kumar Jain

  • Need help on IDoc for Picking, Packing and PGI against the Sale order

    Hi All,
    I am new to this IDoc stuffs. Below is the scenario for which I would like to know the details of the IDoc...
    Business Case:
    1. Storage location is a HU Managed but not WM managed.
    2. This storage locations is managed by a third party
    3. Outbound delivery document against the SO will be created by our personnels in SAP for this storage location.
    4. Picking, Packing and PGI needs to happen/post via Idoc. (By packing here, i refer to assign the HUs that are already created for the materials and is available in the storage location and not repacking)
    Is there any standard IDoc that can be used here to Pick, Pack and post PGI. We would like to have picking and packing in a first idoc and PGI on the second idoc.
    Thanks,
    Prashant

    Hi Typewriter,
    Thanks for your reply on this post..
    The business process is as below (it was changed recently to have the creation of OBD, pick HUS and then post GI via single IDOC)
    1. We have a storage loc in our enterprise structure that is HU managed but not WM managed.
    2. This storage loc is being maintained by a third party.
    3. SO will be created to be shipped out of this plant/sloc.
    3. The stocks at this storage loc will be Special stock "E" against the sales order. And the stocks will be Packed in HUs.
    4. The third party is informed to deliver the stocks (HUs - that do have the special stock number which internally refers to the the SO number and the line item number) directly to ship to party address in SO.
    5. The 3rd party will physically ship the HUs to customer and send in the details that they have shipped goods against the sales order.
    6. The details sent by the 3rd party will be received in SAP to create OBD for the sales order, Pick, Pack and post GI. This can happen via a single IDOC..
    I am now planning to create a custom IDOC type referring to the standard IDOC type DELVRY03 and message type DESADV and to use a custom BAPI/FM.
    Do you think I am using the right ones?
    Thanks,
    Prashant Kumar

  • MIGO FOR GR against OUTBOUND DELIVERY

    Hi All
           In MIGO transaction I want to do some modification in that when I am going to save purchase order ie for Goods receipt for outbound delivery and movment type 101, I want to call another transaction created by myself.
    But for above when I am debugging the program in that I can see that   all methods only can u please tell me where to put call trancation which should be called at save button only
    Regards
    Sagar

    Use LINE_MODIFY from the MB_MIGO_BADI Business Add-ins SE18. create an implementation and use the LINE_MODIFY method to restrict the plants.  As for disabling why dont you try the loop at screen command and check what screens will be turned off from the other BADI methods. you can mostly find these screens in the PAI and PBO detail methods.

  • Post a good issue against an outbound delivery with movement type 601 K

    Hello,
    according to my business scenario I need to manage the stock of different vendors into the client's location (plant) at storage location level and I need to post the good issue against an outbound delivery to decrease the stock level.
    Since the owner of the goods isn't my client the item is managed only at quantity level (not value) so I'm not interesed in the accounting document.
    To do it I'm using the functionality related to the vendor consignment stock but I'm not able to post the good issue against an outbound delivery using the movemement type 601 and the special stock indicator equal to K.
    In particular I've tried in two different ways:
    - setup the consignment stock indicator (= K) into the sales item category, but when I post the goods issue the system is not able to find out the right vendor
    - to create a stock determination rule instead of the setting previous described, but the system display an error message (Fld selectn for mvmt type 601 / acct L534200770 differs for Cost center (010) ) even if the accouting is not relevant in my scenario
    Can you suggest me how the system has to be setup in order to cover my requirements?
    Thanks in advance,
    Alessandro

    Hi,
    Please clarrify which material type you are using in this scenario? I suggest you to use material type UNBW (no value updation will be there) and create a material master.  Use special stock indicator K. Proceed with 601K to do GI. Hope it works. Thanking you.

  • Print GR slip for GR against an Outbound Delivery

    Dear Experts,
    I have a requirement as below.
    Need to print GR slip for GR against an Outbound Delivery in VL02N (for Return Orders)
    What setting needs to be done?
    I donot see the GR slip check box in VL02N which normally exists in MIGO
    However, i need to print GR slip for such GRs in VL02N
    please help
    regards,
    Shetty

    Re: Printout during Goods Receipt
    See second, fourth reply and final post (which you've already found answer to via another thread).
    Regards,
    Nick

  • PIR no consuming when GR against outbound delivery

    Hello all,
    We are using strategy "11".  When a GR is completed against the inter-company Purchase Order, the PIRs are consumed with no problem.  However, when a GR is done for the same material against the Outbound Delivery, the PIRs are not consumed.  We use the MIGO transaction.
    We do this because we need to see the stock in-transit and want the document flow to update. Do you know of anyway to get the GR for Outbound Delivery to consume the PIRs?
    Any help is greatly appreciated.
    Thanks.

    Hi,
    ...I guess you are speaking about GI against outbound delivery in intercompany stock transport process...
    In this case I don't think you can do any settings to achieve your goal. The PIR in the receiving plant will reduce due to GR, i.e. when your stock level increases because of 101 mvt.
    Stock in transit doesn't increase your available stock. You physically haven't received it yet. Maybe stock in transit is much stronge (much certain)r than a POitem but it's not so strong as a GR...(when you physically have the stock)
    That's all. (just my opinion)
    http://help.sap.com/saphelp_47x200/helpdata/en/a2/4e799d927d11d1800f00c04fadcb73/frameset.htm
    Csaba

  • Goods Receive for Outbound Delivery Without Reference using MIGO

    Dear Colleague ...
    We might need your insight on the case below related to Goods Receive of Outbound Delivery without Reference using MIGO:
    (1) In the current SAP Enjoy screen of MIGO, we are allowed to select the reference document (e.g. = PO, Material Document, Inbound Document, Outbound Document, etc.)
    (2) We did 3 (three) kind of test set: GR for Inbound Delivery, GR for Outbound Delivery with STO and GR for Outbound Delivery without reference.
    (3) The first 2 (two) cases work just find with MIGO.  We believe it is because the receiving plant is pretty much determined in the reference document, which is PO (case 1) or STO (case 3)
    (4) However, the last case came up with the error message "Goods receipt not possible for delivery 8000610236: error code 5".  We believe that this is the standard design of SAP, that the receiving plant is required and it is not defined explicitly in the delivery document.
    (5) Moreover, we also believe that that's the reason why SAP (via the Logistic Execution module) provide the Handling Unit and Shipment, which can be used to perform such receive function, which will imply the MM posting (goods issue and goods receive) IF there is stock transfer involved.
    Appreciate for any thoughts or input on the above.  Many thanks,
    Alvon Sibarani

    use transaction mb0a it will work for the scenario.

Maybe you are looking for

  • Persian date in oracle form6i

    I inserted the NLS_CALENDAR= PERSIAN in registry.There is a Problem with the date field for the first day of first month of each year.for example when I enter 1386/01/01 or 1345/01/01 or 1376/01/01,... and then press the TAB button it shows me like #

  • Configuring Mac Setup (Hardware)

    I'm looking at putting together a decent small production set up for Photography, Music Production & Video Production. I was comparing options of a 27" iMac i7 vs 27" LED ACD + Mac Pro. BUt was thinking of continuing my usage of my 13" MBP, and getti

  • Exs samples reload on every save.

    So I have this particular song I'm working on in LP8, originally created in LP7. Part of my workflow, for better or worse, is saving incremental versions of the particular file I'm working on. For example "song title 8"... "song title 9" etc. For som

  • Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScri

    hi, I am using classLoader to load the multiple swf and using that getclass method i am accessing its document class. it is working fine in local system. when i upload the same files in server,i am getting the below error Warning: An ActionScript 1.0

  • Stubborn Build Path errors

    I created a new Java project in Eclipse from an existing folder. I am getting errors like - Unbound classpath variable: 'JRE_LIB_CORE' in project 'RFT' Unbound classpath variable: 'JRE_LIB_GRAPHICS' in project 'RFT' Unbound classpath variable: 'JRE_L