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

Re: Actualizing or removing item warehouse info - OITW using DTW

$
0
0

Hi Leandro,

 

I don't think you can remove warehouses from items with the DTW. Locking unused warehouses will not actually remove the records from the OITW table.

 

Nowadays the Remote Support Platform has a task that will remove unused warehouses for you. I recommend that you use this task.

 

I made the same mistake in the beginning with the "auto add all warehouses" setting, and ended up writing a very simple windows application using the DI API to actually remove all unused warehouses from all of our items. So that is an alternative.

 

In pseudo code:

  1. Run a query to find all Items with unused warehouses (consider document rows if necessary).
  2. Loop through the items in this query
    1. Initiate an Item object
    2. sub loop through the unused warehouses for this item
    3. remove warehouse from item
    4. update item

 

Regards,

Johan


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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