Hi!
I agree with Tanka.
Sounds like you use a READ, and only show quantity by one record. Maybe need create a new ods consolidated or add in your routine something like:
LOOP RESULT_PACKAGE ASSIGNING <result_fields>.
READ t_ods INTO w_ods WITH KEY k1 = <result_fields>-k1
LOOP t_ods WHERE k1 = <result_fields>-k1.
ADD w_ods-quantity TO <result_fields>-quantity.
ENDLOOP.
ENDLOOP.
Try and check, if you have many record, my advice is create a new ods.
Regards!