Skip to Content
author's profile photo Former Member
Former Member

transaction scope when accessing ABAP from Java ?

When I go from the J2EE platform to the ABAP platform:

what is the scope of a transaction I started on the

J2EE side ? In other words, does the transactional context

carry over from the J2EE platform to the ABAP platform, and

if so, can I do distributed J2EE transactions as well ?

In other words, does the JCo support local and/or

distributed J2EE transactions ?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2004 at 02:21 PM

    Hi Matthias,

    Generally, the R/3 system does not support distributed transactions.

    I'm not sure which version of SAP Web AS you use, but for Web AS 6.40 there is also a JCA-based resource adapter (SAP JRA), which enables you to connect to ABAP platform from Java using the standard JCA API. Although SAP JRA itself does not support distributed transactions, you can use it in such as long as you do not access other systems with local transaction support in the same transaction. Maybe the following sections from the Web AS documentation will help you: (on transactions and resource handling)

    and (on SAP Java Resource Adapter)

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Matthias,

      Yes, this should be possible with JRA. A problem would occur, if for example you try to read some data in the same transaction from another backend system that does not support XAResources (let's say SAPDB). But if you only access the R/3 system in the transaction, there shouldn't be a problem.

      If you download the SAP JRA from the SAP Service Marketplace, you can also take a look at the examples, which are included in the ZIP file. I hope this will clarify the issue further.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.