Application Development 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: 

Exception Check

Former Member
0 Kudos

Hi,

i run i debug mode fm how i now if it end with exceptions?

Regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In debug mode check the value of SY-SUBRC.

if its not 0 then Exceptions occur.

6 REPLIES 6

Former Member
0 Kudos

Hi,

In debug mode check the value of SY-SUBRC.

if its not 0 then Exceptions occur.

0 Kudos

Hi Sujit k. Pal ,

Thanks but how i see the exception ?

Regards

0 Kudos

Hi Cosmo Kramer,

When you are calling Fm then In the program you will find the list of exception and their corresponding number.

Suppose the exception is DIVISION_BY_ZERO and exception number is 4.

Now when you are checking the value of sy-subrc in debug mode if the value of SY-SUBRC is 4 , it means the exception DIVISION_BY_ZERO has occured,if else then some other exception has occued according the value.

If 0 then no exception has occured.

Hope i have anwered your query.

regards,

sujit

peter_ruiz2
Active Contributor
0 Kudos

hi,

it executes the RAISE EXCEPTION command.

regards,

Peter

Former Member
0 Kudos

hi,

check this in debugging mode.if the value of SY-SUBRC is not zero i.e it is 4 then exception occurs.

thanks.

rahul

Former Member
0 Kudos

Hi,

Check for the value of sy-subrc in debugging mode.

if it is non zero then an exception occurs.

Thanks

Rajesh