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

why do we use raising error_with_message.?

Former Member
0 Likes
1,700

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

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
Read only

Former Member
0 Likes
1,343

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

Read only

0 Likes
1,343

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

Read only

0 Likes
1,343

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

Read only

0 Likes
1,343

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.

Read only

Former Member
0 Likes
1,343

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

Read only

Former Member
0 Likes
1,343

hhh