Skip to Content
0
Former Member
Sep 03, 2007 at 01:11 PM

not divide in zero

24 Views

hi

i doing this divide and i wont to now what is the <b>best way</b> to do the divide like in bold but take care on divide that not be in <b>0</b> (bring dump)

tankes

i reward

LOOP AT truma_tab ASSIGNING <fs_truma>.

READ TABLE zefi_tab ASSIGNING <fs_zefi> INDEX sy-index.

IF sy-subrc = 0.

<b> wa_per_tab-month1 = <fs_truma>-month1 / <fs_zefi>-month1 .

wa_per_tab-month2 = <fs_truma>-month2 / <fs_zefi>-month2.

wa_per_tab-month3 = <fs_truma>-month3 / <fs_zefi>-month3.</b>

APPEND wa_per_tab TO per_tab.

ENDIF.

ENDLOOP.