Query to include payment status cash / cheque for payment received.

Hi,
We would like to amend the following query such that a user can select incoming payments received in cash or by cheque, with the total value of payment made.
SELECT T1.CardCode, T1.CardName,T3.SlpName, T0.DocDate as 'Posting Date', T0.DocNum as 'AR
Invoice Number',
T0.DocTotal as 'AR Invoice Total', T0.DocTotalFC as 'AR Invoice Total FC', T1.DocDate as
'Payment Date',
T2.DocNum as 'Incoming Payment Number ',T2.CheckSum as 'Amount'
FROM OINV T0 INNER JOIN ORCT T1 ON T0.ReceiptNum = T1.DocEntry INNER JOIN RCT1 T2 ON
T1.DocNum = T2.DocNum
Left Join OSLP T3 ON T3.SlpCode= T0.SlpCode
where T1.DocDate >=[%0] and T1.DocDate <=[%1] ORDER BY T1.CardName
The above query retrieves only the bank tarnasctions, cash transactions are not recorded.
Please advice how can it be done?
Regards

Try this one to get the number:
SELECT T1.CardCode, T1.CardName, T0.DocDate as 'Posting Date', T0.DocNum as 'AR Invoice Number',
T0.DocTotal as 'AR Invoice Total', T0.DocTotalFC as 'AR Invoice Total FC', T1.DocDate as 'Payment Date',
T1.DocNum as 'Incoming Payment Number ', T1.CashSum, T1.TrsfrSum, T1.CreditSum,
T2.DueDate as 'Check Due Date' , T2.CheckNum as 'Check Number', T2.CheckSum as 'Amount', T3.SlpName
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]
For your 2nd question, it will be difficult to use one query for all.  You may have to create different queries to separate different payment means.

