Delivery Note Number should not repeat again during MIGO

Hi Friends,
My client has a requirement to validate the Delivery note filed in the MIGO screen, i.e., the system should allow the user to enter a delivery note number once entered already during goods movement through MIGO. Is there any way that this can be done?
Regards
Guru Prasad

Thanks for the reply Ganesh.
Explaination of the requirement:
During goods receipt the user is supposed to enter the delivery challan number of the vendor in the filed "Delivery Note" in MIGO header. If the user by mistake types the same delivery note number again while posting goods reciept for the same vendor in future, the system should throw an error. If there is any user exit or if it can be done through some development kindly suggest the procedure for the same.
I also checked for the standard system messages, but couldn't find any.
Rgds
Guru Prasad

Similar Messages

  • Update qty in delivery note through bapi for migo

    hi im using bapi for migo upload
    my requiremnt is to update QTY IN DELIVERY NOTE in migo.
    i got the folowing error if i dont pass the quantity.
    qty and/0r delivery indicator or final issue indicator missing
    if i pass the quantity field then it is changing quantity in unity of entity and qty in SKU i dnt want to change this field
    here is my code,
    gmcode-gm_code = '01'.
        ls_GOODSMVT_HEADER-pstng_date = tdate . "sy-datum.
        ls_GOODSMVT_HEADER-doc_date   = sy-datum.
        ls_GOODSMVT_HEADER-pr_uname   = sy-uname.
    loop at itab.
      ls_GOODSMVT_HEADER-REF_DOC_NO = itab-LFSNR.
      it_goodsmvt-move_type  = itab-BWART.
      it_goodsmvt-po_number  = itab-EBELN.
      it_goodsmvt-PO_ITEM  = '10'.
      it_goodsmvt-STGE_LOC  = itab-LGORT.
    it_goodsmvt-QUANTITY  = itab-LSMNG.
    it_goodsmvt-BASE_UOM = 'KG'.
    it_goodsmvt-material = 'RC1092'.
    it_goodsmvt-entry_qnt = itab-LSMNG.
    it_goodsmvt-ENTRY_UOM  = 'KG'.
      it_goodsmvt-mvt_ind = 'B'.
      it_goodsmvt-plant = 'G001'.
    it_goodsmvt-NO_MORE_GR = 'X'.
    append it_goodsmvt.
    clear it_goodsmvt.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header               = ls_GOODSMVT_HEADER
        goodsmvt_code                 = gmcode-gm_code
      TESTRUN                       = ' '
      GOODSMVT_REF_EWM              =
    IMPORTING
      GOODSMVT_HEADRET              =
       MATERIALDOCUMENT              =  lf_MATERIALDOCUMENT
       MATDOCUMENTYEAR               = lf_MATERIALDOCYEAR
      tables
        goodsmvt_item                 = it_goodsmvt
      GOODSMVT_SERIALNUMBER         =
        return                        = return
      GOODSMVT_SERV_PART_DATA       =
      EXTENSIONIN                   =
    if return-type ca 'EA'.
          rollback work.
          message id '26' type 'I' number '000'
          with return-message.
        else.
          call function 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
          wait up to 5 seconds.
        endif.
    select * fROM mseg
          INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
                             where mblnr = lf_MATERIALDOCUMENT and
                                       MJAHR = lf_MATERIALDOCYEAR.
      LOOP AT IT_MSEG INTO WA_MSEG.
        IF WA_MSEG-LSMNG IS INITIAL.
          wa_mseg-lsmng = ITab-LSMNG.
          UPDATE MSEG from wa_mseg.
          commit work.
          wait up to 5 seconds.
        ENDIF.
      ENDLOOP.
    ENDLOOP.

    It is been done by implementing one implicit enhancement in FM: MAP2I_B2017_GM_ITEM_TO_IMSEG
    I have added the below functionality at the end of the function module.
    Just i have maped the ERFMG i.e ent_qnt(Received quanity) with LSMNG i.e qty.in del note
    All best for others.
    $$-Start: (1)----
    $$
    ENHANCEMENT 1  Z_EV_IMP_GOODSMOVEMENT.    "active version
    Populate the delivery note quantity and UoM
    IF IMSEG-ERFMG IS NOT INITIAL.
      MOVE IMSEG-ERFMG TO IMSEG-LSMNG.
      MOVE IMSEG-ERFME TO IMSEG-LSMEH.
    ENDIF.
    ENDENHANCEMENT.
    Thanks,
    Mahesh.Gattu
    Edited by: Maheshkumar gattu on Dec 3, 2010 4:35 PM

  • Commercial Invoice in not Popping up during MIGO

    Against One Purchase Order I have performed Planned Delivery cost of imported material with T. Code MIRO for 1000 No Qty.  Now first i have done Goods Receipt of only 500 no and while doing this commercial invoice window popped up (which was generated with Planned Delivery MIRO)
        Now Once again i am trying to perform goods receipt for the Balance Quantity of 500 No.,  commercial Invoice window should pop up. But its not happening.
        Can some body help . Its urgent

    The terms of payment defaulted when posting an invoice depends on where
    the invoice is created.
    1-If the invoice is created in Financials, the terms of payment from the
        company code segment are defaulted
    2-If a vendor invoice is created in Purchasing Management, terms of payment
       from the purchasing organization segment are defaulted. When you post this
      invoice, the terms of payment are copied to the FI invoice (which is created
       automatically

  • MIGO Material document created should be passed to delivery note of migo

    Hi all,
             Please help me in the issue. I need to pass the Good reciept  number created from MIGO to be populated to the delivery note of the same MIGO transaction . how can i acheive this
    Thanks in advance

    hi,
    We may not achieve at the same time but we can use ..
    use the BADI "MB_MIGO_ITEM_BADI". and method ITEM_MODIFY .. while doing MIGO only copy the Good reciept number to the
    delivery note ....Please see the strcutures GOITEM and GOHEAD.
    Regards,
    Nagaraj

  • Make to Order 543 E is not picking during MIGO.

    Dear Friends,
    I am trying to perform Goods receipt against a Subconctracting PO, in a MTO scenario. The components are linked to Sales ORDER (Special Stock u2013 E). I have maintained u20190u2032 in the Individual / Coll requirements field in the MRP 4 view of the component.
    So after creation of PO(Subcon), I am trying to perform MIGO u2013 without issuing components to vendor as 541/E movement type for componenets is not allowed in standard.
    While performing MIGO I am getting the error no stock available with vendor, the system is trying to trigger 543/O movement type whereas I am expecting 543/E to be triggered for the components.
    Can anyone sujjest if there is a way by which the MIGO should trigger 543/E during MIGO.
    MM Consultant, needs help regarding
    Regards,
    Veeran

    Hi,
    So after creation of PO(Subcon), I am trying to perform MIGO u2013 without issuing components to vendor as 541/E movement type for componenets is not allowed in standard.
    you are correct special stock can not issue to vendor directly
    so you have to transfer this stock to own stock first through 411E movement type then issue component to vendor through 541
    then receive stock by 101 O
    Regards
    Kailas Ugale

  • Making delivery note field as mandatory in MIGO

    Hi,
      I have a requirement to make the fieldd "delivery note" as mandatory in MIGO. Any tips on how to do this?
    Thanks!

    Hi
    It is OMJN. Highlight delivery note and click modified tab. You can see influencing fields. Choose transaction code and enter the for which Tcodes this field should be optional/ mandatory etc. Except these option you cannot custumize this field for any other influencing fields like plant/ company code. If you still want check for any validation with help of ABAPer.
    Thanks

  • Excise Part-2 is not getting updated during the MIGO

    Dear Experts,
    When I am doing GR (MIGO), I am selecting the Excise posting transaction in "Excise" header tab as "Capture & Post Excise Invoice".
    But, here after posting the GR, only Part-1 is getting updated. Part-2 is not updating. Moreover, if I try to post the same vendor excise invoice in J1IEX, it is giving the error as " Part-1 not yet posted even though Part-1 is updated. Can any body suggest what is the root cause for the same?
    One more thing is, once I select "Only Capture Excise Invoice" during GR, in the normal process Part-1 is updating and I'll be able to post the Part-2 in J1IEX. There is no issue. But, I can't be able to post the Part-2 during GR.
    Note: I am receiving the goods against with the STO. And, we are paying the customs against with the STO. After paying the Customs Invoice, we are receiving the goods into our manufacturing Plant from logical plant.
    Thanks in advance for your action!!!!
    Regards,
    Satya
    Dear

    Hi Ashok,
    I went through the above note. It explains the causes that why the posting is not happening in J1IEX.
    And, as per the solution that is in that note, if we change the status of that excise invoice from 'P' to Blank in the table J_1IEXCHDR, then Vendor excise invoice will be cancelling.
    So, I guess this can't resolve my issue. Because, my issue is if I select "Only Capture Excise", the Part-1 is updating in MIGO and I am able to post the Part-2 in J1IEX. But, If I select "Capture & Post Ecxise Invoice" in MIGO, then only Part-1 is updating and even I am not able to post the Part-2 in J1IEX also as the status of the Excise Invoice is "Posted".
    And, this is happening frequently during MIGO while selecting "Capture & Post Excise". So, I guess the Function Module / BADI which updates the J_1IPART2 is not getting triggered during MIGO. Once it triggers in MIGO, then Part-2 will be posting in GR itself.
    Could you please let me know the standard FM / BADI which updates the Excise Invoice Part-2 (J_1IPART2). So that I'll check with my ABAPer whether it is triggering or not during the MIGO.
    Thanks,
    Satya

  • Delivery Note Mandatory in MIGO by movement type

    Hello everyone
    I would like to know How I can set delivery note as mandatory in MIGO transaction by movement type.
    Thanks in advance.

    you can not do it the delivery not field by movement type because it is header level field. you can do it by transaciotn but not by movement type
    except you do the custom developement

  • MIGO againts Inbound delivery: Qty in delivery note field

    Hi all,
    I wondered if it is possible to have the field Qty in delivery note in the trx MIGO NOT being populated. When doing a GR against a PO, the field Qty in delivery note is left blank. But when doing a GR against an Inbound delivery this field is populated.
    thanks a lot!

    Becasue the delivery note quanitty field wil be updated from your vendor confirmations controlled through confirmation control key in PO.Lets say your confirmation control key is defined to have an inbound delivery as a vendor confirmation (AB or LA ) for a PO, then the quantity in the inbound delivery will appear in the delivery note quantity in MOGO screen.
    In standard PO, the confirmation quantity from the vendor is recored anywhere and also there is no AB/LA confirmtions in PO, this is the reason the qnty in the delivery note will not appear when you try to book a GR with reference to PO.

  • Validate delivery note number during MIGO

    Hi everyone,
    Pls. I need to validate the delivery note number during MIGO because I need to avoid duplicates entries.
    Thanks for help.

    for this you have to find the user exit through which you can validate the delivery note number, but in some scenario it is not feasible as some companies are sending the partial delivery under same delivery note number so if this is not the case then ask the ABAP to find a user exit through which you can validate the delivery note number.
    regards,
    qsm sap

  • Delivery once billed should not allow again for billing

    HI Friends,
    Delivery once Billed should not allowed for billing again.
    how to solve this, give the user exit if possible
    Thanks & Regards
    T.A.V

    Hi,
    Please ensure that the Copying Requirement routine 003 is assigned at the header for your billing and delivery type in transaction VTFL. Also set up 004 at the item level. I hope this will resolve the issue.
    Regards,
    Murali

  • MIGO - GR Against Purchase Order -  Delivery Note # not to Repeat !!

    Hi all,
    Here is a interesting requirement from the business user!!
    Scenario: Currently they are making Goods receipt against Purchase order in Transaction MIGO. Delivery Note # (LFSNR) is entered during Posting.
    Problem: Recently they did MIGO for Purchase order, by mistake they did Goods receipt twice for same vendor delivery note # !
    Question: Can you please suggest a way to validate the Delivery note # field of MIGO, Such that it is unique. If the number is Repeated for the Same Vendor, system should throw a error message, stating that Delivery note # already exists. So that it avoids posting of GR for same delivery note even by mistake !!
    I thought of validating this entry in MSEG Table, but problem is it will delay the posting of document !!
    Is there a standard user exit or setting to validate this field during posting!!
    Thanks in advance.
    Regards,
    Thiyagu

    Joven,
    If you see transaction VL31, Creation of Inbound Delivery, SAP did the validation for EXTERNAL ID in the Input screen of the Transaction. If we try to repeat the External id #, system throws error message as below.
    "The external ID of the delivery note is not unique (see inb. dely
    0180267952)"  Message no. BORGR547
    When we make Goods receipt against Inbound Delivery instead Purchase order. We may over come the problem some how. Reason is that during Inbound Delivery creation itself External ID is validated. During GR against Inbound Delivery this External Id gets copied as Delivery Note #, so this is the alternative i thought !!
    Thanks,
    Thiyagu

  • Different Migo posted on the same delivery note number with the same vendor

    Hi Experts,
    We are facing a peculiar problem while saving migo in the sytem. The system is allowing to post more than one migo with the same delvery note number with the same vendor code in the same financial year. Ideally shystem should give some informative / error messgage during saving one migo. In our company, we capture party invoice number in the delivery note option. Our problem is more promintent if the vendor is non excisable.
    How to check this problem.
    Regards
    GR

    Hi,
    In Standard SAP, no check is available on "Delivery Note" field for duplicacy. This is only available for "Reference" field in MIRO.
    If you want to have a check on "Delivery Note" field in MIGO then go for some ABAP Development using BAdi or Enhancement Spot "MB_MIGO_BADI".

  • MM - User exit to validate delivery note number

    Hi everyone,
    pls. I need help to find the user exit just to validate the delivery note number during MIGO.
    Thanks a lot !
    Regards.

    >
    Himanshu Verma wrote:
    > Hi
    >  Try with BADI: MB_MIGO_BADI Method PAI_HEADER> structure GOHEAD >LFSNR
    >
    > regards,
    > Himanshu
    himanshu,
    istead of throwing any badi, bapi, enhancement or exit at such a question ... have you ever tried to ask yourself whether you are inventing the wheel again (and for the umptiest time) ... because maybe the solution lies in configuration? how can you come up with a BADI without knowing the process?

  • STO - IDOC INVOIC - MM Receipt on Delivery note rather PO number

    Hi Gurus,
    I'm processing an MM Receipt INVOIC IDOC to create an Intercompany Vendor Invoice against a Purchase order.
    This is integrated in a standard Stock Transfer Order. This IDOC is generated using Output type RD04 from Intercompany billing.
    When SAP creates IDOC, it is based on the Delivery note number rather than the PO number, even I have the PO and Delivery in my PO historic, and even if I have IDOC segment E1EDP02 QUALF 001 with PO and segment E1EDP02 with QUALF 016 with Delivery note.
    I tried to managed PO item flags: "Invoice Receipt Indicator" or "Indicator: GR-Based Invoice Verification".
    But there is no impact.
    When I create the MM Receipt manually using TCode MIRO in reference to the PO. It works.
    When I create the MM Receipt manually using TCode MIRO in reference to the Delivery not. It doesn't work. I got the same error message "Delivery note/service entry sheet xxxx does not exist".
    I conclude that when SAP performs the IDOC, someting in the IDOC tells him to create a invoice in reference to the Delivery note rather than the PO. How can we change it?
    Please, could you help me to understand this blocking point and to allow to create the MM Receipt on PO?
    Many thanks.
    Stéphane.

    hello, friend.
    i am not an expert in MM, but....
    i noticed that when using MIGO, you can do GR based on an inbound delivery, and maybe also an outbound delivery (from STO).  an outbound delivery created in an STO scenario should have links to the STO related PO.  could this be the link you are looking for?
    regards.

Maybe you are looking for