How to raise an exception in Function Module?
Answers were Sorted based on User's Feedback
Answer / prashant tiwari
There are two ABAP statements for raising exceptions. They
can only be used in function modules:
RAISE <except>.
and
MESSAGE..... RAISING <except>.
The effect of these statements depends on whether the
calling program handles the exception or not. If the name
<except> of the exception or OTHERS occurs in the
EXCEPTIONS addition of the CALL FUNCTION statement, the
exception is handled by the calling program.
If the calling program does not handle the exception
The RAISE statement terminates the program and switches to
debugging mode.
The MESSAGE ..... RAISING statement display the specified
message. How the processing continues depends on the
message type.
If the calling program handles the exception, both
statements return control to the program. No values are
transferred. The MESSAGE ..... RAISING statement does not
display a message. Instead, it fills the system fields SY-
MSGID, SY-MSGTY, SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
Is This Answer Correct ? | 12 Yes | 1 No |
Answer / shankar
1-System_Failure
2-Communication-failure
Thru this we can raise an exception..
Is This Answer Correct ? | 2 Yes | 14 No |
What are the components of sap scripts? : abap hr
when do you need to create an internal table with header line ?and with out a header line?
13) How to get POPUP SCREEN in a program?
In Between events you can use loop Say Yes or No?
What is the significance of delivery class ? : sap abap data dictionary
difference between BAPI and RFC?
What are the types of table fields in the sap abap?
if bdc session method is to be executed at some particular time without using sessions? how?
Which of the following is not an exit command? Exit, Back, Cancel, Stop
How to disable the function in alv tool bar.
if data is inserted only using bdc open and bdc insert and not bdc close session funx module wat will happend? will data b inserted?
What is the significance of main window in a page, what are the types of the window?