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

Re: Sales order, Purchase order and Goods receipt PO

$
0
0

Based on above screen shot, you have created PO from SO through procurement document.

 

Try this query:

 

SELECT T0.[DocNum], T0.[DocStatus], T2.[DocNum], T2.[DocStatus], T5.[DocNum], T5.[DocStatus] FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry inner join OPOR T2 on T2.[DocNum]  =  T1.[PoTrgNum] inner JOIN POR1 T3 ON T2.DocEntry = T3.DocEntry left join PDN1 T4 on  T4.[BaseEntry] = T3.docentry and  T4.[BaseLine]  = T3.[LineNum] left JOIN OPDN T5 ON T4.DocEntry = T5.DocEntry WHERE T0.[DocDate] between [%0] and [%1]

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 8411

Trending Articles



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