cancel
Showing results for 
Search instead for 
Did you mean: 

JCO3 Server: How to invoke a RFC callback to client

Former Member
0 Kudos

Dear Community,

i have created a working jcoserver program.

Now this program needs additional information from client (in this case a sap-system).

In classic RFC Lib and in Netweaver RFC SDK i can find some samples how to do this.

Look here:

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5070f62a-6acd-2c10-8cb5-858ef06ad...

Page 10-12 and Page 16 contain information how to do this.

But i can't find anywhere an example for JCO3 or a documentation.

Is someone able to point me into the right direction or has a working code-snipplet?

Kind Regards,

Tom

Accepted Solutions (1)

Accepted Solutions (1)

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tom,

This is pretty simple: In your JCoServer function module implementation invoke the function module on destination BACK. This is a builtin special destination.

Best regards,

Markus


Former Member
0 Kudos

Hi Markus,

oh, that is to easy, As i'm converting from Classic-C such easy ways are simply overlooked.

Correct code is then:

//JcoFunctionTemplate "temp" is initialized before

JCoFunction func = temp.getFunction();

  func.execute ( JCoDestinationManager.getDestination ( "BACK" ) );

right?

Thank's a lot Markus, you helped me very much!

Is there any documentation where one can find out about such build ins ?

Not only related to JCO, similar for build in rfc function in server programs like RFC_DOCU and so on ?

Best regards,

Tom

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tom,

just saw that it's lacking in the documentation for JCo. Needs to be changed. However, in NCo documentation it's mentioned .

Best regards,

Markus

Former Member
0 Kudos

Hi Tom,

Could you please provide code snippet / guidelines on how to use destination "BACK"  , like you did in your issue.

TIA.

Best Regards.

Prashant

Answers (0)