Crystal Report OUtgoing payment

Hi
SELECT T2.[DocTotal] as 'Invoice total' ,T2.[DocNum] as'Invoice no',T2.[DocDate] as 'invoice date',t0.Comments,t0.CardName,T3.[CheckSum],t0.doctotal
,T3.[CheckNum],t0.DocNum,t0. CreateDate ,t4.U_NAME  
FROM [dbo].[OVPM]  T0 INNER JOIN [dbo].[VPM2]  T1 ON T0.DocNum = T1.DocNum INNER JOIN OPCH T2 ON T1.DocEntry = T2.DocEntry left join VPM1 t3 on
T0.DocNum = t3.docnum left join OUSR t4 on T0.UserSign=t4.USERID where T0.[Docentry]={?DocKey@} group by T2.[DocTotal],T2.[DocNum] ,T2.[DocDate] ,T2.doctotal,t0.Comments,t0.CardName,T3.[CheckSum],t0.doctotal
,T3.[CheckNum],t0.DocNum,t0. CreateDate,t4.U_NAME   Order BY T2.[DocNum]
The above code diplays outing payments details when the invoice is selected but when payment on account and account tab is selecte the report is showing blank.
please suggest what to include in the above code so that it dispalys details when payment on account and account tab is selected.
Attached screen shots for three scenarios.
Regards,
Karthik

Hi
when you use inner join to vpm2 you are creating this situation
try to use left join
SELECT T2.[DocTotal] as 'Invoice total' ,T2.[DocNum] as'Invoice no',T2.[DocDate] as 'invoice date',t0.Comments,t0.CardName,T3.[CheckSum],t0.doctotal
,T3.[CheckNum],t0.DocNum,t0. CreateDate ,t4.U_NAME  
FROM [dbo].[OVPM]  T0 left JOIN [dbo].[VPM2]  T1 ON T0.DocNum = T1.DocNum INNER JOIN OPCH T2 ON T1.DocEntry = T2.DocEntry left join VPM1 t3 on
T0.DocNum = t3.docnum left join OUSR t4 on T0.UserSign=t4.USERID where T0.[Docentry]={?DocKey@} group by T2.[DocTotal],T2.[DocNum] ,T2.[DocDate] ,T2.doctotal,t0.Comments,t0.CardName,T3.[CheckSum],t0.doctotal
,T3.[CheckNum],t0.DocNum,t0. CreateDate,t4.U_NAME   Order BY T2.[DocNum]
shachar

