Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Consumption and Lgort


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

replied

Hello Tanju Lise.

     You can use BAPI BAPI_GOODSMVT_GETITEMS.

Regards.

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question