REPORT YSUBCLASS_EXCEPTION_3.
START-OF-SELECTION.
DATA : num type i value 5 .
TRY.
TRY.
num = 'subhendu'.
cleanup.
write:/5 'In cleanup'.
ENDTRY.
CATCH cx_sy_conversion_no_number.
WRITE:/5 'Cannot be converted to number'.
ENDTRY.
Output
In cleanup
Cannot be converted to number
Here you can find examples and sample programs related to ABAP Report Programs, ALV Grid/List Programs, BDC, HR ABAP, Function Modules, BAPIs, BADIs, Smartforms, SapScripts, etc.
Google Search - Blog...........
Showing posts with label abap sample code on try catch block. Show all posts
Showing posts with label abap sample code on try catch block. Show all posts
Subscribe to:
Posts (Atom)