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

Re: Want to know the item's batch no and to warehouse's bin code in inventory transaction

$
0
0

SELECT T0.DocNum, T1.ItemCode, T2.BatchNum, T5.BinCode, T4.WhsCode, T4.OnHandQty

FROM OPDN T0

  INNER JOIN PDN1 T1 ON T0.DocEntry = T1.DocEntry

  INNER JOIN OIBT T2 ON T2.BaseEntry = T0.DocEntry and T2.BaseType = 20

  INNER JOIN OBTN T3 ON T3.ItemCode = T2.ItemCode and T2.BatchNum = T3.DistNumber and T2.SysNumber = T3.SysNumber

  INNER JOIN OBBQ T4 ON T3.ItemCode = T4.ItemCode and T3.AbsEntry = T4.SnBMDAbs

  INNER JOIN OBIN T5 ON T5.AbsEntry = T4.AbsEntry

WHERE T0.DocEntry = 442 -- DocEntry Number


Viewing all articles
Browse latest Browse all 9656

Trending Articles



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