Dynamics AX の新機能、特定の wmslocation のすべてのアイテムを取得する方法と、wmslocation と inventTable の関係とは何ですか?
1 に答える
3
これを行う最も簡単な方法は、その WMS の場所の手持棚卸仕訳帳を作成することです。
これら 2 つのテーブルの間に直接的な関係はありません。inventtable のアイテム ID を使用して、inventtrans テーブルに接続できます。inventtrans テーブルには、itemid、トランザクション タイプ (在庫トランザクション、転送、アイテム カウントなど)、および InventDimID があります。InventDim テーブルには、探している特定のディメンション グループ (wmslocationid) へのリンクがあります。
したがって、SQL は次のようになります。
select distinct (itemid) from inventTrans where inventdimid in
(select inventDimid from inventDim
where wmslocationid = 'WMSLocationID you care about here')
于 2013-05-22T13:10:11.203 に答える