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 Handling

Former Member
0 Likes
568

Hi Experts,

How can we raise exception in the Report (for a select statement)and how can we handle it.

4 REPLIES 4
Read only

Former Member
0 Likes
545

Hi

we define exceptions in Fun modules and Methods of a class

and we raise them when a error condition happens

Regards

Anji

Read only

Former Member
0 Likes
545

Hi

use the RAISE statement.

Regards

sandhya

Read only

Former Member
0 Likes
545

Hi,

If you are using a FM in your program then that FM must have exceptions under the Exceptions tab in the FM in SE37.

Now you can use the RAISE command.

Hope it was useful.

Thanks,

Sandeep.

Read only

Former Member
0 Likes
545

Hi,

One more thing....as far as I know....for a select statement check the sy-subrc value and if it is not 0, then display an error message.

Thanks,

Sandeep.