Outgoing payment vs invoice due date

Dear Forum,
Our management wants to get historical due date outgoing payment compare to invoice due date. So we know if out finance paid accordingly based on the invoice due date. 
The fields ;
Invoice Number     
Invoice Date     
Invoice Value     
Invoice Due date     
Outgoing Payment Number     
Outgoing Payment Date     
Type of Payment ( check / cash /bank transfer)     
Due Date Check/Cash/Bank Transfer
Out Going Value
If any experts can help me to get the query? thanks

Hai!
Run this Query in SAP Query Manager.
Declare @FromDate datetime
Declare @Todate datetime
set @FromDate = (select min(S0.DocDate) from OPCH S0 where S0.DocDate >= '[%0]')
set @ToDate = (select max(S1.DocDate) from OPCH S1 where S1.DocDate <= '[%1]')
Select
P0.DocNum as 'Invoice Number',
P0.DocDate as 'Invoice Date ',
P0.DocTotal as 'Invoice Value ',
P0.DocDueDate as 'Outgoing Payment Number',
V0.DocNum as 'Outgoing Payment Date ',
V0.DocDate,
(case
when V0.CashSum > 0 then 'Cash'
when V0.CheckSum > 0 then 'Check'
when V0.TrsfrSum > 0 then 'Bank transfer'
end) as 'Payment Type',
V0.DocDueDate as 'Due Date Check/Cash/Bank Transfer',
V0.DocTotal as 'Out Going Value'
From OPCH P0, OVPM V0, VPM2 V2
Where
V0.Docentry=V2.DocNum and
V2.Docentry = P0.Docentry and
P0.DocDate >= @FromDate and
P0.DocDate <= @ToDate
Regards,
Thanga Raj.K

