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 are local objects? : abap data dictionary
Is it possible to bring select option in module pool screens?
How to get that a secondary index is attached to a select query?
What is its? : abap hr
What will be your approach towards optimizing legacy code? Will you suggest change in technology? Does OO ABAP bring any performance benefits? How will you deal with queries in a loop? How will you optimize nested loops?
What are interface/conversion programs in SAP?
Can we control the sequence in which multiple implementations of a multiple use BADI are called? If yes, how?
Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.
What are the difference between call screen and leave screen?
Hi! I want to join SAP ABAP course in Hyderabad, can any one tell me where should I join? and Which is the best institute for SAP WORKSHOP? Thank you...
How does the system handle roll areas for external program components?
A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?
What are the different types of data dictionary objects? : abap data dictionary
What is a function group? : abap modularization
How table control cn be generated using bdc? : abap bdc