Query for A/R payment details

I would like to query the business one database for all of the payment details (what invoice(s)...) were paid on a specific check.  It would sound something like this:
I can't seem to find the tables involved.
select (all detail records where payment applied) where check number = 'X'
I can find the check number and amount, but can not find how it is linked to invoices and/or credit memos.
Thanks in advance, Sam

The tables that may want to query are ORCT, RCT1 and RCT2.
See the SQL example below
SELECT T1.[DocNum] AS 'Payment Number', T1.[DocDate] AS 'Payment Date',
T0.[CheckNum] AS 'Check Number', T0.[CheckSum] AS 'Check Amount',
T0.[BankCode] AS 'Account No.', T3.[DocNum] AS 'Invoice No', T2.[SumApplied] AS 'Paid to Invoice'
FROM  [dbo].[RCT1] T0  INNER  JOIN [dbo].[ORCT] T1  ON  T1.[DocNum] = T0.DocNum 
INNER  JOIN [dbo].[RCT2] T2  ON  T2.[DocNum] = T1.DocNum
INNER  JOIN [dbo].[OINV] T3 ON T3.DocEntry = T2.DocEntry
Suda

Similar Messages

  • Adhoc query for Off cycle Payments(infotype 0267)

    Dear All,
    I have a rquirement to create a query for off cycle payments infotype(0267).
    It should show the payment done for each wage type.
    Can we pick the data from PC_payresult from table RT - Results Table.
    If yes, please let me know the process and if not, is there any other way to get the splits of offcycle payment.
    Regards,
    Prasad.

    Hi All,
    Do any one know how to create this query?
    Do we have any standard reports regarding the splits of offcycle payment infotype(0267)..
    Regards,
    Prasad.

  • Badi or user exit for FTR_CREATE for modifying the Payment Details

    Hi,
    I need a Badi or user exit that will modify the internal table for the "Payment Details" in transaction FTR_CREATE. Basically, instead of using the default entries in the "Payment Details", data from a Z custom table will overwrite the "Payment details" or the internal table containing the "Payment details". This should create entries in the Transparent Table VTBZV with the values fron the Z custom table.
    I'm trying to implement the BADI FTR_TR_GENERIC but I cannot find where and how to modify the original "Payment Details" entries. Or if its even possible to do this.

    Hi Ravi,
    I was trying to do that but I am not sure were to start. I tried to modify the contents of PI_PROXY_TRANSACTION->A_TAB_CASHFLOW using MODIFY <itab> but an error occured when I tried to activate it saying that the Class/Interdace Attribute is read-only and cannot be modified. Is there a Method that I need to do in order to modify the Attribute? (I'm not that familiar yet with Classes and Methods though)
    Also, just to test, I manually changed the contents of two internal tables containing the "Payment Details" data during debug mode. But after the program has ended its run and finally saved the data, the Table VTBZV was not updated with the manual data I introduced. So I'm not sure if the Badi FTR_TR_GENERIC (which is I'm implementing) really allows the "Payment Details" to be modified or if I'm modifying the correct internal table(s).

  • Query for invoice and distribution detail

    hi 2 all
    anybody have the query for getting invoice with distribution detail in oracle payable r12.
    thanks
    zulqarnain

    select ass.SEGMENT1 vendor_number,
    ass.VENDOR_NAME,
    assa.VENDOR_SITE_CODE VENDOR_SITE,
    aia.INVOICE_NUM,
    aia.INVOICE_DATE,
    aia.INVOICE_AMOUNT,
    aia.INVOICE_TYPE_LOOKUP_CODE,
    gcc.CONCATENATED_SEGMENTS distribution_account ,
    gcc1.CONCATENATED_SEGMENTS liability_account,
    to_char(aia.GL_DATE) GL_DATE,
    AP_INVOICES_PKG.GET_APPROVAL_STATUS( AIa.INVOICE_ID,
    AIa.INVOICE_AMOUNT, AIa.PAYMENT_STATUS_FLAG,
    AIa.INVOICE_TYPE_LOOKUP_CODE) APPROVAL_STATUS_LOOKUP_CODE
    from ap_invoices_all aia,
    ap_suppliers ass,
    ap_supplier_sites_all assa,
    ap_invoice_distributions_all aid,
    gl_code_combinations_kfv gcc,
    gl_code_combinations_kfv gcc1
    where aia.VENDOR_ID = ass.VENDOR_ID
    and assa.VENDOR_SITE_ID = aia.VENDOR_SITE_ID
    and ass.VENDOR_ID = assa.VENDOR_ID
    and aid.INVOICE_ID = aia.INVOICE_ID
    and aid.DIST_CODE_COMBINATION_ID = gcc.CODE_COMBINATION_ID
    and assa.ACCTS_PAY_CODE_COMBINATION_ID = gcc1.CODE_COMBINATION_ID
    --and aia.INVOICE_ID =  81000
    and aia.GL_DATE between '01-JAN-12' and '31-MAR-12'
    order by aia.GL_DATE
    Thanks,
    Atul

  • Query for duplicate UDF on detail table

    Hi,
      我開了一個 UDF 在PCH1來存放非正規定單號碼( 此號碼並非 OPCH的Docnum), 在同一筆主檔下此號碼會出現在不同子紀錄內.因此有可能在同一主擋下同一號碼的UDF會出現多次.現在我希望能寫個QUERY去找出不同主檔的相同UDF後列出主檔的Docnum.
    For Example, OPCH 12465, 存放 Detail Item 在 PCH1 的 UDF 屬於 BE-1234的子紀錄數筆. 之後 OPCH 12700 又存放 BE-1234
    的紀錄.我希望你有個 query 能找出 OPCH12465 以及12700.我試著用 group 但是記錄會顯示出有多筆相同UDF但主檔卻是一筆的紀錄.
      I hope somebody can help.
    Thanks

    Gordon,
      Thanks a lot, original I wrote a query like you gave to me, but still has problem. the result will like this,
    UDF            DocNum         Count
    BE-1001      12365             3
    BE-1006      12454             4
    BE-1006      12466             3
    BE-1009      12512             2
    I need UDF display more than 1 time but DocNum is different. like this result, I need query show BE-1006 and different Docnum, I don't need system show others but DocNum has 1 time only.
    Thanks

  • Formatted search query for displaying invoice items details

    hi all,
    i need to display all the items in AP invoice.kindly suggest me a query for that.
    in AP invoice
    Ex. row items
    code--descqtyprice--
    total
    I0001--XXXXXXX5--
    100 -
    500
    query should display this row as
    code--desc--
    price
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    =================================
    the query should display as the qty is 5 so it will display the same item 5 times
    kindly suggest me some query for formatted search
    its very urgent
    regards
    sandip

    Hi Sandip,
    DoQuery("Select b.ItemCode from OINV a,INV1 b Where a.DocEntry=b.DocEntry")
    Hope its help for you
    Give me reward points,
    Regards,
    G.Suresh.

  • HT1918 i was charged a Dollar for Verifying my Payment Details ?

    hello sir/madam
    i changed my password thus...the account asked me to confirm my Payment Method and ask me to put the password of my Credit Card..
    i did as asked to verify my account details..
    without any notice or demand..they debited Rs. 60 ( $1 ) to my Credit Card Account!
    i received the SMS and email from my Bank..then i realised..it is for iTunes Verfication !! but why ??
    isnt this too much ??
    it is a unnecessary hardship on a customer...
    apple cannot cheat us by Charging Rs 60 ( $1 )....without any purchases made on its website..
    please help...and Refund my balance..
    Thank you!

    Same is here.  When I was trying to upgrde my Mac to new OS X Yesomite I was forced to update the credit card information and as soon I did that i got the message that Rs. 60 is debited.  This is very unfair.  I am shooting a mail to apple authorities.

  • 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,
    Monil

    Thanks Gordon,
    Please advice on which tables do I refer to?
    Monil

  • Query for checking overdue payments and trigger approval process

    Hi All
    I need a query to be executed when a user is tries to add a AR Delivery Document for a customer with invoices that have overdue DocDueDates.
    Regards
    Bongani

    You probably want to check overdue dates against closed and canceled items, too:
    (This allows a zero dollar document to go through, for repairs or replacements)
    SELECT DISTINCT 'TRUE' FROM DBO.OINV T0
    WHERE T0.[DocStatus] = N'O' AND T0.[CANCELED] = N'N' AND ($[$22.0.Number]) > 0
    AND T0.CardCode = ($[$4.0.0])  AND T0.[DocDueDate] < GETDATE()

  • Need query for software Last Used details

    Hi All,
    Is there any SCCM report which gives us details of software last used date, username, hostname etc. so that we can manage our licensing.
    Regards,
    Prem

    Yes: Software Metering in Configuration Manager
    http://technet.microsoft.com/en-us/library/bb694169.aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Query for Daily Payment Records against Multiple Payment Means

    Hi Experts,
    I've got this query to show daily payment details which related today's invoice only, however, if there are multiple payment means which linked to one invoice then it just shows last payment record only. Let say, Invoice no. 1 paid by three cheques and query shows last row of cheque amount only. Is it possible to shows multiple payment means against one invoice as well?
    Thanks in advance for any help.
    SELECT DISTINCT
    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',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T0.DocTotal
    WHEN T1.TrsfrSum > 0 THEN T0.DocTotal - T0.PaidToDate
    WHEN T1.CashSum > 0 THEN T0.DocTotal - T0.PaidToDate
    WHEN T1.CreditSum > 0 THEN T0.DocTotal - T0.PaidToDate
    WHEN T1.CheckSum > 0 THEN T0.DocTotal - T0.PaidToDate
    ELSE T0.DocTotal
    END 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.JrnlMemo = 'Cancelled' THEN T1.TrsfrSum - T1.TrsfrSum
    WHEN T1.CheckSum > 0 THEN '0'
    WHEN T1.CashSum > 0 THEN '0'
    WHEN T1.CreditSum > 0 THEN '0'
    WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T2.SumApplied
    END AS 'TrsfrSum',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T1.CashSum - T1.CashSum
    WHEN T1.CheckSum > 0 THEN '0'
    WHEN T1.TrsfrSum > 0 THEN '0'
    WHEN T1.CreditSum > 0 THEN '0'
    WHEN T1.CashSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T2.SumApplied
    END AS 'CashSum',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T1.CheckSum - T1.CheckSum
    WHEN T1.CashSum > 0 THEN '0'
    WHEN T1.TrsfrSum > 0 THEN '0'
    WHEN T1.CreditSum > 0 THEN '0'
    WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T2.SumApplied
    END AS 'CheckSum',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T1.CreditSum - T1.CreditSum
    WHEN T1.CashSum > 0 THEN '0'
    WHEN T1.TrsfrSum > 0 THEN '0'
    WHEN T1.CheckSum > 0 THEN '0'
    WHEN T1.CreditSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T2.SumApplied
    END AS 'CreditSum',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T1.TrsfrSum - T1.TrsfrSum
    WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T1.TrsfrSum
    END  'Paid To Date',
    T1.JrnlMemo
    FROM OINV T0
    LEFT JOIN ORCT T1 ON T0.ReceiptNum = T1.DocEntry
    LEFT JOIN RCT2 T2 ON T1.DocNum = T2.DocNum AND T0.DocEntry = T2.DocEntry
    Left Join OSLP T3 ON T3.SlpCode= T0.SlpCode
    WHERE DateDiff(D,T0.DocDate,GetDate())=0
    ORDER BY T0.DocDate, T1.DocDate, 'CreditSum', 'CheckSum', 'CashSum', 'TrsfrSum', 'AR Sum'
    Edited by: Won Gyu (Gerald) Lee on Feb 22, 2012 7:15 AM
    Edited by: Won Gyu (Gerald) Lee on Feb 22, 2012 7:15 AM
    Edited by: Won Gyu (Gerald) Lee on Feb 22, 2012 7:17 AM

    Hi Gordon,
    Thanks for reply and I've got your book which is being very helpful.
    I tried and it seems to shows multiple payment list, however, there are all same value in 'CashSum', 'CheckSum', 'CreditSum', 'TrsfrSum' columns.
    For example, if invoice link with one payment mean (cash:$10.00) then it shows like this.
    'CashSum', 'CheckSum', 'CreditSum', 'TrsfrSum'
            10.00                   10.00             10.00          10.00
    SELECT DISTINCT
    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',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T0.DocTotal
    WHEN T1.TrsfrSum > 0 THEN T0.DocTotal - T0.PaidToDate
    WHEN T1.CashSum > 0 THEN T0.DocTotal - T0.PaidToDate
    WHEN T1.CreditSum > 0 THEN T0.DocTotal - T0.PaidToDate
    WHEN T1.CheckSum > 0 THEN T0.DocTotal - T0.PaidToDate
    ELSE T0.DocTotal
    END 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.JrnlMemo = 'Cancelled' THEN T1.TrsfrSum - T1.TrsfrSum
    WHEN T1.CheckSum > 0 THEN '0'
    WHEN T1.CashSum > 0 THEN '0'
    WHEN T1.CreditSum > 0 THEN '0'
    WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T2.SumApplied
    END AS 'TrsfrSum',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T1.CashSum - T1.CashSum
    WHEN T1.CheckSum > 0 THEN '0'
    WHEN T1.TrsfrSum > 0 THEN '0'
    WHEN T1.CreditSum > 0 THEN '0'
    WHEN T1.CashSum > T0.DocTotal THEN T2.SumApplied
    ELSE T2.SumApplied
    END AS 'CashSum',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T1.CheckSum - T1.CheckSum
    WHEN T1.CashSum > 0 THEN '0'
    WHEN T1.TrsfrSum > 0 THEN '0'
    WHEN T1.CreditSum > 0 THEN '0'
    WHEN T1.CheckSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T2.SumApplied
    END AS 'CheckSum',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T1.CreditSum - T1.CreditSum
    WHEN T1.CashSum > 0 THEN '0'
    WHEN T1.TrsfrSum > 0 THEN '0'
    WHEN T1.CheckSum > 0 THEN '0'
    WHEN T1.CreditSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T2.SumApplied
    END AS 'CreditSum',
    CASE
    WHEN T1.JrnlMemo = 'Cancelled' THEN T1.TrsfrSum - T1.TrsfrSum
    WHEN T1.TrsfrSum > T0.DocTotal THEN T0.PaidToDate
    ELSE T1.TrsfrSum
    END  'Paid To Date',
    T1.JrnlMemo
    FROM OINV T0
    LEFT JOIN ORCT T1 ON T0.DocNum = T1.DocNum
    LEFT JOIN RCT2 T2 ON T0.DocEntry = T2.DocEntry
    Left Join OSLP T3 ON T3.SlpCode= T0.SlpCode
    WHERE T0.DocDate = [%0]
    ORDER BY T0.DocDate, T1.DocDate, 'CreditSum', 'CheckSum', 'CashSum', 'TrsfrSum', 'AR Sum'

  • Customer check payment details

    Hi,
    I need the database table for customer check payment details. My client is asking the report with these fields: Customer, Paid amount, Paid Date, Payment Mode, Check No, due amount, due date etc. Due date, due amount i can get from BSID table and paid details are availiable in BSAD but check no and payment mode was not availiable in BSAD table. please guide me in this regard.
    sateesh

    You dont need to go in to database table,  just go to FBL5N to get all the required information filter by doc type (ex: DZ)  extract all posted data . Change the layout by adding the cheque no and payment method(1-ZLSCH) as part of your requirement. But it depends which field was used to store cheque no.s in the first place. As SAP dont have a standard field for receiving cheque no. but paying cheque no. (1-U_CHECF).

  • How to fetch the payment details in to report

    Hi,
    I have the MIRo number, How to find the payment document number and check number so and so.
    What are the transactions like: F053,FB03.
    Let me know the process of payment after MIRO.
    What are the documents we need to raise, how to find those documents, what is the link.
    How to find the accounting document for payment and check details (from which tables).
    What are the table names and field names. What we can get from PAYR table.
    I want to create a report for MIRO with payment details.
    How to fetch the business area field value in to report.
    What is the table name. I verified it is storing in structure. Which is the right table for fetching that value with reference to MIRO.
    With regards
    Lakki
    With regards
    Lakki

    Hi,
    For Creating MIRO Document,
    We have to create PO Me21n,
    then Do GR - MIGO using PO Reference,
    then we have to do MIRO Using then same PO. so the link is basically the PO. Then the Payment for the MIRO document is done in F-53/F-58 refering the MIRO  document. the check number will be generated once we do the Check  Print in
    FBZ5.
    You can  assign the check number to the F-53 document either in Assignment Field or the Reference field Using FCHU.
    Once you do this you can view all the Vendor Bill using Doc Type RE, KR & Vendor Payments Doc Type KZ.
    You can use the Std Report FBL1N / FK110N
    Hope its useful. Assign points if found use ful
    Regards,
    R.Ramakrishnaraj

  • Problem in the program for disply of flight details. webdynpro tutorial 4

    I am new to WebDynpro. I have succesfully learnt the navigation between views (tutorial 3). In the tutorial 4, I wrote the simple select query for displaying the flight details, but I get a runtime error.
    METHOD IF_WD_CONTEXT_ELEMENT~GET_STATIC_ATTRIBUTES .
      FIELD-SYMBOLS:
        <VALUES> TYPE DATA.
      ASSIGN ME->STATIC_ATTRIBUTES->* TO <VALUES>.
    >>>>  MOVE-CORRESPONDING <VALUES> TO STATIC_ATTRIBUTES.
    ENDMETHOD.
    Error Analysis:  The MOVE CORRESPONDING can only be used with operands with structured type.
                               In the case at hand, this condition is not fulfilled. Operand "values" has TYPE "C".

    Hi,
    I guess STATIC_ATTRIBUTES is the name of some variable you are using in your code.
    Try to use simple MOVE statement:
    MOVE <VALUES> TO STATIC_ATTRIBUTES.
    Regards
    Arjun

  • HT1918 Unable to purchase on ios device after updating payment details on computer

    I have done two things to my apple ID account on my mac:
    1. Updated the email address
    2. Changed payment details.
    After the above mentioned operations, I log out of my apple ID account on my ipod touch and re-logged in. But when I tried to purchase an app from app store, my ipod touch leads me to a page to update(verify) my new payment details. I have filled in all blanks, including changing the "****" information to real and correct numbers. But when I click "Done" on the upper right corner, it does not proceed to finish the purchase but remains this page requesting for verification of payment details. I have tried a few time. All failed in this way.
    Any help?

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    But... if the Device has been Modified... this will Not necessarily work.

Maybe you are looking for

  • I have already download mozila but some web site not open

    some web site not open on my handset

  • Help please!!  iDVD error...

    Hi I created a small movie in iMovie 08 and I sent it to iDVD but when I click burn dvd it keeps saying: "There were errors during the project validation that have to be fixed before burning the project." I am a computer dummy....lol Also, it does no

  • Mac OS 10.6.8 keeps crashing

    Would going to Moutain Lion help with this? Evertime I try to back up my Mac Using CronosSync or try copying large file (ie.iTunes music) it freeze my Mac.

  • How to use bbm channels

    Hi, in the keynote there was talk about bbm channels, and the press release states that we can 'connect and share' using channels. Problem is, I can't for the life of me figure out how this bbm app works.  The only thing I can find is that I can conn

  • Using custom backing map for distributed scheme

    Hallo, We are evaluating usage of distributed scheme for storing large amount of data. We have analyzed memory usage for distributed-scheme backed by local-scheme (with binary unit calculator) and received interesting results. On single JVM 110M - by