Enable fiscal year/quarter selection in a query

Hello all,
I want to have an characteristic fiscal year/quarter similar to fiscal year/period (0FISCPER) in my query. Unfortunately I can not find such a characteristic in the time infoObjects in my cube and in the administrator workbench.
Our Fiscal year starts in July. So the first quarter is July - September. The BW release is 3.5.
How canI enable a fiscal yearquarter selection in my query?
Any ideas would be great.
Thanks upfront and Best regards,
Stefanos from Munich/Bavaria/Germany

Stefanos ...
A couple of options for the same :
1. Have 0FISCPER in your cube and map the same to the custom characteristic in the update rules.
2. Have the custom characteristic in the cube in a separate dimension
3. If you have the same in the cube - have a variable against that and execute your query...
By doing the above you can get the same in the query.
Arun
Assign points if useful

Similar Messages

  • Offset issue for Fiscal Year Quarter

    Dear All,
    There is a requirement to develop a report for balance sheet to compare the fiscal year quarter like if user is going to give input 20143 then comparison quarter is 20142 where I did offset (-1) and if user give input as 20141 then the comparison quarter is 20134 where I am using offset as (-7).
    So I have incorporated both offset in one variable. Now the issue is if I will run for any quarter then it is giving error in the run time. Could anyone suggest that how I could achieve this, whether I have used correct offset interval?
    Query Key Figures Selections:
    Bex Analyzer Selection Error:
    Regards,
    Abhishek Jain

    Hi,
    I wouldn't do it in that way i.e. one column where you count previous quarter for quarters 2 3 4 (offset -1) and another column for counting previous quarter for quarter 1 (offset 7).
    There should be just one column where you count just previous quarter. Use an EXIT to count previous quarter for any value of quarter.
    Regards, Leszek
    something like this can be used:
    WHEN 'ZPREVQUARTER'.
    * QUARTER(1) TYPE C.
    * YEAR(4) TYPE C.
    * have to be defined after DATA: keyword !!!
       IF i_step = 2.
             LOOP AT i_t_var_range INTO l_s_var_range
               WHERE vnam = 'ZCURRENTQUARTER'.
               EXIT.
             ENDLOOP.
             CLEAR: l_s_range.
             YEAR = l_s_var_range-low(4).
             QUARTER = l_s_var_range-low+4(1).
             IF QUARTER = 1.
              YEAR = YEAR - 1.
              QUARTER = '4'.
             ELSE.
              QUARTER = QUARTER - 1.
             ENDIF.
             CONCATENATE YEAR QUARTER INTO l_s_range-low.
             l_s_range-sign = 'I'. "loc_var_range-sign.
             l_s_range-opt = 'EQ'. "loc_var_range-opt.
             APPEND l_s_range TO e_t_range.
          ENDIF.

  • SSRS Parameter - Fiscal Year - Quarter

    Using a SSAS cube as source I'm having problems getting using a dynamic parameter expression of the Quarter part of the time dimension so that the current quarter is selected each time the report is executed. The time dimension is using a Fiscal year
    - where for example Q4 is for February, March and April) and Q1 (for May, June, July) etc,,
    Below I haved showed how the parameter is working using a hardcoded Quarter part - and how it's not using the dynamic one: 
    When hardcoding the Quarter as in the below expression - using this expression - the parameter works:
    ="[PostingPeriod].[Posting Period].[Year].&[" & Year( DateAdd( "m", -4, Today() ) ) & "].&[Q4].&[" & Month( DateAdd( "m", -4, Today() ) ) & "]"
    When trying to do a dynamic solution for the Quarter it's not working (emty results in the parameter list) - I'm using this:
    ="[PostingPeriod].[Posting Period].[Year].&[" & Year( DateAdd( "m", -4, Today() ) ) & "].&[Q" & DatePart(DateInterval.Quarter,DateAdd(DateInterval.Month,-1,today())) & "].&[" & Month(
    DateAdd( "m", -4, Today() ) ) & "]"
    Suggesting to how I can solve this dynamic would be very appriciated.

    Sorry, I missed the last part (highlighted) in the expression.
    ="[PostingPeriod].[Posting Period].[Year].&[" + CStr(Year( DateAdd( "m", -4, Now() ) )) + "].&[Q" + CStr(DatePart("q",DateAdd("m",-4, Now()))) + "].&["
    + CStr(Month( DateAdd( "m", -4, Now() ) ) )+ "]"
    Can you give me some details on the Qtr parameter properties? Are you using "Specify values" or "Get values from a query" option?
    Where do you see that the parameter value is blank?
    Thanks,
    Ayad

  • Data Type to use for Fiscal Year Period selection screen parameter

    I need to accept user input in the format
    YYYY.PP
    where YYYY is the Fiscal year and PP is the Period.
    Is there a data type ( element / domain ) for such a field ?

    date element you can use SPMON
    or
    parameter : p_spmon like MCS0-SPMON.
    regards
    shiba dutta

  • How to get current fiscal year/quarter/month/week

    Post Author: [email protected]
    CA Forum: Semantic Layer and Data Connectivity
    Hi friends,
    I have to calculate
    1. current year/quarter/month/week.
    2.Previous year/quarter/month/week.
    please tell the process to achieve the above scenerio's.
    the structure of the fiscal_cal is as  follows.
    Name                                      Null?    Type
    TODAY                                     NOT NULL DATE
    FISCAL_DAY                                         NUMBER(8)
    FISCAL_WEEK                                        NUMBER(6)
    FISCAL_MONTH                                       NUMBER(6)
    FISCAL_QTR                                         CHAR(18)
    FISCAL_YEAR                                        NUMBER(4)
    FISCAL_MONTH_WORK_DAYS                             NUMBER(2)
    sample week data is as follows
    FISCAL_WEEK
         200752
         200753
         209901
    Thanks.

    based on ur target database DBMS you can find a built-in functions be used in the universe designer to get the requirment you talked about, like in oracle
    to_char(mydate,'yyyy') it will return the year in the yyyy format.
    and the same way for the other things you want
    to_char(mydate,'q') return the quarter.
    w return the week of the month
    ww return the week of the year
    mm return the month
    ,, to get the last year
    you can use also a builtin functions
    like add_months(mydate,-12) that return the same date for the last year, and you can do the same operations as before.
    its all related to the DBMS.
    good luck

  • Sql query with dynamic fiscal year

    Hi,
    I wrote this query with static fiscal year and fiscal period, I need info on making the variables dynamic
    Fiscal year : starts from July1st. So this year until June'30 it is '2011' and from July'1st its '2012'
    Fiscal period: July1st its '1' and June'1st its '12'
    Query:
    select distinct o.c_num, o.ac_num, s.sub_ac_num, o.fiscal_year, o.ac_exp_date, s.sub_ac_ind
                             from org_account o
                                  left outer join sub_account s
                                  on o.c_num = s.c_num and o.ac_num = s.ac_num
                             where (o.ac_exp_date >= CURRENT_DATE or o.ac_exp_date is null)
                             and o.fiscal_year = *'2011'* --> need to be dynamic
                             and o.fiscal_period = *'12'* --> need to be dynamic
    thanks,
    Mano
    Edited by: user9332645 on Jun 2, 2011 6:55 PM

    Hi, Mano,
    Welcome to the forum!
    Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data.
    Always say which version of Oracle you're using.
    Since this is your first thread, I'll post some sample data for you:
    CREATE TABLE     table_x
    (     dt     DATE
    INSERT INTO table_x (dt) VALUES (DATE '2010-12-31');
    INSERT INTO table_x (dt) VALUES (DATE '2011-01-01');
    INSERT INTO table_x (dt) VALUES (DATE '2011-06-02');
    INSERT INTO table_x (dt) VALUES (DATE '2011-06-30');
    INSERT INTO table_x (dt) VALUES (DATE '2011-07-01');Is this the output you would want from that data?
    DT          FISCAL_YEAR     FISCAL_PERIOD
    31-Dec-2010 2011            06
    01-Jan-2011 2011            07
    02-Jun-2011 2011            12
    30-Jun-2011 2011            12
    01-Jul-2011 2012            01If so, here's one way to get it:
    SELECT       dt
    ,       TO_CHAR ( ADD_MONTHS (dt, 6)
                , 'YYYY'
                )     AS fiscal_year
    ,       TO_CHAR ( ADD_MONTHS (dt, 6)
                , 'MM'
                )     AS fiscal_period
    FROM       table_x
    ORDER BY  dt
    ;Since your fiscal year starts 6 months before the calendar year, you need to add 6 months to the actual date to get the fiscal year and month.
    The query above produces strings for fiscal_year and fiscal_period. If you'd rather have NUMBERs, then use EXTRACT instead of TO_CHAR:
    SELECT       dt
    ,       EXTRACT (      YEAR
                FROM     ADD_MONTHS (dt, 6)
                )     AS fiscal_year
    ,       EXTRACT (      MONTH
                FROM     ADD_MONTHS (dt, 6)
                )     AS fiscal_period
    FROM       table_x
    ORDER BY  dt
    ;The first query will work in Oracle 6 (and higher).
    I'm not sure when EXTRACT was introduced. It definitely works in Oracle 10, and may be available in earlier versions, too.

  • How to Ignore Fiscal Year Variant in BEx Query displayed with FISCYEAR?

    Hi All,
    I am developing a report.
    In which I have taken Fiscal Year in columns.
    When I executed the report Fiscal Year is showing with Fiscal Year Variant, I mean it is displaying as K5/2009.
    Please let me know the settings how to ignore Variant? I mean Fiscal Year should show 2009 only.
    Regards,
    HM.
    Edited by: Hariman on Nov 9, 2010 7:47 AM
    Edited by: Hariman on Nov 9, 2010 8:05 AM
    Edited by: Hariman on Nov 9, 2010 8:13 AM

    Hi,
    Fiscal year variant is compounded to Fiscal year. So in Bex query output it will be the format.
    In case you need to remove the fiscal year variant you need to write customer Exit code.
    -- Selva

  • Fiscal Year in the columns outside KF structure

    Dear Experts,
    I have a manual Entry variable for Fiscal Year range.
    In the query designer columns , I have a KF structure containing quarter level columns.
    The FY is outside this structure. So, for each FY user entered in the FY range variable, the report will show the set of KFs at quarter level.
    How can i refer to this FY values at runtime such that current date can be used to compare with the FY and Quarter in the columns?
    The requirement is, if the current QuarterFY  is less than   the current QuarterFY, the TEXT variable for the columns should show 'Actual' else show 'Plan' .
    I am not sure how to reference the FY range entered by user considering that the FY is placed outside the KF columns to automatically display all the FY entered by the user without the use of the FY range variable restricted in the KFs.
    Please advise.
    Thanks.
    Bass

    Dear Sunnybt
    Copy Riyes,  I find your response interesting. Please could you elaborate your idea of using condition in more detail.
    Sorry for my late response.
    Allow me to clarify my statement, which you are right, is unclear.
    By :
    "if the current QuarterFY is less than the current QuarterFY"
    I mean :
    eg. user enters FY range : 2009 to 20NN  (eg. 2017)
    KF_column1_FY2009_Q1______KF_column2_FY2009_Q2____KF_column3_FY2009_Q3______KF_column_FY2009_Q4______KF_column_FY2010_Q1______KF_column2_FY2010_Q2____KF_column3_FY2010_Q3______KF_column_FY2010_Q4_____KF_column_FY_NNNN_Q1
    For each column, where the FY can be any year range entered by user,
    the Text Description of the Column should show either 'Actual' or 'Plan' based on what is the current FY Quarter at runtime.
    If the FY Quarter (eg. 1st column is 200101) is before current FY Quarter (i.e 201103), then the Description of this column should be "Actual" , else "Plan".
    In my current design, I am unable to use customer exit text variable to meet this requirement.
    So, I like to check with you for fresher ideas.
    If not , I would use a workbook, which I am avoiding as the user needs to drilldown and I believe drilldown is not possible in workbooks where report layout needs to be rigid or cell positions fixed. Of course, unless there is a way out of this which I do not know.
    Best regards
    Bass

  • Error while entering the Fiscal Year/Period Variable

    I keep getting the following error message when I try to input or select the Variable on the report that has been executed on the Portal. Everything is fine when done through Bex.
    <b> Please enter value in permitted format for variable Fiscal Year/Period (Selection Options, Optional).
    Entry needs template  ___/____
    For characteristic , enter value in a permitted format</b>
    Would anybody have any clue as to why?? It does have the Fiscal year Variant.
    Thanks

    This is fxed in BI JAVA SPS 12 Patch 2. Not sure whether there is any OSS notes for earlier SPS.

  • Fiscal year variant Z1 is not maintained for calendar year 2012 when loadin

    Dear Experts,
    We are working on BI7.0 extracting data from ECC 6.0.
    I am trying to load data from 0HR_PY_PP_1 which is a Self DataSource in our BW System (extracts data from 0EMPLOYEE and 0PERSON) to load into ZPA_C50 which is a copy of BCT InfoCube 0PAPA_C02 (Headcount).
    The data has come through into the PSA very well.
    However, DTP is throwing an error while loading 32242 records of data from PSA into ZPA_C50 InfoCube. The error details as below:
    Error while updating to target ZPA_C50 (type INFOCUBE)
    Fiscal year variant Z1 is not maintained for calendar year 2012     FGV     2
    Messages for 1 data records saved; request is red acc. to configuration
    Processing Terminated
    We are actually doing a Re-implementation of BW 3.0b in BI 7.0 Ehp1. We have imported Maintenance of Fiscal Year Variant from the BW 3.0b Production System. So this shouldn't be a problem I guess since I have also checked the setting in SPRO in BI 7.0 Development (New) System and they are looking good.
    Also, when I do a Filter on 0CALDAY in DTP from 01.01.1900 to 31.12.2010, the loads are working fine. I want the load to run without any Filters on 0CALDAY.
    Has anyone been in similar situation. How did you resolve this issue? Your time is very much appreciated.
    Thanks in advance.
    Chandu

    Dear Experts
    Thanks for your time.
    We have resolved this issue ourselves. We have maintained 'Shortened Fiscal Years' for 'Z1' and it is working fine now. Steps are as below:
    In BI Dev System -> SPRO -> SAP Reference IMG -> SAP Customizing Implementation Guide -> SAP NetWeaver -> Business Intelligence -> General BI Settings -> Maintain fiscal year variant -> Select 'Z1' Fiscal Year Variant and then DoubleClick on 'Shortened Fiscal Years' to set the Fisc Year Variant -> Save.
    The dataload should work fine now.
    Cheers,
    Chandu

  • Issue with Fiscal Year period - Variable

    Hello,
    I have requirement where I have two fiscal year variables selections available for the users. Both are independent to each other. FOR EX: A & B
    1ST Fiscal year period is straightforward. It is a single variable selection where User enters the fiscal year period then the Key figures data will be available to the user for that particular fiscal year what is selected in the variable screen.
    For ex: If user enters 01.2007 then the values will be only for that particular month/period
    However, the 2nd Fiscal year period user wants a Range (From and to). This is also a Single selection variable. Here user enters only TO value, which it should go and get the lower value from first variable screen and then it should take the higher value from the 2nd Variable screen and should calculate the result as a range.
    How this can be sorted? Can someone please help me to sort this Issue? If we need a customer exit, can you please give me some sample code?
    Thanks in advance
    Harish

    Hi,
    Create 3 variable
    One for from variable which will user input ZVAR1
    2nd to variable will be user input              ZVAR2
    3rd variable be variable exit type              ZVAR3
    In exit populate the VAR3 by reading the two user input variable.
    and use the option
    Try this:
    <b> when 'ZVAR3.
          if i_step = 2.
            read table I_T_VAR_RANGE into z_t_var_range
                            with key VNAM = 'VAR1'.
            read table I_T_VAR_RANGE into z_t_var_range1
                            with key VNAM = 'VAR2'.
                 ZE_T_RANGE-SIGN    = 'I'.
                 ZE_T_RANGE-OPT     = 'BT'.
                 ZE_T_RANGE-LOW     =  z_t_var_range-LOW
                 ZE_T_RANGE-HIGH     =  z_t_var_range1-LOW
                 APPEND ZE_T_RANGE TO E_T_RANGE.
                 clear ZE_T_RANGE.
          ENDIF.</b>
    Thanks,
    Debasish

  • How to get last 35th fiscal year periof form current fiscal year period

    Hi,
    I want last 35th moths fiscal yesr periof from current fiscal yesr periog.
    E.g. current month FISPER - 2010011 so required FISPER is 2010011 - 35 = 2007009.
    Please help if any one know about it.
    Marks will be provided.

    Hi,
    Drag Fiscal year/period characteristic in the query and restrict it .
    In the variables , you will find SAP delivered variable which willl give you current fiscal year/period.
    Create range on the using this variable and give offset of -35.
    For eg.
    the name of the variable is 0PF_CP,  then create range in the following way.
    Lower range will be 0PF_CP - 35
    and higher limit will be 0PF_CP.
    So the range would be 0PF_CP-35 : 0PF_CP.
    This will give you the last 35 fiscal year/period.
    - Jaimin

  • How to get current fiscal year.

    Hi Experts,
    I am working on Asset Management.I need to get current fiscal year.
    I have to enter fiscal year on selections screen which i have to validate that it should not be greater than current fiscal year.
    For above i have used following code snippet but i have hard coded variant as 'MK'.
    To get variant i was using function '/IBS/RB_FI_GET_FISCAL_YEAR_VAR'  but in my selection screen we have to enter multiple company codes. if i will keep this function inside loop then it may give multiple variants.
    How to resolve this ?
    DATA : l_year(4) type c,
           l_date TYPE sy-datum.
    CALL FUNCTION '/IBS/RB_FI_GET_FISCAL_YEAR_VAR'
      EXPORTING
        i_company_code               =
      IMPORTING
        E_FISCAL_YEAR_VARIANT        =
      EXCEPTIONS
        COMPANY_CODE_NOT_FOUND       = 1
        OTHERS                       = 2.
      l_date = sy-datum - 700.
      l_date = l_date + 1.
      IF sy-subrc EQ 0.
        CALL FUNCTION 'GM_GET_FISCAL_YEAR'
         EXPORTING
           I_DATE                           = l_date
           i_fyv                            = 'MK'
         IMPORTING
           E_FY                             = l_year
         EXCEPTIONS
           FISCAL_YEAR_DOES_NOT_EXIST       = 1
           NOT_DEFINED_FOR_DATE             = 2
           OTHERS                           = 3.
        IF sy-subrc EQ 0.
          IF s_gjahr-low GT l_year.
            PRINT Error Message "Entered fiscal year should not be greater than current fiscal year".
          ENDIF.
        ENDIF.

    make it simpler by using - DATE_TO_PERIOD_CONVERT
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
      EXPORTING
        I_DATE               = SY-DATUM
        I_PERIV              = L_VARI    "Fiscal year Variant - refer to tab T009B
    IMPORTING
       E_BUPER              = L_BUPER " Fiscal Period
       E_GJAHR              = L_GJAHR  " Fiscal year
    EXCEPTIONS
       INPUT_FALSE          = 1
       T009_NOTFOUND        = 2
       T009B_NOTFOUND       = 3
       OTHERS               = 4
    Hope this will solve ur problem.

  • About fiscal year

    HI,
    There is one query regarding fiscal year. In our report we made fiscal year variants as a compounding object in fiscal year info-object.
    So that when we check data in report that with respect to fiscal year variant, data comes in different column.
    Like if fiscal year variant is K4 and BW then there will be different column for some particular key-figure.
    But i want these value in one column. It can be possible, if i remove compounding object (fiscal year variants ) from fiscal year,
    but i can't do this becoz this fiscal year is used in other query also.
    So can i create some different info-object for fiscal year in which fiscal year variants should not used as a compounding object.
    But value of fiscal year  should come with respect to fiscal year variants.
    Thanks
    Devesh Babu

    Hi,
    Put Fiscal year variant in the rows. Now create a formula and add all key figures which display data for diff fisc variants, like KF1 might display data for K4, KF2 might display data for V3, etc. Add KF1 + KF2 in the formula and hide the individual KF. But you should have fisc variant in rows, otherwise the data would be wrongly added.
    Best Regards,
    Murali.

  • How to get Current Quarter and Fiscal Quarter for a Date - Fiscal Year starts from 1st April

    Hi, 
    I need to calculate current quarter and fiscal quarter in my Sql query.
    I have a column for DateTime Datatype. 
    I need to find out Current Quarter Name like Q12012, Q22012, Q32012, Q42012 and Fiscal Quarter Name as well.
    Now Fiacal Year starts from 1st April, and Current Quarter starts from 1st Jan.
    For Current Quarter of 2012
    Jan-Mar = Q12012
    Apr-Jun = Q22012
    Jul-Sep = Q32012
    Oct-Dec = Q42012
    For Fiscal Quarter of 2012 ( starts from 1st Apr, 2011 )
    Apr2011-Jun2011 = Q12012
    Jul2011-Sep2011 = Q22012
    Oct2011-Dec2011 = Q32012
    Jan2011-Mar2012 = Q42012
    means if its 1st April, 2012,
    its a new Fiacal Year 2013 so Fiacal Quarter Name should be Q12013
    and its Current Quarter Name should be Q22012
    Can you help me to calculate this in a select query for given dates?
    Thanks in advance, 
    Nirav

    This should do it..
    Select
    FORMAT(datepart(quarter,getdate()),'Q#')+FORMAT(getdate(),'yyyy')

Maybe you are looking for

  • Safari killing CPU

    Version 4.0.3 (5531.9) Safari. When watching UTube CPU usage is at 94%-100%. This has never happened before the new recent update. My fans start running and Powerbook g4 gets real hot. What would be the cause of this. I love my mac and do not plannin

  • How to display an image??

    Hello to all, I'm not a newbie on Forms development, but... I don't remember how to do the following! : - I have a form (.fmb and .fmx in d:\app\) with only one datablock and 2 text items and two buttons inside that datablock. I want to display an im

  • How do I get my imac sound back

    How do I get my Imac sound back?

  • Replication queries

    Hi Friends, I have some queries, please help me to resolve the issues. 1) i have replicated the plant from R/3 to CRM, plant is already been replicated, but the issue is under which role the plant will be treated as, it has taken the standard interna

  • Digital Publishing Suite Help | Sell digital content

    This question was posted in response to the following article: http://helpx.adobe.com/digital-publishing-suite/help/sell-digital-content.html