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

Creating exception classes

rainer_hbenthal
Active Contributor
0 Likes
417

Hi, i've created my own exception class named zcx_xi, and i have now a textid with zcx_xi. I entetred


XI: &AREA& &text&

into the the textfield beside the textid. How do get the parameters area and text filled?


raise exception type zcx_xi exporting area = 'hello' text = 'world'.

does not work: inknown parameters area and text. Looking at other exception classes i cant find where to declare those. Any help is appreciated.

2 REPLIES 2
Read only

rainer_hbenthal
Active Contributor
0 Likes
394

Ok, found my error, i have to declare them as attributes. But using


        CATCH zcx_xi INTO cxr.
           serror = cxr->get_text( ).
           MESSAGE serror TYPE 'A'.

serror is empty when using the raise statement in #1

Read only

rainer_hbenthal
Active Contributor
0 Likes
394

This is really not fair: the attribute in the text field has to be in lower case. Otherwise it will not work

Ok, this is solved, how can i assign 10 point to me?