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 |
Differentiate between report and dialog program
What secondary index and use of it and how many secondary index we can create?
what is search helps..How many types are there?
What are client dependent objects in abap/sap?
What is tmg?
what is macro and function?
what is abap token?
3. What is table maintaince generator ? How do u do it ? Use of it ?
1.If there is one receiver,then To send 10 materials at a time through BD10 tcode, How many Master Idoc create? 2.If there is one receiver,then To send 1 material at a time through BD10 tcode, how many Master Idoc generated? 3.Can I Send Multiple Messges through BD10 tcode?
How to maintain lists?
what is the button to change the variant in alv?
1 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
Difference between domain and data element? What are aggregate object?