Hi,
Found two issues in your query:
1. T0.itemcode--> It should T1.itemcode
2. Remove comma after location
Try this:
SELECT T1.[ItemCode],T1.[Dscription], T4.[OnHand] ,(T4.[OnHand]*T1.Price) as 'Inventry price',
T1.[OpenQty] as 'Open Qty', (T1.[OpenQty]*T1.Price) as 'Open Amt', T3.Location as 'Location '
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OITM T4 ON T1.ItemCode=T4.ItemCode INNER JOIN OLCT T3 ON T1.LocCode = T3.Code
INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode WHERE T0.[DocStatus] ='o' AND T1.OpenQty > '0'
Thanks