Similar Messages

  • Payment Terms, Invoice Due Date

    Hi,
    I've got to set up a new payment term in our system. The requirement for this payment term is:
    A)     The invoice due date is either, whichever is the later of:
    i)     The 12th day after the day on which the invoice document was deemed to be received : and
    ii)     The 20th day after the last day of the billing period to which the invoice document relates.
    I don't know how to configure this, can anybody help?
    John

    Hi,
    do you mean net due date or document date In order to have days after?
    you can do it defining in OBB8 baseline date (document date) and No. of days (12th and 20th)
    Let me know if it is your case
    regards

  • AR Payment Terms/Invoice Due Dates

    I need to be able to have a search that can search for invoices that have a specific payment term and are due within a certain period of time. (ex: all invoices with Net 30 payment terms that are due within the next two weeks). I have tried the collections>account details screen but there is no criteria for payment terms. Any suggestions would be greatly appreciated.

    You probably don't want to change the payment terms on existing invoices, unless there was a effective change date that was missed for changing the payment terms. You would have sent the invoice to the customer with the original terms and they would have entered it into their system with those terms. So not only would you have to change the due dates manually on your system, you would have to notify the customer somehow of these changes. That is why it normally is easier not to worry about existing invoices and just let the payment terms start showing on new invoices. Makes any sense?
    John Dickey

  • Payment on Average Due Date

    Hi
    Automatic Payment Program considers due date for making payment to vendors.
    Now i want to know if there is possible for making payment on the basis of average due date (calculated on the basis of amount and the actual due date).
    Requirement:
    While posting vendor invoice, i will enter give payment terms and due date will be calculated on the basis of payment terms.
    Now in one week, i need to make the payment on the basis of average due date for that week.
    For example, on wednesday, i will make all the payment which are due in the entire week (i.e. monday to friday). Is this (average due date) possible for automatic payment program.

    Hi
    Check the BADI 'MRM_PAYMENT_TERMS'. You have a sample coding. See SAP Note 1559443 - Changing baseline dates for payment terms for Spain as an example. This note is for a legal requirement, but I understand that it's a good example.
    I hope this helps you
    Regards
    Eduardo

  • Error in invoice due date

    Hi all,
    i need to fetch invoice due date data(FAEDT) using the FM 'DETERMINE_DUE_DATE'.i passed ZFBDT(base line date) and ZTERM(payment terms) and fetching the invoice due date.
    DATA : ZFBDT TYPE DATS,
           ZTERM TYPE BSAK-ZTERM,
           FAEDT TYPE DATS.
      CALL FUNCTION 'DETERMINE_DUE_DATE'
        EXPORTING
          I_FAEDE                          = ZFBDT
         I_GL_FAEDE                       = ZTERM
         IMPORTING
         E_FAEDE                          = FAEDT
    EXCEPTIONS
      ACCOUNT_TYPE_NOT_SUPPORTED       = 1
      OTHERS                           = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    but iam getting error as zterm is not there in the parameters.can you please guide me how to fetch invoice due date.thank you.

    Yes Lakshmipathi,The Pricing type in Copy control is G and I also tried to replicate this Issue in our Quality system but I am getting the Netvalue copied from Sales order and no pricing error .
    Only thing odd I see on our Production System is that I am seeing this Message
    Unit of measure VPRS is not defined within the delivery or UoM group
    Message no. O3136
    We are in 4.7 IS-Oil System,would like to know the relevannce of this message with the Pricing error in Invoice.
    Thanks and Regards
    Mohammed Roshan

  • Invoice Due Date Claculation

    Hi All,
    Please let me know is there any function module or logic to determine duedate for invoice document.
    Thanks in advance
    Venkat

    Hi,
    Found this old post when I was searching how invoice due date is calculated (field INVFO-NETDT from transaction FV60).
    The due date for net payment is calculated from the baseline date for payment and the maximum permissible target dates in the terms of payment. It is not stored in the document line item but is always recalculated during ABAP evaluations via logical data bases (on the basis of the current terms of payment) and displayed in this field.
    After investigation in the system I see that the best way is to use function module 'DETERMINE_DUE_DATE'.
    BR,
    Anete

  • Terms of payment in past due date ???

    hi ...
    Is it possible to maintain due date in past in terms of payment ?
    In bizz scenario , if i maintain terms of payment in past due date in stead of future so that  automatic posting can happen ....
    Regards
    mkc

    Hi MKC
    Your question is unclear - What should post automatically?
    James

  • Terms of Payment to determine due date as last date of the month

    Hi Experts,
    Does any one know how to configure a Terms of Payment to determine due date as last date of the month ?
    I tried by puting fixed date as 31 in the Terms of Payment in FI but when I am creating in FI-CA it gives me an error "_Term of payment Z003 is inconsistent/not planned_"
    Please advice.
    Thanks & Regards
    Satyajeet

    Hi Satyajeet,
    It seems the settings that you have maintained in FI are correct.
    When you are assigning the payment terms in FI-CA, you need to assign a factory calendar as well to the payment terms in the following config-
    IMG->Financial Accounting ->Contract Accounts Receivable and Payable->Postings and Documents->Document->Maintain Payment Terms
    If you have already assigned the factory calendar and still the problem persists, can you give the message ID and the message number of the error that you are getting?
    Thanks,
    Amlan

  • PROBLEM IN A/P INVOICE DUE DATE

    Dear all
    I am using SAP 2007A. I am facing problem in due date when I add A/P Invoice after approval. Pls resolved
    Thanks & Best regards
    M. Rafiq Khan

    The problem is as under. These problem system show in all documents.
    DATE DEVIATES FROM PERMISSIBLE RANGE [A/P INVOICE - DUE DATE] [MESSAGE 173 - 11]
    Thanks
    M. Rafiq Khan

  • Invoice Due Date question

    Hi,
    1) Where can I view the INVOICE DUE DATE in the transaction for Sales Order, Delivery, Goods Issue & Billing?
    Can you tell me the path in the transaction?
    2) Next is, which table-field is it stored?
    3) Where is the value derived? Or is it explicitly populated in the transaction?
    Thank you.
    dong

    Check this thread
    [Re: Field name for invoice due date  |Re: Field name for invoice due date]
    thanks
    G. Lakshmipathi

  • Invoice due date

    Hi Gurus ,
    i want Invoice due date for invoice .
    points sure !
    regards,
    Rahul Deshmukh

    Hi,
    Can you give bit more details on what exactly you want....
    If u want to get the invoices due for a particular date, then go for T. Code VF04 and give the criteria on what you want to select the invoices!
    Probably it might help you
    Regards

  • AP Invoice Due Date column  R12

    Hi,
    Could you tell me from which table i can get AP Invoice Due_Date in R12.
    xla_trial_balances_gt
    ,fnd_application_vl
    ,xla_entity_types_vl
    ,gl_code_combinations_kfv
    ,gl_balances
    Thanks
    Pravin

    You can get the invoice due date in AP_PAYMENT_SCHEDULES_ALL table.

  • Need logic for invoice due date and discount due date uncear

    Hi Experts.. am new to ABAP
    i had an issue please need some logics for these..
    Formatting of the Invoice due dates and Discount due date is unclear e.g 20101109,
    Invoice due date and Discount due dates are in correct on 10 and 20 days  reminders on missing credit notes for blocked invoices.
    <removed by moderator>
    Thanks & Regards
    Edited by: Thomas Zloch on May 18, 2011 1:55 PM

    Can you provide more info?
    are you talking about BSID open accounts?
    if yes, use function module DETERMINE_DUE_DATE.
    <removed by moderator>
    Edited by: Thomas Zloch on May 18, 2011 2:10 PM - please do not ask for "award"

  • SD down payment invoice due date

    Hi,
    Down payment request invoice is generated in SD ,and its clear that the due date in FI document corresponding to this will show the posting date as Due date.but our client needs that the due in downpayment request should be according to the payment terms .i.e it should show due date according to payment term days in the FI document generated automatically when the invoice is saved.is there any user exit /any modification so that the due date should be calculated in background accoding to payment terms when the invoice is saved.
    warm regards,
    rohit

    Hi Glynn,
    I have gone through the sap note ,but in case if the payment terms day is only 5 days i.e  today i will do the invoice and after 5 days it should be due. how this can be done and also if 40 days is payment terms then how we can map this in SAP.
    Thanks & Regards,
    Rohit

  • Invoice Due Date is past due but not being selected for payment

    We have 12.1.3.
    An invoice has a due date of 7/19 in our system. We have run payments several times but it is not being selected. terms are net 30, terms date was 6/19, GL date is 6/28.
    The invoice has been validated and accounted. Is there something i should be looking for to see why this won't get picked up?
    Any help is appreciated.

    For this invoice to be picked up immediately in a Payment Process Profile you can change the payment terms to immediate.
    Further, while running PPR u can select pay through date as 7/19 and select this invoice from the batch to pay.
    There are multiple factors like PPR used, if discount is applied that might effect this.
    Hope this might help.

