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
how to Implement a BADI in which it restricts the access when purchase order is created against contract using definition ME_PURCHDOC_POSTED. please tell me the answers if any one knows. thanks in advance. :ravikiran
What are the fields in the memory table ‘screen’?
what is leave to TRANSACTION?
Do you know any other patterns if yes.. explain
What is logical database? : abap hr
What are the differences between table controls and step loops?
Explain the advantage of structures?
Some Realtime Objects on Bdc.
What does nw 7.4 sp 05/nw 7.5 sp 02 offers in abap?
What are the components of sap scripts? : abap hr
What are the page headers for secondary lists?
Why do we use Abstract classes give an example from your project?
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.
Create any functions? How to go about it?
Can we specify the next screen number with a variable?