Reg:- Fiscal Weeks

Hi all,
We have built a simple report on EBS Statistics using following columns: Organisation Name, Fiscal Week, Baseline Data, Organisation Code.
we have calculated fiscal week using this formula CONCAT('FW ', CAST(WEEK_OF_YEAR("Dim - EBS Statistics"."Run Date") AS char)).
The column fiscal week goes on updating in the report for ex ( current fiscal week is 49, after completion of this week fiscal week 50 gets auotmatically updated). The report is expanding exponentially every week
So in the report right now we are showing data from FW 15 to FW 49.
Now we have got a requirement to restrict the fiscal weeks :-i.e. Add a default filter to pick always the last 12 weeks
May I know how to achieve this.

796797 wrote:
Hi ,
Thanks for your kind reply. But in the report we are looking for fiscal weeks not on the date. The query which you have provided will give us dates.
we have calculated fiscal week using this formula CONCAT('FW ', CAST(WEEK_OF_YEAR("Dim - EBS Statistics"."Run Date") AS char)).
The column fiscal week goes on updating in the report for ex ( current fiscal week is 49, after completion of this week fiscal week 50 gets auotmatically updated). The report is expanding exponentially every week
So in the report right now we are showing data from FW 15 to FW 49.
Now we have got a requirement to restrict the fiscal weeks :-i.e. Add a default filter to pick always the last 12 weeks
May I know how to achieve this.Try this:
On your report, add a filter that says this:
WEEK_OF_YEAR("Dim - EBS Statistics"."Run Date") >= WEEK_OF_YEAR(MAX("Dim - EBS Statistics"."Run Date")) -12

