Problem while calling the user exit

Hi All,
In one of the program one user exit is called. Before this user exit ther is one FM . If I copy the same function module with a new name Z* , this user exit is not getting triggered. The program is going till the point where CALL CUSTOMER-FUNCTION '001' IS written but after that it's not going inside the user exit. But if I put back the original FM , this suer exit is getting triggered and it's gong inside the exit. I've activated the Project for this user exit also. As per our requirement I've to copy the original FM into Z* FM.But my doubt is when I put back the original FM , this User Exit is getting triggered whereas when I copied this FM it's not working .
Anybody could helpme out why it's happening ?
Thanks
Alok

Srinivas,
Yes it's related to the other post where I had to copy one standard Function Pool.While copying the function pool I copied the FMs also.This problem is coming out of one FM ,when I changed this to Z* at the place where it is called, the user exit which is written inside that FM is not getting triggered even though program is reaching till the point where this user exit is called .
Any clue ?
Thanks
Alok

Similar Messages

  • Determine which validation step called the user exit, possible?

    Hello all,
    We have a a validation with different steps that use the  same user exit in their respective check.
    My functional analyst asked me if there is a way to programmatically determine in the user exit which step is executing the user exit.
    So I am asking the same question here.
    As an example:
    Validation FI100 has step 001,  002, and 003.
    Each of these steps use the user exit U100 from module pool ZGGBR001 in their check.
    I haven't found a way in the code of U100 to determine which step called U100.
    Does anyone know if this can be done?
    I have used the following technique to get a variable from the program's call stack.
    data: var_name(30) type c value '(Z_CALLING)VARIABLE' .
    field-symbols: <fs> type any.
      assign (var_name) to <fs>.
      write: / 'Variable from Z_CALLING', <fs>.
    But I'm not sure how this might work with validation steps/user exits.
    Thanks
    Bruce

    Vinod,
    I did some debugging after I posted my question.  I came to the same solution, use FM 'SYSTEM_CALLSTACK'.
    VALCHCK_2FI100##001
    loop at i_callstack into w_callstack
                        where EVENTNAME+0(9) = 'VALCHCK_2'.
    FI110 is the validation
    001    is the step
    Thomas,
    Thanks for the caveats. 
    Bruce

  • Problem while calling the FM FP_JOB_OPEN

    Hi All,
    I have a scenario where i need to attach multiple Forms(Adobe) to a work flow container.
    While calling the FM 'FP_JOB_OPEN', i am passing the required parameters as below
    wl_outputparams-nodialog = 'X'.
    wl_outputparams-connection = 'ADS'.
    wl_outputparams-dest = 'LP01'.
    wl_outputparams-getpdf  = 'X'.
    the problem is that i get a Print preview pop-up even though i pass Nodialog = 'X', and more over after calling the actual Form function module the resultant parameter 'fpformoutput-pdf' is only filling up only after i process the print preview dialog and see the preview. other wise the field 'fpformoutput-pdf' is blank.
    as i need to do this work in back ground(for work flow background step) i do not want the print preview pop-up window.
    can some one help me in this regard.
    PS. For multiple forms i tried calling the form functions modules in between every FP_JOB_OPEN n FP_JOB_CLOSE
    as well as a single FP_JOB_OPEN and calling the multiple form function modules and FP_JOB_CLOSE.
    thanks in anticipation .
    Srinivas

    @koolspy      
    Yes, i did specify the settings in the o/p options.
    in addition to this, after debugging i could able to see some issue when calling form name via  FM 'FP_FUNCTION_MODULE_NAME', in this FM it is appending '_IN' to the generated FM name and trying to check for existence check, obviously there wont be any FM as it is appending '_IN' to the generated FM.
    but when calling the generate FM after FP_JOB_OPEN it is throwing sy-subrc = 1, which is Usage error.
    Why is it behaving weirdly, is there any thing i am missing while calling the Form?
    please help as this is on high priority
    thanks
    srinivas

  • Problems while calling the webservice published at XI end

    Hi ,
    I have published a webservice at the XI end and to test it I am calling the webservice from xmlspy .
    I do get the popup for username and password in the xmlspy for the adapter but it fails to send the data to the webservice .
    I even checked the SOAP adapter status in the RWB and its grey. and the installed and started option of adapter monitoring the soap adapter is not shown .
    Can anyone through some light as to what can be the reason behind this .
    is it the problem with the adapter or the webservice
    Thanks
    Nikhil

    HI Ricardo ,
    I have tried that but still I am getting the below error.
    <b>java.lang.Exception: Channel not found for :SIEBEL_DEV:SIEBEL_SOAP in SOAP
         at com.sap.aii.af.mp.soap.web.HelperServlet.processFindChannel(HelperServlet.java:420)
         at com.sap.aii.af.mp.soap.web.HelperServlet.doGet(HelperServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    </b>
    any other Ideas.
    Thanks
    Nikhil

  • Can the user exit  EXIT_SAPMM07M_004 be called from an FM exit in my code?

    Hi ,
    When I create a Goods Receipt by tx MB1C , an MM adapter(FM user exit) is kicked off in my workspace creating documents wrt to that goods receipt.However if a batch does not exist during MB1C , it says that a batch would be created.But when i do a save , the user exit is kicked off before it returns to the SAP code to create a batch.As a result no MM documents are created in my workspace.Now I want that the batch be created while in my user exit and I want to implement the customer user exit EXIT_SAPMM07M_004(for copying the batch characteristics) .Is it possible to call this exit from my code?Kindly suggest.

    > When I create a Goods Receipt by tx MB1C , an MM adapter(FM user exit) is kicked off in my workspace creating documents wrt to that goods receipt.However if a batch does not exist during MB1C , it says that a batch would be created.But when i do a save , the user exit is kicked off before it returns to the SAP code to create a batch.As a result no MM documents are created in my workspace.Now I want that the batch be created while in my user exit and I want to implement the customer user exit EXIT_SAPMM07M_004(for copying the batch characteristics) .Is it possible to call this exit from my code?Kindly suggest.
    Can you call the user exit? - Yes ofcourse.... but why dont you just add the same code that is in your exit instead of calling the user exit?
    User exits are developed and called from appropriate places where sap can take the changes and apply to the transaction. there is no restriction on calling the user exit (atleast programmatically) but you need to think 100 times before you call the user exit.
    For example, you want to call user exit 'A' in your program because you want to use the code in this user exit in your program '1'. Why dont you just write the code in program '1' with what is in user exit 'A' ?
    Calling user exit in your program does not really helps. Better find out different ways. once again, user exits are embedded in sap business applications and remember they are not independent FM's as you think
    Good luck

  • How to find the user exits called at the time of posting the IDOC?

    Hi,
        Could anyone please how to find the user exits while posting a idoc?

    Hi,
    One way to ahive this is by, be ready with IDOC postiong,
    then go to ST05 transaction and activate the trace after checking Table Buffer Trace.
    Now post the IDOC then deactivate the trace.
    Now come back to ST05 and display trace and search for calls starts with EXIT_.
    Regards,
    Manoj Kumar P

  • Find the user exit while creation and change of sales order

    Hi Team
    Below mentioned requirement , in which user exit i have to put below logic while creaion and change of sales order?
    u2022     The logic for the user exit to explode should consider the following assumptions and validations
    o     Customer master to have the entry at KNVV-KVGR1
    o     Material master to have the entry at MVKE
    o     UoM in the Sales order item (VBAP- VRKME) should be = Pallets PAL or tonnes (TES)
    o     Should have more than one line item or number of line items with UoM PAL or tonnes TES should be > 1
    for example :-->
    Product A with Scales mentioned below
    Product A     Quantity / Scale     UoM     Price(£)
         0-10     PAL/TES     20
         11- 20     PAL/TES     10
         21- 30     PAL/TES     5
         31-40     PAL/TES     2.5
         >41     PAL/TES     
    Product B with Scales mentioned below
    Product B     Quantity / Scale     UoM     Price(£)
         0-15     PAL/TES     25
         16-20     PAL/TES     20
         21- 30     PAL/TES     15
         31-40     PAL/TES     10
         > 41     PAL/TES     5
    u2022     Product A (qty 10PAL) + Product B (qty 15 pal) ordered in a single order with 2 line items.
    u2022     The expected results should be
    o     Product A qty 10 + B qty 15 added = 25Pal
    o     The system user exit should add the total number of pallets on the order line items and point towards the respective scales, so in this example prices against each line item should be the respective price against 25 Pal = 5£ for product A per pal and £15 for product B.
    Thanks in Advance.
    Puneet.

    Hi Team
    Below mentioned requirement , in which user exit i have to put below logic while creaion and change of sales order?
    u2022 The logic for the user exit to explode should consider the following assumptions and validations
    o Customer master to have the entry at KNVV-KVGR1
    o Material master to have the entry at MVKE
    o UoM in the Sales order item (VBAP- VRKME) should be = Pallets PAL or tonnes (TES)
    o Should have more than one line item or number of line items with UoM PAL or tonnes TES should be > 1
    for example :-->
    Product A with Scales mentioned below
    Product A Quantity / Scale UoM Price(£)
    0-10 PAL/TES 20
    11- 20 PAL/TES 10
    21- 30 PAL/TES 5
    31-40 PAL/TES 2.5
    >41 PAL/TES
    Product B with Scales mentioned below
    Product B Quantity / Scale UoM Price(£)
    0-15 PAL/TES 25
    16-20 PAL/TES 20
    21- 30 PAL/TES 15
    31-40 PAL/TES 10
    41 PAL/TES 5
    u2022 Product A (qty 10PAL) + Product B (qty 15 pal) ordered in a single order with 2 line items.
    u2022 The expected results should be
    o Product A qty 10 + B qty 15 added = 25Pal
    o The system user exit should add the total number of pallets on the order line items and point towards the respective scales, so in this example prices against each line item should be the respective price against 25 Pal = 5£ for product A per pal and £15 for product B.
    Thanks in Advance.
    Puneet.

  • Difference between the different structures while dealing with User-Exits

    While dealing with User-Exits, we come across the different structures/Tables like XVBAP,YVBAP,TVBAP,IVBAP,*VBAP....
    What is the difference between them ?

    Usually X<tablename> and Y<tablename> are used in change document management to determine records updated (Y is old values and X new ones).  (Look at transaction SCDO)
    T<tablename is an internal table read from database and I<tablename> is an import table parameter of the same structure. <tablename> is an equivalent of <tablename> declared with statement TABLES and contains usually the "old" value.
    Look at exit documentation. start at [User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm]
    Regards

  • Error while calling the EAI Viewer

    Dear all,
    I am working on Document Management System ECC 6.00
    I am able to upload a PDF document in to the system, but when i save it and try to call the document back it is giving me the folllowing error."Error while calling the EAI Viewer" But when i try to open the same in the next PC it is opening. the work station application which i have defined is EAIWeb.webviewer2D.1 %SAP-CONTROL% for the application .pdf.
    Kindly suggest what will be the problem as it is not opening in my PC but opening in an different PC with the same user name.
    Kindly suggest.

    Hi Kishuz  ,
    ECL Viewer comes with SAP
    It is Engineering client viewer, which works for files like *.jt(jupiter technology), *.pdf(acrobat), *.dwg(autocad), *.step, *.iges
    with ECL viewer you can view files like dwg without having Autocad Installed on your machine.
    Alos it gives redlining feature...
    thus layers help in indicating the modifications needed or commenting on the drawings...
    Now the procedure for installation,
    1. Install the latest SUN JAVA version. The path could be <b>c:\program files\java\</b>
    2. While installing SAP GUI, ensure that the ECL component is not selected from R/3 Add On.
    4. Install ECL Viewer 5.1.2 on local machine.
    5. Ensure the path is as follows :(C:\Program Files\Common Files\SAP Shared\System or C:\Program Files\Common Files\SAP Shared\System\Java )
    6. Ensure that the following files are in the <b>c:\program files\java\1.5.0_08\lib\ext</b>
    folder:
    - VisWebS.jar,
    - VisWeb.jar,
    - eaisupport.jar,
    - eaisupportS.jar
    - version.ini
    - vctk.ini
    In case, please copy the mentioned files from <ECL Install DIR>\java.
    (C:\Program Files\Common Files\SAP Shared\System or
    C:\Program Files\Common Files\SAP Shared\System\Java )
    Reward points if useful...
    regards
    Niranjan

  • Accessing Global data in the User exits.

    Dear All,
    I want to change some fields by using the user exit "EXIT_SAPLPC61_001" for Tcode ( 1KEK ) The fields which I wanted to access are global variables, so I couldnt able to access it .so  I used field symbol and did the change  ,by calling (SAPLPC61)t_fod[] .
    But Once I change the fields and put the record back to its memory , it just posting only 2 records instead of 50 records ..
    What I understood while debugging is,  it starts the first loop and goes to user exit and change the global variable values , once the value gets changed instead of going to second loop , the loop ends ..
    we got fifty records but it just shows only 2 records as posted .
    Just throw me some lights on this issue
    Thanks
    Vivek.

    Hi VRMan,
    I do not think it's possible to use Global Variables or Functional Globals in custom Express VIs. Is there a reason why you might want to use global variables/functional global in Express VI that you've created? Perhaps you want to try just passing data to the Express VI through the connector block.
    Regards,
    Stanley Hu
    National Instruments
    Applications Engineering
    http://www.ni.com/support

  • To differentiate in the user-exits what transaction has executed first

    Hi,
    I have a problem,
    For transactions Iw32 y iw34 EXIT_SAPLCOIH_006 user-exit  are called up  when a maintenance order is updated
    from any of two transactions.
    I want to differentiate in the user-exits what transaction has executed first (origin) because sy-tcode in both cases contains  iw32 ' because IW38 transaction calls UP always to the transaction iw32 for update of a maintenance order.
    thank´s
    Regards.

    If that is the case, and the IW32 is begin called from IW38 via some batch input mechanism, then maybe this code will work.  You can wrap your code in this IF statement.  Here we are saying that we only want to do this when the tcode is IW32 and it is not being called in batch input(call transaction) or called by another program.
    if sy-tcode = 'IW32'
      and sy-binpt = space
      and sy-calld = space.
    endif.
    Regard,
    Rich Heilman

  • When the User exit EXIT_SAPLL03T_002 would be triggered?

    Hi All,
    When the User exit EXIT_SAPLL03T_002 would be triggered?
    As per my understanding which would be triggered while confirming the transferorder (LT12). but In which conditon it will be triggered?I am unable to find out. if any one find the solution please pass ur inputs ASAP.
    thanks in advance,
    chandran.

    Hi,
    WHen the "Update SAPML03T transfer orders"  is done..This user exit will be triggered..
    Since the user exit is in a update module..If you put break-point it will not stop...
    Enable the UPDATE DEBUGGING..It will process all the update modules..
    Check when the FM L_TA_QUITTIEREN is called....You can debug through your code..
    Thanks,
    Naren

  • Finding the user-exits of a SAP transaction code

    Hi All,
    Can any one tell me how to find the user exits related to particular transaction code?
    Regards,
    Prem

    Dear PremKumar,
    *Please Search SDN Before posting any thread the question you have asked is already available since you are new to SDN and for your reference iam pasting the code copy paste the same code and execute and give the TCODE then it will list out all the exits.
    *REPORT  ZUSEREXIT.
    report zuserexit 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.
    Can you closse the thread if your problem got fixed !!!!
    Cheers
    fareed

  • To get the user exits and modification points

    Hi Experts,
    I am able to find all user exits for a particular transaction,but is there a way to find it for some specific actions alone.
    Need to find the user exits and enhancement points that are called while clicking a specific button in a standard transaction.
    Your help is highly appreciated.
    Regards,
    Sridevi

    Hi
    To find out the userexits at position where you need you should see the description of the USER EXIT.If you find that it is close to the point where you want then put up a break point inside it and re - run the transaction.
    Also you can check SDN post to find out your user exit.
    FOR BADI -
    1 )You can put breakpoints at method GET_INSTANCE of class CL_EXITHANDLER and  CALL FUNCTION statements.
    2) You can run through SPRO transaction for the particular Functional area and understand the available exits or BADIs .
    Regards
    Gaurav

  • Locking Problem while calling BAPI

    Hi ,
    I am calling a BAPI in my wd appln . if there is some problem while executing the bapi like posting period not open then i am displaying the error of the BAPI . but after that i see in the locked tables through SM12 some tables gets locked .
    so when i call the BAPI again it gives me error like the following tables are locked by the user... so is there any way by which i can release the locks hold by the bapi if problems occurs.
    Regards
    Yash

    Hi Yash,
    Try the command ROLLBACK WORK if the error occurs.
    This will remove all locks set by the BAPI.
    Regards,
    Jos

