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

Problem in RFC call in ABAP code...Urgernt

Former Member
0 Likes
307

Hi ,

I am working on scenario wherein , i have created remote enabled RFC in target system SAP R/3 one . I have maintained RFC in original system where i have my calling program.This done by using sm59 transaction .When i execute my abap calling program as follows , it gives out error as RFC destination not known.The code is

CALL FUNCTION 'ZRFC_01' DESTINATION 'IDECECC5'

EXPORTING nu1 = num1 nu2 = num2

IMPORTING res = result .

write: result .

This call passes two numbers for addition and returns result as addition in import parameters.

KIndly help me on this

1 REPLY 1
Read only

Former Member
0 Likes
275

Hi,

First of all do not forget to add standard SAP exceptions to your code to avoid shotdumps in case there is something wrong with the RFC connection:

CALL FUNCTION 'ZXXX' DESTINATION 'ZXXX'

....

EXCEPTIONS

SYSTEM_FAILURE = 1

COMMUNICATION_FAILURE = 2.

Test your RFC connection in SM59 transaction. Make sure as well you did not make any typing errors, the best would be just copy its name from SM59 to your code.