Application Development and Automation 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: 
Read only

How to call TRFC from diff SAP server?

Former Member
0 Likes
695

hi all,

i have created one rfc enabled FM on a SAP server, and i am calling that FM from different SAP server using TRFC. I am calling using this statement,

CALL FUNCTION 'ZMKV_RFC' IN BACKGROUND TASK

DESTINATION 'zmkv'

But it doesnt show me any output neither showing any errors? suggest me step by step procedure to do this...i will reward points if i get the requried answer.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
633

hi..

check ur destination in SM59. or open the destination inj SM59 and check the connection there itself

rewards will b usefull

regards

san

4 REPLIES 4
Read only

Former Member
0 Likes
634

hi..

check ur destination in SM59. or open the destination inj SM59 and check the connection there itself

rewards will b usefull

regards

san

Read only

0 Likes
633

hi San,

the connection is fine in SM59. I think you interpreted wrongly. my question is : how to cal a remote funct module from diff sap server USING TRFC,& not normal RFC cal? or if you can give me some code where you have used TRFC?

Read only

varma_narayana
Active Contributor
0 Likes
633

hI Mayank..

Note: RFC destinations are maintained in Tcode SM59. Test this RFC Destination. And one more thing these RFC Destination names are CASE SENSITIVE.

So in this statement.

CALL FUNCTION 'ZMKV_RFC' IN BACKGROUND TASK

DESTINATION 'zmkv' "Check the CASE of the RFC Destination and give

<b>REWARD IF HELPFUL.</b>

Read only

0 Likes
633

hi ,

no dear ,i have tested it using normal RFC calling , but with TRFC its not working? i think we have to call some other functions on which i dont have any idea ? so suggest me !! i know made the connection in sm59 and its working fine..