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