Application Development 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: 

why do we use raising error_with_message.?

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

The raising statement is to trigger an exception, for instance if your code is in a Function Module...

0 Kudos

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

0 Kudos

where you are using the raising the message. i mean under which event you are raising.

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

hhh