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
Explain the different types of mode (run code) in call transaction method?
What does a lock object involve?
What is repository info. Systems?
What is evaluation path, where do we do it and why? : sap abap hr
What are the different window types in sapscript?
What is the difference between a substructure and an append structure? : abap data dictionary
Difference between select option and ranges ?
When a function module is activated syntax checking is performed automatically. State yes or no. : abap modularization
The commands through which an abap/4 module can “branch to “ or “call” the next screen are?
How do you process errors in session method ? : abap bdc
What are the different function modules used in sapscript?
WHAT ARE THE INPUT PARAMETERS TO BE PASSED FOR THE BAPIS 'BAPI_CUSTMATINFO_GETDETAILM' AND 'BAPI_CUSTMATINFO_GETLIST'
What is the meaning of table buffer? This buffer is used by which type oftable?
Can you define a field without a data element? : abap data dictionary
What are base tables of an aggregate object? : abap data dictionary