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

What is the use of 'table index'?

1154


In select-options, how to get the default values as current month first date and last date by default?

1154


Where the payroll results are stored

2425


What is view? Explain the different types of view?

1266


What is the difference between a pool table and a transparent table and how they are stored at the database level?

1112


Which type of tables used this buffer?

1153


8)when u create sales report what u can see in that report ? what rthose field names or data element names? 9)when u create purchase order details report what u can see in that report ?what rthose fieldnames or dataelements? 10)when u create material stock report in material master grouped by material type and plant what u can see in report ?what rthose field names or dataelement ? 11)when u create shipping forecast report what u can see in that report ?what rthose data elements or field names?

2154


Suppose there is check box along with the rows. The requirement is, select the require check boxes and press a used defined button to save all these checked row data to another table. How can you do it?

2102


Explain what are the events used for logical database?

1023


What is table attribute? : abap data dictionary

1104


What is the purpose of at first and at last?

1179


What does the ‘suppress dialog’ do?

1570


What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why? : abap modularization

1159


How can the standard tables of sap be modified?

1182


when does a list get sent to the screen on the presentation layer?

2009