‎2007 May 28 11:02 AM
‎2007 May 28 11:06 AM
Exceptions in function modules or classes denote those situations where the function module or class has failed to perform the task for which it is intended.In such cases we fill the exception tab in function or class with all possible exception cases that can be anticipated
‎2007 May 28 11:04 AM
Hi,
exceptions are errors that may occur in the Fm.
you have to raise exceptions that you think might occur!
‎2007 May 28 11:05 AM
Each exception is an error condition.
Hope this will solve ur problem..
<b><u>Dont forget to reward all the useful replies</u></b>
Sudheer
‎2007 May 28 11:05 AM
Hi,
lwa_error-level = 1.
lwa_error-severity = 'E'.
lwa_error-langu = sy-langu.
lwa_error-ag = 'FTI_LDB_MESSAGE'.
lwa_error-msgnr = 202.
lwa_error-var1 = i_rfha.
APPEND lwa_error TO e_t_error.
Error number : Number of the mesage
class : msg class
text: Any tectxt to appear along with the msg
Var1..var4 can hold values
***do reward if usefull
regards,
vijay
‎2007 May 28 11:06 AM
Hi,
Go thru this Link,
http://help.sap.com/saphelp_nw04/helpdata/en/9e/d58167116711d5b2f40050dadfb92b/frameset.htm
Regards,
Padmam.
‎2007 May 28 11:06 AM
Exceptions in function modules or classes denote those situations where the function module or class has failed to perform the task for which it is intended.In such cases we fill the exception tab in function or class with all possible exception cases that can be anticipated
‎2007 May 28 11:08 AM
Hi,
In general in report programm we will display some messages according to situation.
In the same way while creating FM , insated of messgaes we will go for exceptions.
Ex: RASIE NO_DATA.
suppose if the FM doesnt export any parametrs, then in that siatution we will raise exception RASIE NO_DATA.(cpends on theuser requiremnt too)
wen we call the FM , each exception will be assigned a one number.
and after calling the fM in report program , we will check thru sy-subrc .
if sy-subrc = 1(i.e NO_DATA message)
;;;;;;
;;;;;
some logic.
endif,
Revert back if any issues.
Reward with points if helpful.
Regards,
Naveen.