‎2008 Apr 15 7:01 AM
can somebody tell me how to raise an exception in function module ?
thx
‎2008 Apr 15 7:06 AM
‎2008 Apr 15 7:06 AM
‎2008 Apr 15 7:06 AM
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
‎2008 Apr 15 7:06 AM
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