Catch divide by zero exception in abap


Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 1997

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 1997

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 1997

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 1997

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 1997

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 1997

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 1997

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 1997

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 2009

Warning: Illegal string offset 'status_txt' in /www/htdocs/w00cea89/woppr/wp-content/plugins/share-and-follow/share-and-follow.php on line 2036
REPORT  zmstest_divide_zero_exc.
 
START-OF-SELECTION.
 
  DATA : num TYPE i VALUE 5 .
 
  TRY.
      num = num / 0 .
    CATCH cx_sy_zerodivide .
      WRITE:/5 'Division by 0 caught' .
 
  ENDTRY.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.