Skip to Content
0
Former Member
May 12, 2008 at 08:06 PM

Totalling with out NESTED LOOPS??

21 Views

Hi Experts,

I hv data in t_vbak and t_vbap itabs.

I need to SUM the QUANTITY i.e. VBAP-KWMENG for each VBELN in VBAK i.e each Doc.

So, normally, I use,

loop at t_vbak.

loop at t_vbap where vbeln = t_vbak-vbeln

tot_qty = tot_qty + vbap-kwmeng

endloop.

modify ......

endloop.

But, I do not wanna to use NESTED LOOPS, so, pls. let me any other solution?

thanq