I have written simple Remote Function module as like given below.
Before that i did all required RFC settings in SM59 and tested from there.
It is connecting from each other.
REPORT ZTEST_RFC .
data: rfc_var1 type i VALUE '10',
rfc_var2 type i VALUE '599',
rfc_result type i.
CALL FUNCTION 'Z_SUM'
VAR1 = RFC_VAR1
VAR2 = RFC_VAR2
RESULT = RFC_RESULT
COMMUNICATION_FAILURE = 1
OTHERS = 2.
I am getting sy-subrc eq 1.
Please guide what could be wrong...do we need pass any parameters in FM.