I have the following code involving collect:
SORT I_ZDAILY_MVMT BY MATNR WERKS.
LOOP AT I_ZDAILY_MVMT.
AT END OF MATNR.
COLLECT I_ZDAILY_MVMT INTO I_OUTPUT_CHECK.
Say I_ZDAILY_MVMT contains 4 records. All this does is sends 1 record at each loop, until I_OUTPUT_CHECK is filled with the same 4 records and no sum.
How do i fix this?