Week, Month,Quarter and year

I have a specific query. I my dashboard i have prompts for Year, quarter, month and week.
Based on the week selection i get some sales data. And i use AGO function to get previous week's data.
Now i am in a fix with my other requirement. I need the monthly data and quarterly data, for that particular week.
Example:-
Week 19th Nov 2011. I am ale to get the data with existing report.
Month NOV:- If i use todate fundtion then i will get November's data untill Week of 19th November. BUT I WANT FULL NOVEMBER'S DATA.
Quarter 2011-4:- If i use todate fundtion with quarter parameter then i will get fourth quarter's data until Week of 19th November. BUT I WANT FULL FOURTH QUARTER'S DATA.
How do i achieve this.

When i try this in a new column formula, it shows me the correct date.
TIMESTAMPADD(SQL_TSI_DAY,DAYOFMONTH("MIS Dates"."MIS Date") * -1 , TIMESTAMPADD(SQL_TSI_MONTH, 1, "MIS Dates"."MIS Date"))
But when i use the same with todate function, then it gives syntax error. I am clueless.
Todate((("Vendor Performance"."Landed CostQty AC") /"Vendor Performance"."PO Qty"), TIMESTAMPADD(SQL_TSI_DAY,DAYOFMONTH("MIS Dates"."MIS Date") * -1 , TIMESTAMPADD(SQL_TSI_MONTH, 1, "MIS Dates"."MIS Date")))
Please help.

