‎2008 Jun 20 9:23 AM
Hi All,
I have the following code written.
SORT i_dberdl BY mwskz.
LOOP AT i_erdk INTO wa_erdk.
LOOP AT i_dberdl INTO wa_dberdl WHERE printdoc = wa_erdk-opbel.
AT END OF mwskz.
flg_end = c_x.
ENDAT.
lwa_nettobtr = lwa_nettobtr + wa_dberdl-nettobtr.
IF flg_end = c_x.
wa_vat2-mwskz = wa_dberdl-mwskz.
wa_vat2-opbel = wa_dberdl-printdoc.
wa_vat2-nettobtr = lwa_nettobtr.
APPEND wa_vat2 TO i_vat2.
CLEAR :lwa_nettobtr,wa_vat2, flg_end.
ENDIF.
ENDLOOP.
ENDLOOP.
for each document number(opbel) in i_dberdl,i need to sum up the nettobtr value having sinilar taxcode(mwskz).tha above logic is giving wrong result.
Please let me know what is wrong in this.
Rgds,
Sai
‎2008 Jun 20 9:26 AM
Sai,
please use the SDN search option before throwing the thread i gave control break statement i got my answer.
Amit.