Incoming payments in crystal reports

Hi all,
I'm trying to recreate the incoming payments screen in crystal reports.  Does anyone know what dates are used to generate the overdue days column?  I thought it was JDT1.RefDate and {ORCT.DocDueDate}, but I was wrong.
Thanks for any help given.

Hi,
Try below query :
SELECT
T1.DocNum ,
T2.Serial ,
T1.CardCod,
T1.Cardname ,
T0.SumApplied ,
datediff(day,(select top 1 duedate from inv6 where docentry = T2.docentry),Getdate())=15) as [OverSDueDayes]
FROM dbo.RCT2 T0
LEFT OUTER JOIN dbo.ORCT T1 ON T1.DocNum = T0.DocNum
LEFT OUTER JOIN dbo.OINV T2 ON T2.DocEntry = T0.DocEntry
WHERE T1.DocNum='[%0]'
Thanks,
Neetu

Similar Messages

  • How to generate Income Statement from Crystal Report

    Hi, Experts,
    I have:
    SAP BUSINESS ONE 2007A
    CRYSTAL REPORT 2008
    I have a problem with generating Income Statement related reports from CRYSTAL.
    For example,
    My revenue accounts are: '411000-00-00' and '412000-00-00', my expense accounts are: '510000-00-00' and '520000-00-00'.
    I'd like to generate the Income statement for Dec 1 - 31, 2008. Please advise how to generate this report. Thanks!
    Lorrie

    Hi, Experts,
    Currently, what I tested to generate the income statement is:
    1. find out the account detail table: JDT1. My database path: Company Name -> dbo -> Tables -> JDT1
    2. follow the standard report menu: add 'JDT1', show 'RefDate', 'ContraAct'; group by'Account', summarize by 'Account'.
    I have the following problems:
    1. with this method, I am not able to find the amount for each transaction. Because the amount does not have a name as 'RefDate' or some other fields.
    2. the 'Account' and 'ContraAct' are all shown as 'SYS00000001685'. It's sysmtem message but not the actual account number or contra account number.
    Thanks!
    Lorrie

  • Incoming payment rows details in Crystal report

    Hi Xperts
    I want to create Payment Advice print layout in Crystal Report.  Can anybody tell me which table is related Incoming payment Row wise details in SAP.
    I need following Details in SAP (Row Details)
    Document No,  Document Date, Document Total
    Any body help me out regarding this
    Thanks
    Balaji

    Hi Balaji,
    Check this link.
    [Crystal Generic samples from SAP|https://websmp204.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000635012009E&]
    It consists of most of all the documents in SAP.
    Hope this helps.
    Regards,
    Bala

  • Crystal Report for Sales, Delivery and Payment.

    Hi Guys,
    Need some expert advice over here. Currently, our sales team are using 3 separate report, one report on sales per month for each specific customers, one report on delivered amount per month for specific customers again and the last one report on payment received per month for specific customers as well.
    We have the idea of joining this 3 report so that I can report on sales, delivery and payment all at once so that they can see the trend better. However, after trying for quite a few times, we fail to create a common joining between ORDR, ODLN and ORCT. Is there any possible way to work something out ?
    I have thought of using subreport, but I just cant find the way to plug in the figure correctly.
    Need some advice over there.
    Thank you.
    Best Regards,
    Alex

    Based on what you have told me, then you should then join Sales Order, Delivery, Invoice and Incoming Payments into one.
    The reason I say Invoice table also is because, you cannot directly link Delivery and Incoming Payments window.
    Also you it is not enough that you link the ORDR, ODLN and ORCT, you will need to get the details from RDR1 and DLN1.
    In SAP Business One, each line in SAP Business One can have a different Delivery documnet.
    The TrgetEntry, TargetType will give you this information. For example, if a line for Sales Order has TargetType 15, then TrgetEntry will be the DocEntry in the ODLN. But if it TargetType is 13 it means the Sales order was converted directly to and Invoice and bypassed the creation of Delivery step, which is possible in SAP.
    So here is how I think you will need to link Sales order and Delivery
    RDR1.TrgetEntry INNER JOIN DLN1.DocEntry AND
    RDR1.TargetType INNER JOIN DLN1.ObjType AND
    RDR1.LineNum INNER JOIN DLN1.BaseLine
    Now this could get a little more complicated if you do partial deliveries. For example if a line in your Sales Order has say 10 items and 6 of them are delivered using Delivery Note 123 and the remaining are delivered using Delivery Note 124, then the join will give you 2 different lines.
    So basically you will need to link the tables in this fashion
    ORDR <-> RDR1 <-> DLN1 <-> INV1 <-> RCT2 <-> ORCT
    Unfortunately, this linking process can get complicated if you do not follow certain steps, like for example if you do not create a Delivery Note and converted your Sales order to Invoice. Then the link would be
    ORDR <-> RDR1 <-> INV1 <-> RCT2 <-> ORCT
    I hope I didn't confuse you.
    Krishnan

  • 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 Ng

    Hi 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

  • Partial payment Crystal report query

    Hi,
    I have partial payment in outgoing. So I am not able capture this thing correctly so any one can give me the Crystal report query for this thing.
    Regards
    Swapnil

    Try this may it will help you ..
    in this query i have tracked againest PO.
    SELECT     Distinct OPOR.DocNum,OPCH.CardName,OPOR.DocNum
                          ,convert(varchar, OPCH.DocDueDate, 103) As "Payment Date",(OPCH.DocTotal-OPCH.PaidSUM) AS ' Pending Payment',DATEDIFF(DD,OPCH.DocdueDate,GETDATE()) as "Over Due Days"
    FROM         OPOR INNER JOIN
                          POR1 ON OPOR.DocEntry = POR1.DocEntry INNER JOIN
                          OPDN INNER JOIN
                          PDN1 ON OPDN.DocEntry = PDN1.DocEntry INNER JOIN
                          OPCH ON PDN1.TrgetEntry = OPCH.DocEntry INNER JOIN
                          PCH1 ON OPCH.DocEntry = PCH1.DocEntry ON POR1.TrgetEntry = OPDN.DocEntry where OPCH.DocStatus = 'O'
                          order by OPOR.DocNum ASC
    one more think we can design QPLD or CR not PLD.
    Thanks
    Manvendra singh Niranjan
    Edited by: Manvendra Singh Niranjan on Jun 25, 2011 2:57 PM
    Edited by: Manvendra Singh Niranjan on Jun 26, 2011 8:14 AM

  • Invoice number against incoming payment in report

    Dear Experts,
    I want to know if we can add the reference of the column invoice number in the customer ledger of SAP against the incoming payment number which we have taken the against those invoices.  these are on account payments done which are reconciled later with the particular invoices. is there any report in SAP which can show this information. for just this one column, we have to prepare entire ledger customized which we want to avoid. please advise.
    Thanks,
    Binita

    Dear
    Please post only one thread for your question.  You may close the other thread first:
    Invoice number against payment in report
    Thanks,
    Gordon

  • AR Invoice payment terms on Crystal Report

    Hi,
    There is a subreport section for payment terms on the canned version of the AR Invoice crystal report.  Does anyone know how to turn this subreport on to print the payment terms?

    Check in the Format Subreport menu to see if there is a suppression formula embedded?

  • Print Incoming Payments report

    Hi
    Please advise if it is possible to reflect INVOICE numbers on the 'Print Incoming Payments' report.
    Thnx
    Nthabiseng

    Hi,
    it is not possible to reflect INVOICE numbers on the 'Print Incoming Payments' report(in repetitive area).
    but its is possible to reflect all invoice no with amount in Page footer on Print incoming Payments Print.
    Use this System Variable - 130 in Page footer.
    OR
    If you need to print the invoice no & total in incoming payments row level print.
    Try to Create a Query Report and design the Query PLD.
    Regards,
    Madhan.

  • Tcode for report on incomming payments

    Hi,
    i want a report on only incomming payments from a particular customer within certain time frame,
    please let me know
    thanks in advance

    Hi,
    Check S_ALR_87012177 - Customer Payment History
    Program RFDOPR20 enables you to carry out a detailed analysis of the payment history of customers. It also contains a forecast of payment volumes and payment arrears, based on the existing payment history.
    Regards,
    Sanjay

  • A report which displaies Bank Incoming payments for each Customer

    Hi All,
    could anyone show me a report which displaies the Bank Incoming payments for each Customer?
    Thanks
    Gandalf

    Yes u can very well see the Off setting account ( Bank account number ) in the line item report.
    For that small customization is requiered so as to activate the off setting account display in all line item report.
    Just implement the below changes
    NodeFinancial Accounting
    PathIMG u2192 Financial Accounting u2192 Financial Accounting Global Settings u2192 Business Transaction Events
    1                    Active Settings
    Setttings u2192 Products u2192 u2026 of a customer
    Following new product added and activated:
    Product                        -            OFF
    Text                 -            Offsetting account
    Active               -            Yes
    Setttings u2192 P/S Function Modules u2192 u2026 of a customer
    Following new event added:
    Event                      -           00001650
    Product                                    -            OFF
    Ctr                               -            (Leave Blank)
    Appl.                            -            (Leave Blank)
    Function Module -            LINE_ITEMS_GET_GKONT
    The above settings enable the function module for displaying the offsetting account in line item display.
    Ritesh

  • Report to List Incoming Payments and related Invoices

    Hi Experts,
    I would like a query which lists Incoming Payments and also the related Invoices which were paid.
    Is there a table which links together the ORCT and OINV tables?
    Thanks
    Greig

    Hi Greig,
    Link to ORCT - OINV( SELECT * FROM ORCT T0  INNER JOIN OINV T1 ON T0.DocEntry = T1.ReceiptNum )
    Link to ORCT -RCT1 - OINV( SELECT * FROM ORCT T0  INNER JOIN RCT1 T1 ON T0.DocNum = T1.DocNum
    NNER JOIN OINV T2 ON T0.DocEntry = T2.ReceiptNum)
    Try this,
    Lists of Incoming Payments and related Invoices.
    SELECT T0.DocNum,
    COUNT(T0.DocEntry) 'No of Invoice'
    FROM RCT2 T0
    INNER JOIN OINV T1 ON T0.DocEntry = T1.DocEntry
    GROUP BY T0.DocNum
    Regards,
    Madhan.
    Edited by: Madhan Babu C on Aug 28, 2009 9:23 AM

  • Incoming Payments Report

    Hi,
    My client is updating the incomimg payments by 2 ways. If it is a chech or cash or bank transfer from a single party then they are using Incoming Payment Window.
    But for certain instances like the filed persons collect the money from 10 or 15 customers and the total cash was deposited in Bank. At that time they are updating the payments by passing a JE to the customer.
    Now how can i get the total payments collected (Eigther a RC or JE) from all the customers fro a perticular dates between. I am trying to use General Ledger for BP but it's taking so much time to execute and to uncheck the Daily and Monthly marks it's taking long time to display. How can i get the total collection from the customers ...is there any custom query- plz help
    Thanks & Regards
    Srini

    Hi Srini,
    Check this query result first:
    SELECT T1.TransID,T0.ShortName, T0.Debit, T0.Credit
    FROM dbo.JDT1 T0
    INNER JOIN dbo.OJDT T1 ON T0.TransID = T1.TransID
    WHERE  T0.ShortName LIKE '[%2]%' AND T0.TransType IN ('24', '30')
    AND T1.RefDate > [%0] AND T1.RefDate < [%1]
    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 Singh

    Hi 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

  • Creating Crystal Reports Dynamically from an incoming SQL query

    Hi,
    I have a requirement where a sql query will be entered by the user in a text box and in the back end java code, i have to create a crystal report dynamically based on that sql query and show it in the crystalviewer object.
    For example if the user writes "select x,y from xtable ", i should be able to create a report with 2 fields, and if the user says "select x,y,z from xtable" then i should be able create and show a report with 3 fileds...thsi report creation should be done in the click event.
    Is this possible in java? I have found something similar in .NET... pls have a look at this 
    http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm
    Thanks,
    Preethi

    Hi Preethi,
    Can you please share the steps with me? I am also looking for dynamic SQL being applied to the crystal report.
    Thank you so much for your help in advance.
    Regards,
    Janakiram D.

Maybe you are looking for

  • 8.1.5 on RedHat 6.0 fails with "unknown keysym osfActivate"?

    I've successfully installed the 8.1.5 on a 6.0 box - no problems. Now I'm trying to put it on a headless box, and I'm running into a problem I have not seen mentioned. After configuring the kernel and environment, I start the runInstaller, which imme

  • Changing Purchase Info Record

    Hi, I've  a requirement to update a Purchase info record with a new condition. Can any one suggest me a bapi or a FM to update an existing PIR with new condition. I've tried FMs : ME_DIRECT_INPUT_INFORECORD and ME_DB_UPDATE_INFORECORDS but found out

  • Mixed signal graph : Legend udate problem

    When manipulating the graph in diagram window with properety nodes like example "Plot Visible", the legend of the mixed signal diagram will not be updated. Only when refreshing the front panel by scrolling with the mouse up or down, the legend is cor

  • Activity report url iview counting

    Hi, I noticed that when you put some url-iviews on a page and the page is accessed in the portal, the activity reporting in the portal does add a hit to all url-iviews on that page. I would like the activity report only count a hit to the url iview w

  • Opti im

    Hi everyone, My table CALLS has the following contents: Cust id CountryCalled Duration 123 SG 10 123 SG 20 123 THA 50 123 IND 80 456 US 30 I need to find the CountryCalled with the maximum sunmed duration: Cust id CountryCalled 123 IND 456 US Does so