Query payment 30 days

good morning experts,
I have a problem, how to create a Query to display
customer data to the payment of more than 30 days.
And are also grouped according to TOP customernya payment.
In the data please also shown the value of customer transactions in a month.
please help
thank you

hai experts all good day.
Kevin Shah thank you for helping me, but I have tried your query and can not work
1). [Microsoft] [SQL Native Client] [SQL Server] Incorrect syntax near 'C'. 2). [Microsoft] [SQL Native Client] [SQL Server] Statement 'User-Defined Values' (CSHS) (s) could not be prepared.
I have a query like this, I want to add a little extra
to display only the variance plus duedate payment only, and the column term or payment customers and average sales per customer is (data total sales in the last 3 months average)
Declare @FromDate datetime
Declare @Todate datetime
set @FromDate = (select min(S0.DocDate) from OINV S0 where S0.DocDate >= '[%0]')
set @ToDate = (select max(S1.DocDate) from OINV S1 where S1.DocDate <= '[%1]')
Select
P0.DocNum as 'Invoice Number',
P0.CardName as 'Customer Name',
P0.DocDate as 'Invoice Date ',
P0.DocTotal as 'Invoice Value ',
P0.DocDueDate as 'Invoice Due Date',
V0.DocNum as 'Incoming Payment Date ',
V0.DocDate,
(case
when V0.CashSum > 0 then 'Cash'
when V0.CheckSum > 0 then 'Check'
when V0.TrsfrSum > 0 then 'Bank transfer'
Else 'Deduction'
end) as 'Payment Type',
V0.TaxDate as 'Due Date Check/Cash/Bank Transfer',
V0.CounterRef as 'Payment Status',
V0.DocTotal as 'Incoming Value',
DateDiff(dd,P0.DocDueDate,V0.TaxDate) as 'Due Date Payment Variance'
From OINV P0, ORCT V0, RCT2 V2
Where
V0.Docentry=V2.DocNum and
V2.DocTransId = P0.TransId and
P0.DocDate >= @FromDate and
P0.DocDate <= @ToDate
I want to display like this:
no invoice | customer name | TOP  Payment | Invoice Date  | Invoice value | Invoice Due Date |Due Date Check/Cash/Bank Transfer | Incoming Value | Due Date Payment Variance | AVERAGE TRANSACTION /MONTH
1234567   |          XXX          |             1         |     26.12.09    |   258,000.00  |        15.01.10       |                         16.01.10                     |          158000     |                          1                  |                        258,000.00
thanks

