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 in Function Module

Former Member
0 Likes
526

can somebody tell me how to raise an exception in function module ?

thx

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
498

Reward points..

3 REPLIES 3
Read only

Former Member
0 Likes
499

Reward points..

Read only

Former Member
0 Likes
498

Hi,

It's RAISE except.

This statement is only used in function modules and methods.

The exception except is triggered.

If this exception is handled by the program calling the function module or method ( CALL FUNCTION and CALL METHOD ), control returns to the caller. The current value of the EXPORTING , CHANGING (and RETURNING parameters) of the function module or method are only returned from the procedure if they are defined as passed by reference (not if they are passed by value). If the exception is not handled by the caller, the program

aborts with an appropriate error message.

Regards

Read only

Former Member
0 Likes
498

You can define an exception in the Exceptions Tab.

and raise it usuing raise statement.

Eg. if your exception is 'NOT_FOUND'.

Then in source code use like,

RAISE NOT_FOUND.

Edited by: Rengith Skariah on Apr 15, 2008 8:07 AM