Hi,
I fetched the data using the following select statement .
Select matnr werks menge mblnr zeile bwart from mseg into table it_mseg
FOR ALL ENTRIES IN IT_MKPF where mblnr = it_mkpf-mblnr
and bwart = '201'
or bwart = '202'
or bwart = '261'
or bwart = '262'.
My requirement is, I need to sum all the movement types and get total consumption.
Can some one tell how to do the same.