Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

control break logic

Former Member
0 Kudos

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

1 REPLY 1

former_member181995
Active Contributor
0 Kudos

Sai,

please use the SDN search option before throwing the thread i gave control break statement i got my answer.

Amit.