Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RFC call to other ABAP stack

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

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

8 REPLIES 8

former_member194669
Active Contributor
0 Kudos

Try this way


call function 'XXXXXXXXXX' destination 'YYYYY'.
" Here YYYYY should be your RFC destination name

0 Kudos

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

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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.

former_member194669
Active Contributor
0 Kudos

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

0 Kudos

but ABAP stack is in XI system.

i am using XI abap stack for this.

0 Kudos

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