cancel
Showing results for 
Search instead for 
Did you mean: 

RFC call from EP with Java

Former Member
0 Kudos

Dear all,

I would like to do a programmatic remote call from an APC or WDJ to SAP_WAPI* fuba's on some ABAP backends on a SAP EP 7.31. I need to use some regular destinations created with NWA for that, accessible under NWA -> Configuration -> Security -> Destinations. So I will probably need to access those out of Java component programmatically.


After searching around I found the in fact 2 approaches (not sure if any of those would work resp. I found the right information):

1.)use of com.sap.conn.jco.JCoDestination and related classes, getting a destination should work like:

     JCoDestination dest = JCoDestinationManager.getDestination(yourDest);

Unfortunately I cant find any documentation on this. There is the Java doc describing purpose and use of this package?

2.)After looking on current Java doc on help.sap.com for EP I have seen:

Portal Destination Service - Portal - SAP Library

Indeed, after I read the help Ive realized its obviously not supposed to read RFC destinations as described, rather used for:

  • Portal System Landscape
  • J2EE Destination Service
  • J2EE Web Service Security Service (Dynamic Proxy)
  • WebDynPro JCo Destinations

Maybe Im wrong?

Can anybody say me which of both mentioned way is the right one and point me to documentation for JCoDestination? A short source sample for appropriate remote call method would be great...

Thanks,

cheers

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

JCoDestination seems to be the proper way, getting RFC connections doesnt seems to be a problem. I have found JavaDoc, surprisingly hosted outside of sap.help.com, I probably missed something:

JCoDestination (JCo API 3.0)

It seems to match the EP jar I have found for.

cheers