Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can we use Java code(jar file) in ABAP ECC 6.0?

Former Member
0 Likes
1,147

Hi,

We have a requirement, where the customer requests us to use a java API thats given as a JAR file to us and we need to use the API with our ABAP codes together. We are using ECC 6.0 currently? Is it possi ble to use this API directly? Also do we need any additional software or any prerequisites on the packages to do this? Kindly help me in this.

If possible, is there any documents or suggestions on how to do this?

Thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
714

Hi,

I'm pretty sure you can use SAP JCo (Java Connector) to call Java from ABAP, however I've mostly only ever used it the other way, to call ABAP from Java.

Saying that, I'm unsure what exactly you are trying to do when you say call a Java API from ABAP - are you trying to call a Java application/system from ABAP, or just use some Java library to achieve some logic?  If you give a bit more information around what you are doing someone else may be able to achieve a different/better approach you could take.

Gareth.

Read only

Former Member
0 Likes
714

Hi,

Yes.I just need touse some Java library to achieve some logic within abap.

Read only

0 Likes
714

Hi Annamalai,

wouldn't it be an option to implement a simple Web service that encapsulates the necessary logic using the given Java lib. Then you deploy this Web services on some server, maybe simply the server running the SAP system.

In your ABAP program you then simply call the Web service.

Best,

Christian

Read only

Former Member
0 Likes
714

Any pointers on this please?

Thanks,

Kiran