Skip to Content
0
Jun 06, 2006 at 04:34 PM

CATCH...ENDCATCH not working with SUBMIT.

264 Views

Hello SAPients.

I have this code:

catch system-exceptions others = 1.

submit (lvc_progid) via selection-screen.

endcatch.

but the error is not catched, I always get a short dump when program doesn't exist, I also tried this:

catch system-exceptions LOAD_PROGRAM_NOT_FOUND = 1.

submit (lvc_progid) via selection-screen.

endcatch.

but when I syntax check the program I get the error "system-exception" expected, not "LOAD_PROGRAM_NOT_FOUND".

What am I doing wrong?

Thank you in advance for your help.