Skip to Content
0
Former Member
May 23, 2008 at 07:17 AM

Retriving Exceptions code /SY-subrc from RFC Function module in Java

186 Views

How to retrive Return Code(SY- SUBRC) from function module called in java.

Below is example where i would like to retrive the Exceptions from 1..5

-


CALL FUNCTION 'ZZ_SAVE_TEXT'

EXPORTING

RUECK = pass number

TABLES

T_LINES = pass user enter text

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

OBJECT = 4

OTHERS = 5

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.