‎2007 Feb 08 7:02 AM
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
‎2007 Feb 08 7:16 AM
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.