Skip to Content
0
Former Member
Apr 28, 2009 at 01:23 PM

Please sugget me how to improve the performance for the logic.....

28 Views

Hi All.

Please sugget me how to improve the performance for the logic as given below.

loop at i_vbep.

loop at i_z1234 where vbeln_va = i_vbep-vbeln

and posnr_va = i_vbep-posnr.

at end of zpd.

sum.

v_tot_quantity_kg = i_z1234-brgew.

endat.

loop at i_z5678 where zpd = i_z1234-zpd

and zld = i_z01234-zlegid.

at end of zpallid.

sum.

v_tot_quantity = i_z5678-zcpalqty.

endat.

clear i_mara.

read table i_mara with key matnr = i_z5678-zpmatnr

binary search.

if sy-subrc = 0.

perform convert_m2 using v_tot_quantity

i_z5678

i_mara.

modify table i_z5678.

endloop.

endloop.