on 08-08-2006 8:33 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.