cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about ABAP Function making outbound RFC-JCO call

Former Member
0 Kudos

Hi,

I have 2 questions as below:

1. Is it possible for Java application to return a ABAP system exceptions(0,1,2 and so on) to the called ABAP function (RFC JCO Connection), when there is a java application exception occured? Assume this Java application is deployed in NWWAS.

2. Is it possible for ABAP function to make a RFC-JCO call to a remote Java application (<b>NOT</b> deployed in NW WAS, perhaps some other J2EE/web server)? If yes, please advise on how to do that.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

1.) Sorry I've never seen this. I believe there is something similar with adaptive RFC's but it is recommended that you do not throw exceptions in RFC's / BAPI's.

2.) Yes it is possible for an ABAP function to make RFC calls but you will have to set up RFC destinations in sm59.

Try this link:

http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/content.htm

Here is a blog for sm59 https connection settings:

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1645. [original link is broken] [original link is broken] [original link is broken] [original link is broken]

Further the BC Connector or XI (PI) can help serve as an extraction layer for system to system communication. One quick and dirty way to do this is to call a web service with the HTTP_POST function in ABAP and use ABAP xml classes to parse the response. This is not a recommended way but it gets around any kind of configuration.

-Roger

Answers (0)