Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

on change of

if i_bsis[] is not initial.

sort i_bsis[] by vbund belnr.

endif.

loop at i_bsis.

IF i_bsis-shkzg = 'S'.

i_bsis-dmbtr = i_bsis-dmbtr * -1.

ENDIF.

gv_total = gv_total + i_bsis-dmbtr.

wa_bsis = i_bsis.

wa_bsis-total = gv_total.

*at end of vbund.

on change of i_bsis-vbund.

append wa_bsis to i_bsis_1.

clear wa_bsis.

clear i_bsis.

clear gv_total.

*endat.

endon.

endloop.

wat is wrong with this code

i am getting wrong values

some of the items have vbund as blank

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question