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

Re: Query to get all serial numbers in a Goods Issue

$
0
0

Hi,

 

Please try this query,

 

SELECT T0.[DocNum], T1.[ItemCode], T1.[Quantity],  T4.[IntrSerial]

 

 

FROM OIGE T0

 

 

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

 

 

INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode AND T1.WhsCode = T2.WhsCode

 

 

LEFT JOIN SRI1 T3 ON T3.BaseEntry=T1.DocEntry AND T3.BaseLinNum=T1.LineNum AND T3.BaseType='60'

 

 

LEFT JOIN OSRI T4 ON T3.ItemCode=T4.ItemCode AND T3.SysSerial = T4.SysSerial

 

 

WHERE  T0.[DocDate] between [%0] and [%1] AND T3.[Direction] = '1' AND T2.WhsCode = '[%2]'

 

Thanks


Viewing all articles
Browse latest Browse all 3585

Trending Articles



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