Similar Messages

  • 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

  • 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

  • I encountered an error in the Payment Wizard screen as I was creating an Outgoing Payment for petty cash expenses. On the "Recommendation Report" screen, I clicked "Non-Included Trans." and saw that one of the vendors (Vendor Code: WILCO) has the followi

    Hello,
    I encountered an error in the Payment Wizard screen as I was creating an Outgoing Payment for petty cash expenses. On the “Recommendation Report” screen, I clicked “Non-Included Trans.” and saw that one of the vendors (Vendor Code: WILCO) has the following error:
    “The document amount is greater than the max. amount allowed in the payment methods linked to the BP”
    Upon checking, the “PCF-W” Payment Method linked to WILCO does not have any restrictions, nor does WILCO have any credit/commitment limit set. I have also appropriately defined the Dummy Business Partner Bank (under Payment Terms) as well as checked the “Included” box for PCF-W on the Payment Run-Payment Methods screen.
    Could anyone please help me on this?
    Salamat,
    Cat

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • Outgoing PAyment Report

    Hi Experts..
    In which table outgoing payment row level data stores. There are no row level data stores in both OVPM & VPM1 table.
    Here I am clearing my point that I need a report in which I can show A/P Invoice, A/P Credit Memo & JE details in deiff coloums.
    That's why I need the same. My client wants PLD in which he can differentiate all Open Invoices, Cr Memo & JE's.
    Sry if I am not much clear.
    Awaiting for kind reply.
    Regards,
    Ravi

    Hi ...
    Actually My vendors need a Deduction details on Outgoing Payments print layout. In basic PLD it is not possible.
    They need Diff Amounts of diff. forms(deduction) like A/P Invoice- Post Date- doctotal, A/P Cr. Memo - doctotal, JE if any.
    And they need it on Payment Advice Print Layout(Outoign payment). Then I thought to create UDF & set FMS on them & then set on PLD.
    Plz suggest if you have better ideas. Every idea would be highly appreciated.
    Regards,
    Ravi
    Edited by: RAVI_JHA_SAP on May 27, 2011 2:24 PM

  • Outgoing Payment Report - Bank Transfer

    Does SAP Business One have a built in "Outgoing Payments report" that would display payments made via bank transfers?
    Or the only option is to create a query?
    Thanks,

    Hi
    How about checking at forum too.
    Here is one of the query
    Reg: Bank Transfer Repor
    Thank you
    Bishal

  • 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

  • Error at Outgoing payment  and general ledger report

    Hi Experts,
    I am getting a error while opening Outgoing Payment and General ledger Report, Errors are : "Path Can not be Null, Parameter Name: Path" and "Error code: 100000004, Error: Unknown session" ,respectively.
    These errors are only at a particular client machine.
    Kindly suggest solution.
    Thanks in Advance.
    Ashutosh

    Hi Jambulingam/Suraj,
    I checked the by giving admin rights, also with different user login, but these errors come as and when they want, i have put in this system in observation and wil update this thread accordingly.
    There is no citrix server.
    Thanks for your reply.
    Regards
    Ashutosh

  • Document Date on Outgoing Payment/Statement Report PLD

    Hi,
    Is there a way to display the Document Date of the paid/outstanding invoice on the print layout for Remittances (Outgoing Payment) and Customer Statement (Ageing - Customer Statement Report)? At the moment it's only the Posting Date for the Outgoing Payment and Posting Date + Due Date for the Statement Report but would be great to have the Document Date too.
    Regards,
    Nat

    Hi Natalia,
    for adding the Document date to the Outgoing payments form you can add field via modification of the print layout. For example OVTG.Tax Date should represent the document date.
    I would like to know what is the scenario for the document date to be visible on the Aging report.
    Best Regards,
    Martin Slavik
    SAP Business One Solution Manager

  • Incoming/Outgoing Payment Reports

    Hi Friends
    My Cleint Need The outgoing/Incoming Payment report and they r asking the following selection creteria
    Incoming payment/Out going Payment -
                              Bank Transfer Payment means wise,
                               Check payment  means wise
                                Cash payment means wise
                                Crdit card Payment Means wise
    Wat i have to do tell me the solution
    Sankar

    HI Sankar,
    Basically you want all those information in one selection criteria window?
    If you use XLR, it will be one selection criteria at a time.
    If you user Query you can combine them in one selection criteria using survey variables. Since you will be accessing the Incoming Payment and Outgoing Payment as one of the selection criteria option, I would suggest that you use t-sql and not just ordinary select statement.
    Laurence Resubal

  • Question for Outgoing Payment Drafts Report

    HI:
          Experts.I use a non-superuser to login SBO, I couldn't choose user for payment drafts report, but I could choose user for Document Drafts.  How counld I choose a user for Payment drafts report as a non-superuser?
    Regards

    Hi qiang peng,
    Your Super User was Assigned No Authorization for Payments Drafts Report in Banking Module.
    Create to Check this,
    ->> Login Super user in SAP.
    ->> Administration -> System Initialization  -> Authorizations -> General Authorization.
    ->> Open the General Authorization Window and Check the below steps.
    ->> Select the Particular Non Super User.
    -> Banking -> Outgoing Payments. -> Payments Drafts Report (Select the Full Authorizations).
    Update the Authorizations.
    Regards,
    Madhan.

  • Outgoing Payment on Account Report?

    Hello Experts,
    i have a question i want to ask you for you for your urgent assistance.
    A customer wants to see the G/L account code and Name on the outgoing payment report when they do payments on doctype='A', that is on account.
    I want someone to help me with a query that will automatically pick the G/L account code and name on a UDF i have created on the title of the payments.
    So that i use the OVPM to bring out the Account code and name.
    Please urgent help is needed.
    Thanks

    Hi,
    I have tried with FMS to get account code and name, not getting desired result. It may not be possible due to limitation of FMS.
    are you looking for this?
    Thanks & Regards,
    Nagarajan

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

  • Outgoing payments reports

    Hi all,
    I am a newbie to the SAP Business One 2007 A. I have to print outgoing payment voucher. In the voucher I need the account no. of the business partner to whom the payment is being made, the account no. from which the payment is being made (G.L. A/C #) and the account name (G.L. A/C #) etc.
    Moreover, I also have to print if the payment is being made by check or by cash or by bank transfer.
    Can anybody guide me in this regard?
    Many thanks in advance.
    Afzal

    Hi Gordon,
    Thanks for your prompt response.
    As I mentioned that I am new to SAP Business One. Could you please further guide me how can I print the custom query results on my report? It would be more helpful if you could let me have step by step instruction of the process.
    Best regads,
    Afzal

  • 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

Maybe you are looking for

  • Copy-and-paste table row results in hang in Contribute 6.5 Mac

    Am running Adobe Contribute 6.5 for Mac on OS X 10.8.2 Mountain Lion. Cannot copy-and-paste a table row from one page to another without having Contribute hang. Get spinning multi-colored beach ball and have to eventuall Force Quit Contribute. This w

  • Dynamic image in table  in adobe PDF form

    Hi experts                 I have been using a table in interactive form . In table I have a image field in which I want to insert employee pic which is comming in table as a URL . I have craeted a image field and attached tha table field to it but i

  • IPhoto too dark, Preview & Mail OK

    Recently all my photos appear too dark when I 'magnify' them (double-click) or try to edit them in iPhoto '08. However, when I export them from iPhoto and open them in Preview or send them to Mail with iPhoto they appear fine. (The iPhoto thumbnails

  • Do I need to always have a keyboard and monitor connected to use as a home share device for movies and music?

    I have two MacBook airs and two Apple tv's. I want to set up a Mac mini and rip over 800 dvd's and 600cd's to it then use the apple tv's to veiw the movies and play songs. Just in my house not streaming over the net. I am looking at the Mac mini serv

  • Interface artifacts in Safari 3

    After installing the 10.4.11 update for Mac OS X, I had no problems launching Safari 3, but noticed that typing or pasting a URL into the address field worked fine. Unfortunately, creating a new Tab or opening a URL from Mail or even a bookmark creat