Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Exception Check

Hi,

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

Regards

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question