Skip to Content
0
Former Member
Sep 30, 2005 at 08:59 AM

Internal table query

26 Views

Dear all,

I have an internal table with date ,material,plant and quantity as component.

now i want to combine the quantity of those records with same date same plant and same material into a single record.

How can i do it.

eg

data : begin of itab occurs 0,

budat type mkpf-budat,

matnr type mseg-matnr,

erfmg type mseg-erfmg,

end of itab.

I am having data into the internal table as

date material plant quantity

20.07.2005 2 n001 160

20.07.2005 2 n001 60

20.07.2005 2 n002 80

20.07.2005 2 n002 90

please tell how can i combine the first two rows into one.

Regards

Mave