cancel
Showing results for 
Search instead for 
Did you mean: 

JCo Outbound Connection

Former Member
0 Kudos

Hi,

I am looking for an Outbound Connection from ABAP using Jco and RFC destination.

Is it mandatory to set the MetaData?

If yes how the Table Parameter would be registered using Meta.

I am looking at this blog, which is very helpful, but it is not having the table parameter setting:

/people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection

Appreciate your help

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Prathap,

Create a function module in the ABAP system from where you are making the remote calls with the same signature, i.e. same parameter names and same dictionary types. The body of the function module can be left empty in the local system, all we need is the signature.

Then in se80 you can use the pattern button to insert the function call entering the function name. Remember to add the destination rfcdest and exceptions parts as in this example:

data:

msg(80) type c.

call function 'MY_FUNCTION' destination rfcdest

importing

...

exporting

...

tables

...

exceptions

system_failure = 1 message msg

communication_failure = 2 message msg

others = 3.

if sy-subrc <> 0.

  • error handling

endif.

The system_failure and communication_failure are important, if not present and the remote function call can't be completed the caller code can be left waiting or dump.

Best regards... Lucio