Prorated for an entire month?

I wasn't going to go over my allotted amount.  We were upgrading our service to smart phones, with data, etc.  I don't think that makes sense to charge me an entire month for 4 days.  They should have prorated the new service with the old.  And really, would it kill Verizon to allow a few days on either side of a billing cycle to avoid all the confusing bills.  I ended up paying about $75 dollars more than I should have.  That was more than my monthly bill used to be.
(Updated subject line for better exposure)

Hi,
Thanks for posting the CREATE TABLE and INSERT statements. Unfortunately, they don't work. Always test your code before you post it, and correct it if necessary. You're missing the keyword VALUES in all the INSERT statements. Another error is that dday is declared as a DATE in the CREATE TABLE statement, but you're trying to insert a VARCHAR2.
Here's one way to do what you asked:
SELECT       TO_CHAR ( MIN (dday)
            , 'MON,YYYY'
            )          AS month
,       MIN (begin_volume) KEEP (DENSE_RANK FIRST ORDER BY dday)     AS month_begin_volume
,       MAX (end_volume)   KEEP (DENSE_RANK LAST  ORDER BY dday)     AS month_end_volume
FROM       test20
WHERE       dday     >= DATE '2011-02-01'
AND       dday     <  DATE '2011-03-01'
GROUP BY  TRUNC (dday, 'MONTH')
;This will give you a separate row of output for each month. In your example, the WHERE clause was restricting output to a single month, but it doesn't have to be that way.
This does not assume that begin_volume and end_volume keep getting larger as the month goes on, as in your sample data. If they did, then you wouldn't need the FIRST and LAST functions, and it would be more efficient.
Edited by: Frank Kulash on Feb 14, 2011 3:34 PM

