‎2007 Jun 07 8:52 AM
HAI,
WHAT IS MEANT BY STATIC AND RUN TIME ERROR ?
WHAT IS TYPE IN THIS ERROR?
HOW CAN HANDLE THAT ERROR?
EXPLAIN IN DETAIL.
IF YOU HAVE ANY MATERIAL PLEASE SEND IT .
THANK YOU
ASHOK KUMAR
‎2007 Jun 07 8:57 AM
HI,
Statis Error means, while you checking the code, we will get the errors, those are static errors, to run a program there should be 0 Static errore,
Runtiem error means, while running the program if any error occurs, the program will goto DUMP, those are the runtime errors ..
Regards
Sudheer
‎2007 Jun 07 8:57 AM
Hi Asohk,
Run time errors will occur at run time only.
To Catch the run time error Check this code,
*--
*DATA : VALUE1 TYPE I.
*
*VALUE1 = 1 / 0. "----
>>>>>> IT MAKES RUN TIME ERROR.
*
*WRITE : VALUE1.
*--
*DATA : VALUE1 TYPE I.
*
*CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 1.
*VALUE1 = 1 / 0.
*WRITE : VALUE1.
*ENDCATCH.
*
*IF SY-SUBRC = 1.
*WRITE : ' IT MAKES ERROR'.
*ELSE.
*WRITE : VALUE1.
*ENDIF.
Thanks,
Reward If Helpful.
‎2007 Jun 07 9:13 AM
Hi
<b>Static error:</b> <b><i>The errors occured during report development</i></b>
<b>Runtime error:</b> <b><i>this error will occur after the execution of the report</i></b>
generally this will occur when there is more data on select field or any syntax errors during execution
Reward if helpfull
Regards
Pavan
‎2007 Jun 07 9:27 AM
hi Ashok,
1) When You get DUMP i.e noting but Runtime error. you will get details of it with tcode ST22 , what happen, how to solve, where error occurs . etc.
2) While making , creating Program when you press , Control + F2. i.e check button then its show error , i. e nothing but . Static error.
if Satisfy give point , and close issue.
Thanks,
Majed.