Skip to Content
0
Former Member
Dec 11, 2006 at 06:44 AM

How would you perform "collect" on internal table field

175 Views

How would you perform "collect" on internal table field.

I need the sum of itab-sumvol (for all different other fields). I have problems (and I guess it is not best idea write internal to an SAP Z-table and then perform collect)

Here is how I created itab

select * from likp .

select * from lips where vbeln = likp-vbeln.

itab-matnr = lips-matnr.

itab-prodh = lips-prodh.

itab-sumvol = lips-lfimg * lips-umvkz / lips-umvkn.

itab-lfimg = lips-lfimg.

itab-umvkz = lips-umvkz.

itab-umvkn = lips-umvkn.

itab-volum = lips-volum.

append itab. clear itab.

endselect.

endselect.