Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error

Former Member
0 Likes
520

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

4 REPLIES 4
Read only

Former Member
0 Likes
500

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

Read only

Former Member
0 Likes
500

Hi Asohk,

Run time errors will occur at run time only.

To Catch the run time error Check this code,

*--


EXAMPLE FOR RUNTIME ERROR--


*DATA : VALUE1 TYPE I.

*

*VALUE1 = 1 / 0. "----


>>>>>> IT MAKES RUN TIME ERROR.

*

*WRITE : VALUE1.

*--


EXAMPLE FOR HOW TO CATCH THE ARITHMETIC ERROR AT THE RUN TIME USING SUBRC--


*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.

Read only

Former Member
0 Likes
500

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

Read only

Former Member
0 Likes
500

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.