Skip to Content
0
Oct 02, 2007 at 12:59 AM

RFC Function module Error

148 Views

Dear Experts,

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'

DESTINATION 'dev'

EXPORTING

VAR1 = RFC_VAR1

VAR2 = RFC_VAR2

IMPORTING

RESULT = RFC_RESULT

EXCEPTIONS

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.

Thanks

Cris