MIGO- Number of external delivery note "LFSNR"

Hi all,
we use R/3 4.7 release.
Is it possible to activate a check which permits to restrict the usage of that field in MIGO one time for each vendor preventing the possibility to double entry a Goods receipt?
Your answer is appreciated
Thanks in advance
Vir

Hi,
I checked in ECC 6:
Try the BADI MB_DOCUMENT_BADI - it includes a method that is activated before saving the material document. You can run a select from MSEG before saving and in case of double issues - notify the user.
Nir

Similar Messages

  • ERS user exit, pass Delivery note(LFSNR) in MIGO to Reference(XBLNR)in MIRO

    Hi Experts,
    I need to assign Delivery Note(LFSNR) in MIGO, to field Reference(XBLNR) in MIRO. that means "Reference " field must contain the delivery note information instead of Invoice doc number.
    how can i use component MRMH0001.where can i use?
    i am new to user exits.
    please help me. i need logic and steps.
    Thanks in advance
    Reward points will be given.
    Srinu

    hi
    Overview
    R/3 provides three "customization spots" that allow you to enhance FI/CO features without modifying the standard code. Although often collectively referred to as "user exits," two of the three have different names. SAP Enhancements are used to expand the standard functionality within SAP. Enhancements use function modules and are called from the standard SAP code. Each module in the system has a set of delivered enhancements that help companies expand the standard functionality where they need it. Enhancements were new in release 3.0.
    The Open FI Interfaces or Business Transaction Events are also used to expand the standard functionality within SAP. These events are defined in the IMG. Business Transaction Events were new in release 4.0. They are not available for all modules and are not called on all integrated transactions into FI as of release 4.5B. This will change with each release and should be retested.
    The older User Exits in FI/CO are "Z" programs that are defined in table T80D for client-dependent user exits, and in table T80I for client-independent user exits. These are also used to expand the standard functionality within the FI/CO modules. These User Exits have been available since the early releases of SAP. All of these FI/CO User Exits are listed in this document in the Configuring User Exits (Older). The list is included because these User Exits are not a part of the Enhancements or Business Transaction Events and do not have an Info System for searching.
    Benefits
    • Standard SAP functionality can be enhanced without modification to the standard code.
    • Upgrades do not erase the functionality and it does not have to be re-transported or re-entered into the system. The enhancements should be thoroughly tested when upgrading to ensure the system will still work as implemented.
    Configuring SAP Enhancements
    Basic Steps in Configuring an Enhancement
    • Find the appropriate Enhancement.
    • Enter the ABAP code in the "Z" program within the function module.
    • Create a project.
    • Add the Enhancement to the project.
    • Activate the project.
    Example Business Scenario for Enhancements
    Company A has a requirement to validate all customer master records created with a U.S. address. The U.S. entity reports on the industry field on the customer master. This is only a U.S. requirement and should not be required for the other countries, so the field status would not work. To accomplish this requirement, Company A will need to set up an Enhancement for the customer master transaction. The necessary steps are detailed below with screenprints. This example was configured in a 4.6C system.
    to find the suitable exit for ur requirements check the following program
    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    write the code in the right form and check by keeping a break point
    HI
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    also check the following links
    User Exit
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    <b>Please do reward if useful</b>
    Regards
    Dinesh

  • Serial Number assignment in Delivery Note for Make-to-order

    Hi experts,
    In our current design, we have made it obligatory to enter the serial number in the delivery note for make
    to order stocks.
    We are also implementing PP and we would like to capture
    the serial number specified in the production order and
    automatically populate the serial number in the delivery.
    Any suggestions on how I can do this is greatly appreciated.

    Hi Karun,
    Thank you for your kind advice all the time. 
    I have been looking into it but the LIPS structure does not contain the serial number field...
    I have been looking for the routine in the copy control
    but have no luck finding such routine...
    Thanks for your continuous help and assistance.

  • Partner number from external catalog not transferred to SC

    Helo All,
    I dont see a partner no in 'ET_SC_PARTNER' in BAdi 'BBP_CATALOG_TRANSFER' when I transfer external catalog item to SC. Is there any config that has to be done to get the vendor number in SC?
    Any kind of help is rewarded.
    Thanks,
    Chandra

    Hello Chandra,
    Please check your external catalog transfers NEW_ITEM-VENDOR value. If the external catalog is single supplier catalog you can maintain Business Partner in catalog ID detail customizing.
    Regards,
    Masa

  • How to Copy Inbound delivery number in MIGO Delivery Note (GOHEAD-LFSNR) ?

    Hi all,
    I'm Creating the GRN based on Inbound Delivery and i'm looking for the option by which i'll be able to copy Inbound Delivery number in Delivery note Field (GOHEAD-LFSNR).
    Is it Possible.....How....
    Regards
    S Anand

    Hello,
    Delivery note filed in MIGO is for Number of External Delivery Note. If you enter External ID in Inbound delivery then it will copy the same in MIGO.
    Regards,
    Shailesh

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

  • 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

  • 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

  • Material slip Number on Delivery note?

    Hi all,,
    I have a requirement to print the Material slip number on the Delivery note. Where can I find this information in VL02/ VL03.. Some one please let me know the variable that holds this information.
    Thanks-

    Try LIKP-XABLN, GR/GI slip number, its the same..

  • Packaging material showing on delivery note

    Hi Sap Gurus,
    Could any one help me out in this issue on Packaging material number showing on delivery note.
    determination is based on masterdata
    Could any one help me out in this issue
    Thanks and Regards
    Edward

    if i right understand you...try to check the following:
    find out.det.proc. running  V/73 for your item cat
    run V/36 for your out.det.proc
    goto Control and find your out.type
    run V/34 for your out.type
    goto Processing routings
    do you have correct Form there?

  • 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

  • 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

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

  • 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

  • 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

  • How to use Time Machine with newly cloned source disk?

    I've got an iMac (10.6.8) which I'm using with a Time Capsule and Time Machine. Recently, the iMac's internal disk started to fail. Instead of going through the effort and expense of replacing it in a fairly old computer, I added an external FireWire

  • Headphone port not working

    today i was using my headphones and they were working, i can back half an hour later to use my headphones again and the  port stopped working. ive tried other headphones and it still doenst work. my sound plays out lound.

  • Getting URL redirects from Google's "I'm Feeling Lucky" Search

    Hello all! I'm working on my final project for my intermediate programming class but I've hit a bit of a snag. This project is a "do whatever interests you, as long as it incoporates what we've learned this semester" type of project. (My personal fav

  • Mouse cursor issues (changes back to arrow)

    I keep having this annoying issue with the cursor of my mouse. It works just fine for a while, but after few hours (usually working with PS, Illustrator etc.) there is this thing happening - if I want to resize a window, an Illustrator object, or if

  • Premiere CC audio crackle and non-playback

    Has anyone else seen in 7.2.1 and 7.2.0 when scrubbing or stopping and starting, the audio will either crackle or just not playback at all?  It's not consistent but fairly easy for us to recreate.  We're playing out of a Mac Pro (early 2012) 40Gb of