cancel
Showing results for 
Search instead for 
Did you mean: 

What is the recommended method to read an ABAP table from JAVA code

tim_alsop
Active Contributor
0 Kudos

We have an application developed in JAVA, running on WebAS J2EE engine, and want to be able to read (not write to) existing tables that are used by apps in the ABAP engine. What is the recommended approach (e.g. what Java classes to use) for this ? If anybody can provide sample code to help us with this, we would be very grateful.

Thanks,

Tim

Accepted Solutions (1)

Accepted Solutions (1)

former_member192350
Active Participant
0 Kudos

JCo is simply the RFC API encapsulated in a Java library so that standard RFC functions can be called from Java, and vice versa. When you make JCo calls to read data from the ABAP stack, you're really making RFC calls under the covers.

Sample JCo code can be found here: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/content.htm</a>

Rich

tim_alsop
Active Contributor
0 Kudos

Thankyou to everybody who replied to my question. I have enough information now to finish the coding.

I have awarded points.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Tim,

The Answer is Java Connectors.

For more information on Java Connectors,

Please look at the below links...

http://www.erpgenie.com/interfaces/javaconnector.htm

Search for Java Connectors(JCo) in SDN. You will get more information on this topic.

Hope it helps.

Regards,

Maheswaran.B

tim_alsop
Active Contributor
0 Kudos

Thankyou for the information given so far.

I just want some further clarification. Is JCo only usable if the ABAP engine is on same WebAS instance, or can J2EE code on one instance read tables which are on an ABAP system on another instance somewhere else in the SAP landscape ?

Also, I heard SAP rfc might be useful. When is JCo better than rfc, and when is rfc better than JCo ? Are these the only two options available ?

Thanks again,

Tim

Former Member
0 Kudos

RFC_READ_TABLE

make this function module webservice(if ecc 5 or higher)

or make it JCo enabled