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 |
When was the sap abap being created?
What are selection texts?
What are the types of parameters in the function modules?
i want to see a material master data which is at client side.How can i view that?
how to placed drop down arrow in the input field of module pool table control/ steploop
Wh bapi u have used in rfc?
difference between TYPE and LIKE ?
what is the transaction code for creating a quotation of sales order
give the all step of workflow process step by step
where do we store all custom programs in SD module?
1 Answers Baidu, Thomson Reuters,
Can we use COMMITWORK statements in BADI
Explain how to create any functions? How to go about it?