How to get the Global Transaction ID

Hi
I have a Session Bean in which I am starting a UserTransaction. Inside the Session Bean I am calling an Entity Bean and I have set the Transaction attribute as RequiresNew. I need to get the Global Transaction ID inside the Entity Bean. How do I get it.
I tried with the below line of code:
weblogic.transaction.TransactionHelper txHelper = TransactionHelper.getTransactionHelper();
weblogic.transaction.Transaction tx = (weblogic.transaction.Transaction)txHelper.getTransaction();
javax.transaction.xa.Xid xid = tx.getXID();
xid.getGlobalTransactionId();
The GlobalTransactionId is not same in the Session Bean and the Entity Bean.
Please help me on this.
Thanks in Advance
Sundari

hi ,
get the data for the user from db tables usr02  usr41..
regards,
venkat.

Similar Messages

  • 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 to get the last transaction in a row in SQL Developer?

    What syntax would I use to get the last transaction of a row in SQL developer?
    The way I have my query set-up currently it is not returning the correct data, here is my current syntax:
    select ssn, max(tran_id), chng_type,tran_id
    from pda_tran
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type,tran_id;
    It returns a 'C' chng_type but it is not the last one. when I query on this ssn this is what I get:
    ssn tran_id chng_type
    xxx-xxx-0011 001 A
    xxx-xxx-0011 002 E
    xxx-xxx-0011 003 C
    xxx-xxx-0011 004 S
    xxx-xxx-0011 005 C
    xxx-xxx-0011 006 T
    I only want to return the ssn's with a last transaction chng_type of 'C'. How can I get the correct information returned. Please advise.

    From what I see and read... there is one to many group by
    You wrote
    select ssn, max(tran_id), chng_type,tran_id
    from pda_tran
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type,tran_id;
    If you want the max(tran_id), remove it from the "group by"
    select ssn, chng_type, max(tran_id)
    FROM
    (SELECT 'xxx-xxx-0011' ssn, '001' tran_id, 'A' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '002' tran_id, 'E' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '003' tran_id, 'C' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '004' tran_id, 'S' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '005' tran_id, 'C' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '006'tran_id, 'T' chng_type FROM DUAL )
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type;

  • How to Get the Previous Transactional Data into Special Purpose Ledger

    Hi,
    1). We have implemented Special Purpose Ledger. After implementing SPL, we are generating documents and getting the postings into SPL. Now I need to bring the previous postings which were entered before Special Purpose Ledger Setup. Please Help me on how to bring the transacctional data into Special Purpose Ledger.
    2).  Is it possible to define A/R Aging by Customers? in  Special Purpose Ledger by using Report Painter?
    3). What is the use of Allocation Cycles like Assessment and Distribution in Special Purpose Ledger?
    Please clarify me on above 3 points.
    Thanks
    Yadayya
    Edited by: Dogdays on Aug 5, 2011 8:02 AM
    Edited by: Dogdays on Aug 5, 2011 8:03 AM

    I have experience in intergrating project accounting to the general ledger in a data warehouse using discoverer to show the results.
    The solution I developed for my compnay is to ensure all entries from all sub-ledgers including manual journal entries are moved to the data warehouse tables have project information based on PA autoaccounting rules.
    The company I work for was interested in viewing reports that cubed cost centers (dept's.) to projects and to translate all entries (not just account balances) to USD for thier foriegn set of books. So, projects can be seen company wide in USD at lowest entry level. The solution I gave them solved the problem and they are able to view reports and evaluate costs by cost centers and projects on an enterprise wide application.
    If this is what you are looking for let me know.
    about my self : I have a B.S. in Computer Science (Theoretical Track) and 17 yrs of accounting and book keeping experience including consolidation and multi-currency sets of books.

  • How to get the global location of a component which is inside some containers.....

    Hai,
    I have a texInput component,which is placed inside containers like following
    1) Bordercontainer start....
    2) Vbox start...............
    3) Hbox start..............
    ..........Here My TextInput.........
    3) Hbox end..............
    2) Vbox end...............
    1) Bordercontainer end....
    Now after initialization i want to get the location of my textInput with respect to Application.
    I tried with with localToGlobal(PointofLocalCoridnate), then it is not giving the correct location of textInput..Please suggest me....
    Thank you...

    What are you calling localToGlobal on?  It should be on the parent of the TextInput itself

  • How to get the global create tasks that a user is authorized to initiate?

    Hi,
    I am using SOA Suite 11g.
    I want to develop a custom workspace using Workflow Service API and BPM Service API.
    What I need to implement is, When a user login in into the custom workspace, I need to show him a list of processes that he is permitted to initiate as the out-of-box Workspace does. I wonder how can I implement this using API.
    thank you guys!

    Hey Ramy,
    A bit off the top of my head, but try this:
    IPortletContext PortletContext;
    IRemoteSession PTSession;
    PortletContext = PortletContextFactory.CreatePortletContext(Request, Response);
    PTSession = PortletContext.GetRemotePortalSession();
    privatevoidgetCommunities()
    IObjectManager Manager = PTSession.GetObjectManager(ObjectClass.Community);
    IObjectQuery Query;
    Query = Manager.QueryObjects(-1, 0, -1, ObjectProperty.Name, true);
    for(inti = 0; i <= Query.GetRowCount() - 1; i++) {
    string sCommunityName = Query.GetRow(i).GetName();
    string sCommunityID = Query.GetRow(i).GetID().ToString();
    Cheers!John

  • V v urgent ...  how to get the selected rows in the vl02n transaction

    Hi ,
    I have requirement that i have selected the line items in the vl02n transaction.
    If I select only one row there is option gs_get_cursor-line.
    If I select more than one line item at a time I am getting only the last value in to gs_get_cursor-line.
    Can anybody let me know how to get the multiple line items  that are selected
    It is very urgent ..
    Plz Help

    Hi,
    can you check the E_row_id .
    v_row type LVC_S_ROW
    read table itab index E_ROW-index.
    regards,
    Ajay
    Edited by: Ajay on Feb 14, 2008 6:22 PM

  • How to get the date of the last transaction in a mounted standby database?

    Hello,
    Could you tell me how to get the date of the last transaction recorded in a MOUNTED standby database?
    The following query doesn't work...because the database is not open...
    select scn_to_timestamp(current_scn) from v$database;
    Thanks

    Hi,
    You should be able to run the following command in mounted mode on standby database.
    select current_scn from v$database;
    then run the following to convert it to timestamp.
    select scn_to_timestamp(99999999) from dual; *<-- Replace here the SCN value you got above. This needs to be run on the primary database due to standby database in mount mode.*
    Alternatively you can also check at the alert.log file to find the last scn which has been applied.
    Regards
    Edited by: skvaish1 on Jan 19, 2010 11:15 AM

  • How to get the material list displayed in CU50 transaction into ABAP report

    How to get the 'KMAT" type material list displayed in CU50 transaction into ABAP report?
    I am getting the entire BOM when i am using the FM CS_BOM_EXPL_MAT_V2 in to the table in the report.
    But I want only the material list displayed in CU50.

    Hi,
    Could you please tell us how you found a solution to your problem?
    Thanks & regards
    Hassan

  • How to get the form printed through the transaction ME42

    hi,
    How to get the form printed through the transaction ME42.
    For example :
    In t.code vf03 . In the main menu there is an option billing document , when we click on that we get a drop down menu which shows issue output to. If a print program call has the code to get the value from the t.code , immdiately when we click issue output to it call the form.

    Here go to ME42 put in your RFC no, in the menu Header -- Messages, go there and see if a message has been inserted, else you can insert one.
    when you save this, it will call the form.
    Regards,
    Ravi

  • How to get the set pf-status and call Transaction work together in SA

    hi,
    I am using Set pf-status to display the details screen and the same time using call transaction va03 leave screen 0 to display the corresponing sales order.
    The issue is both of them are not workin together properly.
    it could be helpfull if you give some code which deals the issue in detail...
    can you please give details how to get the previous screen once the new screen is obtained thru set pf-status
    thanks and regards
    Edited by: san dep on Jul 10, 2008 6:25 PM

    Hi,
    Try this code ---
    SET PF-STATUS 'STATUS_NAME' OF PROGRAM 'ZPROGRAM_NAME'.
    Regards
    Pinaki

  • How to get the transaction name from the Webdynpro portal in SRM 7.0

    Hello Experts,
    Would you please let me know the procedure to get the current transaction name from the SRM 7.0 portal.
    Is there any similar procedure like in ITS to get the transaction Name/Template Name in "View Source" of the portal. Our primary requirement is to find the root cause(by debugging) from SAP GUI.
    Your pointers on this will be very much useful & worth the points.
    Thanks & Best Regards,
    Vishnu Reddy Sangati

    Hi!
    Try this thread:
    http://help.sap.com/saphelp_nw04s/helpdata/EN/80/b2dd3a6dac703be10000000a11405a/frameset.htm
    brgs Ziggy

  • How to get the GTRID in string form

    Hello,
    I would like to include the Global Transaction Identifier (GTRID) in my
    application level logs. Preferrably it will be in the same format as it is
    in the ULOG.
    Is there a function to get the GTRID?
    Once retrieved, is there a function to convert the GTRID into a string
    equivalent to how it is presented in the ULOG?
    We are using WLE 5.x (Corba).
    Thanks...
    Roger
    Roger W. Fischer
    North Vancouver, BC

    Tuxedo uses GTRIDs internally, but externally documented functions make use
    of XIDs, which is the official transaction ID format used in the XA
    standard. (tpsuspend() and tpresume() make use of TPTRANID, which is
    another internal data structure.)
    The best approach would be to use userlog() for your application logging, in
    which case you will get the GTRID as part of your log message whenever it is
    present.
    If you want to use XIDs, you can call
    tx_info(&traninfo);
    to get a binary XID and you can format this XID to a string format using
    tpconvert(string_xid, &traninfo.xid, TPTOSTRING|TPCONVXID);
    It is possible to pass this string_xid as a key field in a call to the
    T_TRANSACTION MIB class, and TA_GTRID will be among the returned FML fields,
    but the TA_GTRID MIB attribute is not officially documented.
    "Roger W. Fischer" <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    I would like to include the Global Transaction Identifier (GTRID) in my
    application level logs. Preferrably it will be in the same format as it is
    in the ULOG.
    Is there a function to get the GTRID?
    Once retrieved, is there a function to convert the GTRID into a string
    equivalent to how it is presented in the ULOG?
    We are using WLE 5.x (Corba).
    Thanks...
    Roger
    Roger W. Fischer
    North Vancouver, BC

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to get the table of value field? and can we expand the technical limits

    Dear
    I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
    And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
    We have a note for R.4.x Please see below:
    OSS note 160892
    You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
    The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
    To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
    David Sun
    Regards!

    how to extend the limit of value numbers? please see the original question.

Maybe you are looking for

  • Wrong Profit Center on Material document (Goods Receipt PO for Asset)

    Dear SAP Expert, When our company upgrade our SAP version from 4.6C to ECC6, all Profit Center on Material document (Goods Receipt on Purchase Order for Asset) is filled by profit center DUMMY. This condition not happend in our previous version (4.6C

  • Report Scheduling. How to syncronize the GMT and the local server timezones

    Hi everybody, I need to schedule reports using the Schedule tab on BIP, but I didn't still understand how the syncronization between my server's timezone and the GMT timezone works..... I noticed that when I open the Report Schedules initial page, th

  • Problem with the option required of input components.

    I'm new using the Studio Creator 2. I'm trying to develop a system (it's a work to College), where there's just some sing up e search. Well, My problem is: I'm trying to do a login page, where people can enter their login and password (both required)

  • XI cannot access oracle databse

    A IDOC to JDBC scenario is created in the XI. The database is SQL Server 2000. The adapters are IDOC and JDBC. The scenario is working fine. Next, the existing database (tables+data) in SQL Server  2000 is transferred to an Oracle Database. The JDBC

  • I've never seen this problem before!

    When I start my half-life/counter-strike application, i hear the music and sound-effects of the opening, but there is nothing at all displayed on the screen.  This happened right after I switched my monitor to a flatscreen.  I'm not sure if the resol