02-24-2010 10:53 AM
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
02-24-2010 4:06 PM
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'.