Hello,
this case is performance tuning.
1- use select query before the loop.
2- sort the internal table by field.
2- read the internal table in the loop and use the binary search.
if it_likp is not initial.
select field1 field2 from lips into table I_ITAB_TEST
for all entry it_likp
VBELN = it_likp-VBELN
WHERE B~CHARG = it_likp-CHARG.
endif.
sort I_ITAB_TEST by field1.
LOOP at I_ITAB.
read table I_ITAB_TEST into w_ITAB_TEST with key field1 = itab-field
I_ITAB-GSTRP = I_ITAB_TEST-GSTRP.
MODIFY I_ITAB.
CLEAR I_ITAB_TEST.
ENDLOOP.
Thank's
Amit