Skip to Content

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

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

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.

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