Hiya,
I have an internal table that's has columns:
EBELN - Document number
EBELP - Document Item
Quantity
Price
Other data,
blah, blah, blah
Now I would like to process this internal table so that each Document and its items are processed together.
So I was thinking I would need to split them out.
I was thinking of doing something like this:
Loop at itab into wa_itab.
if sy-tabix = 1.
Append wa_itab to another_itab.
Continue.
endif.
if wa_itab-ebeln = another_itab-ebeln.
continue.
else.
Process all the items for the document via another_itab.
clear another_itab.
endif.
Endloop.
Would that be okay or is there a better way of doing something like this?
Thanks for any input.