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

Exception Check

Former Member
0 Likes
959

Hi,

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

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
890

Hi,

In debug mode check the value of SY-SUBRC.

if its not 0 then Exceptions occur.

6 REPLIES 6
Read only

Former Member
0 Likes
891

Hi,

In debug mode check the value of SY-SUBRC.

if its not 0 then Exceptions occur.

Read only

0 Likes
890

Hi Sujit k. Pal ,

Thanks but how i see the exception ?

Regards

Read only

0 Likes
890

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

Read only

peter_ruiz2
Active Contributor
0 Likes
890

hi,

it executes the RAISE EXCEPTION command.

regards,

Peter

Read only

Former Member
0 Likes
890

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

Read only

Former Member
0 Likes
890

Hi,

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

if it is non zero then an exception occurs.

Thanks

Rajesh