PLD in payments query
Hello All,
Could any one please help me how to get project code & Profit center code on PLD for Outgoing payment Account type.
SAP B1 2007 B PL08
Thanks in advance,
project code - In header level use table OVPM - PrjCode,Row level VPM4 - Project
Profit Centre - Row level VPM4 - Dimension/OcrCode
Similar Messages
-
How to define the PLD of a Query generator report
Hi All,
I want to define the PLD of a Query Report. Currently I am Convertning it to Excel format. But my client wants it in PLD format. so please tell me the process of defining the PLD for a Query generator Report.
Thanks & Regards
Pankaj Sharma.Hi,
When u wrote yr query at that time save yr query
Now yr query is save in "Query Manager"
Open Query Manager > select yr query
There is a button "Create Report"
Create USer Report Window is display "define yr name" and select "Base Temple"
once u save it double click and edit yr PLD....
Hope it a best way to create uer PLD
Thanks
Kevin -
Preview Draft Number in PLD Outgoing Payment
Hi All,
Anybody know how to preview draft number (field docentry, table OPDF) in PLD Outgoing Payment?
and how to link payment draft report(OPDF) with outgoing payment (OVPM)?
Thank U all.
Regards,
RatnaHi Ratna,
You may check these threads:
Re: Print Draft Number on an AR Invoice
Re: Print Layout Designer
PO Draft no. and associated actual PO no.
Thanks,
Gordon -
How to make custom PLD from a query
How would I make a PLD from a query?
HI Jonathan,
Did you mean this?
Choose query that you want to create PLD then select create report
Regards,
JP -
Print layout design (PLD) - Incoming Payment
Hi All,
Under incoming payment, can i have the details in terms of line by line? Somehow rather, the design that was produced by the 'system', they details of my payment is gather together in one box. How can i have it to be line by line? It looks more nicer to be given to my customer as an official receipt.
Anyone has come across on this?
Need your experts urgently.
Thanks.
HarithHi Harith,
The requirment what you are asking is not possible through PLD but the format what you have asked is possible through Query Print Layout Design.
here you will create the Query which fetchs the required value the design the PLD for that in the Query Print Layout.
As we had faced similar situation we resolved it by using Query Print Layout Designer.
hope this helps you out.
Regards,
Shreyas -
Printing Error in (PLD) outgoing payment
Hello Experts,
In outgoung payment we have three options at the top a. Vendor, b. Customer, c. Account. When I create a payment using Vendor or Customer and take the printout, it works fine (i.e. PLD works fine, no error in printout).
If I create a payment using Account option and take the printout, it gives an error on same PLD "No matching record found 'Payment Terms' (OCTG) (ODBC - 2028) [Message 131- 183] "
Help required please
Thanks & Regards,
Edited by: Shahzad Nazir on Oct 6, 2011 3:23 PMHi,
Please run the following query :
Run the following query:
If not exists (select 1 from OCTG where groupnum = '-1')
select 'TRUE' from OCRD where GroupNum ='-1'
union
select 'TRUE' from OVPM where doctype = 'A'
union
select 'TRUE' from ORCT where doctype = 'A'
If the above Select query retrieves results ('TRUE'), log a support message through SAP Service Marketplace referring to Note No. : [1555242|https://b1-support.wdf.sap.corp/sap/support/notes/1555242] and include all relevant information.
Kind Regards,
Jitin
SAP Business One Forum Team -
Due Date
Invoice amount
Receipt Number
Payment Date
Paid amount.
For all Receipt I tried to link Invoice. RCT2 ORCT and OITR and ITR1 table to get all invoices and receipt including reconciled one. but my query is not linking reconciled invoices
Please help me to fix this issue.Dear Poonam,
Have you check this query or not?
Give a try to this query....
Select * from (SELECT distinct T2.[CardCode],
T2.[CardName], T2.[DocNum] [Invoice#], T2.[DocDate],
T2.[DocDueDate], T2.[DocTotal], T0.[ReconDate] [Paid Date],
T0.[Total] [Paid Amount],
(Select distinct T5.DocNum from
ORCT T5 inner join ITR1 T6 on T5.DocEntry = T6.SrcObjAbs and
T6.SrcObjTyp = '24' where T6.ReconNum = T0.ReconNum) [Payment Num]
FROM [dbo].[OITR] T0 INNER JOIN ITR1 T1 ON T0.ReconNum = T1.ReconNum
inner join OINV T2 on T1.[SrcObjAbs] = T2.DocEntry
and T1.SrcObjTyp = 13) A
Where A.[Payment Num] is not null
Let me know the feedback....
Regards,
Bala -
AP Outgoing Payment Query with Crystal Report
Hi Experts, I'm trying to make query for AP Outgoing Payment followings. However, I couldn't get result of Outgoing Payment Number, TrsfrSum, CashSum, CheckSum. Is anyone could advise for this matter? Thanks,
SELECT
T0.DocDate as 'Posting Date',
T0.DocNum as 'AP Invoice Number',
T0.CardName as 'Supplier Name',
T0.DocDate as 'Payment Date',
T1.DocNum as 'Outgoing Payment Number ',
T0.DocTotal as 'AP Invoice Total',
(T0.[DocTotal] - T0.[PaidToDate]) as 'AP Sum',
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.TrsfrSum
END AS 'TrsfrSum',
CASE
WHEN T1.CashSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CashSum
END AS 'CashSum',
CASE
WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CheckSum
END AS 'CheckSum',
CASE
WHEN T1.CreditSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CreditSum
END AS 'CreditSum',
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.TrsfrSum
END 'Paid To Date',
T2.CheckNum as 'Cheque Number'
FROM OPOR 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
UNION ALL
SELECT
T0.DocDate as 'Posting Date',
T0.DocNum as 'AP Invoice Number',
T0.CardName as 'Supplier Name',
T0.DocDate as 'Payment Date',
T1.DocNum as 'Outgoing Payment Number ',
T0.DocTotal * -1 as 'AP Invoice Total',
T0.PaidToDate * -1 as 'AP Sum',
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.TrsfrSum
END AS 'TrsfrSum',
CASE
WHEN T1.CashSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CashSum
END AS 'CashSum',
CASE
WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CheckSum
END AS 'CheckSum',
CASE
WHEN T1.CreditSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CreditSum
END AS 'CreditSum',
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.TrsfrSum
END 'Paid To Date',
T2.CheckNum as 'Cheque Number'
FROM ORPC 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
ORDER BY 'CreditSum', 'CheckSum', 'CashSum', 'TrsfrSum', 'AP Sum'Hi Stephan,
Try:
SELECT
T0.DocDate as 'Posting Date',
'AP Invoice' as 'Type',
T0.DocNum as 'AP Number',
T0.CardName as 'Supplier Name',
T0.DocDate as 'Payment Date',
T1.DocNum as 'Outgoing Payment Number ',
T0.DocTotal as 'AP Invoice/CR Total',
(T0.DocTotal - T0.PaidToDate) as 'AP Sum',
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.TrsfrSum
END AS 'TrsfrSum',
CASE
WHEN T1.CashSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CashSum
END AS 'CashSum',
CASE
WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CheckSum
END AS 'CheckSum',
CASE
WHEN T1.CreditSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CreditSum
END AS 'CreditSum',
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.TrsfrSum
END 'Paid To Date',
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
UNION ALL
SELECT
T0.DocDate as 'Posting Date',
'AP Credit Memo',
T0.DocNum as 'AP Number',
T0.CardName as 'Supplier Name',
T0.DocDate as 'Payment Date',
T1.DocNum as 'Outgoing Payment Number ',
T0.DocTotal * -1 ,
T0.PaidToDate * -1 as 'AP Sum',
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.TrsfrSum
END AS 'TrsfrSum',
CASE
WHEN T1.CashSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CashSum
END AS 'CashSum',
CASE
WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CheckSum
END AS 'CheckSum',
CASE
WHEN T1.CreditSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CreditSum
END AS 'CreditSum',
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.TrsfrSum
END 'Paid To Date',
T2.CheckNum as 'Cheque Number'
FROM ORPC 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
ORDER BY 'CreditSum', 'CheckSum', 'CashSum', 'TrsfrSum', 'AP Sum'
Thanks,
Gordon -
Hi Experts,
I have got query to see daily cheque payment history which only related prior date's invoice from today.
However, I am stuck to get right result when there are multiple seperate payment history for same customer.
I appreciate for any helps in advance.
SELECT
'Cheque',
T0.DocDate as 'Posting Date',
T0.DocNum as 'AR Invoice Number',
T0.CardName,
T1.DocDate as 'Payment Date',
T1.DocNum as 'Incoming Payment Number ',
T0.DocTotal as 'AR Invoice Total',
(T0.DocTotal - T0.PaidToDate) as 'AR Sum',
CASE
WHEN T0.ObjType = 13 THEN 'ARIV'
WHEN T0.ObjType = 14 THEN 'ARCR'
ELSE 'N/A'
END AS 'Doc Type',
CASE
WHEN T1.Series = 12 THEN 'IPAY'
WHEN T1.Series = 15 THEN 'OPAY'
ELSE 'N/A'
END AS 'Doc Series',
T0.ObjType,
T1.Series,
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T1.TrsfrSum
ELSE T1.TrsfrSum
END AS 'TrsfrSum',
CASE
WHEN T1.CashSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CashSum
END AS 'CashSum',
CASE
WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
WHEN T1.CheckSum < T0.DocTotal THEN T1.CheckSum
ELSE T1.CheckSum
END AS 'CheckSum',
CASE
WHEN T1.CreditSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CreditSum
END AS 'CreditSum',
CASE
WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
WHEN T1.CheckSum < T0.DocTotal THEN T1.CheckSum
ELSE T1.CheckSum
END AS 'Paid To Date',
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 T1.CheckSum>0 AND DateDiff(D,T1.DocDate,GetDate()) = 0 AND DateDiff(D,T0.DocDate,GetDate()) > 0Hi,
Check this whether this is what you require :
SELECT
'Cheque',
T0.DocDate as 'Posting Date',
T0.DocNum as 'AR Invoice Number',
T0.CardName,
T1.DocDate as 'Payment Date',
T1.DocNum as 'Incoming Payment Number ',
T0.DocTotal as 'AR Invoice Total',
(T0.DocTotal - T0.PaidToDate) as 'AR Sum',
CASE
WHEN T0.ObjType = 13 THEN 'ARIV'
WHEN T0.ObjType = 14 THEN 'ARCR'
ELSE 'N/A'
END AS 'Doc Type',
CASE
WHEN T1.Series = 12 THEN 'IPAY'
WHEN T1.Series = 15 THEN 'OPAY'
ELSE 'N/A'
END AS 'Doc Series',
T0.ObjType,
T1.Series,
CASE
WHEN T1.TrsfrSum > T0.DocTotal THEN T1.TrsfrSum
ELSE T1.TrsfrSum
END AS 'TrsfrSum',
CASE
WHEN T1.CashSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CashSum
END AS 'CashSum',
CASE
WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
WHEN T1.CheckSum < T0.DocTotal THEN T1.CheckSum
ELSE T1.CheckSum
END AS 'CheckSum',
CASE
WHEN T1.CreditSum > T0.DocTotal THEN T0.PaidToDate
ELSE T1.CreditSum
END AS 'CreditSum',
CASE
WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
WHEN T1.CheckSum < T0.DocTotal THEN T1.CheckSum
ELSE T1.CheckSum
END AS 'Paid To Date',
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 T1.CheckSum >0
AND DateDiff(DD,T1.DocDate,GetDate()) >= 0
ORDER BY t0.docnum
Kind Regards,
Jitin
SAP Business One Forum Team -
Pending Incoming Payments Query
I'm new in this Forum.
My problem is to get the same information from "Banking -> Incoming Payments -> Incoming Payments (Documents for Payment)" in a query.
I tried to know these tables through "Debug Information" but in these case I couldn't obtain them.
Does anyone know which tables I need to retrieve these information from?
Any reply will be welcome. Thanks a lot.Hi Josep,
I think the table you are after is RCT2. The table structure for Incoming Payments is as follows:
ORCT - Incoming Payment (header)
RCT1 - Checks
RCT2 - Invoices
RCT3 - Credit Vouchers
RCT4 - Account List
RCT5 - Receipt VAT adjustment
RCT6 - Withholding Tax
RCT7 - Document Tax Amount
If you have access to the SDK then this includes the database schema amongst the help files (in later versions of the SDK this can accessed through the SDK Help Center).
Hope this helps,
Owen -
Hello everybody,
Is there any way to calculate the duedate of a check I want to create in outgoing payment object according to some a/p invoices that had marked in the outgoing payment.
I want to calculate duadate of three a/p invoices. every invoice has a diferent total value and different duedate.
I tried to create a FMS with a UDF , but I don't know how to get the marked records from VPM2 before the outgoing payment is saved.
Thank you all,
JosephHi Joseph,
you can try this query and see if you get the desired result. Let me know.
select T0.DocNum, T0.DocDate, T0.CardCode, T0.CardName, T1.CheckNum,T1.DueDate 'Check due date', T1.CheckSum, T1.BankCode + ' ' + T1.Branch + ' ' + T1.AcctNum Account
from ovpm T0 inner join vpm1 T1 on T1.DocNum = T0.DocEntry
inner join jdt1 T2 on T2.TransId = T0.TransId
inner join dsc1 T3 on T3.BankCode = T1.BankCode and T3.Branch = T1.Branch and T3.Account = T1.AcctNum
where T0.Canceled = 'N'
and T2.Ref3Line = T1.CheckNum
and T2.ExtrMatch = 0
and T2.Account = T3.GLAccount
order by T0.DocNum, T1.CheckNum
however, this query will get you a list of all the outgoing payments done!!
Best Regards,
Joseph Antony -
Outgoing Payment Query with GL Name for all payment means
Hi all
Thanks a lot for the earlier help of Nagarajan!
I managed to improve this Query now the only problem is the Bank Transfer Bank account name does not appear on the same line as the Bank transfer amount.
Please help to test execute on your Demo Database and let me know the correction.
DECLARE @REPORTBY AS NVARCHAR(1)
/* SELECT FROM [dbo].[OFPR] T0 */
/* WHERE */ DECLARE @DATEFROM datetime
SET @DATEFROM =/* T0.F_RefDate */'[%0]'
/* SELECT FROM [dbo].[OFPR] T1 */
/* WHERE */ DECLARE @DATETO datetime
SET @DATETO=/* T1.T_RefDate */'[%1]'
SET @DATEFROM = '20140101'
SET @DATETO = '20140131'
SELECT ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.]
, T0.DocDate [DATE]
, T0.CardCode [CARDCODE]
, T0.CardName [NAME]
, T0.DocCurr
, T0.DocTotal [TOTAL incl. GST]
, T0.DocTotalFC [TOTAL (FC) incl. GST]
, T0.Comments [Remarks]
, T0.JrnlMemo
, T0.CounterRef [Ref 2]
/*BANK CHARGES*/
, T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]
/*CHECK PAYMENT*/
, T2.CheckAct, T4.AcctName, T2.Currency [Check Curr.]
, T2.CheckSum, T0.CheckSumFC
, T2.AcctNum, T2.BankCode
/*BANK TRANSFER*/
, T0.TrsfrAcct, T4.AcctName, T0.TrsfrSum, T0.TrsfrSumFC
, T0.CashAcct, T6.AcctName, T0.CashSum, T0.CashSumFC
/*CREDIT CARD/ADJUSTMENT PAYMENT*/
, T03.CardName [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.AcctName, T0.CreditSum, T0.CredSumFC
/*PAYMENT ON ACCOUNT*/
, T0.PayNoDoc, T0.NoDocSum, T0.NoDocSumFC
, T0.DocRate
, T0.DiffCurr
FROM OVPM T0
LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series
LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum
LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)
ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode
WHERE T0.DocType = 'C'
AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETO
UNION ALL
SELECT ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.]
, T0.DocDate [DATE]
, T0.CardCode [CARDCODE]
, T0.CardName [PAY-TO NAME]
, T0.DocCurr
, T0.DocTotal [TOTAL incl. GST]
, T0.DocTotalFC [TOTAL (FC) incl. GST]
, T0.Comments [Remarks]
, T0.JrnlMemo
, T0.CounterRef [Ref 2]
/*BANK CHARGES*/
, T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]
/*CHECK PAYMENT*/
, T2.CheckAct, T4.AcctName, T2.Currency [Check Curr.]
, T2.CheckSum, T0.CheckSumFC
, T2.AcctNum, T2.BankCode
/*BANK TRANSFER*/
, T0.TrsfrAcct, T4.AcctName, T0.TrsfrSum, T0.TrsfrSumFC
, T0.CashAcct, T6.AcctName, T0.CashSum, T0.CashSumFC
/*CREDIT CARD/ADJUSTMENT PAYMENT*/
, T03.CardName [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.AcctName, T0.CreditSum, T0.CredSumFC
/*PAYMENT ON ACCOUNT*/
, T0.PayNoDoc, T0.NoDocSum, T0.NoDocSumFC
, T0.DocRate
, T0.DiffCurr
FROM OVPM T0
LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series
LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum
LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)
ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode
WHERE T0.DocType = 'S'
AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETO
UNION ALL
SELECT ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.]
, T0.DocDate [DATE]
, T0.CardCode [CARDCODE]
, T0.CardName [NAME]
, T0.DocCurr
, T0.DocTotal [TOTAL incl. GST]
, T0.DocTotalFC [TOTAL (FC) incl. GST]
, T0.Comments [Remarks]
, T0.JrnlMemo
, T0.CounterRef [Ref 2]
/*BANK CHARGES*/
, T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]
/*CHECK PAYMENT*/
, T2.CheckAct, T4.AcctName, T2.Currency
, T2.CheckSum, T0.CheckSumFC
, T2.AcctNum, T2.BankCode
/*BANK TRANSFER*/
, T0.TrsfrAcct, T4.AcctName, T0.TrsfrSum, T0.TrsfrSumFC
, T0.CashAcct, T6.AcctName, T0.CashSum, T0.CashSumFC
/*CREDIT CARD/ADJUSTMENT PAYMENT*/
, T03.CardName [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.AcctName, T0.CreditSum, T0.CredSumFC
/*PAYMENT ON ACCOUNT*/
, T0.PayNoDoc
, CASE T0.DOCTYPE WHEN 'A' THEN 0 ELSE T0.NoDocSum END [PMNT ON ACC.]
, CASE T0.DOCTYPE WHEN 'A' THEN 0 ELSE T0.NoDocSumFC END [PMNT ON ACC. (FC)]
, T0.DocRate [Payment Rate]
, T0.DiffCurr
FROM OVPM T0
LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series
LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum
LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)
ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode
WHERE T0.DocType = 'A'
AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETOHi,
Please post your discussion without mentioning member name.
Try this:
DECLARE @REPORTBY AS NVARCHAR(1)
/* SELECT FROM [dbo].[OFPR] T0 */
/* WHERE */ DECLARE @DATEFROM datetime
SET @DATEFROM =/* T0.F_RefDate */'[%0]'
/* SELECT FROM [dbo].[OFPR] T1 */
/* WHERE */ DECLARE @DATETO datetime
SET @DATETO=/* T1.T_RefDate */'[%1]'
SET @DATEFROM = '20140101'
SET @DATETO = '20140131'
SELECT ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.]
, T0.DocDate [DATE]
, T0.CardCode [CARDCODE]
, T0.CardName [NAME]
, T0.DocCurr
, T0.DocTotal [TOTAL incl. GST]
, T0.DocTotalFC [TOTAL (FC) incl. GST]
, T0.Comments [Remarks]
, T0.JrnlMemo
, T0.CounterRef [Ref 2]
/*BANK CHARGES*/
, T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]
/*CHECK PAYMENT*/
, T2.CheckAct, T4.[AcctName], T2.Currency [Check Curr.]
, T2.CheckSum, T0.CheckSumFC
, T2.AcctNum, T2.BankCode
/*BANK TRANSFER*/
, T0.TrsfrAcct,T6.[AcctName],T0.TrsfrSum, T0.TrsfrSumFC
, T0.CashAcct,T4.[AcctName], T0.CashSum, T0.CashSumFC
/*CREDIT CARD/ADJUSTMENT PAYMENT*/
, T03.CardName [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.[AcctName],T0.CreditSum, T0.CredSumFC
/*PAYMENT ON ACCOUNT*/
, T0.PayNoDoc, T0.NoDocSum, T0.NoDocSumFC
, T0.DocRate
, T0.DiffCurr
FROM OVPM T0
LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series
LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum
LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)
ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode
WHERE T0.DocType = 'C'
AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETO
union all
SELECT ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.]
, T0.DocDate [DATE]
, T0.CardCode [CARDCODE]
, T0.CardName [NAME]
, T0.DocCurr
, T0.DocTotal [TOTAL incl. GST]
, T0.DocTotalFC [TOTAL (FC) incl. GST]
, T0.Comments [Remarks]
, T0.JrnlMemo
, T0.CounterRef [Ref 2]
/*BANK CHARGES*/
, T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]
/*CHECK PAYMENT*/
, T2.CheckAct, T4.[AcctName], T2.Currency [Check Curr.]
, T2.CheckSum, T0.CheckSumFC
, T2.AcctNum, T2.BankCode
/*BANK TRANSFER*/
, T0.TrsfrAcct,T6.[AcctName], T0.TrsfrSum, T0.TrsfrSumFC
, T0.CashAcct,T4.[AcctName], T0.CashSum, T0.CashSumFC
/*CREDIT CARD/ADJUSTMENT PAYMENT*/
, T03.CardName [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.[AcctName],T0.CreditSum, T0.CredSumFC
/*PAYMENT ON ACCOUNT*/
, T0.PayNoDoc, T0.NoDocSum, T0.NoDocSumFC
, T0.DocRate
, T0.DiffCurr
FROM OVPM T0
LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series
LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum
LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)
ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode
WHERE T0.DocType = 'S'
AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETO
union all
SELECT ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.]
, T0.DocDate [DATE]
, T0.CardCode [CARDCODE]
, T0.CardName [NAME]
, T0.DocCurr
, T0.DocTotal [TOTAL incl. GST]
, T0.DocTotalFC [TOTAL (FC) incl. GST]
, T0.Comments [Remarks]
, T0.JrnlMemo
, T0.CounterRef [Ref 2]
/*BANK CHARGES*/
, T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]
/*CHECK PAYMENT*/
, T2.CheckAct, T4.[AcctName], T2.Currency [Check Curr.]
, T2.CheckSum, T0.CheckSumFC
, T2.AcctNum, T2.BankCode
/*BANK TRANSFER*/
, T0.TrsfrAcct, T6.[AcctName], T0.TrsfrSum, T0.TrsfrSumFC
, T0.CashAcct,T4.[AcctName], T0.CashSum, T0.CashSumFC
/*CREDIT CARD/ADJUSTMENT PAYMENT*/
, T03.CardName [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.[AcctName],T0.CreditSum, T0.CredSumFC
/*PAYMENT ON ACCOUNT*/
, T0.PayNoDoc, T0.NoDocSum, T0.NoDocSumFC
, T0.DocRate
, T0.DiffCurr
FROM OVPM T0
LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series
LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum
LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)
ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode
WHERE T0.DocType = 'A'
AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETO
Thanks & Regards,
Nagarajan -
Outgoing payment query assistance.
Hi experts,
Can you please assist me with a query that addresses my request.
My request is, during the outgoing payment process in the payment means we choose a G/L account.
I want the query to show the G/L account code and it's corresponding name whether check or cash or bank transfer.
Please this query is urgent and I need help.
Regards
JusticeHi Justice,
I am not able to Understand Correct Requirement but Please check below Query which will give you All Modes of Account and Account Name. Please check below
SELECT T0.[DocNum], T0.[DocDate], T1.[CheckAct] AS Check_Account, T2.[AcctName] AS Check_Account_Name, T0.[CashAcct] AS Cash_Account, T3.[AcctName] AS Cash_Account_Name, T0.[TrsfrAcct] AS Transfer_Account, T4.[AcctName] AS Transfer_Account_Name FROM OVPM T0 LEFT JOIN VPM1 T1 ON T0.[DocEntry] = T1.[DocNum] LEFT JOIN OACT T2 ON T1.[CheckAct] = T2.[AcctCode] LEFT JOIN OACT T3 ON T0.[CashAcct] = T3.[AcctCode] LEFT JOIN OACT T4 ON T0.[TrsfrAcct] = T4.[AcctCode]
Hope this help
Regards:::::
Atul Chakraborty -
Client has done a down payment
Issued a purchase Order to a supplier
supplier has invoiced in advanced in delivering the goods
Supplier has invoiced 2 invoices for one purchase order
Client has made 1st payment using AP down payment invoice.
They have taken part delivery of goods.
Client want to enter into stock.
Purchase Order is still open
Can client do goods receipt based on purchase order ?
How does the down payment fit into the accounting equation. ?
Edited by: Darpal Thiarha on Apr 18, 2008 12:09 PMHi Derpal,
Please mention, whether the down payment was based on the purchase order? If yes, then client must have processed the A/P down payment invoice. Or if the A/P downpayment invoice is not based on the PO then the amount is paid on account. Now first of all go to A/P Invoice and for the particular vendor copy the data from PO (for the first case when the downpayment is based on a PO) you would found the button Totalo down payment. Click this button and make adjustments from the downpayment. (for the second case when the downpayment is not based on a PO) you would found in the document footer of A/P invoice a field name "Paid/Credited", here would be that amount which is paid on account and document total will be after netting-off this creditted amount.
Regards,
/Siddiq -
hi,
Do down payment requests entered through FBA1 (Transaction type-A, Special GL indicater-F) show up in FBL5N report?
I have one credit item of $1000 showing as open item in FBL5N.
And if I go in BSID table it shows two open itemsof $1000, one credit (which i am able to view in FBL5n) and other debit entered through FBA1.
In Aged Trial Balance report, it is setting off both line itmes and giving total as zero for that particular customer
User wants to know if there is open item in FBL5N then why it is not showing in Aged Trial Balance.. but in reality it is setting off which I was able to view when I debugged the report.
Actually it the DP request should not set off the amount, but it is doing for one custoerm and not doing for other...
Can anybody helpHi Dave,
The thing I have 2 customers one is X and other Y. The initaial down payment was made by them. Now user has entered dp request for both customer and both appears as open in FBL5N.
Now if I go to Aged trial balance report, in X customer it shows intial dp payment as open which it should show and in Y customer the dp is getting set off against the dp request (i found by debugging the report)which it should as it show open item in the Aged trial balance report.
Do you have any idea about this
thanks
Maybe you are looking for
-
How can I retrieve an ex employees Apple ID password when she can't even remember it? Plus Apple ID used to her company email address, which no longer exists for her. Apple support says it will send an email to her so I can change the password, but I
-
How do I sort photos by filename. I have some 5000 photos involved in different albums
I have many albums each that need sorting by filename. Any advice?
-
Rule 5 (target: 0FISCPER): Source parameter 0004 is not being used
When I map both Fiscal year & Posting period to Fiscal period, Transformation promts error " Rule 5 (target: 0FISCPER): Source parameter 0004 is not being used" Why is that so? Rule Details for Fiscal Period show Conversion Exit : PER 17 & Perform is
-
11gR2 Fresh Install , Enterprise Manager dbconfig failure.
Fresh install of 11gR2 on Linux x86_64. Database is installed, EM repository gets created but dbconfig doesn't load. Error in emca log file is SEVERE: Error Loading TransX:ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone region
-
Hi, We are currently having BW/BI NW 7.0 EHP1 and also ECC 6.0 EHP4. We are researching about the purchase of BOBJ enterprise. What is the general recommendations in terms of hardware requirement we should be aware of and based on the users who are