Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to raise an exception in Function Module?

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


Please Help Members By Posting Answers For Below Questions

Explain the different types of mode (run code) in call transaction method?

1047


What does a lock object involve?

1147


What is repository info. Systems?

1066


What is evaluation path, where do we do it and why? : sap abap hr

1136


What are the different window types in sapscript?

983


What is the difference between a substructure and an append structure? : abap data dictionary

1077


Difference between select option and ranges ?

1065


When a function module is activated syntax checking is performed automatically. State yes or no. : abap modularization

1032


The commands through which an abap/4 module can “branch to “ or “call” the next screen are?

1110


How do you process errors in session method ? : abap bdc

1109


What are the different function modules used in sapscript?

1010


WHAT ARE THE INPUT PARAMETERS TO BE PASSED FOR THE BAPIS 'BAPI_CUSTMATINFO_GETDETAILM' AND 'BAPI_CUSTMATINFO_GETLIST'

2215


What is the meaning of table buffer? This buffer is used by which type oftable?

1182


Can you define a field without a data element? : abap data dictionary

1123


What are base tables of an aggregate object? : abap data dictionary

1044