I need help in a code point that is very slow.. to avoid select sums in a loop, i tried the following code. but it is still so slow:
select charg lfimg shkzg from lips
join likp ON lips~vbeln = likp~vbeln
into CORRESPONDING FIELDS OF table gt_lips
FOR ALL ENTRIES IN gt_lotes
WHERE charg = gt_lotes-charg
AND wadat_ist NE '00000000'.
Gt_lotes is an internal table of Charg.
Can anyone help?