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

Re: Is there a link between the Journal tables and the Marketing Document tables?

$
0
0

Hi,

 

For out going payment you have to use OPCH not OINV (AR invoice).

 

try this query for to get AP invoice with payment details:

 

SELECT T0.[DocNum], T0.[DocDate], T0.[CardName],T0.[CashSum], T0.[CreditSum], T0.[TrsfrSum],T0.[DocTotal],  T2.[DocNum], T2.[DocDate], T2.[CardName], T3.[ItemCode], T3.[Quantity], T3.[LineStatus] FROM OVPM T0  INNER JOIN VPM2 T1 ON T0.DocNum = T1.DocNum left join OPCH T2 on t1.docentry = t2.docentry INNER JOIN PCH1 T3 ON T2.DocEntry = T3.DocEntry WHERE T0.[DocDate] between [%0] and [%1] GROUP BY T0.[DocNum], T0.[DocDate], T0.[CardName],T0.[CashSum], T0.[CreditSum], T0.[TrsfrSum],T0.[DocTotal],  T2.[DocNum], T2.[DocDate], T2.[CardName], T3.[ItemCode], T3.[Quantity], T3.[LineStatus]

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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