Similar Messages

  • If this is the first time you received this mail, it contains the history for the entire month

    HiYa,
    this is the message I get when I try to  send a message from my website created with Adobe Muse and uploaded via FTP:
    "Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration."
    I know this is an old issue but there must be a solution.......
    Apart form this message I get as well in my mail this one:
    Note: If this is the first time you received this mail, it contains the history for the entire month so far.
    Below are the recently upload scripts that contain code to send email.  You may wish to inspect them to ensure they are not sending out SPAM.
    /home/thepixel/public_html/scripts/form_check.php:108:           {
    /home/thepixel/public_html/scripts/form_check.php:109:                $sent = mail("[email protected]", "Hi", "test message", "From: [email protected]");
    /home/thepixel/public_html/scripts/form_check.php:110:                if($sent)
    Can anyone help me..?   thank u very much

    That is not entirely true. Mues does generate PHP files when you use the formular widget.
    Furthermore, it generates a file named form_check.php which is apparently meant for checking the server-configuration. The file even attempts to send testmails to the adresses seen in the OP.
    Sadly, this file is completely unsecure and can be called by anyone who knows the name.
    Hence this file can very easily lead to errors and spam-warnings from your provider.
    Until Adobe decides to fix this or to atleast warn users about the existance of that file, I suggest you add the following lines  to a .htacces file on your server:
    <FilesMatch "form_check.php$">
    deny from all
    </FilesMatch>

  • Benefits Proration for new hires & no proration for terminated

    Hi,
    I have a requirement like this:
    Whenever an employee enters an organization mid month, his health plans should be prorated. On the other hand if an employee is termianted any time during the month, his health pal amounts shouls not get prorated to the date of his termination, instead they should be processed for the entire month in payroll run.
    I have tried with parameter PAR1 in schema(changed to PER and then BEG), but then only one of the cases is working with this change. So can you please help me out? Do you suggest I have a PCR for this? The PCR would look if the employee is hire, then prorate or if he is terminated then do not prorate.
    Thanks
    Sri

    Hi,
    There are SAP fixes for this already. Please look in the notes search -
    SAP Note 725626 - Savings/ retirement plan not processed in first period
    SAP Note 1160806 -PF and Pension contri.for mid-month joining & termin.
    There should be something similar for your issue. Please contact SAP Support website and look these up. Its better time spent than re-inventing the wheel again !
    -Roopa

  • I've never dropped my phone for the 7 months that I've had it but last night I was at a park and when I sat down at a table, my phone as in my pocket and I heard a pop. I took my phone out and the entire screen was cracked. what should I do?

    I've never dropped my phone for the 7 months that I've had it but last night I was at a park and when I sat down at a table, my phone as in my pocket and I heard a pop. I took my phone out and the entire screen was cracked. what should I do?

    Probably not, since user-caused damage isn't covered by the warranty. But you can take the iPhone to an Apple Store and see if there's anything they can do for you. A phone company store will not service your iPhone at all, to the best of my knowledge.
    Regards.

  • I am looking to upgrade to the entire CC suite from the Lightroom/Photoshop package. The packages page says the complete suite is available to existing customers for 29.99 monthly. But when I try to upgrade I only get one option for 599.99 yearly. Can I g

    I am looking to upgrade to the entire CC suite from the Lightroom/Photoshop package. The packages page says the complete suite is available to existing customers for 29.99 monthly. But when I try to upgrade I only get one option for 599.99 yearly. Can I get clarification on the $29.99 offer and who it is available for. Thank you

    Hi there
    The 29.99 introductory offer is for existing CS customers ie customers with a CS3-CS6 product (suite or individual product).
    Hope this clarifies matters.
    Thanks
    Bev

  • For the mid month new joiner the annual Conveyance exemption is coming incorrectly

    Dear All,
    For one of our client, we have have faced a uniqe issue.
    If any employee join in the mid of the month, his prorated conveyance amount ( wage type 2020) is coming correctly. Suppose an employee joined at 16th of the month, system is calculating his conveyance for that month as INR 400 and which is correct.
    However in his tax calculation for that particular month, system is taking INR 400*(rest of the month of the FY) in the wage type /4E3. which is incorrect. Suppose he joined in 16th April , system is calculating tax exemption 400*12=4800
    Now if we run next month payroll ,  system is caculating the exemption properly. i.e. INR 400 + 800* rest of the month of the FY,
    Please help
    Regards
    Tirtha

    Hi Tirtha,
    system is calculating perfectly.
    first of all system check the no. of present days and accordingly it give the amount in the wage type /3C3 conveyance amount monthly and /3C4 will give Conveyance monthly exemption and it will multiply with no. of months to the fiscal year end and store in the wage type /4E3.
    for example check for PF:
    Every month PF amount store in WT /3F1 and send to /3F5 and this WT multiplied with No. of months and store the Annual amount in wt /3F6.
    Regards,
    Praneeth kumar

  • Help required with Photoshop Elements 4.0 this has been installed on my new Toshiba laptop with windows 8.1 for some 18 months and operating well. Now it will not open, message pops up saying "attempt to access invalid address" then "application not respo

    Help required with Photoshop Elements 4.0 this has been installed on my new Toshiba laptop with windows 8.1 for some 18 months and operating well. Now it will not open, message pops up saying “attempt to access invalid address” then “application not responding” Suggestions how to access would be much appreciated. Tks. Stuart

    What is the size of your hard disk?  PSE 4 is a very old program and I suspect it is not able to access the entire hard disk on your machine.  Just a thought here.

  • Wifi "unable to connect" for the past month

    I have not been able to connect to my home wifi for the past month. It keeps popping up saying that it is unable to connect. sometimes it will work, but only for 2 minutes tops. My roommate uses the same internet connection and she said that she has not had a problem with it. I have tried rebooting it, turning it on airplane mode then resetting network settings and rebooting it, forgetting the network, and even resetting my entire phone. nothing will work. but my phone connects to the wifi at work and works perfectly fine. SOMEONE PLEASE HELP

    The router in 99.99% of the time may be fine and see and connect to the devices it detects. However after certain updates to phones it has been said that the phone will not connect to the router.
    There was a list of known routers on this forum that just did not work. The so!ution was to either reset the broadband modem, wireless router and turn off the phone.
    Then if it connects your problem is solved. If it doesn't your next step is to see if there are firmware updates for the modem and the router. (Mainly routers) if it still does not connect a new router not on the non working list should be purchased. Yes its another expense but if you want the device to connect that is your option.
    Another trick you can use is to change the security from WEP to WPA, PSK or WPA 2 and change the password to the router.
    Some people stated a password of at least 9 figures / digits worked great.
    If you placed the phone on its own IP address that also has been known to work.
    However its best to talk to tech support at the router maker to assist.
    Good Luck

  • Net Leave not prorated for Terminated employees in View Accrual Screen

    Hi,
    We are using R12 HRMS. In the View Accrual screen, The Net Leave entitlement is considering only the leaves accrued as of the last full month payroll, and not prorating the leaves accrued in the current month for Terminated employees. Can you please suggest the required setups to rectify this.
    Thanks.

    Dear Gaurav,
    I have this code for termination cases; but it is not working. can you please check where it is going wrong.
    IF EMPLOYEE TERMED IN THE MIDDLE OF MONTH. NEED TO COMPUTE TILL LWD.
    if (EMP_TERM_DATE <= PAY_EARNED_END_DATE and EMP_TERM_DATE >= PAY_EARNED_START_DATE) then
    l_tot_elig_days = days_between(EMP_TERM_DATE,PAY_EARNED_START_DATE)+1
    l_term_days = Round((2.5/l_tot_days) * l_tot_elig_days,2)
         if to_char(PTO_DATE_EARNED_START_DATE,'MM') = '01' then
         l_total_leave = Round(LEAVE_ACCRUAL_PLAN_BALANCE_ASG_ITD + l_term_days,2)
         else
         l_total_leave = Round(Total_Accrued_PTO + LEAVE_ACCRUAL_PLAN_BALANCE_ASG_ITD + l_term_days,2)
         message9 = 'No of Leaves in Termination Month ' + to_text(l_term_days)
    else
    /* When New Year Begins – JAN Month*/
              /* if LEAVE_ACCRUAL_PLAN_BALANCE_ASG_YTD <=0 then
                   (Total_Accrued_PTO = 2.5
                   l_total_leave = LEAVE_ACCRUAL_PLAN_BALANCE_ASG_ITD + 2.5*/
    if to_char(PTO_DATE_EARNED_START_DATE,'MM') = '01' then
    l_total_leave = Total_Accrued_PTO
    Total_Accrued_PTO = Round(l_total_leave - LEAVE_ACCRUAL_PLAN_BALANCE_ASG_ITD,2)
    Message10 = ' In Loop for JAN '
    else
    ( message10 = ' In Loop for rest of months '
         if (Total_Accrued_PTO > 0) OR (LEAVE_ACCRUAL_PLAN_BALANCE_ASG_ITD > 0) then
         (l_total_leave = Round(Total_Accrued_PTO + LEAVE_ACCRUAL_PLAN_BALANCE_ASG_ITD - l_encash_days,2)
    else
         if (Total_Accrued_PTO < 0)then
         (l_total_leave = Round(LEAVE_ACCRUAL_PLAN_BALANCE_ASG_ITD,2)
    Message11 = ' In loop for negative accrual ')
    Message12= 'Total Leave accrued ' + to_text(l_total_leave)

  • We have 4 iphones in our family and an Ipad.  When we purchase music I would like for the entire family to be able to use it.  Should each of us use a different apple account or should we use the same one.

    We have 4 iphones and an Ipad in our family. When we purchase music, I would like for the entire family to be able to use it and then back it up to Icloud. What is the best and cheapest way for this to happen.  Should we all have a different apple id or should we use the same one.

    You will all need to be on the same itunes account ID.
    You can however all have seperate icloud accounts aswel.

  • I have been having issues with my apple id for over a month now. Apple Itunes support tells me its due to maintenance that they cant reset my password and I cant either thru the password site they created. I cant update apps or any thing related to my acc

    I have contacted apple support for itunes many many times and no results. I can tell you there support group is not us based. One person I got was in germany I believe the other in Ireland. one went on vacation the other took over and now no emails at all on the status of my account thats been locked for over a month with no resolution in site. Isnt this a publicly traded company? Does anybody know how to get a hold of the board or someone above the service providers Im dealing with or a phone number? Emails are great but there no resolution from a person that can hide behind a computer screen.

    hi i had the same problem today when i updated my itunes to latest version. however, i have just found my songs in the 'itunes media' folder. this was accessed through 'my music'  then keep clicking through until you find itunes media and all my library songs were in there and i then just added these files to my library and all were restored however, i have lost all my playlists but at least my 700 songs are back. very dissapointed with apple that they have let this happen with their latest update, the previous version was miles better than this one . hope you find them. stevo

  • Selecting, reading and sum of billing quantity for last 12 months in transformation end routine

    Hi experts,
    i have requirement to write end routine to read a DSO for last 12 months sales quantity for each month and sum value pass to keyfigure
    not interested using bex variable, while data loading from source to target dso in end routine i am trying to read another DSO which is same as my
    target dso where information is stored by fiscal period, year material etc. finally there is  a keyfigure in target whih needs to be filled with sum of 12
    months sales quantity, for each record form sourc to target maximum of 12 records will be in read dso (for 12 months) my routine is like below.
    i am not expert in abap please kindly gothrough and guide me in this
    TYPES: BEGIN OF s_/BIC/AZOSLS00,
    FISCPER  type /BI0/OIFISCPER,
    FISCVARNT  type /BI0/OIFISCVARNT,
    PLANT  type /BI0/OIPLANT,
    STOR_LOC  type /BI0/OISTOR_LOC,
    /BIC/MATERIAL  type /BIC/OIMATERIAL,
    VTYPE  type /BI0/OIVTYPE,
    BILL_QTY  type /BI0/OIBILL_QTY,
    END OF s_/BIC/AZOSLS00.
    DATA: it_/BIC/AZOSLS00 TYPE TABLE OF s_/BIC/AZOSLS00,
    wa_/BIC/AZOSLS00  TYPE s_/BIC/AZOSLS00.
    SELECT
    FISCPER
    FISCVARNT
    PLANT
    STOR_LOC
    /BIC/MATERIAL
    VTYPE
    BILL_QTY
         FROM /BIC/AZOSLS00 INTO TABLE it_/BIC/AZOSLS00
           FOR ALL
          ENTRIES IN RESULT_PACKAGE
           WHERE
    below field is from value of fiscal period (which is fiscal period -999 ex:  for 001.2014 this
    value will be 002.2013 so 12 months including current period)
    FISCPER >=  RESULT_PACKAGE-/BIC/ZFISCPERF
    below is result filed fiscal period (here i dont know which keyword or statement to be used to select
    interval values this between statement giving syntax error that can not be used in where for for all entries
    between RESULT_PACKAGE-FISCPER
            AND
             FISCVARNT = RESULT_PACKAGE-FISCVARNT AND
             PLANT = RESULT_PACKAGE-PLANT AND
             STOR_LOC = RESULT_PACKAGE-STOR_LOC and
          /BIC/MATERIAL = RESULT_PACKAGE-/BIC/MATERIAL .
        SORT it_/BIC/AZOSLS00 BY FISCPER FISCVARNT PLANT STOR_LOC
        /BIC/MATERIAL .
        LOOP AT RESULT_PACKAGE ASSIGNING <result_fields>.
          READ TABLE it_/BIC/AZOSLS00 INTO wa_/BIC/AZOSLS00 WITH KEY
    below dont know what statement i need to use in read statement for interval of fiscal periods
    giving error that >= can not be used
         FISCPER >=  <result_fields>-/BIC/ZFISCPERF
    FISCPER = <result_fields>-FISCPER
             FISCVARNT = <result_fields>-FISCVARNT
             PLANT = <result_fields>-PLANT
             STOR_LOC = <result_fields>-STOR_LOC
          /BIC/MATERIAL = <result_fields>-/BIC/MATERIAL
           BINARY SEARCH.
          BREAK-POINT.
          IF sy-subrc = 0.
    below for each record there will be 12 records in read so sume of 12 records quantity i need to pass to result again dont know what to say here
    sum statement giving error
                <result_fields>-/BIC/ZLSTSLS12 =
                 sum(wa_/BIC/AZOSLS00-BILL_QTY).
              ENDIF.
        ENDLOOP.
    friends please help me in this.
    Thanks
    Chandra.

    Hiii,
    If you only want to store last  12 months data in Target ODS .
    Then Create filter in DTP and write routine in filter for calmonth or fiscal period.
    Refer the below link to create filter routine :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b2db87-639b-2e10-a8b9-c1ac0a44a7a6?QuickLink=index&…
    Regards,
    Akshay

  • Please i have ordered for Bottom Case of white macbook for over 2 months now and the repair status is still processing. is dat normal

    please i have ordered for Bottom Case of white macbook (late 2009)for over 2 months now and the repair status is still processing. is dat normal? i really need the bottom case asap, how can i get it

    Call Apple.  Contact Apple for support and service
    This is a user to user forum, we don't work for Apple.

  • Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    This is a major problem with Lollipop, but yo said it started 2 months ago.   Several people have fixed problem by removing FaceBook And Face book messenger and then re loading the apps again.   You might want to clear your cache before reloading.  Not sure this is your problem, but worth a try.  Good Luck

  • HT3986 I've had MS Office:mac 2011 on my imac for around 18 months now.  Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it.  I've just done this using the installation dis

    I've had MS Office:mac 2011 on my imac for around 18 months now.  Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it.  I've just done this using the installation disc which, then said the installation had been successful.
    Outlook is still not working.  Can anyone please advise me on what to do next.

    Remove MS Office 2011 completely (here are instructions) and reinstall it.
    It's not a simple or fast process but it is important to follow all of the steps in order to get all the files that Office scatters around. This will not affect your data files, only MS Office and its preferences.

Maybe you are looking for