User Exit related problem

I have created one user exit for transaction CO02 .We acn navigate on different screens . My user exit works when you click on save button .
But now problem is when you click on save button of on different screen first time it wont work . But if you go to main screen of CO02 and return back to other screen it works what may be the reason .
thank you in advance .

hi ragha,
it is because the exit u used is allocated for a particular transaction..
check it in SMOD .. give the exit name to see the documentation..
thats the reason it doesn't work in the other screens..
<b>reward if useful..</b>
Message was edited by: Ashok Kumar Prithiviraj

Similar Messages

  • 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

  • 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

  • BADI/USER-EXIT related to product hierarchy

    Hi All,
    I am a technical consultant and i got this requirement.
    -When creating sales org views for a material the field MVKE-PRODH has to be initialized with the value of MARA-PRDHA field.
    -When updating MARA-PRDHA, all MVKE-PRODH must be updated by the system. (for all Sales Organization / Distribution Channel which exists for the material)
    And my client is using sap retail version. I am not able to find any relevant user-exit but i found one BADI named 'BADI_MATERIAL_REF' it is working fine for at the time of creation of material but it is not working for material updating.
    So please let me know either user-exit or badi or any other technology which solves my problem.
    Thanks in advance.
    Thanks & Regards
    Naveen Koppolu

    Hi Christian,
    I checked in MABW table my test material does not exist in thas table. And regarding MVKE-PRODH in T130F these are the following entries:
    Client             800
    Field name         MVKE-PRODH
    Field sel.group    090
    CCode              004
    Maint. status      V
    Propose            X
    SpecFieldSelGrp
    Classification
    Checkbox
    Field group        GR_V
    Restr.matl cat.    1
    Copy               X
    Incl.init.vals
    Lock-relevant
    Actually for my requirement i found one badi 'BADI_MATERIAL_REF' , but the problem is it is working only at the time of creation only its not working at the time of change material. If the above BADI works at the time of change material also my purpose will be solve. So please let me know is there any customization requires for that problem ( If BADI will call at the time of change of material also ).
    Or any another BADI or User-Exit solves my problem.
    I am once agian pasting my problem below:
    - When creating sales org views for a material the field MVKE-PRODH has to be initialized with the value of MARA-PRDHA field.
    - When updating MARA-PRDHA, all MVKE-PRODH must be updated by the system. (for all Sales Organization / Distribution Channel which exists for the material)
    Regards
    Naveen Koppolu
    Regards
    Naveen

  • 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

  • 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

  • BADI / User Exit related to FB02/FB03 Transactions

    Hi All,
    I have a requirement to make the field Reference Key 2 of FB02 transaction editable , right now the field is not editable .
    To reach this field
    1 .Goto transaction FB02 , enter the doc number, comp code and fiscal year press enter .
    2. In the next screen double click on any one of the line Item .
    3. Now in this screen click on the More data button on the application tool bar . You can see the Reference Key 2 (BSEG-XREF2) .
    Please let me know how to proceed with this .
    Regard's
    Sudheer V

    Transaction Code - FB02                     Change Document
    Exit Name           Description
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    No of Exits:         14
    Transaction Code - FB03                     Display Document
    Exit Name           Description
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    No of Exits:         14
    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

  • 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 Related to number range

    Hello
    Can u suggest through user exit.it possible to change number range.
    if is it than mention the user exit

    hi,
    you can change number range for materials using this exit.
    MGA00002.

  • User Exit related Credit check

    HI All,
    I have createed one sales oreder, initailly credit check status is NOT APPROVED, i have released SO manually  from t-code VKM3 . then the status has changed to APPROVED.
    if change the sales order through VA02 on the same day status is not changes(still APPROVED status, this is fine),
    is we change next day(from creation date) credit status is NOT approved..
    what user exit is triggering the second block to happen.
    we are chnaging bulk sales order, which iare comnig frm Legacy system.
    Regards,
    DSK

    Thank you,
    Can u explain some more detail?
    How do i check whether VL10C triggers this exit in OVA8?
    Actually , it is triggering for VL01N or VL02N but not triggering for VL10c.
    And Will there be chances like , it triggers sometimes and not sometimes based on any condition?
    Regards
    Ramakrishna L

  • User-exit for problem req cretaion

    Good morning!!
    i want to pass some data from project to a purchase requisition, does anybody know a user-exit in purchase requistion creation?,
    Thanks in advance

    hai,
         ya you can do it by using the enhancement componet MEREQ001, in that select function module EXIT_SAPLMEREQ_005 can be used for urchase requisition creation, change also.

  • User exit EXIT_SAPMM06E_016 problem

    Hi,
    I am doing some modifications to EXIT_SAPMM06E_016, include ZXM06U41 and I am having some trouble. I have a validation for the GL account used. When it fails validation, I want to issue an error message.
    What I do is I go to ME32K then enter an agreement. Once in the agreement, I click a line item (i.e. Item 10) and then click the button Account Assignments. Since the GL account used is incorrect, it fails the validation. Therefore an error message should be triggered.
    The problem is that the error message is displayed as a pop-up and when I press the OK button, it will exit to the SAP Area menu. What I want it to do is to exit to the screen where I selected the line items of the Contract.
    Is there a way of having the error appear in the status bar (bottom) of the screen instead of having it displayed as a pop-up box?
    Note: I did the same validation to EXIT_SAPMMO6E_012, include ZXM06U43 and it seems to work fine there.
    Thanks.

    This exit is a PBO exit ("Export Daten zum Kundensubscreen für Einkaufsbelegposition (PBO)" which export data for customer fields) use the PAI exit EXIT_SAPMM06E_017 ("Export Daten zum Kundensubscreen für Einkaufsbelegposition (PAI)") where error messages are allowed; It can only improve things.
    Look at documentation of Enhancement MM06E005 Customer Fields in External Purchasing Documents and online documentation for MESSAGE statement
    Regards

  • Please provide user exits related to billing in NP10 transaction

    Hi All,
    My requirement is that after entering in np10 transaction, after giving institution and case and choose display it wil take you to case overview list , select one of the case list and click on invoice  and choose cancel tab button then  in cancel  date
    the system date has to be populated ,as the it is a production issue.
    Regards
    subba

    Subba,
    you might want to review the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], especially paragraph Step1 as well as item 1 of this paragraph
    - Why is Nobody Answering my Question?
    There may be a variety of reasons:
    1) Never assume that you are entitled to an answer. Remember: this is a community forum; people have jobs just like you and respond voluntarily. Perhaps nobody knows the answer.
    2) Did you give the other users enough time? Don't be impatient. If the question is u.rgent, go to the official service channels.
    3) Is your subject misleading? your post in the right forum? your problem description understandable?
    In short, this is a voluntary forum and no official maintenance or consulting channel.
    anton

  • Enhancement or user exit related to Pricing

    hi,
    pls let me know any enhancement or userexit is presented for the VA21/VA22 related to item conditions for the structure related to KOMP.

    In the program MV45AFZ4 , search for the form 'FORM USEREXIT_MOVE_FIELD_TO_KOMP'

  • MM Related User Exits

    Hi,
    When i want to search for a particular user exit related to Purchasing, Inventory Management and Invoice Verification. Where can i find them ? ie Menu Path
    Or anyother simple search strategy is possible.
    Regards,
    R. Dillibabu.

    hi,
    Copy the beloe code and create a se38 program to find list of user exit for a transaction.
    *& Report  ZTEST_USER_EXIT
    REPORT ztest_user_exit NO STANDARD PAGE HEADING.
    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).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST   SCREEN.
    Regards
    Alfred

Maybe you are looking for

  • How to create multiple objects within a class

    I have a item.lvclass which has an item.ctl (contains a cluster of class private data).  I need to add another object (item2.ctl) within that same class so that I can reuse the code for that class. So how do you create additional objects within the s

  • Windows 8.1 pro update from 8 pro error message 0xc0000017

    Creating a dedicated thread: I'm having a problem trying to install windows 8.1 pro from windows 8 pro with an ssd and separate drive.  8 gigs of ram and 19GB free space on the SSD. Here is the error message I get upon reboot from app store installer

  • MDM GDS

    Hi, Do we need to know java programing to work on GDS Console. Thanks, MS Reddy

  • Problem wuth sap* password in client 066

    Hi, I have jsut finish to install solution manger 4 on linux and i'm doing the post installation opération. I have try to connect in client 000 and 001 with sap* and ddic and all is ok. But with the client 066 i can't login with sap* ( i have enter t

  • Keeping track of participants for previously completed activities?

    Looking for best practices for handling "rejection paths" in an approval process. Given a simple approval process: 1) Initiator submits item 2) Section mgr approves or rejects 3) Division approves or rejects 4) Office Mgr approves or rejects 5) user