‎2007 Jun 26 1:13 PM
What are non-catchable exceptions and how can we overcome these?
‎2007 Jun 26 1:19 PM
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
‎2007 Jun 26 1:16 PM
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.
‎2007 Jun 26 1:18 PM
Hi Manikandan,
If try - Catch statement throws an error whcih cant trace into statement defined as Non-Catchable.
Reward if useful!
‎2007 Jun 26 1:19 PM
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
‎2007 Jun 26 1:19 PM
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.
‎2007 Jun 26 1:20 PM
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.