Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

EXCEPTION CLASS

former_member233553
Active Participant
0 Likes
564

HI guys,

I have created a exception class in SE24, and created message in SE91.

here is the following code for test the exception class.

REPORT  ZREPORT_MSGCLS.
DATA: CX_REF TYPE REF TO CX_ROOT,
       MSG_TXT TYPE STRING.

TRY.
   RAISE EXCEPTION TYPE zcx_excep_cls
     EXPORTING
*      TEXTID =
*      PREVIOUS =
       MSGV1  = 'FOR'
       MSGV2  = 'EXCEPTION'
       MSGV3  = 'HANDLING'
       MSGV4  = 'CLASS'
       .
   CATCH ZCX_EXCEP_CLS INTO CX_REF.
     MSG_TXT = CX_REF->GET_TEXT().
     WRITE:/ MSG_TXT.

     ENDTRY.


but system is generating GET_TEXT()  is not declared in DATA. please help me out.

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
461

Hi Kumar,

try GET_TEXT( ). One space missing in GET_TEXT() - thus not identified as functional method call.


Regards


Clemens