Skip to Content
0
Former Member
May 15, 2013 at 07:55 AM

RFC unknown error

133 Views

Hi everyone! I'm new here. I was having problem with my function module in RFC mode. If I ran it in non-RFC mode, I'm getting results otherwise, it's returning a generic error. Both tests are ran in the same box. Here's my code:


DATA: versnum LIKE vrsd-versno.
MOVE: rfc_dest to rfc,
boxname to box,
objname to objnamedest,
objtype to objtypedest.

CALL FUNCTION 'SVRS_FIND_VRSD_INFO' DESTINATION rfc_dest
EXPORTING
objtype = objtypedest
objname = objnamedest
versno = versnum
IMPORTING
V_INFO = i_versinfo
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
.
IF sy-subrc <> 0.
* Implement suitable error handling here
MOVE: sy-subrc to return.
ENDIF.

I'm getting exception 2. Any help would be highly appreciated. Thanks!