AP tables - Payments vs Checks

Hi All,
We need to report transaction totals as per date range:
- Total No of Invoices Paid
- Total Amt Paid ($)
- Total No of Invoices processed
Had a basic question... which table to use.. AP_INVOICE_PAYMENTS_ALL or AP_CHECKS_ALL... because the total for same date ranges are diffrent, and not sure why.
Please let me know the relationship between the three tables and points to be taken care when creating the sum. If there are any existing queries, please share.
AP_INVOICES_ALL
AP_CHECKS_ALL
AP_INVOICE_PAYMENTS_ALL
Noticed, AP Checks do'nt have exchange rates. How to report multi currency trns?
Thanks in advance.
-Bhaskar

Bhaskar,
Well, I had to do this type of thing in Discoverer recently, or at least something similar (maybe not exactly the same).
You have to be careful, as I think you are seeing, with the accounting dates in AP_INVOICE_PAYMENTS_ALL. Say you wrote a check on 09/25/2009. On 11/15/2009, you voided the check. In AP_INVOICE_PAYMENTS_ALL, you get 1 set of entries dated 09/25/2009 and a reversing set dated 11/15/2009. So if you are data selecting 09/01/2009 to 09/30/2009, AP_CHECKS_ALL would say a check amount of 0, but AP_INVOICE_PAYMENTS_ALL would say a check amount (the original check amount).
So you have to think hard about what you want and test play with your data. For example, do you want to include voided checks in your counts, or not? They were checks that you did produce, after all. If count voids, do you count for the period when issued (check date) or the period when voided (accounting date - which might mean it gets counted twice)?
What I did was join AP_CHECKS_ALL to AP_INVOICE_PAYMENTS_ALL. I used check date (from the checks table) to select my check records. I had to do SUM(AMOUNT) from the invoice payments table. You have to do that because the amount from the checks table is in every joined row and gets added in extra times. Say you had a check that paid two invoices. Check for $100. Invoice 1 $60 and Invoice 2 $40. The join gives you Check A, 100, 60 for row 1 and Check A, 100, 40 for row 2. So if you sum amount from AP_CHECKS_ALL, you get $200, which is not right. Sum amount from invoice payments and you get $100, the right amount.
For invoice count, you probably will have to do a COUNT_DISTINCT on invoice id from the invoice payments table. This is because an invoice might be paid on more than one check. Say Invoice A had a part 1 for $20 and a part 2 for $10. Part 1 paid on check 1 and part 2 paid on check 2. Do you want to say the invoices paid count is 2, or 1. Some people might say 2, because I did have two different payments for that invoice. Others might say invoice count should be 1, because it was the same invoice, just on multiple checks. So you have to decide what you want to do. We went for the invoice paid count should be 1, which requires the Count_Distinct function.
Not sure what you mean by Total Invoices Processed. Maybe that is separate from payments? That you just want to know how many invoices were entered for a certain date range, regardless of payment status? We also wanted an invoice count, but not tied to payment status. So that is when you would start looking at the AP_INVOICES_ALL table.
In all cases, you have to study and determine what record statuses you want to include in your selection criteria. As maybe you can tell from the questions I was asking up above. What you want may be different from what we wanted. That is why I say you have to do testing with your real data to make sure you are meeting your specific requirements. This posting just helps to point you in the right direction. Hopefully you have Toad or SQL Plus as tools that you can use to do manual SQL statements against the tables. I used Toad to help me review our data here and figure out what I needed to do for selection criteria. Toad lets me see the joined results in detail so I can better understand what happens when I then GROUP the results (to summarize).
Hope this helps a bit. Good luck.
John Dickey