Similar Messages

  • Change date format to Quarter and year. Example: Q1 2009

    Hi all,
    Anyone who knows how to display the date as quarter and year instead of day, month and year?
    Example: Instead of displaying the Start or End date as 01.01.2009 we would like to display it as Q1 2009.
    We are using CRM 2007.
    Thanks in advance.
    //Anders

    Hi,
    Try CRM_PPM_TRANS_DATE_TO_QUARTER.
    Regards,
    Shahina

  • Month end and Year end Activities

    Hi All,
    What are the month end and year end activities are involved and how will they happen????
    regards
    vasantha

    Hi Vasantha,
    Month-End Closing
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/96/8b3c2d43ce11d189ee0000e81ddfac/frameset.htm
    Year-End Closing
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/96/8b3c2d43ce11d189ee0000e81ddfac/frameset.htm
    Some of the Month-End Activities
    - Open and Close Posting Periods
    - GR/IR Clearing
    - Adjustments in G/L, AR and AP accounts
    - Foreign Currency valuation for Exchange rate fluctuations
    - Transfer Postings to Reconciliation accounts from CO module
    Some of the Year-End Activities
    - Balance sheet adjustments
    - GR/IR Clearing
    - Adjustments to special Posting periods at year end
    - Balance Confirmations for AR and AP accounts
    - Run Balance Carryforward program for G/L, AR, AP accounts at year end or first day of next year
    - Generate Financial statement for the current year
    Best Regards,
    Mohan.
    Edited by: krishna on Dec 18, 2008 12:01 PM

  • Split month, date and year

    How to split month,date and year from date field ? is there any standard function module.

    You can do this.
    data: year(4) type c,
          month(2) type c,
          day(2) type c.
    year = sy-datum(4).
    month = sy-datum+4(2).
    day = sy-datum+6(2).
    write:/ year.
    write:/ month.
    write:/ day.
    Regards,
    Rich Heilman

  • Create Date Column out of Full Month Name and Year

    I am trying to use Power Query to create a new column of data as a Date.  My data contains two columns: Month as the full text name and Year, for purposes of this example, I will set all days to the 15th.  In Excel, I would simply use a formula
    to convert the text month to the proper date part.
    Example:  [Month] = "January" and [Year] = 2013
    DATEVALUE([Month]&" 15, "&[Year])
    What is the syntax to Add a Column in Power Query with this conversion? 
    Thanks, Barbara

    For an existing table in the editor with columns Month and Year, click "Insert Custom Column" and use this as the formula:
    = Date.FromText([Month] & " 15," & Number.ToText([Year]))
    This will create a formula which looks something like this:
        InsertedCustom = Table.AddColumn(Source, "Custom", each Date.FromText([Month] & " 15," & Number.ToText([Year])))
    Note that one difference between Excel and Power Query is that Excel will let you concatenate text and numbers with "&" but Power Query requires that you first convert the number to text.

  • Month end and year end closings

    hello guys,
                  Can anyone explain me about the series of steps that we have to do for month-end and year-end closings (FICO).
    Thanks in advance..

    Hi,
    Below are the month end activities
    1. Recurring Documents.
    a) Create Recurring documents
    b) Create Batch Input for Posting Recurring Documents
    c) Run the Batch Input Session
    2. Posting Accruals or Provisions entries at month end
    3. Managing the GR/IR Account-Run the GR/Ir Automatic Clearing
    4. Foreign Currency Open Item Revaluation-Revalue Open Items in AR.AP
    5. Maintain Exchange Rates
    6. Run Balance Sheets –Run Financial Statement Version
    7. Reclassify Payables and Receivables if necessary
    8. Run the Depreciation Calculation
    9. Fiscal Year Change of Asset Accounting if it is year end
    10. Run the Bank Reconciliation
    11. Open Next Accounting Period
    Assign points if useful
    regards
    genie

  • Month-end and year-end valuation differences!

    Hı Friends,
    What are the differences between Month-end and year end valuation in the system?
    Thank you!

    Yes
    For example
    31.12.2010
    Dr/Cr Forex loss/gain a/c
    Cr/Dr B/s adjustment a/c
    01.01.2011
    Dr/Cr B/s adjustment a/c
    Cr/Dr Forex loss/gain a/c

  • Month and Year has to Display as month name and Year

    Hi,
    For Fiscal year/period, report displays like for example <b>004.2007</b> instead of <b>July 2007</b>
    I would like to see the reports as <b>July 2007</b> ( not to display as <b>004.2007</b>)..
    Our financial year is <b>April to March</b>.
    Help will be greatly appreciated...
    Thanks

    Hi venkat,
    i could suggest something as follow:
    Say for e.g. your report wants to display following way...
    jan feb march.........dece.
    net quantity----
    char1..........x.x.x.x.x..x...x...x.
    char2..........x.x.x.x.x..x...x...x.
    Now what you can do is ...create restricted key figure 12 times...
    Now in each restriction bring in Net quantity....
    for 1st restriction     edit the restriction. bring in Calendar month and restrict it to January.
    then in Description of that key figure put January.......
    Save and come out...
    Copy that first restricted key figure and copy it 11 times........
    Now go in each restricted key figure and change the restriction of calendar month by Feb , march and so on.........(Also change the description to feb. march and so on)
    Now in each description include Text variable whose replacement path is Fiscal year...
    In bex properties,,, make the setting SUPRRESS ZERO VALUE DISPLAY...
    With this, what you can do is lets say your user just want the display of Jan to march or something similar, so whatever empty box will be created will not display.....
    You will achieve the result as Jan 2006 and so on........
    Hope this helps.

  • Month end and year end procedure

    hi experts,
    can any one help me for year end and month end procedure
    correct answers will be duly rewarded
    thanks in advance

    hi,
    Month end closing Activities
    1. All the expenses including amortization, prepaid expenses, Preliminary expenses and accruals have been booked.
    2. Complete Bank Reconciliation
    3. Make sure that Sum of Inter company balances is Zero
    4. Suspense Accounts should be cleared regularly.
    5. Ensure that all documents related to MM & SD have been entered in system.
    6. Ensure that all billing documents are released to accounting.
    7. Calculate Overheads on all process Orders (CO43)
    8. Technically complete all process orders, which are fully processed (CORM).
    9. Calculate Variance (KKS1)à (Relevant only if Standard cost is calculated).
    10. Settle all process orders, which are technically complete (CO88).
    11. Close All settled Process Orders
    12. Close MM period (Transaction Code: MMPV).
    13. Carry out GR/IR clearing (F.13) transaction
    14. Depreciation Run (AFAB) has been carried out for the month
    15. Close FI Posting period after the month end closing activity is over.
    Year end closing Activities:
    1. Calculate production work in progress on process orders  which are not technically complete.
    2. Carry out Assessment cycle for Cost Centers.
    3. All month end closing Activities should be carried out.
    4. Carry Forward Balances to next year
    (With TC: F.16 we can carry forward the balance to next year.
    With TC: OBH2 copy the number ranges to next year
    Open next year periods by selecting the Posting Period Variant.
    Then test by posting the transaction in F-02)
    thanks
    sai krishna

  • Regarding Date data in the format of WEEKLY , MONTHLY , QUARTERLY , YEARLY

    hai
    i have one Infoobject(ZDATE) which is created based on the Reference Characteristic(ocalday) and contains data in the YYYYMMDD format.
    I want same date data in weekly , monthly , quarterly and yearly.
    So for this one i need to created ZWEEK , ZMONTH, ZQUARTER and ZYEAR infoobjects by using Reference Characteristics 0calweek , 0calmonth , 0calquarter , 0calyear and i need to write the formula for these InfoObjects for converting & getting data from the ZDATE.
    So please give the formulas for each InfoObject.
    I will assign the points
    bye
    rizwan

    Hi ,
    Try this for month and year in Transfer structure .
    zyear = zdate+0(4).
    zmonth = zdate+4(2).
    For quarter since it will be depend of what kind of fiscal period you are using.. say for ex april - march.
    For Week... whether you want find it based on calender year or fiscal period.
    Regards
    Balaji

  • Monday's Date  of the given week  and year

    Hi gurus,
    I have the data for week ( eg.52 ) and year ( eg. 08 ) and I need to get the date of the Monday of that week (21-DEC-2008...i.e 52th week of 2008 Year.)
    Pls let me knw the sql statement solution for this ..
    THanks,
    shashi..

    Hi, Shashi,
    There's a bug in what I posted before.
    Do this instead:
    TRUNC ( TO_DATE ( '01-Jul-' || :year_txt
                    , 'DD-Mon-YYYY'
          , 'IY'
          ) + (7 * (:week_val - 1))The only change is in TO_DATE.
    Here's the problem.
    TO_DATE won't work with ISO years; it only takes calendar years.
    When you don't specify a day and month in TO_DATE (like I originally did) it defaults to the first day of the current month. So TO_DATE ('2011', 'YYYY') returns October 1, 2011 when the current month is October, and it returns January 1, 2011 when the current month is January.
    January 1, 2011, however, is in ISO year 2010. (ISO 2011 begins on the Monday closest to January 1, which is January 3, 2011). My original solution, therefore, would return dates from ISO year 2010 when anyone asked for year 2011 and they happend to be running the program during January.
    Specifying a full date makes the expression behave the same regardless of when it is run.

  • How to set filter criteria for month and year using in timestamp input field?

    Hi,
    I am using jdev 11.1.2.3,
    I have one problem with Report generation,,,,,,I have one report table which is in the form of VO(query based) and i want to search this table as month and year basis
    but in this table(query) that field having timestamp based value.. how to search with month name and year only.. Here i am using totally query base VO's for generating
    reports........ Can any one guide me.
    Thank You.

    You can use a inputdate, which allows you to selecte a moth, year and a day. Once the selection is made you convert it to only allow moth and date like
            <af:inputDate label="Label 1" id="id1" autoSubmit="true" value="#{bindings.myMonthYear1.inputValue}">
              <f:convertDateTime pattern="MM/yyyy"/> 
            </af:inputDate>
            <af:outputText value="Selected #{bindings.myMonthYear1.inputValue}" id="ot1" partialTriggers="id1"/>
    then you have a string holding month and year only. This value you split into two variables you or pass it as a whole parameter to the query and split it there.
    Another way is to add two static lovs one for month and one for year and use them to get to the filter values.
    Timo

  • Month end closing and Year end closing

    Hi,
    Does anyone have a list of t-codes to be run for month end and year end closing. I want to know what all steps are done for month/year closing.
    We are only using FI,CO and MM and no other SAP modules.
    Thanks,
    Shruti

    Hi,
    The Month end Activities are as follows
    Clearing the open items of vendor, customer
    Clearing the suspense account regularly
    All the Expenses Including the prepaid expenses have to be booked..
    Intercompany Balances Should be Zero
    Depreciation Run.
    Recuring Entries.
    Park documents to be posted(FBVO)
    Accural and referal in any differneces.
    GR/IR  Clearing Transaction  (Tcode-F.13)
    Bank Reconciliation(Comparing the Company Books and Bank Statements)
    Exchange rate to be updated
    Revaluation of foreign currencyopen items(F.05)
    Order Settlements.
    Distribution Cycle
    Assesment Cycle(KSU5)
    Transfer the Inventory to Profit center(1KEH)
    Match GL and PCA(KE5T)
    MM period Close and Open (Tcode MMVP)
    FI Period Open(Tcode OB52).
    CO period Closing
    Year End Process
    All the Month end Activities should be Carried Out.
    Balance Carried Forwarded to next year(F.16)
    PCA Balance Carried Forward(2KES).
    Carry forward the Vendor,Customer  and Asset Balances
    (Unless Dep is posted for all the months the assets can not be Closed)
    Copy the No Ranges to new year
    Open the Next  year period(OB52)
    I Hope this is Helpful,
    Assign the Points.
    Regards,
    Padma

  • Can the standard datepicker show only Month and Year

    Hi All,
    My requirement is to show the Date Picker with only the Month picklist and Year picklist.
    That is there shouldnt be the date table below.
    Is it possible to show...
    Thank You,
    Sombit.

    Sombit,
    You can create a poplist and show there Month & Year. like Jan, 2009, Feb- 2009.
    Thanks
    --Anil                                                                                                                                                                                                                           

  • How to get currect date by using month and year

    hai,
    By using month like 'Jul' and year like 2007 i want to get full date like 01/06/2007(format).Please give me query for this?My fields for month and year are respectively vr_mnth(varchar) and in_year(number)

    i used to_date function but it accepts only one string .if i give like this
    to_date(vr_mnth,in_year,'dd/mm/yy') it will gives me syntax error.
    If i give like this vr_mtnh='Jan'
    to_date(vr_mtnh,'Mon') it will give output
    01/01/2008 it shows me current year
    if i choose from table wich is strored with month-'Jul' and year=2006 it shows me
    01/07/2008 only .It doesn't shows me that 2006 year
    If i give in_year in to_date it gives me that currect year.
    Ex:to_date(in_year,'YY')..............>01/01/2006
    Individually to_date function works fine but i want to club both to get accurate date format of specified month and year.Is there any function for that in sql to get 01/07/2006?

Maybe you are looking for

  • The new version is not compatible with my digital finger signiture. Will this be fixed? If not, I will need to go back to the previous version of firefox

    My HP laptop has a digital signature for accessing my pages such as email, facebook, etc. Since I updated firefox, this is no longer compatible and does not work. It is very painful, I really want and need to use it. Does this mean I need to downgrad

  • External USB Drive hangs Disk Utility when trying to Format

    Hello Everyone, I have a Maxtor DiamondMax 10 300gig hard drive in an enclosure connected to my iMAC via USB. The drive was previously used on an Win XP pc and worked fine. I want to format it and use it as a backup for my MAC. When I plug in the dri

  • Snow Leopard - english version

    I live in Sweden and I want to buy english version of upgrade to Snow Leopard. But when I try to go to the Apple Store, it offers me only swedish version (it is not mentioned until I see application and there is upgrade-swe). Do I need to go direct t

  • Ground loop with TV when power adapter connected

    I have a white Macbook (non-unibody) which I have connected to my TV with a mini-dvi to VGA adapter. I have done the same in the past with my Dell 1525 with no issues. When the Macbook is connected to the display whilst being connected with the power

  • Sample Code request

    Hi experts!! I 'm new to ABAP objects and i would like you, if possible, to provide me with some "real"  code using objects. All i find on the internet is small examples with airplanes, cars etc.. They are easy to understand as syntax but  not realis