Similar Messages

  • FM to find the number of fiscal weeks in a year

    Hi All,
    Can anyone pls give me the  function module to find the number of fiscal weeks in the given year.
    Thanks,
    Rajani.

    Eric Cartman wrote:
    Ámit Güjärgoüd wrote:
    > > Eric,
    > >
    > > Did you actually enjoy 2004 ?
    wasn't bad...
    do you mean, there were 53 weeks in that year? because I have concern, how it is actually counted...
    wasn't bad... :)
    Thats sounds Sweet
    do you mean, there were 53 weeks in that year?
    Yes
    because I have concern, how it is actually counted...
    If in a leap year fabruary falls in 5 weeks then that is the only possibility for 53 weeks
    Cheers
    PS:But No logic would be applied in this case

  • Error in Timebucket while using Fiscal Week

    We have a requirement to run deployment to create deployment
    orders weekly. Hence we copied 9ANSNP94 and want to change the timebucket.
    The weeks definition over here is not the same as SAP Std.
    E.g
    Start Date
    End Date
    Week Number
    1-Jan-13
    6-Jan-13
    Week 1
    7-Jan-13
    13-Jan-13
    Week 2
    14-Jan-13
    20-Jan-13
    Week 3
    21-Jan-13
    27-Jan-13
    Week 4
    28-Jan-13
    31-Jan-13
    Week 5A
    1-Feb-13
    3-Feb-13
    Week 5B
    4-Feb-13
    10-Feb-13
    Week 6
    11-Feb-13
    17-Feb-13
    Week 7
    18-Feb-13
    24-Feb-13
    Week 8
    25-Feb-13
    28-Feb-13
    Week 9A
    1-Mar-13
    3-Mar-13
    Week 9B
    Hence we have defined Fiscal year variant
    upto 62 periods
    But get error in timebucket –
    Can you please help to resolve the issue
    Regards
    Nishigandha
    Start Date
    End Date
    Week Number
    1-Jan-13
    6-Jan-13
    Week 1
    7-Jan-13
    13-Jan-13
    Week 2
    14-Jan-13
    20-Jan-13
    Week 3
    21-Jan-13
    27-Jan-13
    Week 4
    28-Jan-13
    31-Jan-13
    Week 5A
    1-Feb-13
    3-Feb-13
    Week 5B
    4-Feb-13
    10-Feb-13
    Week 6
    11-Feb-13
    17-Feb-13
    Week 7
    18-Feb-13
    24-Feb-13
    Week 8
    25-Feb-13
    28-Feb-13
    Week 9A
    1-Mar-13
    3-Mar-13
    Week 9B

    Thanks ada
    It worked really well. Now I can see the fiscal weeks in planning book.
    But the period is displayed as P13.2014, I want this to be viewed as per the period Text.
    I have defined the text in the fiscal year varaint configuration
    Do I need to use the user Exit - APODM006 or is there any std way?
    Start Date
    End Date
    Period
    Week Number
    1-Jan-14
    5-Jan-14
    1
    Week 1
    6-Jan-14
    12-Jan-14
    2
    Week 2
    13-Jan-14
    19-Jan-14
    3
    Week 3
    20-Jan-14
    26-Jan-14
    4
    Week 4
    27-Jan-14
    31-Jan-14
    5
    Week 5
    1-Feb-14
    2-Feb-14
    6
    Week 6
    3-Feb-14
    9-Feb-14
    7
    Week 7
    10-Feb-14
    16-Feb-14
    8
    Week 8
    17-Feb-14
    23-Feb-14
    9
    Week 9
    24-Feb-14
    28-Feb-14
    10
    Week 10A
    1-Mar-14
    2-Mar-14
    11
    Week 10B
    3-Mar-14
    9-Mar-14
    12
    Week 11
    10-Mar-14
    16-Mar-14
    13
    Week 12
    17-Mar-14
    23-Mar-14
    14
    Week 13
    24-Mar-14
    30-Mar-14
    15
    Week 14
    31-Mar-14
    31-Mar-14
    16
    Week 15A
    1-Apr-14
    6-Apr-14
    17
    Week 15B

  • Problem with Fiscal weeks

    Hi,
    I have to write a query which should fetch data for the last 6 fiscal weeks from the data from which it is run.
    eg
    SELECT TO_CHAR(SYSDATE,'YYYYIW')-6 FROM DUAL
    The above query would give me the last 6th fiscal week from the current date, but this query fails when the date lies in the first 6 fiscal weeks, it would return something like 200595 which should be 200546. The problem is that the number of the fiscal weeks for a year are not fixed. it might be 52, 53 or 54 also.
    Is there any function existing in oracle that would handle the above problem? if not can ayone help me to find a workaround for that.
    Thanks in advance
    Ramesh

    Is it a problem with week starting end of year and ending at the begining of the following year ?
    If yes, you maybe need to work with WW instead of IW, and try something like :
    SQL> exec :dt:='02062006'
    PL/SQL procedure successfully completed.
    SQL> ed
    Wrote file afiedt.buf
      1  select to_char(to_date(:dt,'DDMMYYYY'),'YYYYWW') "WEEK",
      2         case when to_char(to_date(:dt,'DDMMYYYY'),'WW') -6 > 0
      3              then to_char(to_date(:dt,'DDMMYYYY'),'YYYYWW') -6
      4              else to_char(last_day(trunc(to_date(:dt,'DDMMYYYY'),'YYYY')-1),'YYYYWW')
      5                   + (to_char(to_date(:dt,'DDMMYYYY'),'WW') -6) end WEEK_MIN_6
      6* from dual
    SQL> /
    WEEK   WEEK_MIN_6
    200622     200616
    SQL> exec :dt:='05012005'
    PL/SQL procedure successfully completed.
    SQL> select to_char(to_date(:dt,'DDMMYYYY'),'YYYYWW') "WEEK",
      2         case when to_char(to_date(:dt,'DDMMYYYY'),'WW') -6 > 0
      3              then to_char(to_date(:dt,'DDMMYYYY'),'YYYYWW') -6
      4              else to_char(last_day(trunc(to_date(:dt,'DDMMYYYY'),'YYYY')-1),'YYYYWW')
      5                   + (to_char(to_date(:dt,'DDMMYYYY'),'WW') -6) end WEEK_MIN_6
      6  from dual
      7  /
    WEEK   WEEK_MIN_6
    200501     200448
    SQL> Nicolas.

  • DP Planning in Fiscal Periods and Fiscal Weekly Periods

    Hi,
    We are using fiscal calnedar that starts on first Sunday of Nov with 4 weeks in each period i.e., fiscal year 2009 started on Nov 2nd (Sunday) and first period goes from Nov 2nd (Sunday) to Nov 29th (Saturday) and so on.
    So, our fiscal week also starts on Sunday and ends on Saturday i.e., in first period of 2009 the following are the fiscal weeks
    1 fiscal week - Nov 2nd to Nov 8th
    2 fiscal week - Nov 9th to Nov 15th
    3 fiscal week - Nov 16th to Nov 22nd
    4 fiscal week - Nov 23rd to Nov 29th
    1 fiscal period  - Nov 2nd to Nov 29th
    In storage bucket profile we are able to assign only one fiscal period profile. There is no place to consider fiscal weeks.
    Created two planning books as follows
    1. Planning book with time bucket profile of fiscal periods. It is allowing me to plan in fiscal periods and works as expected
    2. Planning book with time bucket profile of fiscal weeks. It is not allowing me to plan in fiscal weeks
    How to make the fiscal weeks planning book work?
    Thanks in advance,
    Srini

    What version are you using? We asked for this in 2003 at ASUG and although it was delivered in 4.1 we never got it to work, but when we upgraded to 5.1 it works perfectly.
    Define 1 storage bucket profile with fiscal weeks and 2 planning bucket profiles, one with fiscal weeks and the other with fiscal months. Then define your planning area with the SBP fiscal week. Within interactive planning, turn on the header functionality. Choose the first icon on the upper left corner of the planning grid and choose "change periodicity" and you can switch from "fiscal weeks" to "fiscal months".

  • W_DAY_D is not getting Loaded with Enterprise WEEK or FISCAL week informati

    HI Experts,
    We have OBI Application 7.9.6.1 (FIN,SCM,PSA analytics application).
    We are using Oracle EBS 12.0.6 as the source system.
    we are using the Enteprise Calendar in EBS to load the W_DAY_D,but the W_DAY_D is not getting Loaded with Enterprise WEEK or FISCAL week informations,
    does any one have an answer to this question,how to load theEnterprise WEEK or FISCAL week information in the W_DAY_D table??
    We have raised an SR with Oracle Support & got the reply that this is a product BUG & they have internaly raised an Enhancement Request.
    God knows when this will be fixed??
    Can any one provide me with a work around ?/
    Thanks

    Hello:
    Please look at these W_MCAL_PERIOD_D, and W_MCAL_DAY_D Tables for Fiscal information. For more information you can look at the RPD BMM Layer Dim - Date Fiscal Calendar.
    With Regards,
    Mohan

  • Custom Fiscal week table update

    Hi All,
    I am Basis person but was assigned a task to look into an issue one of the user was getting. Below is the issue
    We have a Info Object  ZFISCWEEK  which we were told by consultant that it pull from table ZFISWKTBL and has to be updated using SM30. Here are 2 issues we have
    1) All the entries in SM30 are not showing up when Fiscal week field is selected in Query Designer and try to add restrictions.
    2) Even after deleting all the entries from table ZFISWKTBL we are seeing some entries in Fiscal Week restrictions.
    I notice that the selection fields for Fiscal Week are coming from /BIC/RZFISCWEEK and this table is not having all the entries that are there in ZFISWKTBL table.
    Other than the Basis person which is me, we don't have any one else who know SAP, so any inputs to fix this issue will be very much helpful.
    Regards,
    Praveen

    Hi Ajay,
    We were updating table "ZFISWKTBL" using SM30 and not /BIC/SZFISCWEEK. I tried to run the steps as mentioned by you and I don't see option for Maintain Master data. I was only able to enter "ZFISCWEEK" as InfoObject and not the /BIC/**** and when I click on Display and don't see an option of Maintain Master Data. Under Extras I see Master data and under that I see Maintain but it is greyed out. So can you let me know if I am running the steps wrongly or what. In RSA1 I tried to delete Master data for ZFISWEEK Infoobject and I got error not all data is deleted, But I do see some of the stale entries in /BIC/SZFISCWEEK got deleted.
    Can you guide what else need to be done to get this done.
    Thanks,
    Praveen

  • Function module to get last fiscal week

    Hi Gurus,
    Can anybody give me the function module to go back to few fiscal weeks.
    For example ,
    if the current fiscal week is 2008030,
    I need to get the value 2008024.
    This can be done with ABAP code. But I am looking for function module.
    Thanks,
    Rajani.
    Points will be assigned.

    Hi Rajani,
    Please try this:
    REPORT Z_CAL_WEEK .
    DATA: Z_DATE TYPE SY-DATUM.
    DATA: Z_WEEK TYPE SCAL-WEEK.
    Z_DATE = SY-DATUM
    Z_DATE = Z_DATE - 42. "CORRESPONDING DATE 6 WEEKS in the past
    CALL FUNCTION 'DATE_GET_WEEK'
      EXPORTING
        DATE = Z_DATE
      IMPORTING
        WEEK = Z_WEEK.
          EXCEPTIONS
         DATE_INVALID       = 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.
    WRITE :Z_WEEK.
    Regards
    Joe

  • To get current Fiscal Week

    Hello Guru's ,
    I have a infoobject (Fiscal Week) which is developed in the back end. In report i would like to get the "Fiscal Week that justed ended" based on the "Fiscal Week" infoobject.
    Example: Fiscal Week 1,2,3,4,5,6....53 is stored in the cube. Suppose i am in Fiscal Week 3 and it has not completed yet then the report should display me fiscal week 2 values. The report will be executed on monday morning so it should give me the fiscal week before that.  If there is code to be written in the customer exit please provide me with the Code.
    thank You in advance

    HI,
       you no need to write any code... Just create a keyfigure with the char.. restriction.
    Char Restriction -
    > (Current fiscal week - 1). This can be done via offset variable.
    Regards,
    Meiy

  • DP Planning Variable Fiscal weekly Periods

    Hi,
    We are using fiscal weekly calnedar that starts on first Sunday of Nov i.e., for fiscal year 2009 it is as shown below.
    1 fiscal week - Nov 2nd to Nov 8th
    2 fiscal week - Nov 9th to Nov 15th
    3 fiscal week - Nov 16th to Nov 22nd
    4 fiscal week - Nov 23rd to Nov 29th
    For every 5 years we have one extra weekly period i.e.,
    2007 we have 53 periods
    2008, 2009, 2010, 2011 we have 52 periods
    2012 we have 53 periods and so on...
    In transaction OB29 I switched periods to 53 while entering data for 2005, 2012 and at other times I left as 52 periods. Finally I left at 52 periods
    But while initializing the planning area system generated consistency error for  Fiscal year 2007.
    Is there any possibility to use the variable periods?
    Thanks in advance,
    Srini

    What version are you using? We asked for this in 2003 at ASUG and although it was delivered in 4.1 we never got it to work, but when we upgraded to 5.1 it works perfectly.
    Define 1 storage bucket profile with fiscal weeks and 2 planning bucket profiles, one with fiscal weeks and the other with fiscal months. Then define your planning area with the SBP fiscal week. Within interactive planning, turn on the header functionality. Choose the first icon on the upper left corner of the planning grid and choose "change periodicity" and you can switch from "fiscal weeks" to "fiscal months".

  • Advanced Custom Field help. Need fiscal quarter/fiscal week.

    A coworker is setting up an MS Project...project, and she asked
    for some help adding a custom field that would convert the Start date field into our Fiscal Quarter Fiscal Week schema, to display as FQFW, e.g. Q1W1. I've written a formula that accomplishes this quite nicely in excel, but I've never even touched Project
    until this week. Apparently it doesn't take formulas quite the same way as Excel does. I tried using the ''Switch" function in Project, and it worked, but it only accepts 14 arguments(right?), and there are obviously 52 weeks we're dealing with. Does
    anyone have any suggestions? Would there be a way to do this using VBA? (I know next to nothing here as well.)
    Formula in excel where A1 is the Start Date:
    =IF(AND(A1>=DATE(2014,2,1),A1<=DATE(2014,5,2)),CONCATENATE("Q1","W",(INT((A1-DATE(2014,2,1))/7)+1)),IF(AND(A1>=DATE(2014,5,3),A1<=DATE(2014,8,1)),CONCATENATE("Q2","W",(INT((A1-DATE(2014,5,3))/7)+1)),IF(AND(A1>=DATE(2014,8,2),A1<=DATE(2014,10,31)),CONCATENATE("Q3","W",(INT((A1-DATE(2014,8,2))/7)+1)),IF(AND(A1>=DATE(2014,11,1),A1<=DATE(2015,1,30)),CONCATENATE("Q4","W",(INT((A1-DATE(2014,11,1))/7)+1)),FALSE))))
    Any and all suggestions welcome.
    Thanks.

    msinnen,
    You're correct, switch statements and if statements can only be nested to 15 levels. However, VBA can get you there. This macro should do what your coworker needs with the following assumptions - the fiscal year starts in January and quarters end on the
    last day of the month, not the last Friday. If either or both of those assumptions are incorrect, then this macro will need some tweaking. Note: the quarter and work week designator will be written into the Text1 field.
    Sub FQuartsandWeeks90()
    Dim t As Task
    Dim Mon As Integer
    Dim Qtr As String, Wk As String
    For Each t In ActiveProject.Tasks
        If Not t Is Nothing Then
            t.Text1 = ""
            Mon = Month(t.Start)
            Select Case Mon
                Case 1 To 3
                    Qtr = "Q1"
                    Wk = "W" & CStr(DatePart("ww", t.Start))
                Case 4 To 6
                    Qtr = "Q2"
                    Wk = "W" & CStr(DatePart("ww", t.Start) - 13)
                Case 7 To 9
                    Qtr = "Q3"
                    Wk = "W" & CStr(DatePart("ww", t.Start) - 26)
                Case Else
                    Qtr = "Q4"
                    Wk = "W" & CStr(DatePart("ww", t.Start) - 39)
            End Select
            t.Text1 = Qtr & Wk
        End If
    Next t
    End Sub
    John

  • Regarding Fiscal Week

    Hi All,
    I need to know how we can determine Fiscal week and also is ther any table related to it.
    Please suggest.
    Regards
    Dhiraj

    You can define fiscal week, you have to define fiscal year with 52 weeks so when you post it takes the 52 weeks as fiscal weeks or periods.
    assign points if helpful

  • Regarding Customer exit to calculate fiscal week

    Hello All,
                 I have a requirement to calculate the fiscal week from fiscal period. Here i used the FM 'UMC_FISCPER_TO_CALWEEK' to calculate the fiscal week. But the problem here is i created variable on fiscal year /week so when i pass the fiscal period i should get fiscal week, here i am getting calweek which make no sence. Is there any function module to calculate the Fiscal week if we pass fiscal period.
    Thanx in Advance
    Anil

    We cant calculate fiscal week from just fiscal period. we need date or this.
    You can try this function  ZFI_GET_FISCAL_WEEK_QUARTER or some other similar function. However, the input should be a date.
    Looks like there is no funciton to calculate fiscal week. we may need to write our own code for this based on other FMs.
    Re: Get Week number in a particular Fiscal year
    ~ Arun KK
    Edited by: arun kk on May 8, 2008 10:22 AM

  • Fiscal Week Dates & Days Generation

    Hi Friends,
    I am developing an application which requires Fiscal Week
    I mean i have a drop-down list box which contains weeks in a year(52).
    when i select a week and then click on submit button 'GO' i want to see the list of days with dates in that week.
    Any idea how to go about it?
    Pooja

    Hi,
    I assume that u will do teh following...In database u have say weeksmaster database,,,, with weekid,weekname,weekstartdate and wekenddates,,,as fields
    Now There are two ways in solving ur problem ....
    1)one after clicking the go button hit the server (web server) which will retrive the all days included bw the startand edn days of the selected week.( some query/procedure u run in oracle to retrive the days bw startday and endday )amd show the results back to the user in browser.
    2) at the time of loading the first page only u maintain an array of dates in javascript... i.e. every week will have a corresponding array in ur javascript....in this u can work with onchange function which instead of hitting t he server retrives weeek days from javascript...
    either way u can proceed,,,and decide which best suites ur requirements...
    Regards
    Mahesh

  • Fiscal week offset in crystal report record selection when using BW

    Hello:
    I have a report that is based on BEX Query.
    The data model has 52 weeks (fiscal week) worth of information.
    I would like to limit the results sets to pull back the last 12 fiscal weeks.
    Is there a way to setup in crystal record selection and "OFFSET" to evaluate on execution time?
    CR2008 SP3
    BOE XI 3.1 SP3
    SAP IK 3.1 Sp3
    BW 7.0

    Hi Dwayne,
    that is something that can be done as part of the BEx query using EXIT variables.
    Ingo

Maybe you are looking for

  • How do I add the word "DRAFT" as a watermark on a Pages document?

    How do I add the word "DRAFT" as a watermark on a Pages document? I don't want to create an image - I just want to type in the word and have it appear across every page.

  • Uploading problems

    Dear “Flashers”….lol I am really at my wits end here and I am hoping that one of you geniuses will be able to figure out my dilemma. To sum it up, the problem is that my main.html (main.swf) will not play all the way through once uploaded to my serve

  • How can I get a playlist created on my iPad to iTunes?

    I create a playlist on the iPad... I love it... I want it on the iPhones in my household. How can I get that playlist into iTunes, so I can push it out to the other iOS devices? When I sync the iPad with iTunes, the playlist created on the iPad is wi

  • Voice Signal Goes Dead for a Few Seconds From Time to Time

    I live in a rural part of Marin County that has poor signal:  one bar or less.  I've purchased a signal booster which has increased my bar level to 4 -- which is terrific.  What I'm noticing however is that the voice signal goes dead for a few second

  • I cannot even select the icloud icon in the settings on iPad

    I updated everything.possible...but the iCloud icon cannot be selected from the settings menu. Anybody knows why? (the same is for twitter) thanks