Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Consumption and Lgort

$
0
0


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


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>