Similar Messages

  • Cheques for payment screen

    Dear Experts,
    I had made a cheque 'A' in "Cheques for Payment" Screen and have not yet printed it. But when i check the "Cheque Register Report" and chooses the option to Display "All Printed Cheques " , system shows me the Cheque 'A' in that report even though i have not printed the cheque yet.System should display the same cheque in "Not Printed Ony " option I am using SAP BUSINES ONE 8.8 PL05

    Hi,
    You may need to find cheque 'A' status to see if it is still not printed.  If yes, it might be a bug. Update to latest PL to check again.

  • Discount in Outgoing Payment  and Cheque for payment PLD

    Hi,
    Using SBO2007A PL30
    I have tried to find whether there are system variables for amount outstanding and discount which show amounts in foreign and local currency.
    I can't find any references in the .xls document how to use system variables in SBO 2007., and strangely there is no reference in that document to the system variables which already exist in the in- built layouts
    Cheque for Payment
    - total amount paid ( variable 97 )
    Outgoing Payment
    - posting date ( variable 202)
    - Doc Ref ( var 200)
    - Your Ref ( var 201)
    - amount paid ( var 63)
    This leads me to suspect that system variables for outstanding amount and discount may well exist.
    In the meantime I have had to do this using references to database fields Outgoing Payments - Invoices: Discount Amount and Outgoing Payments - Invoices : Amount before Discount with formulae to determin whether the document is in local or foreign currency.
    A further downside to this is that a credit memo is displayed from the latter database field without a negative sign
    Does anyone have any suggestions here?
    Thanks

    Managed to figure out most of it but for the record I have discovered an additional 4 system variables in use for paid document details at line level. Here is the complete list so far:
    outgoing Payment
    PostingDate 202
    our Ref        200
    your Ref      201
    o/S Amt       ?     ( used formula based on db fields instead)
    Discount       ?    (  used formula based on db fields instead)
    Payment       63
    Cheque for Payment
    posting Date  104
    our ref            101
    your ref          100
    O/s amt         96
    Discount           ? ( use formula :difference between 96 and 97)
    Payment        97
    If anyone can supply the missing variables if they exist, I'd be grateful.

  • Cheque for Payment skipping Confirmation Screen

    Hi Experts,
    When I print cheques (created by payment wizard), it prints and gives the next cheque number which is fine, however I don't get the Confirmation Screen and soon after I get the error message 'No matching records found 'Cheques for payment' (OCHO) (ODBC -2028)
    I had checked forums link Problem in Check Number Configuration and sap note 1059752 which does nto resolve the issue.
    Any help will be appreciated. The client is on 8.8 PL16
    regards
    Johnson

    Hi Manish,
    Yes, I am able to open the check for payment window manually and in the option credited GL Account , i found account is listed.
    And also i done all setting in house bank setup as per SAP note 1059752.
    Banking -
    > check number confirmation
    check number confirmation - Selection criteria  -
    > Window open
    After data is put and enter
    Error message is display "No matching records found 'Cheques for payment' (OCHO) (ODBC -2028) [ Message 131-183 ] ..
    Till not resolve .
    Regards
    Vinod G

  • Need to change my parked invoice status to"Free for payment"

    I want to set the status to "Free for payment" for parked invoice documents after posting(using MIR4 or else),so that help me how .Is there any function module available for that to set the ststus or else how??Please let me know very urget.
    thanks
    Reddy Gundala

    blocked invoice can be released for payment by MRBR.
    check the customization.-check u might have activated the Quality , if the GR stock is in quality, un less it is released to un ristricted, the MIRO status cant be set free for payment.

  • No matching records found ' cheque for payment '(OCHO) (ODBC -2028).

    Hi All,
    Check number confirmation window does not automatically appear.
    I make all setting with SAP Note 1059752- cheque for payment skipping confirmation screen.
    I get the error message ' No matching records found ' cheque for payment '  (OCHO) (ODBC -2028).
    Can anyone guide  me to resolve this issue.
    Regards
    Vinod G

    Hi Manish,
    Yes, I am able to open the check for payment window manually and in the option credited GL Account , i found account is listed.
    And also i done all setting in house bank setup as per SAP note 1059752.
    Banking -
    > check number confirmation
    check number confirmation - Selection criteria  -
    > Window open
    After data is put and enter
    Error message is display "No matching records found 'Cheques for payment' (OCHO) (ODBC -2028) [ Message 131-183 ] ..
    Till not resolve .
    Regards
    Vinod G

  • Cash Allocation for Open Receivables

    Hi All
    I am trying to allocate cash for a customer that does not have any line items - this is due to the fact that at the time of cutting over - all receivables were not booked in correctly...
    therefore we need to apply cash to customers that dont have any open line items to allocate to - therefore, I am not able to use F-26 or F-28 or even F-32...
    The users are not in favour of doing it as a credit memo to the customer either..
    Can anyone please suggest to me - as to how I can go about this?
    Thank you
    Rukshana

    You should really raise a TAR (SR) with Oracle support about this. Definitely not a forum question.

  • Default cash account in Payment Means for Outgoing

    Hi All,
    Is there any setting by which we can default Cash Account from Chart of account to Payments mean - Cash in Outgoing Payments.
    Regards,
    Abhishek

    Hi,
    Thanks.
    I am aware about FMS but can we directly get the cash account as we get in Incoming Payments.
    Regards,
    Abhishek
    Edited by: Abhishek A on Dec 26, 2008 6:49 PM

  • PO wise venodr payment status

    Hi Experts,
    Is there any report wherein I can see Purchase Order, Item wise vendor payment status, i.e. whether payment is cleared, Parked or open item. Suggest me if there is any transaction exist or on how to address development of this report.
    Thanks,
    Shree

    Hi Shree PKR,
    After one year now I am looking for the same answer what you mentioned here. Could you please let me know if you got any standrad report that shows the vendor payment with PO details.
    Some one mentioned here transaction MIR5 it does not exist in R3E. Also FBL1N out put could be added with PO number, however the report does not pick up PO even when it is in BSEG.
    Could you please reply back.
    Thanks,
    Gajanan

  • Cancellation / Reversal of Credit memos and Check for payment

    I have few cases where the credit memos and check for payment documents have been keyed with an incorrect posting date.
    What should be best approach to reverse these transactions.

    Hi Somchitra,
    in such situations ideally you would use the cancellation document standing on the original document, alas, a credit memo has no target document.
    You will need to create an invoice with exactly the same data as in the credit memo & then internally reconcile these transactions. If the credit memo was in itself generated from an invoice, you need to cancel that reconciliation first. After that you re-create the credit memo with exactly the same data, just with the correct dates.
    To cancel the cheques for payment you need to cancel the payment itself with the original document date & 'Cancelled' will be put in the 'Remarks' on the cheque.
    You will then need to recreate the payment with the correct dates.
    If you have already confirmed the printing of the cheque, you'll need to issue a new cheque number & destroy the printed copy, if it hasn't been printed, you can select the appropriate number in the 'Cheque number confirmation' window.
    As always when correcting transactions, please keep an eye on the stock transactions & make sure they are correct. Also, for auditing purposes, always enter an approriate text in the 'remarks'.
    All the best,
    Kerstin

  • Cancel Date in Void Checks for Payment

    Ver. 2005, PL11: The cancel date (and update date) is not being set when voiding a check for payment which is associated with an outgoing payment.
    Likewise, the cancel date (and update date) is not being set when a check for payment is voided when canceling an outgoing payment.
    When reporting on payment activity, the ocho file is not accurate without the cancel date. Any idea if this is a setting? A bug? Fixed in 2007? Ideas on a work-around?

    Ad-hoc payments, such as a cash on delivery order, an emergency employee loan or some other one-time payments are created using the check for payment screen, entered against an account number, not a vendor, and the "create journal entry" box is checked.
    The check is then immediately printed using the document printing. The payment wizard is invoked weekly, and it ignores these ad-hoc, paid and printed payments.
    Any ad-hoc checks for payment correctly have the cancel date and update date updated when using the void check for payment screen.
    Checks for payment created from the payment wizard (which are "associated" with a previously created outgoing payment) do not have the cancel date and update date updated in the check file (OCHO) when using the void check for payment screen.

  • Checks & Bank Transfers (ACH) for Payment

    I'm new to SAP Business One moving from QB Pro.  Is there a way to post a Bank Transfer without creating an A/P Invoice.  I would like it to post to a specific G/L account with having to create a new vendor and invoice since it is a one time thing.

    Hello,
    You have a three option.
    try this and discuss with client for your scenario.
    First
    make outgoing payment on account and select payment means as bank transfer .
    Second
    You can make contra voucher means transfer amount one bank to another bank (With the help of Journal Entry).
    Three
    Make to cheque for payment  with credit account and debit account(TO order) in out going payment form.
    After this if you need to reconcile then select and do with another account ledger
    Thanks
    Manvendra
    Edited by: Manvendra Singh Niranjan on May 13, 2011 10:51 PM

  • Why there is chanage "Free for payment" to "Invoice verification" aftr MIRO

    Hi Friends,
    Please suggest me why there is a change from "FREE FOR PAYMENT" to " INVOICE VERIFICATION" after posting of MIRO.
    My client is asking this doubt. However i have checked by posting MIRO but failed to find out.
    Please provide a detailed clarification for this doubt.
    Your quice reply in this issue would be highly appreciated.
    Thanks & Regards,
    Naveen Kumar.

    Hi Friends,
    Please find the below question from my client.
    "While booking Invoice with PO by using T.Code MIRO, i set status payment block is "Free for Payment" after positng, it automatically changes from "Free for Payment" to "Invoice Verification" so payment team can not run payment for the item.
    Please help me to resolve it."
    For your information i checked Vendor Master in XK03. status of payment is like Free for payment.
    Please suggsest me correct answer to clarify my client's doubt
    Looking forward for your kind help
    Thanks & Regards,
    Naveen Kumar.

  • Tax query builder with "workflow status" property

    Hi,
    is it possible to create a tax query builder with "workflow status" property? For example: folder A only with documents "Relased", folder B only with document "In progress"?
    In property meta data I saw that there is a property "cm_workflowState", I made it indexable, but it doesn't work....
    thanks,
    Paolo

    Hi,
    Thanks to share your post.
    For the issue, I think it may due to the wrong handling of the encoding type “UTF-8”, please refer to the followed article, they may give you a hand:
    http://blogs.sun.com/shankar/entry/how_to_handle_utf_8.
    http://devlog.info/2008/08/24/php-and-unicode-utf-8/.
    Hope this could help you!
    Leo

  • F110 - Payment program for payment method 'W'

    I'm trying to implement wire payments (using EDI).  When I run F110 I choose 'W' as the payment method on the parameters tab, and on the printout/data medium tab I expect to see program RFFOUS_T - instead I'm seeing RFFOUS_C.  Isn't RFFOUS_T the program that should run for wires?  I also am seeing RFFOAVIS and RFFOEDI1.  Should these programs be running, as well?

    Hi
    In FBZP did you do all the steps for payment method W
    1.setup payment method per country for payment transactions
    2.setup payment method per company code for payment transactions
    3.setup all company codes for payment transactions
    4.setup paying company codes for payment transactions
    5.setup bank determination for payment transactions.
    the error you are getting is No valid payment method found , not with the bank account number , g/l account and so on......
    Try removing the payment method either in the Vendor Master or in the Document and run F110.
    Regards
    Venkat

