How to list current transactions?

Hi,
Is there a select statement or package that can display the current transaction(s) based on user?
Best Regards,
Brian

This may not be exactly what you want, but Tom Kyte has a script that's a good place to start:
http://asktom.oracle.com/pls/ask/f?p=4950:8:620539::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:767025833873,%7BV%24Transaction%7D
(you'll have to straighten the URL out yourself. sorry)
rgds, APC

Similar Messages

  • How to list current password policy

    Hello all,
    This is my first post here. I just finished the DBA Workshop 1 course and my company is migrating from 8i to 10g.
    Our primary DBA is on vacation and before he left asked me to look at the new 10g install he did in our test environment. I noticed on the OEM there were some policy violations and I'm using MetaLink and hopefully this forum to resolve them.
    What I would like to do is query my 8i instance for the current password policy and apply those to our test 10g instance. Can anyone provide a query to retrieve this info?
    Thanks,
    Bill

    What I would like to do is query my 8i instance for the current password policy
    Can anyone provide a query to retrieve this info?connect as sys
    in Oracle 8i and issue the command;
    select object_name,object_type from all_objects where object_name like '%PASS%';
    and
    select object_name,object_type from all_objects where object_name like '%POLICY%';
    I think , i'm not sure these policies would be transfered to 10g through migration except -if any- some of them are obsolete to 10g!!!!!
    Regards,
    Simon

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • How to get the current transaction variant ?

    dear guru,
    could you please tell me how to get the current transaction variant?
    i tried the following method:
      DATA l_tcvariant TYPE tcvariant.
      CALL 'DY_GET_TX_VARIANT'
         ID 'VARIANT' FIELD l_tcvariant.
    but it failed.
    best regards.
    zj

    Try something like this
    DATA:  VARIANT LIKE SHDTVCIU-TCVARIANT.
      CLEAR VARIANT.
      CALL FUNCTION 'RS_HDSYS_GET_TC_VARIANT'
       IMPORTING
         TCVARIANT                     = VARIANT
    *     FLAG_CLIENT_INDEPENDENT       =
    *     RC                            =
    *   TABLES
    *     T_SCREEN_VARIANTS             =
    *     T_INACTIVE_FUNCTIONS          =

  • How fill r/3 transaction field with current property value of user profile?

    Hi Experts!! I
    have a transaction iview ("sap_transaction_iview") currently pointing to a R/3 transaction. I want to use the "application parameters" iview field to pass a variable value to the R/3 transaction. We need to pass R/3 userID that we store in property department of portal user profile. Thus, we need to pass dinamically a value as part of name/value pair in application parameter.
    How can do achive that?
    Thanks in advance to all for your advices and help.
    Best Regards,
    Rosa Ferrando

    Hi,
      I think this blog should help you do it. Create a java class or portal project. You can create iView from par then.
    How to launch SAP transaction & pass parameters via URL
    Here in the same component, you can try getting the user profile attribute and pass it on to this url.
    Here is another link about the same topic.
    Passing a parameter to a transaction iview
    Regards,
    Harini S

  • How to Read the GUID of the current Transaction.

    Hi
    I am writing a new Function Module, which i will use in the Search Help. I need to process the data using this Function Module. For the same, i need to read the data from the current Transaction. I will be using CRM_ORDER_READ for the same. However, i need to READ the "Header_Guid" before.
    Can anyone help. How to read the GUID of the current Transaction?
    Thanks and Regards
    Jaideep

    Hi Jaideep,
    From where you are going to call this FM ? Are you planning to Implement some BADI or from some BSP application ? If from BSP application then code will look something like this.
      DATA: current           TYPE REF TO if_bol_bo_property_access.
      DATA: dref              TYPE REF TO data.
      DATA: lv_guid           TYPE crmt_object_guid.
    FIELD-SYMBOLS: <l_data> TYPE data.
    IF iterator IS BOUND.
        current = iterator->get_current( ).
      ELSE.
        current = collection_wrapper->get_current( ).
      ENDIF.
      TRY.
          dref = current->get_property( 'GUID' ).          
        CATCH cx_sy_ref_is_initial.
          RETURN.
      ENDTRY.
      ASSIGN dref->* TO <l_data>.
      CLEAR: lv_guid.
      lv_guid = <l_data>.
    and you will have the current transaction guid. Since I am not sure at what point of time you are trying to get the guid so I have given you the code at the context node BTADMINH level.
    Hope this will give you some idea.
    Thanks,
    Vikash.

  • How can I find transactions using list of field names

    Hi,
    I do have some field names . I wanted to know how can I find the list of transactions that uses those fields in SAP?
    Regards,
    Aman

    Aman,
    It will be hard work, take the where-used list from SE11 for program, function groups and etc.
    Take the object name and go to SE80 and check in the tree if it has any transaction assigned.
    regards,
    Alexandre
    It

  • How to check whether  entity has been persisted in the current transaction

    Hello,
    I am porting functionality which relay heavily on lifecycle of the entity.
    For example methods like these:
    * returns true if the instance has been modified, deleted or newly made
    * persistent in the current transaction
    public boolean isModified(final EntityObject entity)
    public boolean isDeleted(final EntityObject entity)
    For some of these callsI have found how to port them to toplink und just want to validate that this is the right way:
    protected static UnitOfWork getUnitOfWork(EntityManager entityManager) {
    return ((JpaEntityManager) (entityManager.getDelegate())).getUnitOfWork();
    public static boolean isModified(EntityManager entityManager, Object entity) {
    UnitOfWorkChangeSet set = getUnitOfWork(entityManager).getCurrentChanges();
    ObjectChangeSet oset = set.getObjectChangeSetForClone(entity);
    return !oset.getChanges().isEmpty() || oset.isNew();
    public static boolean isDeleted(EntityManager entityManager, Object entity) {
    UnitOfWorkChangeSet set = getUnitOfWork(entityManager).getCurrentChanges();
    return set.getDeletedObjects().keySet().contains(entity);
    but I did not find how to do following with the eclipselink:
    * returns true, if the given entity object has been persistet during the
    * current transaction
    * @param entity
    * @return true, if the given entity object has been persistet during the
    * current transaction
    public boolean isPersistent(final EntityObject entity)
    Questions:
    - how can I check whether the entity is persistent in the sense already stored in the DB ?
    - how can I check whether the entity has been persisted in the current transaction ?
    Thanks in advance.
    Andre Teshler

    Hi Andre,
    In Eclipse link there are Entity listeners which will define the life cycle events like preInsert(),postInsert() etc.On successful insertion of an object its postInsert() life cycle method gets called.If you have to validate whether object inserted successfully then best place is to override the postInsert() and check for the existence of the record.All the event life cycle methods take a DescriptorEvent as parameter which will give handle to API as given below.In the same method you can check if this insert operation succeeded in the same transaction.
    package model;
    import java.util.Vector;
    import org.eclipse.persistence.descriptors.DescriptorEvent;
    import org.eclipse.persistence.descriptors.DescriptorEventAdapter;
    import org.eclipse.persistence.descriptors.DescriptorEventListener;
    import org.eclipse.persistence.internal.sessions.ObjectChangeSet;
    public class SampleEntityLIstener extends DescriptorEventAdapter {
    public SampleEntityLIstener() {
    super();
    public void postInsert(DescriptorEvent event) {
    event.getRecord().containsKey("pass the object");
    event.getChangeSet().getUOWChangeSet();
    public void preInsert(DescriptorEvent event) {
    Once you implement the DescriptorEventListener,need to register with the Entity so that life cycle methods gets called and respective business logic gets executed.
    Hope this helps,
    Regards,
    P.Vinay Kumar

  • How to download list of transaction from SAP area menu in SAP1 transaction

    Hello All,
    My requirement is I want to download the list of transaction under the SAP area menu in SAP1 transaction.
    I tried with SE43, entered area menu as S000, but it doesn't give me of the same hierarchy and some transaction were missing, for example IH08 is available in SAP1 transaction and not available in SE43.
    Could you please let me know is there any way to download the list.
    Regards,
    Thanga

    If you open SE43N, type SAP1 and Display (F7), Tree is shown with collapsed nodes. Print option in Menu shows the same tree as a list. The nodes do not get expanded by default.
    So in order to get expanded tree in list ( so that transaction codes can be seen), you need to expand the tree before choosing Area Menu > Print.
    This works for average area menu which is less number of transactions.
    Since you are looking for SAP1, it has lot of transactions, and on expanding it, information message is shown as:
    The tree could only be partially expanded for performance reasons
    Diagnosis: The hierarchy could not be completely expanded for performance reasons; it has too many subnodes.
    Procedure:
    Restrict the number of nodes to be expanded by expanding a lower-level node
    or
    Expand this node repeatedly until this message no longer appears. The hierarchy is then completely expanded.
    As a result, IH08 transaction which is under Quality Management node can't be seen in list view as overflow occurred before this node was reached.
    On debugging, it can be seen that the tree is expanded recursively by standard until an overflow flag is set.
    In order to get around this overflow protection, you can write a custom code.
    Below snippet is for demonstration purpose.
    1. Run FM BMENU_DISPLAY_RSTREE in SE37 with tree_id as QM01
    2. Run my snippet that calls same FM in the end
    Compare 2 outputs and see the difference.
    I am going 1 level deep and IH08 transaction can be seen in output.
    Similarly, you can write a code that recursively expands every sub-tree found so that entire list can be seen.
    DATA: ls_nodes  TYPE hier_iface,
          lt_nodes  TYPE STANDARD TABLE OF hier_iface,
          lt_nodes1 TYPE STANDARD TABLE OF hier_iface,
          lt_nodes2 TYPE STANDARD TABLE OF hier_iface,
          lt_refs1  TYPE STANDARD TABLE OF hier_ref,
          lt_refs2  TYPE STANDARD TABLE OF hier_ref,
          lt_text1  TYPE STANDARD TABLE OF hier_texts,
          lt_text2  TYPE STANDARD TABLE OF hier_texts,
          lv_tree_id TYPE hier_guid VALUE 'QM01'.
    * read top level node
    CALL FUNCTION 'STREE_HIERARCHY_READ'
      EXPORTING
        structure_id       = lv_tree_id
        read_also_texts    = abap_true
      TABLES
        list_of_nodes      = lt_nodes
        list_of_references = lt_refs2
        list_of_texts      = lt_text2.
    * read hierarchies of sub-trees
    lt_nodes2 = lt_nodes.
    LOOP AT lt_nodes INTO ls_nodes WHERE node_type EQ 'AMRF'.
      CLEAR: lt_nodes1, lt_refs1, lt_text1.
      CALL FUNCTION 'STREE_HIERARCHY_READ'
        EXPORTING
          structure_id       = ls_nodes-reftree_id
          read_also_texts    = abap_true
        TABLES
          list_of_nodes      = lt_nodes1
          list_of_references = lt_refs1
          list_of_texts      = lt_text1.
    * add sub-tree details to main tree
      APPEND LINES OF lt_nodes1 TO lt_nodes2.
      APPEND LINES OF lt_refs1 TO lt_refs2.
      APPEND LINES OF lt_text1 TO lt_text2.
    ENDLOOP.
    CALL FUNCTION 'BMENU_DISPLAY_RSTREE'
      EXPORTING
        tree_id       = lv_tree_id    " Unique ID - 32 Characters
      TABLES
        list_of_nodes = lt_nodes2    " Hierarchy Maintenance Tool Node Passing Interface
        list_of_refs  = lt_refs2     " List of References to Structure Items
        list_of_texts = lt_text2.    " General Structure Repository Node Text

  • How to find list of transactions for a given component

    Is there any table that holds information about transactions.
    My requirement is to retrieve all transactions for a particular component.e.g. list fo transactions for SD or MM.
    I am into java and have need to develop a program to retrieve teh above information using sap jco.
    Hence if there is any RFC or table holding this info please let me know.
    Thanks and Regards,
    MNGHosh

    Hi
    Let me explain this witha na example.
    Let us assume that one developer received a requirement on Material Management Module.
    (Create Material)
    Step1:
    Go to the Transaction Code : SDMO.
    Step2 :
    Execute SDMO Tcode from SE93 or Press /nSDMO
    Step3:
    It will prompts for you  a Dynamic menu with text box.
    Step3 :
    Enter your required description in that text box and press F8 or press execute button.
    Here Iu2019m entering u201CMaterialu201D as description and pressing F8.
    Step5 :
    We will get the list of Transaction Codes associated with the description u201CMaterialu201D as Follows.
    Step6 :
    In the above list, we will get all Transaction Codes associated with the description u201CMaterialu201D
    Search for your required transaction code based on your need.
    Suppose if our requirement is to create a material then search with the word u201Ccreateu201D in the above list.
    Step7 :
    It will gives you the sub list of Transaction codes associated with Material and Create search terms
    Step6 :
    In the above list, we will get all Transaction Codes associated with the description u201CMaterialu201D
    Search for your required transaction code based on your need.
    Suppose if our requirement is to create a material then search with the word u201Ccreateu201D in the above list.
    Step7 :
    It will gives you the sub list of Transaction codes associated with Material and Create search terms.
    Step8 :
    If you observe the list, we got many Transaction Codes including
    MM01 u2013 Create Material in the Sub list.
    In this way we will get the required Transaction Code using the description only.
    This is applicable to any module.
    Regards,
    Sreeram

  • How to check list of  transactions used  for a certain period of time

    Hi
    Is there a way to check the transcations that were used e.g the past two months apart from using transaction STAT or sm19 or sm20.
    Thanks

    Hi..  i have got a similar request like yours.... i need to find the list of 
    list of transactions used by all users in a user group (in my case PLKR) in the past two months.
    is this possible to find???

  • How to find what transaction an user was running for a given period

    hi
    could anybody tel me
    how to find what transaction a particular user was running for a given period
    in the past.............

    Hi,
    U need to findout the list of Tcode excuted by SAP user
    1) Tcode: ST03N
    2) Select Expert Mode option
               (there u find  Server Host name & Today)
       If u select Host name u find DAY/WEEK/Month (same thing will in Today option)
    3)Now u need to select the option of DAY,WEEK etc.
    Now u can find in two ways
    1) Transaction profile (Standard / EarlyWatch)
    2) User (user profile)
    If u select the Transaction profile
    Under these u find the option of Aggregation----application/package/tranasation etc.
    I hope these will help u to findout.
    Regards
    ASR

  • How many times a transaction has been executed

    Hi All,
    I have to make a list on how many times certain transactions have been exectued last year.
    Does any of you have a idea on how to get this list?
    tried already ST03 and STAT but without satisfying result
    We have R/3 4.6B.
    Regards,
    Rod.

    hi,
    use STAD transaction.

  • How to configure global transaction wthin Oracle AS JMS and Oracle JMS

    How to configure global transaction if I take a message from Oracle JMS(AQ) and send it to the Oracle JMS?

    Which version of OC4J are you working on?
    In OC4J 10.1.3.x, presume your OC4J JMS listens messages via MDB which uses a resource adapter as a message listener. The resouce adaper could be the generic JMS adapter deployed in OC4J as the default.
    Resource adapter configuration to support MDBs is included in the standard ra.xml file, which lists the message listener types that the resource adapter supports.
    The MDB developer or deployer configures the MDB in the ejb-jar.xml file, through a <message-driven> element.
    In addition to above, configuration in the ejb-jar.xml file specifies whether an MDB uses transactions.
    1) The <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Container, and the <trans-attribute> subelement of <container-transaction> (under the <assembly-descriptor> element) has a value of Required. In this circumstance, if there is an imported transaction, then message delivery and related work are performed within that transaction. If there is no imported transaction, OC4J creates a transaction, and message delivery and related work are performed within that transaction.
    2) The <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Bean. In this circumstance, the MDB manages the transaction. If a transaction is imported, OC4J will suspend it before the message delivery method call to the MDB, in order to avoid conflict.
    Message delivery is not transacted if the <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Container, but the <trans-attribute> element has a value of NotSupported. If there is an imported transaction in this circumstance, OC4J will suspend the transaction before the message delivery method call to the MDB.
    Details could be found from OC4J Resource Adapter Guide.

  • How to list the active savepoints in a session?

    How to list the active savepoints in a session?

    SR 3-4535479801: How to list the active savepoints in a session?
    Oracle Support - September 19, 2011 7:12:50 AM GMT-07:00 [ODM Answer]
    === ODM Answer ===
    Hello,
    That is the only way and it is also described in:
    How To Find Out The Savepoint For Current Process (Doc ID 108611.1)
    One thing to be aware in lower version is the dump if no savepoints are declared:
    ALTER SESSION SET EVENTS 'IMMEDIATE TRACE NAME SAVEPOINTS LEVEL 1' Raises ORA-03113/ORA-07445[SIGSEGV]/[STRLEN] Errors (Doc ID 342484.1)
    Best regards,
    George
    Oracle Support Database TEAM
    Oracle Support - September 19, 2011 6:36:39 AM GMT-07:00 [ODM Question]
    === ODM Question ===
    How to list the active savepoints in a session?
    Is there another way than the following as referenced in the Oracle forums: Re: How to list the active savepoints in a session? ?
    "alter session set events 'immediate trace name savepoints level 1';"
    A trace file is generated in the user_dump_directory.
    - September 17, 2011 5:12:53 PM GMT-07:00 [Customer Problem Description]
    Problem Description: How to list the active savepoints in a session?
    Is there another way than
    "alter session set events 'immediate trace name savepoints level 1';"
    A trace file is generated in the user_dump_directory.
    Re: How to list the active savepoints in a session?

Maybe you are looking for

  • Windows recognizes ipod nano (1st generation) but itunes doesn't

    I'm a happy owner of ipod nano for about a year. My itunes and ipod nano was working perfectly until few days ago I encountered problems with both of them. I fixed my itunes (which kept showing an error message when I tried to uninstall/repair it) bu

  • Fill in PDF forms

    I have some forms that can be filled in and saved using adobe PDF reader.  When I open them on my playbook, I can't type into any of the feilds.  Is there anyway around this? Thanks

  • Adobe Reader XI will only display/save docs from Internet in Landscape

    The documents I am viewing from the Internet are portrait documents and the Reader will only display them as landscape. I cannot find anything that will allow me to change the option so that it will display the document in portrait. What do I do? Or,

  • Drawing with a custom profile stroke is not working for me. Does it work for you?

    Drawing with a custom profile stroke is not working for me. Does it work for you? I can only apply it on an existing stroke but can't draw a new one with the selected profile. In fact if I change the profile to other than the default Uniform I also c

  • TVKWZ : Org.Unit: Allowed Plants per Sales Organization

    Hello, At one of the implementations which is doing intercompany postings with SO-PO model has 250,000 records to be created in this table. 1. Is this okay to have such a huge number of records in this table ? 2. Is there any way BDC, LSMW method to