Similar Messages

  • New Terms of payment: 75 days. 10 & 25 fixed days

    Dear all,
    I need to create a new terms of payments: 75 days with fixed days 10 and 25, but i am not able to get the correct data.
    An example of the data we want to obtain is:
    Date     Days     Due date
    01/10/2010     70     10/12/2010
    02/10/2010     69     10/12/2010
    03/10/2010     68     10/12/2010
    04/10/2010     67     10/12/2010
    05/10/2010     66     10/12/2010
    06/10/2010     65     10/12/2010
    07/10/2010     64     10/12/2010
    08/10/2010     63     10/12/2010
    09/10/2010     62     10/12/2010
    10/10/2010     61     10/12/2010
    11/10/2010     75     25/12/2010
    12/10/2010     74     25/12/2010
    13/10/2010     73     25/12/2010
    14/10/2010     72     25/12/2010
    15/10/2010     71     25/12/2010
    16/10/2010     70     25/12/2010
    17/10/2010     69     25/12/2010
    18/10/2010     68     25/12/2010
    19/10/2010     67     25/12/2010
    20/10/2010     66     25/12/2010
    21/10/2010     65     25/12/2010
    22/10/2010     64     25/12/2010
    23/10/2010     63     25/12/2010
    24/10/2010     62     25/12/2010
    25/10/2010     61     25/12/2010
    26/10/2010     60     25/12/2010
    27/10/2010     75     10/01/2011
    28/10/2010     74     10/01/2011
    29/10/2010     73     10/01/2011
    30/10/2010     72     10/01/2011
    31/10/2010     71     10/01/2011
    Thanks in advance
    Iné

    Dear,
    what you mean with 10 and 25 as fixed days? You refer to the payment date?
    Surely you must create a user exit in this case.
    Regards

  • Terms of payment (90 days net from invoice date end of month)

    Hi
    I need to configure the below terms of payment
    "90 days net from invoice date end of month"
    plz suggest me
    Regards
    Prasad

    Make the following entries in Tcode OBB8
    Baseline date
    Fixed date = 31
    Payment terms
    Term 1
    No of days = 90
    Arvind

  • I bought the pack for students adobe creative cloud, already made the payment three days ago but when opening programs like photosop and illustrator puts the trial period has expired, how I can make them work?

    I bought the pack for students adobe creative cloud, already made the payment three days ago but when opening programs like photosop and illustrator puts the trial period has expired, how I can make them work?

    Hello Ibonedm,
    Sol 1. Please try sign out from Creative cloud Desktop App and quit it.
    1. Launch Creative Cloud application manager.
    2. Click the gear icon in the upper-right corner and select Preferences.
    3. In the Preferences menu, under General, click the Account tab.
    4. Click Sign Out from Creative Cloud.
    Then re-sign in and launch Photoshop CC 2014 and check.
    Sol 2. Check your Hosts file.
    Windows
    1. Choose Start > Run, type %systemroot% \system32\drivers\etc, and then press Enter.
    2. Locate Hosts file and move it to Desktop
    3. Right-click the hosts file and select Open. Select Notepad for the application to open the hosts file.
    4. Back up the hosts file: Choose File > Save As, save the file as hosts.backup, and then click OK.
    5. Search the hosts file for entries that reference activate.adobe.com (for example, 127.0.0.1 activate.adobe.com) and delete these entries.
    6. Save and close the file and move it back to Etc folder.
    Mac OS
    1. Log in as an administrator to edit the hosts file in Mac OS.
    2. In a Finder window, choose Go > Go To Folder.
    3. Type /etc.
    4. Select the hosts file and move it on Desktop  open it.
    5. Back up the hosts file: Choose File > Save As, save the file as hosts.backup, and then click OK.
    6. Search the hosts file for entries that reference activate.adobe.com (for example, 127.0.0.1 activate.adobe.com) and delete these entries.
    7. Move Hosts file back to etc folder
    8. Save and close the file.
    Then try launching Photoshop CC 2014 or Illustrator CC 2014
    If prompt for License this software, please click on it and sign in with the Adobe ID and Password which you have used to purchase the subscription and check if you can activate and use the products.
    Please respond , if any issue.
    All the best
    Loveneesh.

  • Debit memo(DR doc type) baseline date exceding the payment term days

    Hi All
    For debit memo I am facing a issue where my baseline date for a customer is showing more then the days specified in his(customer's) payment terms.
    sales document category is DR and order is created for some customer xyz and payment terms of that customer is showing 0% UP TO 15 DAYS. But when I check it in FBL5n the Net due dt for that order is showing 180 + 15 = 195days.
    What can be the reason, is it due to some enhancement or some routine or what , I am not able to figure out from where these days are coming for. I have checked MV45AFZZ , RV60AFZA and other exit s, I couldnt find any code which shows these added 180 days..
    Guide me in finding out the source ot this, <removed by moderator>.
    Thanks in Advance
    Regards
    Amit
    Edited by: Thomas Zloch on Sep 30, 2011 3:46 PM

    HI,
    You may need to check the copy control settings between the debit memo request and sales document in transaction code VTAA.
    Select the target document type and source document type, and click on the details (header level). Check the routine that is assigned for the field copying requirements for transfering business data.
    The routine assigned may be copying the base line date from the source document. You may need to assign other routine or you may need to develop your own routine to resolve your issue.
    Regards,

  • Terms of Payment (45) days

    Hi Guyz,
    We are facing a problem in calculation of days Payment Terms.
    We are using PT (T45B - T/T 45 days from B/L date), the problem is
    system is not calculating 45 days from the Document day.
    In TC (OBB8) the configuration of (T45B) is configured for Customer &
    Vendor, in Payment Term no fo days is set as 45. The default for
    baseline date is set as Document date, no discounts.
    System is not calculating exact 45 days from the document date.
    Please reply how to adjust exact 45 days in this PT.
    Regards,
    Yasir Khan

    Hi Khan,
    Four dates are important in SAP
    1. Document Date
    2. Posting Date
    3. Base line Date
    4. Due Date
    In the Customer and Vendor Master Data you define the payment terms. Based on your configure (Account type – vendor / customer – documents date/posting date under default for baseline date as per Mr.Amit explain he has decided Base line date has to calculate according to the document date. Hence, if you want you can make it into Posting date) as per my point of view posting date is always better, seeing in practical manner.
    When you are posting the documents in the second level screen you have to define your payment term it will come automatically according to your set up. Hence you can change here also.
    And you can mention the due days also. If you entered your due date is different from the system due dates then you can feel the calculation of 45 days according to the baseline date may differ.
    Please check in your end and get back to me. If you have any further clarifications please let me know.
    Warm Regards,
    Sivakumar Sathiyamoorthy

  • Adhoc query - Total payroll day issue on infotype 2001

    Dear Expert,
    I am working on the adhoc query and would like to generate the total number of payroll days taken by a particular employee.
    E.g. Employee A has 4 leave record in Nov 2011
    14-Nov, 16, Nov, 23 Nov, 25 Nov
    When I select the reporting period between 1-Nov-2011 to 30-Nov-2011, the total payroll days generated by the adhoc query is only 1. I am not sure why. Please help
    Best Regards,
    WF

    Hi,
    Might be remaining days are Non working days/Weekly offs/ Holidays falls..
    You Better Check through PA30 Overview of Absence records, Whether the Days are deducted from Quota or not.
    Need to check absence class in V_554s_0

  • Terms of payment: 85 days. 10 & 25

    Dear all,
    I need to create a new terms of payment for Spain: "85 days. 10 & 25".
    No problem to create it, but with days 6 and/or 7 of each month it doesn't work propertly. Depending on the days of each month.
    I created it in the following way:
    Day limit: 7
    Nº days: 115
    Fixed date: 10
    Day limit: 15
    Nº days: 85
    Fixed date: 10
    Day limit: 31
    Nº days: 85
    Fixed date: 25
    For example, in october it works Ok:
    06/10/2010 --> 10/01/2011
    07/10/2010 --> 10/01/2011
    But for november:
    06/11/2010 --> 10/03/2011
    07/11/2010 --> 10/03/2011
    But it should be 10/02/2011
    How can we manage the days depending on each month?
    Thanks in advance,
    Iné

    Hi,
    Please go through as per this thread. You may reach your requirement.
    Payment Terms
    Regards,
    Schilukuri

  • Terms of payment -percentage & days

    Hi,
    spro-define terms of payment - we have percentage field & no of days
    suppose if we give 2% 10 days
    what is the impact of this

    Hi,
    This means, if the customer makes the payment in the 10days time, then the customer will get 2% cash discount.
    In transaction code OBB8, you can find terms of payment details. Check one of terms and click on the details button. Inside you can find various fields, where in you can define parameters based on your requirements.
    For further details, you can refer the link;
    [terms of payment|http://help.sap.com/saphelp_47x200/helpdata/en/96/8b415943ce11d189ee0000e81ddfac/frameset.htm]
    Regards,

  • Payment term day limit change

    Hi friends,
    Can any one tell me how to change the day limit for a payment term. I have tryed to change it in transaction OBB8 and in the table T052 but that particular field is grayed out. Can someone help me in this regard.
    Thanks in advance
    Srikanth

    The day limit field can be changed in transaction OBB8.  My recommendation to you is to copy the payment term and create a new one.  This is just in case you are unsure which customers/vendors are currently using that payment term.  Unless you want to make that same cay change for everyone using the payment term.  Don't forget to update the master record for the new payment term.
    I hope this helps!

  • Query payment

    hai all Expert
    hi all experts
    how to display line customers in the payment in 3 months, and displays invoice date, invoice due date,
    incoming and average transaction value in 3 months
    this my query :
    SELECT T0.[DocNum], T0.[CardName], T0.[DocDate], T0.[DocDueDate], T0.[DocTotal] FROM OINV T0
    I wanted to like this show:
    invoice number, customer name, T.O.P Payment customer , invoice date, invoice value, Incoming value, AVERAGE TRANSACTION /MONTH
    thanks

    Hi Rachelhel,
    Link to ORCT - OINV
    SELECT * FROM ORCT T0 INNER JOIN OINV T1 ON T0.DocEntry = T1.ReceiptNum
    Try this,
    Lists of Incoming Payments and related Invoices.
    SELECT T0.DocNum, T0.DocEntry,
    T1.DocNum  as 'Invoice No', T1.CardName, T1.DocDate, T1.DocDueDate, T1.DocTotal
    FROM RCT2 T0
    INNER JOIN OINV T1 ON T0.DocEntry = T1.ReceiptNum
    OR
    SELECT T0.DocNum, T0.DocEntry,
    T1.DocNum  as 'Invoice No', T1.CardName, T1.DocDate, T1.DocDueDate, T1.DocTotal
    FROM RCT2 T0
    INNER JOIN OINV T1 ON T0.DocEntry = T1.DocEntry
    Regards,
    Madhan.

  • Payment Terms Day Limit

    Greetings to all FI experts,
    I would appreciate your feedback on this. Currently, we are planning to change the day limit for one of our payment terms ( Tcode - OBB8 ) from 30 to 0. My concerns are what are the forseeable impact of this changes in day limit.  Whether it will impact on the due dates or other settings ?
    Looking forward to your reply. Many thanks in advance.
    Warmest Regards,
    Edie

    hi,
    the impact will be, that the due date is equal to the Baseline date for due date calculation: ZBD1T = ZFBDT
    ->master data with that payment terms have to pay immediately
    A.

  • Query with the days of a period and the same days of last year

    I need a help.
    We have a sales cube with daily values.
    We have a query that restricts a month (0CALMONTH) and shows the daily values for this month.
    No problem, we have only to put 0CALDAY on the line and the value on the columns.
    But we need also to show the values of the same days from last year.
    Example:
    The restricted month is july/2011.
    0CALDAY is on the line, so the query shows the values for
    01.07.2011   110,00
    02.07.2011   108,00
    31.07.2011   109,00
    How can we show in the same line the values for july/2011 and july/2010?
    Example:
             July/2010    July/2011
    01     95,00            110,00
    02     96,00            108,00
    31    94,00             109,00.
    Thanks in advance
    César Menezes

    Thanks for the answers until now.
    Surely a Day characteristic (ex. CA_DAY, derived from 0CALDAY) would work.
    But we have this requirement in many other cubes (I posted only an example) and it's not feasible to create this characteristic now.
    I understood the other suggestions, but the problem is not on selecting the values.
    We have two restricted key figures, one for a period (filled by the users) and another one for this period - 12.
    They work OK and bring the correct results.
    The problem is on presenting the results, because as we have 0CALDAY in the line the results appear on two different lines.
    Example:
    15.07.2010    950,00
    15.07.2011    980,00.
    Is ther any way to present the results in the same line?
    Example:
    15.07.2011    950,00 (last year)     980,00 (today)
    or
    15.07             950,00 (last year)     980,00 (today)
    or any other way?
    César

  • Late payment 180 days question

    The account had no payments on it from 9/13 to 2/14. Shortly before it being sent to collections I grew up and started paying it down entirely until it was paid off(State farm credit card, first one). This September will mark the 2 yr anniversary of the first late payment, I've read several places that say 30/60 aren't bothersome after 2 years, it that's the case, starting in September, should I be expecting a solid rise in score? Will the 90+ also lose some kick after 2 years? Or will the fact that the same account ended up going 180 days late nullify that?
    Account has long since been closed on me, hoping I have a built in weight that's going to slowly be less affective over the next 8 months.
    Appreciate any input and advice

    Kuma wrote:
    The account had no payments on it from 9/13 to 2/14. Shortly before it being sent to collections I grew up and started paying it down entirely until it was paid off(State farm credit card, first one). This September will mark the 2 yr anniversary of the first late payment, I've read several places that say 30/60 aren't bothersome after 2 years, it that's the case, starting in September, should I be expecting a solid rise in score? Will the 90+ also lose some kick after 2 years? Or will the fact that the same account ended up going 180 days late nullify that?
    Account has long since been closed on me, hoping I have a built in weight that's going to slowly be less affective over the next 8 months.
    Appreciate any input and advice
    If all you had were 30 lates then you would most likely see a rise in score once the final one passed the 2 year mark but you have 90+ lates and these are major delinq in Ficos eyes and they will cost points the entire time they remain on file. 60 day lates can affect for the full CRTP as well depending on your overall profile there was a posting awhile back that a single 60 day late dropping at 7 yrs yielded a rather large increase in Fico score (was more than 30 from what I remember). As all of them age you do regain some points and if the account wasnt COed then each will drop at the 7 year mark until the account becomes a total postive. You can try to have the lates removed with a GW letter to the creditor     http://ficoforums.myfico.com/t5/Rebuilding-Your-Credit/GW-letter-Q-amp-A-Examples-and-GW-Success-Stories/td-p/1573680

  • Terms of payment(75 days net from the invoice date.payme25 th of the month)

    Hi
    I need to configure the below payment term
    "75 days net from the invoice date, payment 25 th of the month"
    Please suggest  me.
    Regards
    Prasad

    "75 days net from the invoice date, payment 25 th of the month"
    you cann try this
    Tcode OBB8
    Default baseline date = Document date
    Payment terms
    Term 1:- Fixed date= 25
                  Additional months=2

Maybe you are looking for

  • How to use multiple concurrent contexts

    I have a context package that uses a session_id. I want to use multiple sessions as I will have multiple users creating contexts at the same time. Once the context is created with a session_id I want to reference that session_id in a view. Can this b

  • File exists but program can't open it

    G'day all. I am trying to port some fortran programs from a True64 environment into Sun v9/SunStudio 11. On the alpha it has no problems, but on the Sun it can't open a file with a name that is only 78 characters long. The Fortran User's guide states

  • Cannot launch configtool : system cannot find the path specified

    Hi, SDN Fellow. I tried to launch my configtool to configure some External Library path. When I click on the configtool.bat  from C:\usr\sap\SRE\JC01\j2ee\configtool I got the following message: The system cannot find the path specified. Program term

  • Administration in BI 7

    Hello Friends.. Could any one please explain or send me a detail document about administration part of BI7 . I am not familier with BI acceletor , and other thing which are available in Administration. what are the more advantage we are having in BI

  • Iphone memory used up by "Events"

    My iPhone 4S started behaving strangely after upgrading to iOS 7. The memory fills up within an hour, and after this I have to reset it to free up again. In Settings:General:Usage it says that the additional memory is used in "Calendars & Reminders".