Maybe you are looking for

  • Open dataset and close dataset

    Hi I need to write log file in fileshare. I am using the following FM to create the file. Z_FILE_OPEN_OUT_UNICODE' I have following qns 1. do i need to use open dataset and close dataset stmts, even I create the files with the FM?

  • User-exit for t-code VF11

    HI GROUP FIRST OF ALL THANKS TO U ALL. U GUYS ARE GREAT HELP. THIS TIME I WANT TO KNOW THE USER-EXIT FOR 'VF11'. I WANT TO HAVE A CHECK ON THE DATE . PLEASE REPLY . ITS A BIT URGENT. I WILL DEFINATELY REVERT BACK WITH REWARD POINTS. THANKS IN ADVANCE

  • Artifacts when moving object with arrow keys.

    Hi all hope this is the right place to post this question. I want to to write simple arkanoid game in Flash (AC3). I've managed to write code that  moves my paddle with arrow keys. The code looks like this: function OnNewFrame(event:Event):void     i

  • Import dvd to imovie

    I converted home viedos from a vhs to dvd. what do i need to import dvd to imovie so i can edit and combine?

  • Seeking help in extracting data from partitioned table"YEARWISE".

    Hi Experts, I need a favour in extracting data YEARWISE like 'from 1999 to 2000. Table is partitioned with around 40 partitions, and data I want to extract with sign ',' separating columns.So that I can move it to application as text file directly. P