REPORT YSUBCLASS_EXCEPTION_3.
START-OF-SELECTION.
DATA : num type i value 5 .
TRY.
TRY.
NUM = NUM / 0.
CATCH cx_sy_ZERODIVIDE .
WRITE:/5 'Division by 0 caught'.
NUM = 'SUBHENDU'.
ENDTRY.
CATCH cx_sy_conversion_no_number.
WRITE:/5 'Cannot be converted to number'.
ENDTRY.
Output:
Division by 0 caught
Cannot be converted to number
Welcome To My BLOG
This site is to give a brief idea for the abap learners who are looking for some real time programs .It consists of collection of programs from my side . I hope these programs are very much used for all of the learners. Please check the links for any information in ABAP.
Please vote for my Blog. And please input me on this mail addrssess.Email me
Please vote for my Blog. And please input me on this mail addrssess.Email me
Share this link with your friends
http://www.rebtel.com/u/15163104576
No comments:
Post a Comment