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

Non-catchable exceptions

Former Member
0 Likes
1,249

What are non-catchable exceptions and how can we overcome these?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
784

Hi,

When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you can check the following SY-SUBRC -

SY-SUBRC = 0: Job scheduled successfully

SY-SUBRC = 4: Job scheduling terminated by user

SY-SUBRC = 8: Error in job scheduling (JOB_SUBMIT)

SY-SUBRC = 12: Error in internal number assignment

Reward if useful

Regards

Ashu

5 REPLIES 5
Read only

Former Member
0 Likes
784

Hi,

Run time errors are the Non catchable Errors.

Non-Catchable Exceptions

Cause: The specified program was not found.

Runtime Error: LOAD_PROGRAM_NOT_FOUND

Cause: You tried to transfer an invalid value to a selection using the addition SIGN.

Runtime Error: SUBMIT_WRONG_SIGN

Cause: The specified program is not a report.

Runtime Error: SUBMIT_WRONG_TYPE

Cause: You tried to transfer more than one value to a report parameter.

Runtime Error: SUBMIT_IMPORT_ONLY_PARAMETER

Cause: You tried to use WITH sel IN itab to transfer a table that does not have the appropriate structure to a selection.

Runtime Error: SUBMIT_IN_ITAB_ILL_STRUCTURE

Cause: You tried to transfer a parameter that cannot be converted to the target field to the selection screen.

Runtime Error: SUBMIT_PARAM_NOT_CONVERTIBLE

Thanks,

Reward If Helpful.

Read only

Former Member
0 Likes
784

Hi Manikandan,

If try - Catch statement throws an error whcih cant trace into statement defined as Non-Catchable.

Reward if useful!

Read only

Former Member
0 Likes
785

Hi,

When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you can check the following SY-SUBRC -

SY-SUBRC = 0: Job scheduled successfully

SY-SUBRC = 4: Job scheduling terminated by user

SY-SUBRC = 8: Error in job scheduling (JOB_SUBMIT)

SY-SUBRC = 12: Error in internal number assignment

Reward if useful

Regards

Ashu

Read only

Former Member
0 Likes
784

you can catch them using TRY..CATCH

<b>TRY.</b>

p_target = p_source.

<b>CATCH</b> cx_sy_conversion_no_number INTO lr_exception.

Read only

Former Member
0 Likes
784

Hi,

Non-Catchable Exceptions are nothing but the Run-Time Errors.

The Exceptions that the System can't Catch is Said to be Run Time Errors or Non-catchable Exceptions.

Example:

<b>Non-Catchable Exceptions in COLLECT Statement:</b>

Cause: COLLECT on non-numeric fileds

Runtime Error: TABLE_COLLECT_CHAR_IN_FUNCTION

<b>Non-Catchable Exceptions in SUBMIT Statement:</b>

Cause: The specified program was not found.

Runtime Error: LOAD_PROGRAM_NOT_FOUND

Cause: Invalid value passed to a selection with SIGN.

Runtime Error: SUBMIT_WRONG_SIGN

Cause: The specified program is not a report.

Runtime Error: SUBMIT_WRONG_TYPE

Cause: More than one value passed to a report parameter.

Runtime Error: SUBMIT_IMPORT_ONLY_PARAMETER

Cause: Table passed to a selection with WITH sel IN itab that has an unexpected structure.

Runtime Error: SUBMIT_IN_ITAB_ILL_STRUCTURE

Regards,

Padmam.