09-09-2008 6:42 PM
Hi Experts,
I created a custom RFC function in ABAP stack of different client.
Created port destination from current client to different ABAP client.
How can i call the cusotm RFC in current client?
I need data from other client to current system....
Thanks
Giri
09-09-2008 7:53 PM
I think you need to create the RFC destination with type 3 and not type T
ie you need to create a connection as "ABAP connection"
and not TCP/IP connection type
a®
09-09-2008 6:50 PM
Try this way
call function 'XXXXXXXXXX' destination 'YYYYY'.
" Here YYYYY should be your RFC destination name
a®
09-09-2008 6:57 PM
I tried that way...
i got the dump like
"JCO.Server could not find server function 'XXXXXXXXXXXXXXXXXX'.
I am using TCP/IP connection for port destination
09-09-2008 7:31 PM
You might be calling the function form the wrong system. Error describes by itself. Is it communication from Java to ABAP ? Make sure the function is remote enabled.
09-09-2008 7:47 PM
ok for more detail:
1. Client 800
created RFC Z_TEST
2. Client 810
Created TCP/IP port destination for 810 to 800
Created report:
Report ZTEST.
CALL FUNCTION ' Z_TEST' DESTINATION 'RFCTEST'.
I am getting above error.
I need some data which is in 800 to 810 client.
what is the way to do it?
Giri
09-09-2008 6:54 PM
Do this way. Sample code shown below
REPORT ztest.
PARAMETERS: p_rfc LIKE rfcdes-rfcdest. " RFC destinations created via SM59 will appear in F4 help
CALL FUNCTION 'ZXX_INTERFACE' DESTINATION p_rfc.
BREAK-POINT.
09-09-2008 7:53 PM
I think you need to create the RFC destination with type 3 and not type T
ie you need to create a connection as "ABAP connection"
and not TCP/IP connection type
a®
09-09-2008 8:08 PM
but ABAP stack is in XI system.
i am using XI abap stack for this.
09-09-2008 8:47 PM
Tell your basis guy to create a RFC destination Type 3. Tell him to test the connection as well. To me it seems to be pretty straight forward.
A