cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Exceptions in function module

Former Member
0 Kudos

Hi,

wt is the exceptions in function module? can anyone tell me?

Thanks

swathi

Accepted Solutions (0)

Answers (2)

Answers (2)

naimesh_patel
Active Contributor
0 Kudos

Exception is the mechanism by which you can give the error messages back to the program.

Say for the REUSE_ALV_GRID_DISPLAY, we have so many exceptions. Every exception has some meaning. Say the exception PROGRAM_NOT_FOUND will be raised when you had passed wrong program name in the CALLBACK program.

PROGRAM_NOT_FOUND = 1...

If the exception was raised than this value will be set to the SY-SUBRC.

SO, by accessing SY-SUBRC, you can get to know which exception was raised.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi,

try this link :

Regards,

Esha