Answer Posted / 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 |
Post New Answer View All Answers
What is sap abap tables?
how 2 create the normal form by using functional module
what is difference between user exit, customer exit and badi?
How do you find if a logical database exists for your program requirements?
What is the difference between Exit and Stop?
What is difference between check table and value table ?
What are the different types of internal table?
How can we set the table spaces and extent sizes? : abap data dictionary
When the top-of-page event does get triggered?
Define external layer?
Why do we use Abstract classes give an example from your project?
What is the difference between scrolling a table horizontally and vertically?
How can we determine a vendor is Bloc/Unblock from the table LFA1?
What is netweaver???what is the relationship with ABAP?
Why do we use FOR ALL ENTRIES and what is the pre-requisite