How to find Program or transaction is already running

Hi ,
How to find one program or transaction already running in background or foreground ( any user).
this is very useful to me , to avoid double time running the same program or transaction.
Thanks in advance
regards,
Moon
Moderator message: FAQ, please search for previous discussions of this topic.
Edited by: Thomas Zloch on Apr 21, 2011 10:15 PM

Hi Goldmoon,
Please search before posting. There are many threads available regarding this.
Kesav

Similar Messages

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • How 2 find program for smartform

    how 2 find program for smartform

    Hi,
    go to TNAPR table and find the driver program for the layout.
    give the layout name, if you know the output type also give it.
    OR
    go to se71 and go to the layout , check the text elements syntax then it will show the possible driver programs in the window to choose.
    that way you can find..
    Or else...
    Go to the Tcode -> NACE
    OR
    Go to the T-code 'SMARTFORMs'
    Give your form name
    go to the general attributes.
    Check the Package name.
    then go to T-Code-> SE80
    there check the program name for a package wise
    Regards,
    KK
    Message was edited by:
            Kishore Kumar Karnati

  • How to find Program Name by Recording name

    Hi,
    How o find program name ? for example i have recording(SHDB) name is:ZVA01REC.
    i want to find the respective porgram for that recoring?
    Thanks and Regards,
    Anu.

    Hi Anitha,
    "No it's showing standard program name like:SAPMM06E
    but actual program name is:ZBDCME22."
    SAPMM06E is the program the recording runs
    ZBDCME22 must be an additional program that someone must have created for running the recording.
    There is no way for u to find a program for a given recording (this is only a one way trafic; recording -> program create; not visa versa)
    your best bet would be that search in se38 for programs starting with ZBDC* and then check the short text. may be the person who made it was kind enough to update the short text with teh recording name.
    Hope this was of some help.
    Regards,
    Sagar.
    Edited by: Sagar Mehta on Nov 12, 2008 10:00 AM

  • How to find out the transaction size

    Hai
    Is it possible ,how to find out the size of transaction ?
    Any one idea about this should be appreciated
    Regards
    mohan

    Hai
    Is it possible ,how to find out the size of transaction ?
    Any one idea about this should be appreciated
    Regards
    mohan create a small rollback segment to start with, with small initial and next extent sizes and maxextents unlimited.
    assign this rollback segment to the test session and run the particular transaction.
    query the view v$rollstat to see how much the rollback segment has extended.
    this is roughly your transaction size. this may not accurate but its give you
    a general idea of how much data is generated.

  • How to find the Business Transactions involved by a Business Partner

    Hi all,
    My requirement is :
    i wanted to delete some Business Partners, we have only Opportunity Management implementeed.
    i have taken one BP and removed the Opportunites which are involved. then tried to delete that BP, but i'm getting the message as " Business partner xxx still used in business transactions"
    could any help me out, how to find what are all the Business transactions involved/ assigned to a BP ?
    Thanks
    Ven

    In sap gui use transaction crmd_order. For 'Find' option set 'All'. For 'by' set '2 Customer'. in field 'Buspartner' type the number of customer. Start the search and you will get all transactions.

  • How to find BAPI for Transaction Code

    Hi everyone!
    I'm just wondering how to get the name of the corresponding BAPI for a given transaction code - is there a way to search from within SAP?
    When I open transaction "BAPI", I can create a list of BAPIs. But how can I find information about transactions - let's say XD03?

    If you mean that you need to know what BAPI's a particular transaction uses, follow the below said example.
    Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this.
    1. Start va01 go to system-->status 
    2. Double click transaction VA01 
    3. Double click on package 
    4. Read the application component. (this is SD-SLS Sales) 
    5. Then open the transaction BAPI 
    6. Sales and distribution>Sales>sales order 
         createfromdat2 
    Hope this helps you to find a BAPI for a particular transaction.
    Regards,
    D.Veeralakshmi

  • How to find tables from transactions

    Hi All,
    Please tell me in which tables I can see customer heirarchy(i.e.VDH2N)? I would like to know all tables in which heirarchy 1 ,2 and 3  is stored?
    Also let me know how to find table names from transactions or after going to transaction screen?
    Thanks
    Yogesh

    Hi,
    Please check table KNVH.
    Also you can use BAPI BAPI_CUSTOMER_GET_CHILDREN to get child customers for a customer.
    FORM get_child_customers USING iv_cust_no TYPE kna1-kunnr.
    * BAPI to get the all Child Customers of the current Customer
    CALL FUNCTION 'BAPI_CUSTOMER_GET_CHILDREN'
    EXPORTING
    valid_on = sy-datum
    custhityp = 'A' ( Customer hierarchy type 'A', ... etc.. )
    node_level = '00' (node level)
    customerno = iv_cust_no ( customer number )
    TABLES
    node_list = gt_output. ( get the child customers in the list)
    ENDFORM. " get_child_customers
    Regards,
    Ferry Lianto

  • How to find program which created the session

    Hi friends,
    can anybody tell me, how to find out the program name that as generated   perticular batch session in SM35.
    I have session name and i want to find out the program which created the session.
    Thanks in advance.
    Saya

    Hi Saya,
    Check table <b>TBTCO</b> and<b> TBTCP</b> to know about the program created by a session.
    Give Job name to TBTCP-JOBNAME and get report name in the field TBTCP-PROGNAME.
    Thanks,
    Vinay

  • How to find CRM Business Transactions - Error Messages

    Hi,
    Can any one help me in how to find the error messages in CRM for the given Object No. and status code combinations from CRM_JEST table.
    There is a transaction available SLG1 to see the errors, but i wanted to create a separate report which shows the error messages for the given object number and status code combinations.
    Regards,
    Kumar bly

    In sap gui use transaction crmd_order. For 'Find' option set 'All'. For 'by' set '2 Customer'. in field 'Buspartner' type the number of customer. Start the search and you will get all transactions.

  • How to Find Out the Transaction No?

    I only have the initiator name and id.  This is the only information details that I got from my client.
    I don't know when he initiate it also.
    Is there a way that I can find out the transaction number initiated by using only the initiator id/name?

    Hello,
    I assume you're talking about workflows and you want to know the workitem id?
    To find workflows started by a certain user, you can look in table SWWWIHEAD
    where type = F and WI_CRUSER = username (without the US).
    regards
    Rick Bakker
    Hanabi Technology

  • How to find out obsolete transaction codes?

    Hi,
    Is there any way we can find the obsolete transaction codes in a system.
    Thank you.
    Regards,
    Soumya

    You can try using these tables.
    PRGN_CORR2
    RODIR.

  • Firefox and Thunderbird get locked into 'processes' which means I can't open either program because it is 'already running' - I asked this B4 but I crashed and lost bookmark.

    After I open Firefox or T-Bird, use it and then close it it stays running in 'processes' when I open Task Manager. When I try to open it a 2nd time it won't open because it's 'already running.' When I check Task Manager I find it listed twice in processes but can only 'end process' for one of the two instances. Then I need to restart the computer B4 I can open Firefox for a second time. I posted this previously but my PC (Win 7 Prof, 64 bit with 4 AMD processors and 8 GB of memory) crashed, I had to reformat the hard drive and hadn't backed up or printed out my bookmarks, so I can't find my way back to the area where 3 people said they had the same problem.

    Thank you. I just downloaded it on Tuesday but I'll uninstall it and reinstall it tomorrow. I haven't been to bed since getting up Tuesday morning and I'm going to shut this baby down and get there. Thanx for your help. -Bob Miller

  • How to find out if a process is running or not

    Hi
    I need to find out if a process is running or not in my system
    If it is running i Need to stop the process
    Can anyone help me with this.

    ctrl+alt+delete and look at the processes that are running on your system. I usually click on the memory headerbar so it sorts them my the process that is using the most memory. :-)

  • How to find vi reference to reentrant vi running

    I launch some compy of a reentrant vi that run untill the caller vi stop it setting the STOP button trough an invoke node at "set control value".
    If i abort the executioin of the caller vi how can i retrive the reference of the running vi to stop them?

    You will need to create a cache of references to the Reentrant VIs when you launch them. You are using VI Server to launch them, right? This means that you have access to the references at the time of instanciation, so you can create a tool (queue or something) that stores a copy of the refnums.
    Good luck,
    -Jim

Maybe you are looking for

  • Memory upgrade on Satellite NB10t-A-102

    Hello, on NB10t-A-102 I want to change the memory and increase in 8GB or 16GB Can we make this change?

  • Why is it do hard to get a straight answer on Mac security?

    I have the latest OS, Yosemite.  I don't download anything illegally or use software I don't trust.  I basically only use my computer for personal reasons and limit what websites I go to and visit.  I have gone to the apple store and talked to the st

  • Validation for Project defination and project profile

    Hello, I have to create validation for Project Definition and Project Profile.User requirement is when the project (Exp: Z/0120) is creating with project profile Exp: Z0001_Z system should allow , If user is trying to select other than this profile s

  • OSB - Holding lock SOAP/http

    Hello, Have problem. Web service call via osb (WS Client -> [ OSB Proxy Service -> OSB Business Service ] -> WS Server) blocked thread: Stack Trace : <May 27, 2010 3:58:51 PM MSD> <Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '13' for

  • N8 with Anna, internet browser issue

    After Anna upgrade was installed in my N8, I can´t find how to "select" text in the browser, maybe I am in some website, and I need to change what I have entered in the "search" field (like in Google).   Any help is really appreciated.  Thanks