10-09-2008 11:44 AM
hi friends
i was dispalying an error message like message
e162(zya) with 'message'
raising error_with_message.
when iam using raising error_with_message. its showing like information message in pop up why its *not showing
error message*?
thanks & regards
deepurd
10-09-2008 11:53 AM
The raising statement is to trigger an exception, for instance if your code is in a Function Module...
10-10-2008 8:24 AM
hi friends
i was dispalying an error message like message
e162(zya) with 'message'
raising error_with_message.
when iam using raising error_with_message. its showing like information message in pop up why its *not showing
error message*?
thanks & regards
deepurd
10-10-2008 8:26 AM
where you are using the raising the message. i mean under which event you are raising.
10-10-2008 8:31 AM
RAISING is used for triggering exceptions in a function module. The exception type that is declared in the exceptions section in the function module attributes.
10-10-2008 8:27 AM
in FM you can define Exceptions in a tab
like div_by_zero
now in FM source code
if b = 0.
message.... raising div_by_zero.
"execution will stop at this point
endif.
c = a/b
Edited by: Amit Gupta on Oct 10, 2008 9:27 AM
12-29-2008 4:17 AM