Application Development 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: 

Free text standard exception class

former_member185943
Participant
0 Kudos

Hi!

Before I create a Z class, I tried to find the standard one which is generic and allows free text entry, like:

RAISE EXCEPTION TYPE cx_free_text EXPORTING e_free_text = 'My own error message'.

Has anyone found such a class?

Thanks!

KR,

Igor

1 REPLY 1

former_member185943
Participant
0 Kudos

Here's a workaround with CX_T100_MSG and a message 398(00) which contains only placehodlers '& & & &'. This works, but it would still be better to have shorter syntax as in my question.

      RAISE EXCEPTION TYPE cx_t100_msg
            EXPORTING t100_msgid = '00' "message: '& & & &'
                      t100_msgno = '398'
                      t100_msgv1 = 'My error message pt1...'
                      t100_msgv2 = '...continued with pt2'.