How to find the code in standard transaction from where event is trigered

I have a configuration in SWEC, to trigger an event, when a PR is change
For the Transaction ME52 (Change Purchase requisition), I want to go to the portion of the code, from where the function module for triggering the event is executed.
I have learnt that F.Ms for trigerring events programatically are
1.  SWE_EVENT_CREATE.
2.  SWE_EVENT_CREATE_IN_UPD_TASK.
3.  SWE_EVENT_CREATE_FOR_UPD_TASK
So, I tried debugging the transaction ME52 by setting breakpoints at the following function modules.
1.  SWE_EVENT_CREATE.
2.  SWE_EVENT_CREATE_IN_UPD_TASK.
3.  SWE_EVENT_CREATE_FOR_UPD_TASK.
But none of these were encountered.

Hi Sameer,
Why not follow the reverse approach! First check the event getting triggered and then move backwards to the source of triggering the event.
Activate event trace from SWELS and then check the event getting triggered in SWEL.
I doubt if putting break-points in the FM would help...
Check if the event is being triggered by the BO method.
You can check the where-used list of the method and find out the source of the event triggering.
Hope this helps!
Regards,
Saumya

Similar Messages

  • How to find the code for ECC transaction enhancement (VA02) ?

    Dear experts,
    We have one field enhanced in the VA02 transaction, now we need to find out the logic of how this field is enhanced.
    I am from BI area and not familiar with the ECC side transaction enhancement.
    Can anybody let me know how can I identify where the enhancement program is (like is there any standard user exit/badi for VA02 field enhancement)? Or how can I debug into the enhancement logic of the specific field in VA02?
    Any post will be appreciated, and thank you all for your time in advance!
    Best regards,
    Tim

    Hi Tim,
    It can be a BADI, User exit, Repair, object enhanced using enhancement framework. It would be a good idea to talk to a local SD consultant. They might have some info or documentation. If all this does not work then unfortunately you will need someone to debug and find out where the change was made. And you would need an ABAPer for that. 
    Regards,
    Shravan

  • How to find the job and job status from RSPCM

    hi all,
    suppose we got an error and in rspcm the process was failed.i want to know the status of that particular job.and if any i want to stop that job in SM37.
    plz tell me how to find the job and job ststus from RSPCM...and how to stop that job in SM37
    thanks,
    jack

    Hi Jack,
    RSPCM: T.Code
    This transaction is used to monitor the process chains
    First:
    here you need to add the process chains into the sheet
    Second:
    Then you can monitor the process chains in this transaction code
    Like you can see the :  status ,proces chain ,Last run date ,Last run time ,Log ID
    Status : Green when sucessful,Yellow when running & Red when you get errors
    Now when yoy click on any of the process chain in RSPCM you will go to the LOG VIEW as you see in RSPC transaction
    SM37:T.code
    This transaction is used for Job Overview
    you can see many options in SM37
    like Released,active,cancelled,finished,etc
    Just select the ACTIVE  jobs and also pass STAR in JOB ID & USER ID
    here you can only see the active jobs
    Goto Step in toolbar
    select the program displayed
    then chose option GOTO - Variant in main menu bar
    in the variant you can see the job belong to which Process chain
    if you want to cancel this job come back to SM37 Display screen
    Select the Job and select the JOB DETAILS tab in Tool Bar
    Collect the WIP ( Work Permit ID)
    Go to SM50 T.code and find the WIP
    in Main Menu Bar you find the option Cancel with Core choose this it will cancel the Job
    Regards
    Hari

  • How to save the instance in standard lead from custom business object

    Hi Experts,
              I am unable to save the instance(Record) in standard Lead business object from custom business object.
    Steps:
    created one custom business object with mandatory fields for creating instance in standard lead.
    in quick create screen i bind  data elements to standard lead business object elements.
    issue:
    when i click on preview i am getting exception as Arguments not found
    can you please tell me that How to save the instance in standard lead from custom business object with step by step .

    Hi Vijay,
    Please refer this link under that mentioned that how to create lead using ABSL code
    Web 2 Lead in SAP Cloud for Customer, step by step - Part 1 - myCloudDoor myCloudDoor
    Under the "Action-CreateLead.absl" mentioned how to create lead
    the above link for convert web 2 lead functionality and under they create lead using web data from ABSL code.
    Regards,
    Mithun

  • How to find the number of fetched lines from select statement

    Hi Experts,
    Can you tell me how to find the number of fetched lines from select statements..
    and one more thing is can you tell me how to check the written select statement or written statement is correct or not????
    Thanks in advance
    santosh

    Hi,
    Look for the system field SY_TABIX. That will contain the number of records which have been put into an internal table through a select statement.
    For ex:
    data: itab type mara occurs 0 with header line.
    Select * from mara into table itab.
    Write: Sy-tabix.
    This will give you the number of entries that has been selected.
    I am not sure what you mean by the second question. If you can let me know what you need then we might have a solution.
    Hope this helps,
    Sudhi
    Message was edited by:
            Sudhindra Chandrashekar

  • How to find the WhereUsed List for a Business Object Event?

    How to find the WhereUsed List for a Business Object Event?

    Can anybody let me know how to get which
    Whereused  function will get the data from
    different Werks in multi-level?
    Any sample program please!!!

  • How to find the user-exit for transaction fpp2

    Hi experts,
    could you help me how can I find the user-exit for transaction fpp2. I tried to after the package, but I did not find it.

    Hi,
    Use the following program to find user exits of specified code.
    *& Tables
    TABLES : tstc,     "SAP® Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP® Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
      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 = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    Find SAP® Modifications
        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.
    Take the user to SMOD for the Exit that was selected.
    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.
    I executed the above program but there are no user exits for the specified Transaction.
    Thanks,
    Naveen Kumar.

  • How to find the code which processes idocs

    I am looking for a descriptive short document which would ideally give me comlete picture in IDOC processing, transactions used etc.
    E.g
    My XI sends idocs to an RFC port of an ERP system. All I know is message type FIDCC2(found it in message mapping and under a partner profile ias imput parameter in transaction we20 for a partner profile with rfc destination of its own rfc destination i.e. PR1CLNT001)
    . However in this example I do not find source code which process then this idoc(probably as it is original idoc)?
    How to find the code

    Jan
    You can check the documentation and source code of two reports
    RBDAPP01 & RESOUT00   ( https://service.sap.com/sap/support/notes/1333417)
    https://service.sap.com/sap/support/notes/527481
    Few more IDoc related tcode, we05,bd87 etc...
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0087780d-81b0-2a10-eb82-86e1062f1a2d?overridelayout=true
    Edited by: Anindya Bose on Aug 6, 2009 7:34 PM

  • How to extract the code of standard webdynpro application

    Hi,
    We are on ECC5.0, ERP2004 ESS/MSS ,EP6
    Can someone tell me, How can we get the code of a standard webdynpro application into NWDS.
    ( I am familiar that, to modify the standard ESS applications, we need to use JDI.)
    is it compulsory that , unless and until i have JDI i can't see that code , no other way?
    Regards,
    NR

    Hi Sharadha,
    after installing the JDI, what are the steps that needs to be done to get the code of standard Webdynpro application, lets say <b>sap.com/essinfam</b>.
    Can u post some links where I can get the step-by-step process of calling a Standard Webdynpro ESS application into my NWDS?
    Regards,
    NR

  • How to find the code for a lost Mac App gift card?

    I received a Back-to-School gift card with my purchase of my laptop that had $100 on it back in 2012. I used it once last year to purchase Roller Coaster Tycoon 3 Platinum. I wanted to buy The Sims 2 yesterday, but I had to update the version of OS X I had to run the program. I had to wait overnight to let it update since I had school in the morning. Long story short, the card somehow disappeared over night and I've been searching like crazy this morning to find it. To no avail, it didn't show up. I was wondering if there is any way I could find the code somewhere since I had made a purchase on it a while ago. I was able to view the purchase through iTunes, but I wasn't able to find a code. It's already been redeemed on my Apple ID and everything. All I need is the code. Any help, please?
    I have a MacBook Air and the update I just installed was OS X Yosemite 10.10.1

    I know the amount left on it, which is about $60. The issue is I'd like to use my card again, but I lost it and I need the code on the back to use it again. When I tried to make the purchase, it wanted me to reenter the code despite that the gift card was already redeemed on the account.
    There was no expiration date on the card and my account is still showing the amount left on it.

  • How to find the user exits and BADIS from SPRO

    Hi all,
    please let us know how to find the User exits or BADIS for an application from SPRO.
    Regards,
    Madhavi

    Hi Varisetty,
    Finding user exits and BAdis from SPRO can be cumbsersome. In most instances you know the standard SAP program and want to check (find) an exit called in the flow of the transaction. You can do this as follows:
    For User Exit:
    Put "/h" in the command box (to start debugging)
    Execute your transaction
    When you enter debugging - put a breakpoint at statement
    CALL CUSTOMER-FUNCTION
    the control will stop at all calls to User Exits
    For BAdi (it's simpler)
    Go to class CL_EXITHANDLER in SE24
    Enter method GET_INSTANCE
    Put a breakpoint in this method
    Run your standard transaction - control will stop at all BAdis called within the flow since this method is used to check BAdi implementations before invoking them
    Also, if you want to find enhancements by package - go to SE80, enter the package and check function groups starting with X - those contain function exits (conventional user exits). For BAdis in a package, there is normally a separate tree node (under the package) for Enhancements hence clearly identifiable.
    Cheers,
    Adi

  • How to find the table in which data from a structure sits

    Hi,
    I want to know how to find the exact table where data sitting in various structures during runtime are stored.
    For instance,in ME23N we have various tabs and data in those are held in various structures. This we can see by checking the technical setting of each field.
    I want to know in which table the data is actually stored for each field and how to find them.
    Any other means other than using "WHERE USED" option?
    Thanks
    CM

    After checking for technical field from the screen, when you reach out to structure, you can dbl click on the particular field's data element. From this data-element you can get to know in which tables it is used. Also if the data element refers to some master data field then you can check out its domain and in the domain you can refer the<b> value table</b> for that domain. This is what i will do if i am not sure about anything.
    Hope it will help a little.
    Jignesh.

  • How to find the ocuurence of a word from LIST A in LIST B in a text file?

    Hey if you look at the text file there is LIST A and LIST B.. i need to find the ocuurence of a word from LIST A in LIST B. Eg: if my output is (1,3)
    then first word from LIST A occurs in 3 places in LIST B.
    Can you please get the sample code to do this process.
    Please let me know..
    My text file looks like this below :
    phrases.txt
    LIST A
    aamsz
    abaffiliate
    aboard casino
    above computer
    above pop
    above violat
    LIST B
    http://209.153.231.131
    HTTP/1.0 200 OK
    Server: Microsoft-IIS/5.0
    Date: Mon, 02 Feb 2004 11:53:26 GMT
    IISExport: This web site was exported using IIS Export v2.2
    IISExport: This web site was exported using IIS Export v2.2
    Content-Length: 274
    Content-Type: text/html
    Set-Cookie: ASPSESSIONIDSSDBBBAR=OOGFKOJBMKMDCGPIHPADALHB; path=/
    aboard casino
    Cache-control: private
    abaffiliate
    above computer

    The key difference is that Vector is synchronized whilst ArrayList is not. Synchronized means that the classes methods can safely be accessed by different threads and as your application will not be multithreaded then the ArrayList is possibly the better option.
    To store Strings in an ArrayList, you first need to declare the ArrayList object something like this;
    ArrayList<String> listAList = new ArrayList<String>();and you would obviously do something similar for the ArrayList that will hold the Strings that should belong to List B.
    The first thing to note is that you can use the new (well new in version 1.5 anyway) generics techniques to specify the type of the object the ArrayList will hold; Strings in this case.
    To add a value into the ArrayList once you have read it from the file and decided if it belongs in the List A or List B ArrayList, all you need to do is call the add() method of the ArrayList something like this;
    // Assume that you read the line from the file into a variable called temp;
    listAList.add(temp);To compare the two lists, the easiest option would be to iterate through one ArrayList and ceheck to see if the values you recover from it are duplicated in the other ArrayList. Luckilly, ArrayList has another method that helps here, it is called contains();
    Assuming that you have two ArrayList(s), one called listAList that holds the Strings that belong to List A and another called listBList that holds the Strings that belong to ListB, you could do something like this to check for duplicates;
    for(String element : listAList) {
        if(listBList.contains(element)) {
            System.out.println("Found a match");
    }Hope that helps.

  • How to find the count of Daily transactions?

    Hi all,
    ThankQ for your help and suggestions for my previous questions. I have a new query now.
    I need to find out the number/count of transactions that happen each day. Please let me know if any database view or any things needs to be enabled.
    Thanks in advance.
    Regards,
    Sagar Maram

    v$log_history will still have entries but if there is no log switch happend between these hours then this select will not provide any result see below:
    SQL> SELECT 'DATABASE', 'Total transactions in last 24 Hrs',
    2 TO_CHAR (MAX (next_change#) - MIN (first_change#), '9,999,999,999')
    3 FROM v$log_history
    4 WHERE TO_DATE (first_time, 'DD/MM/RR HH24:MI:SS') >
    5 TRUNC (SYSDATE, 'HH24')
    6 - 1;
    'DATABAS 'TOTALTRANSACTIONSINLAST24HRS' TO_CHAR(MAX(NE
    DATABASE Total transactions in last 24 Hrs
    Result from v$log_history, the datbase is in noacrhivelog mode:
    select * from (SELECT to_char(FIRST_CHANGE#),FIRST_TIME,to_char(NEXT_CHANGE#) FROM v$log_history order by 2 desc)where rownum <10
    TO_CHAR(FIRST_CHANGE#) FIRST_TIM TO_CHAR(NEXT_CHANGE#)
    3421207734803 03-SEP-09 3421208397050
    3421207130708 28-AUG-09 3421207734803
    3421206412579 27-AUG-09 3421207130708
    3421206327917 27-AUG-09 3421206412579
    3421206320613 27-AUG-09 3421206327917
    3421206303828 26-AUG-09 3421206320613
    3421206147995 26-AUG-09 3421206303828
    3421206126217 26-AUG-09 3421206147995
    3421206101088 26-AUG-09 3421206126217
    TRUNC (SYSDATE, 'HH24') - 1--This will provide exact 24-hours before time but it may happen that first change is at 23:30 hours before, so transaction within that half hour will not be reported by above query. What is your take on this?
    Regards.

  • How to find the Name of Infoset either from Query Name or Program Name

    Hi,
    I ahve got the program name from the Transaction code of the Query. I also found out the name of the Query but I could not find out the name of the "Infoset". Please help me to find out the name of the Infoset either from the Query Name or from the Program name.
    Thanks,
    Jans

    Hello Christian,
    Thank you for your reply. Actually. We have got transaction name of report and from that we found out the name of the Program and from that Program we have utilised the FM to find out the Query name. But we are unable to find the name of Infiset as we have to Download this Infoset from DEV and it is to be uploaded into QUALITY.
    But we are not sure about the Infoset.
    I could not understand your sentence "When Open it".
    Regards,
    Jans

Maybe you are looking for

  • Error while navigating across the pages in Weblogic portal 10.3

    I'm using the content managemnt in Weblogic Portal 10.3 to display the tabs in the portal application. I have multiple pages in a book and am trying to display these pages as tabs in the application instead as a different level of menu. I have achiev

  • Serious problems using for the Airports and any devices like the new iPod or iPad 3 after installing Airport

    I know this sounds crazy but I recently installed an Airport express and an Airport Extreme, I worked on it for several days and everything seemed to finally working like it should using manual configurations so it is all right as far as function goe

  • JTable resize header (and change mouse in between headings)

    Hi, I notice that i have the ability to resize my headings in the JTable but is there a way to get the mouse pointer to indicate something similar to what Excel does when you put your mouse over the divide (between two heading cells)?

  • SQL*Plus Install Problem (Ora-12705?- - -)

    Hi, I bought a guide to sql featuring Oracle by phillip J.Pratt published by course Technology include Oracale8i Personal Edition realease 8.1.5 for Microsoft Window 98 and Oracle Developer 6.0. I follow the documentation to install. I think i got ri

  • Hide or disable buttons in the ribbon

    How do you hide a button for a specific library?   I'm trying to hide the Upload Document button.  Users still need to be able to create new documents, just not upload them. The solutions I've found are saying to create a Site Feature.  But wouldn't