Incoming payment Query Help
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
Similar Messages
-
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 -
Sales order and incoming payment query
Hi experts,
I jus need a query that contains sales order doc num, date, cust name item description doc total and how much he paid towards the document and what is the balance due....pls help me...
regards,
Vignesh.RHi Vignesh.......
Are you using AR Downpayment based on Sales Order?
If yes then try this.....
SELECT T0.[DocNum], T0.[DocDate], T0.[CardName], T0.[DocTotal], T0.[DpmAppl] FROM ORDR T0
Regards,
Rahul -
Event 50 doc type 30 is not for incoming payment in tcode fpe1 fscd module
Dear Experts
i had configured a new company code and done the necessary configuration changes in the FSCD collection and disbursement module but while posting a document in FPE1 in FSCD i am unable to post a document .
At present i am getting the following error for the document" Event type 50 : Doc type 30 is for incoming payment
Kindly help me urgently as i am stuck up on the issue
Regards
Devendra MohanPayment document can be posted based on the accounting document.
If you want you can maintain invoice number in reference field, also there is one option to make reference field mandatory.
In OBA7 activate reference document number as mandatory for the document type DZ. So, while doing the transaction in F-28, value should be mandatory to this field.
If maintain invoice value in reference field, then you can do sorting and totaling based on the reference field in FBL5N.
there are no standard reports to check the outstanding amount based on the invoice number.
Rgds
Murali. N -
Steps for incoming payment (fbzp)
Hi gurus
Our us branch wish to start collecting some customer payments via direct debit . could you please let me kknow the configuration steps and how to run in f110
value points assigned
thankshi
for Incoming payment
http://help.sap.com/erp2005_ehp_03/helpdata/EN/2c/275ec3456a11d189440000e829fbbd/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/f8/87f037576b7962e10000009b38f8cf/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/f1/3d57423e080f53e10000000a155106/frameset.htm
http://help.sap.com/search/search_overview.jsp
nagesh -
Query Print Layout - Incoming Payment
Hi All,
I have done the query print layout for incoming payment. but it cannot show the correct A/R invoice: document number. When I only make the payment for 1 invoice it seems to be correct, but when I choose 2 invoices to be paid, then the A/R invoice: document number for the second row is wrong ( if follows the first row).
Below is the query:
SELECT T0.DocNum, T0.DocDate, T0.DocCur, T0.DocTotal,
T0.DocTotalFC, T1.DocNum, T1.CardCode, T1.CardName,
T1.DocDate, T1.Comments,T1.TrsfrRef as 'Cheque No',
T2.BankCode' 'T2.AcctNum as 'Bank Code' , T0.Address , T3.Phone1 , T3.CntctPrsn , T0.PaidToDate, T0.PaidFc , T4.AppliedSys , T4.AppliedFc
FROM [dbo].[OINV] T0 INNER JOIN ORCT T1
ON T0.ReceiptNum = T1.DocEntry LEFT JOIN RCT1 T2
ON T1.DocNum = T2.DocNum LEFT JOIN RCT2 T4
ON T4.DocNum = T2.DocNum LEFT JOIN OCRD T3
ON T1.CardCode = T3.CardCode
WHERE T1.DocNum = [%0]
ORDER BY T1.DocNum
the fields that i want to display in repetitive area are: A/R invoice: Document date , A/R invoice: document number, Amount that they have paid ( partial payment / full payment) i used this database: Incoming payment - a/r invoice: paid, outstanding amount i used formula ( total document - paid to date), and document currency
Thank you! hope you can help.
PaulinePauline,
I've tested your query in B1 2007A SP00 PL30 and works fine. I even created PLD for the query and I can see 2 invoice paid by one incoming payment.
Rgds, -
Query to view no of incoming payments for invoices.
HI Experts,
I want a query to see all the incoming payments(like payment1 and its cancellation and payment2 and its cancellation due to Bounce of cheque and subsequent new cheque, like that) for particular Invoices.
For Instances.
Like customer name,code, payment type, due date,cheque amount,check no ,status and such for all payments for the particular Invoice.
Can anyone help me out in this ground.
Thanks in advance,
Regards,
Dwarak.Hi Expert,
You are almost near to my Requirement.
Actually my Client Scenario is,
there are few Customers who will give PDC(Post Dated Cheque) to the Invoice. and that cheque either will be asked to HOLD or Bounce from Bank during maturity.(this is usual with few customers)
and again he will give new cheque1 and again that new cheque might also be bounced and another new cheque2 will be issued.
So, here i want to see a quick list , where i can see Related Payment and its status for that Particular Invoice.This will give the related old cheques and its corresponding new Cheque.
Examples:
By Giving Invoice NO: 222666(Our Invoice no)
Its Should List out,
Customer Code - Customer Name - Payment1(with its due date, status, chq no, chq amount)- if its has payment2(and its due date, status, chq no, chq amount)- its should continue with the N number of payments to that Invoice.
Thanks in Advance, -:)
Regards,
Dwarak. -
Incoming Payment detail query include CM
Hi Gurus,
I'm new to SAP B1 and I'm stuck to create query for following requirement.
u2022 Report to show daily payments and outstanding invoices by different payment methods (example below). The purpose of this report is to check sales made during the day and payments u2013 received for those sales
Incoming Payment No. Outstanding Paid Cheque Bank Transfer Credit Card Cash.
12001 0 100 100
12002 0 200 200
12003 300 0
12004 0 400 400
12005 500 0
Current query is following.
SELECT
T0.[DocDate],
T0.[DocNum] AS 'Incoming Payment No.',
T0.[CardName] AS 'Customer Name',
T0.[TrsfrSum],
T0.[CashSum],
T0.[CheckSum],
T0.[CreditSum],
T0.[DocTotal]
FROM ORCT T0
WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]
I want to link sales invoice no. for each rows and show credit amount history as well as sales invoice.
Anyone could help this?
Thanks,
GeraldThanks Gordon,
However, I have error message like 'The milti-part identifier "T2.DocEntry, T2.SumApplied and etc' could not be bound.
I found your previous post at Query to include payment status cash / cheque for payment received.
Now, I updated query followings.
SELECT
T0.DocDate as 'Posting Date',
T0.DocNum as 'AR Invoice Number',
T1.CardName,
T1.DocDate as 'Payment Date',
T1.DocNum as 'Incoming Payment Number ',
T0.DocTotal as 'AR Invoice Total',
T1.TrsfrSum,
T1.CashSum,
T1.CreditSum,
T1.CheckSum,
T2.CheckNum as 'Cheque Number'
FROM OINV T0
INNER 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]
I need one more column for AR Invoice Amount which payment has not been received'
Could you help me this out?
Thanks -
Query to link incoming payments with deposit
hi everyone
i am looking to develop a query that can link incoming payments with the respective deposit. does anyone have any such query? can you help?
thanksPlease use the following. It shows both check deposits and CC deposits
SELECT 'CHECK DEPOSIT' [Deposit Type], T0.DEPOSID [Deposit No.], T0.DEPOSDATE [Deposit Date], T0.LOCTOTAL [Desposit Total],
T2.RCPTNUM [Incoming Payment No.]
FROM ODPS T0 INNER JOIN DPS1 T1 ON T0.DEPOSNUM = T1.DEPOSITID
INNER JOIN OCHH T2 ON T2.CHECKKEY = T1.CHECKKEY
WHERE T0.DEPOSTYPE = 'K'
UNION ALL
SELECT 'CREDIT CARD DEPOSIT', T0.DEPOSID, T0.DEPOSDATE, T0.LOCTOTAL, T1.RCTABS
FROM ODPS T0 INNER JOIN OCRH T1 ON T0.DEPOSNUM = T1.DEPNUM
WHERE T0.DEPOSTYPE = 'V'
Best wishes
Suda -
Customer Aging Report Query (without invoices offset by incoming payment)
Hi All Experts,
May I know is there any field from JDT1 mention which invoices is already offset by the Incoming payment or AR Credit note? Because I do not want those invoices that already offset by incoming payment appear at the Customer Aging Report. Meaning, the data appear in the Customer Aging Report is only show those invoices that yet to pay by the customer. Kindly give some advise on it. Thanks a lot.
Thanks and regards,
Angie NgHi David,
Thanks for your suggestion. I have try it, but all of my JDT1.IntrnMatch is in 0 value. Meaning in my situation it is none of any reconcilliation making. But from my SBO window, i manage to see that actually this incoming payment is pay for which invoices. Problem is it is difficult for me to do the possiblity logic that might be happen in my Customer Aging Report Query. Please give some advise that how to show only those invoices yet to pay? The current query will show all the data no matter the invoices or credit memo has been offset.
select OCRD.cardcode 'Supplier Code',OCRD.cardname 'Name',sysdeb 'Debit GBP',syscred 'Credit GBP',
case JDT1.transtype
when '13' then 'INV'
when '14' then 'AR CN'
when '24' then 'INCOMING'
else 'Other'
end 'Type',
Ref1,
fccurrency 'BP Currency',
CONVERT(VARCHAR(10), refdate, 103)'Posting Date' ,
CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
CASE
when (DATEDIFF(dd,refdate,current_timestamp))+1 < 31
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "0-30 days",
case when ((datediff(dd,refdate,current_timestamp))+1 > 30
and (datediff(dd,refdate,current_timestamp))+1< 61)
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "31 to 60 days",
case when ((datediff(dd,refdate,current_timestamp))+1 > 60
and (datediff(dd,refdate,current_timestamp))+1< 91)
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "61 to 90 days",
CASE
when (DATEDIFF(dd,refdate,current_timestamp))+1 > 90
then
case
when syscred= 0 then sysdeb
when sysdeb= 0 then syscred * - 1
end
end "90 + days"
from JDT1,OCRD where JDT1.shortname = OCRD.cardcode and cardtype = 'c' and intrnmatch = '0'
ORDER BY OCRD.CARDCODE, taxdate -
Help With Credit Cards In Incoming Payments
Hi All,
SAP Business One 8.81 PL05
When I am creating an Incoming payment and I have selected my invoices and then select the payment means and put in my bank transfer amount. I then go to the credit card tab and put through a claim there which goes to a claims GL account. I put in the Credit Card No. 1 and in Valid Until I put 12/12 I fill in the rest of the fields and when I try and add the Incoming payment I get the following error.
Date deviates from permissible range [Journal Entry - Rows - Value Date][line: 3] [Message 173-11]
If I take out the Credit Card part of the payment the Incoming Payment can be added therefor the problem must be with the Valid Until field. I have tried various different dates in there and still receive the same error.
Under my Credit Card Payment Method I have created on called Claims and set it to Voucher Date Of Receipt with the following fields. From 1 To 31 On Day 1 Months + 12
Could somebody please tell me what I am doing wrong.
Any help will be greatly appreciated.
Regards,
QuinnHi Jitin,
Thanks for the reply.
The posting date is current date and due date is current date as is document date.
All posting periods are unlocked.
If I take out the Credit Card part the Incoming Payment gets added without any errors. Therefor I think my posting periods are fine.
Regards,
Quinn Verburgt -
Query: Incoming Payments
Hi all,
I came up with the query below to capture details of Incoming payments as well as give out the names of the users who posted them into SAP. I linked OUSR with OINV hence it gives out the users' names only where the payment is linked to an Invoice. I would like the user name to appear even for payments on account. Kindly assist on the best way of achieving this.
SELECT
T1.DocNum Doc,
T4.[U_NAME] name,
T1.CardCode code,
T1.CardName Customer,
T1.TrsfrSum Transfer,
T1.CashSum Cash,
T1.CheckSum Chck,
T1.CreditSum Credit,
sum(T1.TrsfrSum + T1.CashSum + T1.CheckSum + T1.CreditSum) Total
from ORCT T1
left JOIN RCT1 T2 ON T1.DocNum = T2.DocNum
left outer join oinv t3 on t1.DocEntry=T3.ReceiptNum
left outer join ousr t4 on t3.usersign=t4.userid
WHERE (T1.DocDate>='[%0]' And T1.DocDate<='[%1]')
group by
T1.DocNum,
T1.CardCode,
T1.CardName,
T1.TrsfrSum,
T1.CashSum,
T1.CheckSum,
T1.CreditSum,
T4.[U_NAME]
Thank you in advance.
Rgds,
HenryHi Henry,
Welcome you post on the forum.
Try:
SELECT
T1.DocNum Doc,
T4.U_NAME name,
T1.CardCode code,
T1.CardName Customer,
T1.TrsfrSum Transfer,
T1.CashSum Cash,
T1.CheckSum Chck,
T1.CreditSum Credit,
sum(T1.TrsfrSum + T1.CashSum + T1.CheckSum + T1.CreditSum) Total
from ORCT T1
left JOIN RCT1 T2 ON T1.DocNum = T2.DocNum
left outer join oinv t3 on t1.DocEntry=T3.ReceiptNum
left outer join ousr t4 on t1.usersign=t4.userid
WHERE T1.DocDate>='[%0\]' And T1.DocDate<='[%1\]'
group by
T1.DocNum,
T1.CardCode,
T1.CardName,
T1.TrsfrSum,
T1.CashSum,
T1.CheckSum,
T1.CreditSum,
T4.U_NAME
Thanks,
Gordon -
Query for what incoming payments are linked to a/r downpayment invoices
Dear all,
Please advice on what query will give me the incoming payments linked to A/R Downpayment invoices in SAP business one 2005 pl 50
Kind Regards,
MonilThanks Gordon,
Please advice on which tables do I refer to?
Monil -
How to query a list of open Incoming Payment with its Payment Means
Dear Experts,
As subjected, can anyone throw some light onto writing a query which list Open Incoming Payment and its total and payment means.
Much Thanks!
Warmest Regards,
ChinhoTry this one to start:
SELECT T0.CardCode Customer, T0.CardName 'Customer Name', CASE WHEN T0.CashSum > 0 THEN 'Cash' WHEN T0.CreditSum > 0 THEN 'Credit Card' WHEN T0.TrsfrSum > 0 THEN 'WIRE' ELSE 'Check' END AS 'Method', T0.DocNum, T0.DocDate
FROM dbo.ORCT T0
WHERE DateDiff(DD,T0.DocDate,GetDate())< 31
Thanks,
Gordon -
Query report for details of incoming payment received based on invoice
Hi expert
Can any one Improve this query !!!
SELECT T0.DocNum as 'AR Invoice Number',T0.DocDate as 'Posting Date', T1.CardCode, T1.CardName,
T0.DocTotal as 'AR Invoice Total',T0.VatSum as Tax,T1.CashSum, T1.TrsfrSum, T2.DocNum as 'Incoming Payment Number ', T2.DueDate as 'Check Due Date' ,
T2.CheckNum as 'Check Number', T2.CheckSum as 'Amount'
FROM OINV T0 INNER JOIN ORCT T1 ON T0.ReceiptNum= T1.DocEntry Left JOIN RCT1 T2 ON T1.DocNum = T2.DocNum ;
where T0.DocDate >=[%0] and T0.DocDate <=[%1]
For one particular invoice no 88 Amount INR 1345 the customer paid two cheques of amount INR 1000 ( Incomining payment no 21) dated 10/10/2009 and INR 345( Incoming payment no 25) dated 12/10/2009.
But My problem is this query showing only last one that is amount INR 345 of incoming payment no 25 of date 12/10/2009
Regards
Arun K SinghHi Arun,
Couple of things
RCT2 is the table which has links to the Invoices associated with a incoming payment, so you need to include that. Also the relation is between OINV and RCT2..so check this query
NOTE: You date range for selection in the WHERE statment is Invoice Date. You should consider using T1.DocDate which will be receipt rate.
The SQL below is just to show you the relationship between the tables. Based on the results requirement you will need to work with your JOINS
SELECT T0.DocNum as 'AR Invoice Number',T0.DocDate as 'Posting Date', T1.CardCode, T1.CardName,
T0.DocTotal as 'AR Invoice Total',T0.VatSum as Tax,T1.CashSum, T1.TrsfrSum, T2.DocNum as 'Incoming Payment Number ', T2.DueDate as 'Check Due Date' ,
T2.CheckNum as 'Check Number', T2.CheckSum as 'Amount'
FROM [dbo].[ORCT] T1
INNER JOIN [dbo].[RCT1] T2 ON T2.DocNum = T1.DocNum
INNER JOIN [dbo].[RCT2] T3 ON T3.DocNum = T1.DocNum
INNER JOIN [dbo].[OINV] T0 ON T0.DocEntry = T3.DocEntry
WHERE T0.DocDate >= '[%0]' and T0.DocDate <= '[%1]'
Suda
Maybe you are looking for
-
How do you add multiple links to a rollover image?
Hi guys, I'm pretty much a novice when it come to DW, but i understand some things and can get by with a simple website(i only use design mode). Anyways, i understand how to use rollovers if its a basic image over image swap. My issue is, I have a li
-
Re: iPhoto deleting photos from old library and new library
Hello. I really hope someone can help me. I'm about to tear my hair out. I recently copied my iPhoto library to an external hard drive because I'm seriously out of space on my 24"iMac (2008). I am a photographer and have a mess of an iPhoto libra
-
I'm trying to create a web gallery from a small shoot using my Nikon D70s - 6MB NEF files. There are 94 images for my client to make their selections from, I'm only exporting medium quality files. The original estimated time was 27 minutes, but it's
-
Java page flow jpf forward to dynamic url
How to forward to a dyamic url from a page flow action method
-
All my adobe files are now the same - they will not open at all - access denied with no reason other than an error! Help!