Maybe you are looking for

  • Inconsistencies between sidebar and desktop for disk images

    Hi; I'm tweaking my settings to keep just those things visible that I want to have visible, and I have noticed that a mounted disk image is treated differently by different parts of Finder Prefs. In the General tab of Finder Prefs, I make a mounted d

  • Using a database field in Condition

    Hi, I have created a subtype of BUS1065 (ZBUS1065) and added three new attributes; 1-) Job Key reading from IT0001 2-) A (check) field indicating if the new employee is eligible for health insurance (SAGLIKSIGORTASI), reading from a customer table wi

  • Need Technical flow of switch document creation

    Hi Experts, I am new to IS U and IS U CRM. I want to write a technical flow for the below requirement. When Quotation is created in CRM an contract is automatically created and switch document is generated and replicated in IS U System. How this swit

  • Caller 70 is missing time out (short dump)

    when I was trying to load transaction data into cube , it was failed the error message was : short dump : caller 70 is missing I checked in st22 , it shows that <b>time out</b> . when check in r/3 side , extraction was over and job was finished. data

  • Change the name from Portal Favorites to Portal Favourites

    Hi, There is a requirement that where ever in Portal, the name of Portal Favorites should be changed to Portal Favourites. So when I add something to Portal Favorites in Portal, then there we get Organize Entries in the context menu and opening this