Skip to Content
0
Former Member
Oct 19, 2005 at 02:43 PM

Function Module Exceptions handling

3292 Views

Hi all,

I dont know how to handle exceptions. For example I have given code below. In that do I need to put any extra logic or not.

CALL FUNCTION 'BDC_CLOSE_GROUP'

EXCEPTIONS

NOT_OPEN = 1

QUEUE_ERROR = 2

OTHERS = 3

.

IF SY-SUBRC <> 0.

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

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

ENDIF.

Thanks,

Shashikanth.