Maybe you are looking for

  • OBIEE Report keeps running for some users

    Hi Mates, I am facing a issue, while running the report. This reports keeps on running and expires after the max time out for few of the users whereas for few users it displays the output in 30 secs or so. Just to add in Oracle Identity Management ha

  • Setting DCJMSCorreleationID in JMS RECEIVER using Seeburger AttribMapper

    Hello Has anyone managed to set the DCJMSCorreleationID dynamic attribute in a JMS RECEIVER using Seeburger AttribMapper module? Here is how I configured the JMS_RECEIVER: In the module tab, I added a new module: Module Name     Module Type     Modul

  • Correct 2nd monitor in 3 monitor System

    Hi All, I have a odds and ends 3 monitor system where the 3 monitors are all diferent sizes, 24, 22, 19. The 24 is the main monitor and the 22 is the second. I'd like Lr's 2nd monitor to display on the 22, but it pops up on the 19 and I haven't been

  • FTP setup in Tiger

    Hi all I want to setup ftp in my G5 running Tiger 10.4.4 ,with user name password for ftp & define a particular folder or drive(local ,firewire etc.) to be publish over network(local or internet) PowerMac G-5(DP,1GB RAM,160 GB HDD)

  • OS 10.5 Family Pack Retail Questions: PowerPC Install; Used as Boot Disk?

    I have a MacBook Pro (which I've not unsealed yet) that was sold with 10.5: (http://www.everymac.com/systems/apple/macbook_pro/stats/macbook-pro-core-2-duo-2 .53-aluminum-15-late-2008-unibody-specs.html) and I have a Mac G4 Dual 867 powerPC, which wi