cancel
Showing results for 
Search instead for 
Did you mean: 

Create EJB and call it from ABAP

Former Member
0 Kudos

Hi all,

I have written a stand-alone-Java application, which should be converted into a web application, which has no gui.

This application should be triggered by a abap-program.

Following questions, do I have to write a servlet and a ejb or is it possible to call the ejb directly from the abap-program?

What do I have to do make an outbound call from abap?

Thank you for your support.

Kind regards, Patrick.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi.

You can call the EJB directly from Abap. XI uses this functionality extensively.

Follow these steps:

1) Deply the bean on the java stack.

2) You now need to setup a RFC destination in the JCO RFC Provider service in the j2ee visual adminstrator. Point the Repository section to the application server you want to run the Abap reort on. When you do this the j2ee engine will register itself as a possible RFC destination on this application server.You can choose your own program id...

3) You then need to goto tran sm59 on the app server where the Abap report is going to run and setup a connection of tcp type to the j2ee machine. Specify the same program id you used in step in the technical settings.

4) Then just use the bean name when you do the rfc call in the abap report.

Hope this helps if U have not done it yet.