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

Re: Error in Query report

$
0
0

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


Viewing all articles
Browse latest Browse all 3548

Trending Articles



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