Similar Messages

  • AP Payment Method (Check) & Remit-to Bank Info (Bank A/c and A/c Name) not populated automatically

    Hello all,
    We have encountered an issue during our testing for upgrade to R12 (12.1.3) where in the AP Invoice header, the remit-to bank a/c info (a/c number and name) as well as the payment method are not being picked for some sites in certain suppliers (even though the banking details and payment method have been maintained at supplier site level).
    However, this is not the same for other sites maintained under the same suppliers for eg:
    Supplier A has 2 sites
    Site 1
    Site 2
    In the invoice, when giving Supplier A, Site 1, the remit-to details are not auto populated (but can be manually picked) - same with the payment method (Check)
    If Supplier A, Site 2 is picked, all details populate automatically.
    Also, this has been noted with suppliers that have been migrated from R11 however, not all migrated suppliers show this behavior.
    Any advice is very much appreciated.
    Thanks and Regards,
    Fazleth

    Changes in relation to Supplier Bank set up in R12 upgrade I worked on in 2010 so may not be 100% but here goes:-
    R12 introduces a Priority flag in addition to the Primary flag in the Supplier Bank set up.
    This functionality replaces the R11i use of the Primary flag in the current Supplier bank set up.
    My understanding is that in the upgrade to R12 the Primary flag will be assigned as in R11i and the new priority flag will be assigned as per the logic of the R11i Primary flag. 
    In the example above it could be that for supplier site A site 2 was the primary flag and a priority has been given to site 2 if this is the case there may be some small set up that needs to happen to give site 1 a priority in R12.
    I don't have the set up steps to hand but you should be able to run some reports and query in the supplier set up to validate this.

  • Is there any system table available to check no. of entries in the table?.

    Hi
    Is there any system table available to check the no of entries in the table.
    Note : the table may be whether SAP table or Z-table.(All tables)
    Regards
    Raja.

    Hi Raja,
    I don't think so. Instead, try to perform
    SELECT count(*) FROM dbtab.
    ...to get the number of records of the table dbtab.
    I hope this helps. Kind regards,
    Alvaro

  • Lost payment method after reversing the payment and check

    Hi all,
    After reversing payment and check via FB08 , the payment method stored in payment document is cleared.
    does anyone know that why the payment method in the payment docuemnt is cleared after reversing the document ? and where can I chase back the payment method ? Thanks

    Hi Sreehari,
    Thanks for your reply. The configuration you mentioned have already been set. The payment method can be determined by vendor master when creating invoice and the payment method can also be stored in the field "payment method" in payment document. But the problem is the value of the filed "payment method" in payment document will be cleared after reversing the payment and cheque. As a result, we can't chase back the payment method in the reversed payment document.
    Regards,
    Ken

  • Advance check payment and check bounce

    Hello All,
    Am working with a Pharma Client and the Scenario is Like ....
    Advance check payment and check bounce - Normally in bussiness when the material is selling to the stockist Client will collect  the advance post dated checks from the stockists as per Client credit policy, if the stockist issued check got bounced the stockist will be in risk category and sales order should be blocked automatically by SAP system. When the next transaction is doing with the same customer system should not allow the check payment & it should allow only demand draft.
    Please suggest me how I will map this in sap credit management
    Regards]
    Venkat

    Currently, if any cheque is bounced, where it has been recorded in SAP ??  You have to consider that field and have to try with any of the following user exits which are related to credit management.
    a)  LVKMPFZ1: USER_CREDIT_CHECK1
    b)  LVKMPFZ2: USER_CREDIT_CHECK2
    c)  LVKMPFZ3: USER_CREDIT_CHECK3
    If I am correct, only through some text maintained in FI, you can conclude whether a cheque is bounced or not.  So may be you can think of some date field which is currently considered for due for presentation.
    G. Lakshmipathi

  • Outgoing\Vendor Payment through Check

    Hi All,
    I am trying to create Outgoing payment\Vendor payment, can any provide me the code for the same, like what are the things need to me set to create Outgoing payment like check account\cash account.
    What would be code when we try to create check payment for more than one invoice in the single document.
    Thanks & Regards,
    Naresh
    Edited by: naresh2684 on Dec 5, 2010 5:43 AM

    This is taken directly from the helpfile, incoming payment example but you only need to tweak the code a bit to make it for an outgoing.
    Private Sub cmdTest_Click()
       On Error GoTo ErrorHandler
       Dim vCompany As SAPbobsCOM.Company
       'create company object
       Set vCompany = New SAPbobsCOM.Company
       'set paras for connection
       vCompany.CompanyDB = "SBODemo_US"
       vCompany.Password = "manager"
       vCompany.UserName = "manager"
       vCompany.Server = "(local)"
       'connect to database server
       If (0 <> vCompany.Connect()) Then
          MsgBox "Failed to connect"
          Exit Sub
       End If
       Dim nErr As Long
       Dim errMsg As String
       'do it now
       Dim vPay As SAPbobsCOM.Payments
       Set vPay = vCompany.GetBusinessObject(oIncomingPayments)
       vPay.Address = "622-7"
       vPay.ApplyVAT = 1
       vPay.CardCode = "D10006"
       vPay.CardName = "Card D10004"
       vPay.CashAccount = "288000"
       vPay.CashSum = 0
       'vPay.CheckAccount = "280001"
       vPay.ContactPersonCode = 1
       vPay.DocCurrency = "Eur"
       vPay.DocDate = Now
       vPay.DocRate = 0
       vPay.DocTypte = 0
       vPay.HandWritten = 0
       vPay.JournalRemarks = "Incoming - D10004"
       vPay.LocalCurrency = tYES
       vPay.Printed = 0
       vPay.Reference1 = 8
       vPay.Series = 0
       vPay.SplitTransaction = 0
       vPay.TaxDate = Now
       vPay.TransferAccount = "10100"
       vPay.TransferDate = Now
       vPay.TransferSum = 5031.2
       If (vPay.Add() <> 0) Then
           MsgBox ("Failed to add a payment")
       End If
       'Check Error
       Call vCompany.GetLastError(nErr, errMsg)
       If (0 <> nErr) Then
           MsgBox ("Found error:" + Str(nErr) + "," + errMsg)
       Else
           MsgBox ("Succeed in payment.add")
       End If
       'disconnect the company object, and release resource
       Call vCompany.Disconnect
       Set vCompany = Nothing
       Exit Sub
    ErrorHandler:
       MsgBox ("Exception:" + Err.Description)
    End Sub
    To add multiple invoices, before adding the document do:
    vPay.Invoices.InvoiceType =  = it_PurchaseInvoice
    vPay.Invoices.SumSpllied = 400
    vPay.DocEntry = 1
    vPay.Invoices.Add()
    'Repeat above as neecesary.
    There are lots of posts on the forum that cover this topic too.

  • Payment Transaction check box in Posting Key configuration

    Hi all,
    Could you please enlighten me on the use of Payment transaction check box in posting key configuration screen.
    I would like to know what impact does it have if its checked and if unchecked.
    In F1 help its mentioned, Set this indicator in the posting keys for incoming payments, outgoing payments, payment differences (residual items) and payment clearing. - but I am need to know in which scenario this check box plays a role and its affect.
    Thanks,
    DSK

    Hi,
    Generally Payment Transaction checkbox will be checked for Payment Documents. Ex: PK -25 (Outgoing payment) and PK-35 (Incoming payment)
    Payment Transaction checkbox will be unchecked for Invoice Documents. Ex PK-01 (Sales Invoice) and PK-31 (Purchase Invoice)
    In this case, Default Payment Terms will be picked by system automatically at the time of invoice posting.
    Thanks
    Chandra

  • Payments by check

    Hello all,
    I have a couple of questions:
    If you could please explain me the process of making payments by checks in SAP.How is this process different if the the function of printing checks is outsourced to the bank instead of printing checks in house.The payment information is sent to the bank through an interface.
    How is the reverse flow of information handled( details of outgoing payments processed) in both cases if printed in house or by the bank.what would be the reverse information coming in SAP.
    Also, would there be any variations in the scenario if Payment orders are used in APP?
    Thanks in adavance
    SA

    Hello,
    A situation, I have not done myself, but a few thoughts:
    - You would run the proposal, which triggers creation of a file to be sent to bank. This would still create FI documents, only that the check is not printed. The bank would recieve the file and make transfers / issue checks.
    - The variant you use in running the proposal is the one which triggers inputs to interface program.
    -What is the advantage of bank issuing checks?, as far as I could imagine, it would increase the credibility among vendors.
    - Check with bank the DME format applicable and map in the interface program.
    - The reverse flow, that is collections from customers is quite normal as the bank would send a file and is uploaded in SAP and this creates payment advices and FI entries. Here again mapping the format is important.
    - So, I don't think there is an impact on APP program.
    Reg
    *assign points if useful

  • HT1688 my Iphone 4 quit working.  It will not recharge and it was not low on charge when it quit.  It was sitting on a table. I checked the time and then it never worked again.

    My Iphone 4 quit.  it has a charge.  it was on a table.  i checked the time and it never came on again.
    Please help.
    Sharon

    Hold the HOME and SLEEP buttons at the same time until an Apple logo appears. If it hasn't appeared after 20 seconds of holding charge it for 15 minutes with the wall charger and try again.

  • Warnings  Pool or cluster table selected to check/collect statistics

    Dear all,
    I am getting error in in db13 backup.
    We are using Sap Ecc5 and
    oracle 9i on Window 2003.
    Production Server I am facing problem suddenly in db13 the UpdateStatsEnded with Return code:    0001 Success with warnings   
    BR0819I Number of pool and cluster tables found in DDNTT for owner SAPPRD: 169
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.EPIDXB
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.EPIDXC
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.GLSP
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.GLTP
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.KAPOL
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.KOCLU
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.M_IFLM
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.VBCLU
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.VBFCL
    And in db02      
    Missing in R/3 DDIC  11   index
    MARA_MEINS
    MARA_ZEINR
    MCHA_VFDAT
    VBRP_ARKTX
    VBRP_CHARG
    VBRP_FKIMG
    VBRP_KZWI1
    VBRP_MATKL
    VBRP_MATNR
    VBRP_SPART
    VBRP_WERKS
    Please guide steps   how to build index  and Pool or cluster table problem.
    Thanks,
    Kumar

    > BR0819I Number of pool and cluster tables found in DDNTT for owner SAPPRD: 169
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.EPIDXB
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.EPIDXC
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.GLSP
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.GLTP
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.KAPOL
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.KOCLU
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.M_IFLM
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.VBCLU
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.VBFCL
    Upto Oracle 9i the rulebased optimizer was still used for Pool/Clustertables for reasons of plan stability (e.g. always take the index).
    To ensure that this is the case, these tables/indexes mustn't have CBO statistics.
    Therefore these tables are usually excluded from getting CBO statistics via an DBSTATC entry. You can modify this setting in transaction DB21.
    > And in db02      
    >
    >
    Missing in R/3 DDIC  11   index
    >  MARA_MEINS
    >  MARA_ZEINR
    >  MCHA_VFDAT
    >  VBRP_ARKTX
    >  VBRP_CHARG
    >  VBRP_FKIMG
    >  VBRP_KZWI1
    >  VBRP_MATKL
    >  VBRP_MATNR
    >  VBRP_SPART
    >  VBRP_WERKS
    Well, these indexes have been setup just in the database and not (how it is supposed to be) via the SE11. As the indexes have a naming-scheme, that is not supported by the ABAP Dictionary, the easiest way to get away from the warnings is to check which columns are covered by the indexes, drop the indexes on DB level and recreate them via SE11.
    Best regards,
    Lars

  • Iam unable to purchase in AppStore reason being payment gateway,checked with my bank no issues.

    Iam unable to purchase in AppStore reason being payment gateway,checked with my bank no issues.

    Hey Bing:
    Clearly the message hasn't trickled down to Adobe support. After purchasing Captivate, and trying to register now I'm locked out of my accoun entirely-- including all my files on Creative Cloud!! I just spent a the better part of two hours dealing with this exact same issue as the orginial poster (creative cloud login issues... likely due to an old email address floating around). Here's my favorite gem:
    Khalid: I have checked the information and see that I am unable to reset your password and login to subscription service in this case I will go ahead and escalate this issue to our concern team who will reset and get back to you within 24 to 48 hours
    Jeff: great. can i get a case number so i can follow up with billing / otherwise track this issue
    Khalid: Once you close this chat you can login to your Adobe account after some time like 20 minutes later to view the case number
    Jeff: how am i supposed to login exactly?
    Khalid: If you are able to login to your Adobe account then you can login to Creative Cloud
    Jeff: Khalid, that's what we've been trying to do
    Jeff: if i could login we wouldn't have anything to escalate
    Khalid: Yes, that is correct since you are unable to login I will escalate this issue to next level they will check and get back to you at the earliest
    Jeff: got that. now how do i get this case number?

  • Difference between a value table and a check table?

    What is the difference between a value table and a check table?

    Value Table
    This is maintained at Domain Level.
    When ever you create a domain , you can entered allowed values.   For example  you go to Domain   SHKZG - Debit/credit indicator.  Here only allowed values is H or S.
    When ever you use this Domain, the system will forces you to enter only these values.
    This is a sort of master check . To be maintained as a customization object. This mean that if you want to enter values to this table you have to create a development request & transport the same.
    Check table
    For example you have Employee master table & Employee Transaction table.
    When ever an employee Transacts we need to check whether that employee exists , so we can refer to the employee master table.
    This is nothing but a Parent & Child relationship .  Here data can be maintained at client level , no development involved.
    As per DBMS what we call foregin key table, is called as check table in SAP.
    Reward points for the answer

  • Updating 'Payee acct no' in table PAYR for 'Check' Payment through F110.

    Hi All,
              Automatic Payment is done for vendors with payment method 'C' which is configured under Payment method Classification 'Check'. Here table PAYR is not updating the vendor bank account in field 'Payee acct no'. This field is updated for payment method 'A' which is configured under Payment method Classification 'Bank Transf'.
    Please help to find the solution for updating 'Payee acct no' in table 'PAYR'.

    Dear,
    Payee account number is appearing because to transfer the payment you will need account number of the payee in the master and same is system deriving so that it is displaying the PAYR whereas you do not need account number to pring the check.
    Still if you want to derive payee acocunt number then try following..............
    Go into Check payment method in country payment method in transaction FBZP.
    Under required master data specification select Bank details and Account number required under that.
    Now try if payee account number is updated.
    Prerequisite will be you must have maintained acocunt number in the vendor master record otherwise payment will not be executed.
    Regards,
    Chintan Joshi

  • AP check preprinted PLD - Payment for check

    I edited the Long_Sub_Check PLD with Before Discount Amount, Discount Amount and Applied Amount.  I saw the print out few invoice numbers were missing and I doubt I only use OPCH, cust/vendor Ref. number and set NOT visible for VPM2, InvoiceKey caused the problem.  
    Can I add different table's field in the same position or should I add another row in the Repetitive Area (visible, check the Area Hedith Adjust) for VPM2, column InvoiceKey for Outgoing Payment Invoice with OVPM, Check Amount?
    I reduced the space between Invoices by adding checkmark for "Area Height Adjust ", not sure this is correct.

    Hi Madhan,
    Would you show me how to do it QPLD?  How many tables and column fields I need to print all invoice number in AP check?  I got most of invoice numbers only few disappeared, one of them was from Service type AP Invoice, the description had more than 20 characters text that only printed 5 letters.
    Yes, I have Before Discount, Discount, Applied Amount in the stub. Between each row the space is too big now. I added "checkmark" on "Area Height Adj".   Thanks.
    Edited by: Lily Chien on Sep 16, 2009 5:34 PM

  • Report for Vendor payment with check no, reference

    Hi Gurus;
    My client issue one cheque against multiple vendor invoices and used F-53 to knockoff vendor invoices against this cheque.
    He enter the check no. in assignment field.
    Now, he want a report for - Which check is used to knockoff (Paid) which invoice.
    Is there any way or report in SAP.
    Thanks in Advance.
    Devendra Singh Chauhan

    Hi Devendra,
    How about using the check register (transaction code S_P99_41000101) and select the radio button 'with items paid'. The report provides details such as check number, payment document, vendor invoice and other relavant details per bank account.
    Ashish

