Hi Friends,
I need a function or BAPI which is showing material comsumption and lgort .
I found CONSUMPTION_READ_FOR_MM, but there is no any lgort.
Another solution , I used thable Aufm in my code. But very slow ...
A pieces of my code :
SELECT mblnr budat bwart matnr lgort menge meins FROM aufm
APPENDING CORRESPONDING FIELDS OF TABLE iaufm
FOR ALL ENTRIES IN t_mara_matnr
WHERE budat IN s_datum
AND matnr EQ t_mara_matnr-matnr
AND mjahr EQ lv_yil
AND lgort IN zlgort
AND ( bwart EQ '261' OR bwart = '262' ) .
What do you think of it ?
How can I more fastly ?
Kind Regards