REPORT YSUBOOPS17 .
start-of-selection.
try.
perform sub_check_no using 5 .
catch cx_sy_zerodivide.
write:/5 'Hello' .
endtry.
FORM sub_check_no USING P_P_NO
RAISING CX_SY_ZERODIVIDE.
p_p_no = p_p_no / 0 .
ENDFORM. " sub_check_no
Output Hello
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 RAISING CX_SY_ZERODIVIDE.. Show all posts
Showing posts with label abap RAISING CX_SY_ZERODIVIDE.. Show all posts
Subscribe to:
Posts (Atom)