Skip to Content
0
Former Member
Oct 31, 2005 at 03:17 AM

debit/credit amounts

27 Views

Hi,

Iam trying to sum debit & credit amounts separately from bsak table.

The following logic is not working. Can u tell me the problem...

loop at t_bsak.

if t_bsak-shkzg = 'S'.

l_debit = l_debit + t_bsak-wrbtr.

endif.

if t_bsak-shkzg = 'H'.

l_credit = l_credit + t_bsak-wrbtr.

endif.

WRITE:126(12) l_debit.

WRITE:126(12) l_credit.

clear: l_debit,l_credit.

endloop.

kaki