User  exit  needed (Problem related to duplicate batch entry in Migo(GR))

Dear all,
              I need a help from you.we facing problem in Goods receipt in MIGO.
where we want to apply a check on batch which has already been assigned to a raw material in MIGO  .we are using manual
batch entry .we don't want to make duplicate entry of same batch
against any material.
I tried to find out the user exit for that but i have not succeed .
what is solution to
avoid duplicate batch entry.

Transaction Code - MIGO                     Goods Movement
Exit Name           Description
MBCF0002            Customer function exit: Segment text in material doc. item
MBCF0005            Material document item for goods receipt/issue slip
MBCF0006            Customer function for WBS element
MBCF0007            Customer function exit: Updating a reservation
MBCF0009            Filling the storage location field
MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011            Read from RESB and RKPF for print list in  MB26
MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
No of Exits:          8
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.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal

Similar Messages

  • Correct user exit need for vl32n - post goods receipt.

    Sorry this is not the correct forum . SO please don't look in to this
    For vl32n , upon "Post goods receipt" button click, I was  writing code in "mv50afz1" ...Basically in the  "mv50afz1" program, I am clearing the value of batch(charg) and the same batch value I am assigning to vendor batch(am doing by moving xlips-charg value to xlips-lichn).
    But the thing is my logic should be written in one of the userexit before this user exit( Why because  SAP generates one batch on it's own and assigns that to batch if it the batch field in vl32n is space - If batch field is not space SAP's generated batch won't be assigned - So I need to make the batch value space in vl32n upon click of "Post goods receipt" button to allow assignment of SAP's batch).
    So could you please suggest me is there any user exit available for this ? 
    THANKS.
    Edited by: sam kumar on May 8, 2009 7:22 PM

    I am sorry this i snot the correct forum.

  • User Exit needed at PBO for transaction code CAT2

    Hi all,
    I'm enhancing CAT2 screen for the client. I've created a new field for CAT2 -> Data Entry Section and have made that field visible via config. I would like to implement a search help for my new field and would like to manipulate the search help via abap code. I understand that there's a whole list of CAT2's user exit that can be used. However, i need an user exit that is triggered before the Data Entry Section screen appear which is the PBO. I'm not allowed to modify the SAP Standard program and therefore i'm using the user exit.
    I've tried SAP Enhancement CATS0005 but it is not triggering my ABAP Code before it enters the Data Entry Section screen. Kindly assist to advice is there's any particular User Exit that i can use for my purposes or another workaround.
    Regards,
    Loo

    I don't think there is one, but you may either implement an implicit enhancement option (routine GET_NEXT_NUMBER in program SAPLSTRD), or make a custom program which creates transport requests (it is then easier to get the number).

  • User exit/BADI for changing the exchage rate type in MIGO

    Dear guru's,
    Please help me in finding the user exit/BADI to change the exchange rate type in MIGO.
    Regards,
    Abdul Rahim

    did you check this one MB_GOODSMOVEMENT?
    also exchange rates needs to be changed at Purchase order level and those will be reflected while creating MIGO.

  • What is user exit to update individual length in batch master?

    Hi,
    We need some help on user exit. We are using     MILL production, SAP_MILLCA_LENGTH_SUB.
    May I know what is the user exit will be called when we perform good issue to production order (movement type 261)?
    We need to customize some logic to update the individual length in batch master.
    Any sugession?
    Thanks in advance.

    Hi,
    You can do this things by maintaining  material classification with characteristic by length or breadth.So at the time of GR you have to maintain the characteristic field and by the help of batch search strategy you can get the relevant batch.
    You search extensively in google you can find proper documentations for the same.
    Regards
    AKS

  • User exit in order related IC billing

    Hello,
    we implemented note 63549 and all related notes to make order related IC billing run through output RDIV and program RVIVAUFT.
    We have a problem to find a clever way to realize the user exit KOMKBV3_FILL, which should perform a check on cross company transaction and fill consequently field CROSS_COMP, to be used in the output requirement 018. At the moment when the system runs this userexit the customer invoice has not been posted yet and only header fields are available, so it is not possible to go back through doc flow and check for instance plant company code vs sales rog company code. Any suggestion?
    Thanks

    Hi,
    Another way is to make a validation (OB28) and do your checks there.
    Regards,
    Eli

  • Me23n user exit dynpro problem

    Hello Everybody,
    I'm developing a user exit for me23n transaction. I have added a tab in which i have some fields i want to fill, but i'm having the next problem.
    when i enter in the me23n transaction,  i push the edit button and those fields appear on editable state, but when i modify the values and push save the fields the fields continue in editable state.
    I have tried to solve this problem in the catching the MESAVE action in the pai of the me22 and calling leaving to the transaction me23 with the vnew values but it's not working. Any ideas?
    Here is the source code ( dynpro 111)
    process after input.
      field ekpo_ci-zzref_alb.
      field ekpo_ci-ZZFECH_DES.
      field ekpo_ci-zzeqveh.
      field ekpo_ci-zzmatricula.
      field ekpo_ci-zzeqtar.
      field ekpo_ci-zztarjeta.
      field ekpo_ci-ZZCENTRO_SER.
      field ekpo_ci-ZZREF_FACT.
      field ekpo_ci-ZZCLIENTE.
      field ekpo_ci-ZZPAIS.
      field ekpo_ci-zzdoc.
    module user_command_0111.
    module USER_COMMAND_0111 input.
    if sy-tcode = 'ME23N' and sy-ucomm = 'METOGG'.
    leave to transaction 'ME22N'.
    endif.
    if sy-tcode = 'ME22N' and sy-ucomm = 'METOGG'.
      leave to transaction 'ME23N'.
    endif.
    if sy-tcode = 'ME22N' and sy-ucomm = 'MESAVE'.
    sy-ucomm = 'METOGG'.
      leave to transaction 'ME23N'.
    endif.
    Thanx

    Hi,
    Check the code below:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    id = '0001'
    language = sy-langu
    name = sname "sales doc is given here
    object = 'VBBK'
    TABLES
    lines = tlines.
    if not tlines is initial.
    LOOP AT tlines.
    CASE sy-tabix.
    WHEN 1.
    ztable-field1 = tlines-tdline.
    WHEN 2.
    ztable-field2 = tlines-tdline.
    WHEN 3.
    ztable-field3 = tlines-tdline.
    ENDLOOP.
    UPDATE ztable SET field1= ztable-field1
    field2= ztable-field2
    field3 = ztable-field3
    WHERE vbeln = vbak-vbeln.
    ENDIF.
    endif.
    Regards
    Kannaiah

  • User exit message problem

    hi all
    i am giving an error message in a user exit the error message comes as a pop up and moving ahead takes me out of the transaction i seriously donot want this.
    even worning messages are coming as success ones
    is there a way out for giving error msg
    regards
    navjot

    Post details of the transaction code you are trying to issue the message in, and of the exit you are using.
    Often transactions have multiple user exits, and you may be using the wrong one to issue the message.
    In some cases like Purchase Orders you need to call SAP code / macros to add the message to a list of messages that the standard screen will then display.
    Andrew

  • User-Exit/Badi/Funtion Module for update Batch in transaction CORK

    Hi Gurus,
      when an IDoc 'Z' is executed to do a confirmation using the FM CO_RU_ORDER_CONFIRMATION, the values of transaction CORK are modified.
      I'd like to update the field batch number so when you enter a process order in transaction CORK and then you click on Components, you'll see the list of component and the batch number updated throught the custom IDoc.
      Does anyone knows any user-exit or Badi or maybe a FM to implement so when the first confirmation is done, the batch numbers are updated?
    Thanks in advance.

    Hi,
    You can copy and paste the Report code below. This will give the list of User Exits and BADIs available for the Transcation code. Very usefull program.
    Below code will give a list of BADIs for particular transaction.
    =============START
    *& Report ZNEGI16 *
    REPORT ZNEGI16 .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    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,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    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 in ('SMOD', 'SXSD')
    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:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.
    ================END
    <b>Reward POints if this helps.
    Manish</b>

  • MIRO - Invoice Party - User Exit needed

    Hi,
    I have a requirement like this....
      On MIRO tcode, the i need to put a condition if the user gives a Inv Party (3rd tab 'Details' on Header data of MIRO screen) other than the defalut one (vendor which comes by default with the PO)
    <u>Inputs to MIRO are :</u>
    1. invoice date on first tab of header data
    2. Existign PO number in Purchase Order/Scheduling Agreement ( just below the header data block
    3. in 3rd tab of header details (Details tab), on Inv.Party field, it takes the vendor number by default when we give the 2nd input (PO number)
    Can any body tell, which function module exit to work with ?
    PLEASE DO NOT GIVE ME the list of exits and badis by executing the ZUSEREXIT program.
    I have already done this.
    I would like to know which user exit to select out of this total exits.
    Thanks for your Help
    "Share and Learn"

    Hi Ali,
    My requirement is like,
    the user should not be allowed to give the Invoice Party field - value as different from the one different from the vendor number which already assigned to the PO while PO Creation.
    Please read the query in this thread for more details.
    I have found the list of exits, for MIRO, by executing ZUSEREXIT, and i got a list of exits and one BADI. But I am not sure which Exit will work for my requirements.
    ========== xxx ============
    Please, also tell me, how to identify the exact 'function module exit' which suits to our requirement, from the set of all exits displayed after executing ZUSEREXIT program.  (approaches/methods , u follow to identify)
    Thanks

  • EDI - IDoc - User Exit - Code - Problem - Help - Wanted

    Hi EDI Experts,
    I have extended ORDERS05 IDOC twice.
    ZVKSEG1 is the the segment under extended idoc ZVKORDRS05. This is for one partner.
    Z1DATESH01 is the segment under extended idoc Z1ORDER05. This is for another partner.
    I have completed the configuration thing in WE82 for both the extensions.
    Now the requirement is, whenever a PO is created for the first partner - 100290, the IDoc generated should contain the extra segment ZVKSEG1 and whenever PO is created for the second partner - 10099,the Idoc generated should contain the extrasegment Z1DATESH01.
    Using WE20, i have added the extended IDoc type in both the partner profiles under ORDERS message type.
    Now i've written the user exit for this using EXIT_SAPLEINM_002.
    tables: edidc.
    data: z_edidd like edidd occurs 0 with header line.
    data: y1dath01 like z1datesh01.
    data: yvkseg1 like zvkseg1.
    if edidc-rcvprn = '10099'.
    z_edidd[] = int_edidd[].
    loop at z_edidd.
    if z_edidd-segnam  = 'E1EDK01'.
    read table z_edidd  with key segnam  = 'Z1DATESH01'.
    if sy-subrc <> 0.
    y1dath01-DELDATE = sy-datum.
    clear z_edidd.
    z_Edidd-sdata = y1dath01.
    z_Edidd-segnam = 'Z1DATESH01'.
    append z_edidd.
    endif.
    endif.
    endloop.
    int_edidd[] = z_edidd[].
    elseif edidc-rcvprn = '100290'.
    z_edidd[] = int_edidd[].
    loop at z_edidd.
    if z_edidd-segnam  = 'E1EDK01'.
    read table z_edidd  with key segnam  = 'ZVKSEG1'.
    if sy-subrc <> 0.
    yvkseg1-name1 = 'ZVK Chemicals'.
    clear z_edidd.
    z_Edidd-sdata = yvkseg1.
    z_Edidd-segnam = 'ZVKSEG1'.
    append z_edidd.
    endif.
    endif.
    endloop.
    int_edidd[] = z_edidd[].
    endif.
    Could you please go through the code and tell me where did i go wrong. The extra segments are not being created for both the partners.
    I created PO using ME21n once for each vendor.
    Please help me out guys.
    Thanks,
    Matt

    I myself fixed this problem. I made use of XLFA1-LIFNR to manipulate the partner numbers.
    Thanks

  • CRM Badi or user exit needed

    I need a user exit or a badi that would fill zfields in CRM based on the data arriving from ERP.
    any idea experts? then mail me details.
    [email protected]
    Thanks.

    Narasimha,
    SMOUTIL3 is one user exit.
    This one is called after the Bdoc is generated. The user exit does not allow to modify the Bdoc contents. however depending on the contents of the BDOC custom fields can be filled. This user exit can also be used to modify Z tables
    I have used it for one scenario. Sending the documentation of it to you.
    Hope this helps.
    <b> <i> IceCube </i> </b>

  • User Exit---Include problem

    Hi all
    am creating a user exit ZFF67 and in the the enhancement assignment am giving as F40K0001.But when i go back and after saving and activating am going to the function module and there in the source code am double clicking on   INCLUDE ZXF40U01 but am getting a warning meessage
    Program names ZX... are reserved for includes of exit function group.Am getting the same error even if am trying to create some other user exit.If its a BASIS issue and if you know the solution.Please do help me
    with regards
    Vijay.

    Hi
    Press ENTER..
    That should be only warning: the system are saying to you you're creating an abap object reserved for enhancement, but it's what you have to do.
    The system can't know you want to create an include for an exit, because you're in abap editor while doing the doubleclick.
    So you can go on.
    Regards
    Kiran Sure
    *P.S--Close the Duplicate Postings..

  • User exit needed

    Hi all,
    i have to provide some user's to change the sales order related stuff, in VA02
    transaction, i have searched this forum but get confused in which user exit should
    i write my code.
    Please suggest me the required user exits.

    Hi Srikant,
    here is the difference between these two user exits
    FORM USEREXIT_FIELD_MODIFICATION -> by using this user exit you can enable/disable any screen fields
    FORM USEREXIT_SAVE_DOCUMENT_PREPARE -> changes or checks, before a document is saved.    
    Please see this wiki link for better understandings about user exit.
    SAP Library - System Modifications

  • User exit needed for KDMAT (customer-material number )

    Hi! I need to find a user exit for filling in the customer-material number (KDMAT) in the Sales order. If there is not a cutomer material info record, the filed should be filled in with the Old material number from the Material master (MARA-BISMT). Does anyone knows such a user-exit.
    Thanks

    You can try with any of the following sale order user exits
    -  User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
    -  User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAP
    -  User-Exits in program MV45AFZB - USEREXIT_CUST_MATERIAL_READ
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Questions on Connection Pooling

    I already read the documentations on data-sources.xml, but I still have questions. In the following data-sources.xml (for OC4J 9.0.3): <data-source class="com.evermind.sql.ConnectionDataSource" name="ccf" location="jdbc/ccf" xa-location="jdbc/xa/ccf"

  • Document ype restriction in FBL5N for particular user

    Hi  all, I have a requirement where in we have to restrict document.type in fbl5n....... clients wants to give authorization to particular user only .They don't want to go for screen variant option.... i have define authorization group in oba7 and in

  • Get Delay from MD4C Report

    Hi All, I have been trying to use FM  MD_SALES_ORDER_STATUS_REPORT to get the Total Delay, Unit of delay and Icon delay from the MD4C report. The FM runs properly with valid data provided but for any input I have not been able to get the ET_MLDELAY t

  • Images with Transparent Backgrounds.

    I would like to have an image with a transparent background, so that any image underneath will show through. I know that this can be done with watermarks, but I would like the flexibility to move the image around on a book page background. Is this po

  • Kernel Panic on MacBook Pro, brand new.

    HI! I have done a lot of research on the kernel panic. It happens on Safari, and I have done all I think I can do based on what I have read on these forums. (PRAM, reinstall OS, repair permissions, ditch safari prefs, etc) Another odd thing is that i