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

RAISE

Former Member
0 Likes
1,191

Hi Experts,

Can anybody tell me what is the following syntax means....

RAISE HARD_ERROR.

I came across this statement in a method.

Regards,

Sangeeta.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,083

Hi,

RAISE statement we will use in function module for raise an exception (ERROR) messeges, in normal program we will write error message using messege classes like E,S,I,W,A same way we will use RAISE statement in function module.

if it use full answer reward me a points.

praveen

8 REPLIES 8
Read only

varma_narayana
Active Contributor
0 Likes
1,083

Hi..

RAISE <EXCEPTION>

This statement is used to Raise (Trigger) exceptions in Methods and Function modules.

This statement terminates the Method or FM execution and Returns the Control to Calling Program.

In the Calling program we have to handle the Exception.

<b>Reward if Helpful.</b>

Read only

Former Member
0 Likes
1,083

Hi sangeetha

raise exception .

this statement is only effective in function modules and methods ,it raises an exception which r defined at exceptions.

Regards

sandhya

Read only

Former Member
0 Likes
1,083

Hi Sangetha,

RAISE will be used in Exceptions and for handling events..

If u want to catch any exceptions means u can use RAISE <Exception-name>

In OOABAP there will be a concept called events...If u want to call the event in ur class means u need to use RAISE EVENT<event-name>

REWARD IF USEFUL

Read only

Former Member
0 Likes
1,083

Hi Friends,

I am not asking about exceptions.

What I want to know is <b>what HARD_ERROR STANDS for?</b>

Is it an exception name. If it is then where it is catched?

Or is it something else?

Thanks,

Sangeeta.

Read only

0 Likes
1,083

Its an exception name only....

Read only

Former Member
0 Likes
1,084

Hi,

RAISE statement we will use in function module for raise an exception (ERROR) messeges, in normal program we will write error message using messege classes like E,S,I,W,A same way we will use RAISE statement in function module.

if it use full answer reward me a points.

praveen

Read only

0 Likes
1,083

I think tht was a user defined exception..

Are u working in a previously defined program(Support)

Read only

0 Likes
1,083

Hi Mahesh,

Yes I am working on a user defines program...A spport project you can say...

Regards,

Sangeeta.

Message was edited by:

Sangeeta