Maybe you are looking for

  • Can I add a wi-fi hotspot to my private network?

    I have an existing private network in our home consisting of cat5 outlets hard-wired to a Cisco 2900 Catalyst switch and wi-fi for the laptop and palm pilot is via a Linksys WRT54GX4 wired to the switch, which in turn is fed via direct bury cat5 from

  • Is there a Fieldpoint Find Devices Vi that I can use programatically?

    Hello All, I'm trying to build a program using Fieldpoint I/O that will run in my PC and will work with several different Fieldpoint configurations. Is there a Fieldpoint Find Devices Vi that I can use programatically?  (Like the one built into MAX)

  • Quit all open dock applications at once?

    Is there a way to quit all open dock applications at once? I find it time-consuming to go in and quit applications I have used in the dock one at a time. May be I don't understand why they even stay open after I quit what I was doing with them? Is it

  • ESS/MSS Upgrade from 4.6 to ECC 6.0 Question..

    Hi Gurus, During the upgrade SAP R/3 would be upgraded from 4.6C to ECC 6.0. The HR module on this R/3 has - Org Management, Benefits, Time Administration and Payroll. They use ESS based on ITS. My question is when they go from 4.6c to ECC 6.0 - woul

  • Alternative e mail?

    how can I edit my alternative e mail,from my account?