Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: Indentifying Closed Plants

$
0
0

Hi Mecca,

 

Yes, we can identify the closed plants based on the material movements. In other words the Plant neither received any material nor distributed the material to the customer.

 

In SAP every material movement with the plant will create the material document.

 

So, you can do like this.

 

* get the all plants from T001w assigned to the company code

* check the MKPF and MSEG tables and display the output.

* from the output you can check which plants are stopped from the goods and services.

 

select required fields
          into corresponding fields of table  it_materialdocuments
          from mkpf as mkpf  join mseg as mseg
                   on mkpf~mandt  mseg~mandt  and
                      mkpf~mjahr  mseg~mjahr

   FOR ALL ENTRIES OF IT_T001E
          where
                  mseg~werks  in  IT_T001W
            and mkpf~budat  ge  datum-low AND

                   mkpf~budat  ge  datum-high.


Thanks,

Kiran


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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