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

Re: Inventory Transfer with bin Locations

$
0
0

You can also try below query,

 

SELECT T0.ObjType 

  , T0.DocEntry 

  , T1.DocLine 

  , T1.ItemCode ItemCode 

    , T3.DistNumber BatchNumber  

  , (T1.DocQty/Abs(T1.DocQty)) * T2.Quantity Quantity 

  , T2.BinAbs BinAbs 

  , T1.LocCode Whse 

  , T4.BinCode BinCode 

  , T1.LogEntry 

FROM OWTR T0 JOIN OITL T1 ON T0.DocEntry = T1.DocEntry AND T0.ObjType  = T1.DocType AND ISNULL(T1.DefinedQty,0)>0 

  JOIN OBTL T2 ON T1.LogEntry = T2.ITLEntry 

  LEFT JOIN OBTN T3 ON T2.SnBMDAbs = T3.AbsEntry 

  LEFT JOIN OBIN T4 ON T2.BinAbs = T4.AbsEntry 

WHERE  T0.DocEntry  = [%0]

ORDER BY T0.DocEntry, T1.DocLine, T1.LogEntry 

 

Thanks


Viewing all articles
Browse latest Browse all 8581

Trending Articles



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