Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

I want outgoing payment sumary

Dear Gurus

I have developed a query for Incoming payments summary and now i want the same for out going payments but i am unable to develop a successfull one.

Incoming query is:

SELECT

T0.DocDate as 'Posting Date',

T0.DocNum as 'AR Invoice Number',

T0.CardName,

T0.DocDate as 'Payment Date',

T1.DocNum as 'Incoming Payment Number ',

T0.DocTotal as 'AR Invoice Total',

T1.TrsfrSum,

T1.CashSum as 'Cash Amount',

T1.CreditSum,

T1.CheckSum,

T2.CheckNum as 'Cheque Number'

FROM OINV T0

LEFT JOIN ORCT T1 ON T0.ReceiptNum = T1.DocEntry

LEFT JOIN RCT1 T2 ON T1.DocNum = T2.DocNum

Left Join OSLP T3 ON T3.SlpCode= T0.SlpCode

where T0.DocDate >='[%0]' and T0.DocDate <='[%1]'

Tags:
replied

Hi,

Try this query:

SELECT

T0.DocDate as 'Posting Date',

T0.DocNum as 'AP Invoice Number',

T0.CardName,

T0.DocDate as 'Payment Date',

T1.DocNum as 'Outgoing Payment Number ',

T0.DocTotal as 'AP Invoice Total',

T1.TrsfrSum,

T1.CashSum as 'Cash Amount',

T1.CreditSum,

T1.CheckSum,

T2.CheckNum as 'Cheque Number'

FROM OPCH T0

LEFT JOIN OVPM T1 ON T0.ReceiptNum = T1.DocEntry

LEFT JOIN VPM1 T2 ON T1.DocNum = T2.DocNum

Left Join OSLP T3 ON T3.SlpCode= T0.SlpCode

where T0.DocDate >='[%0]' and T0.DocDate <='[%1]'

Thanks & Regards,

Nagarajan

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question