Offset on Fiscal Period

Hi
I am trying to compare Prior Year vs Current year revenues for a particular period. My input parameter is Fiscal period.
I have created two Restricted key figures.
First one is Revenue key figure restricted by Fiscal period. (User input period)
Second one is Revenue key figure restricted by Fiscal period with offset -12.
But I am getting same results in both columns though Cube has data for two fiscal periods.
For e.g. If user enter 007/2010 i need to see revenues for 007/2010 and 007/2009.
But i am getting revenues for 007/2010 in both columns.
Do I need to use Exit variables or will it work with Offset?
Thank you
Sree

Hello Sree,
I think you can easily get this by using structure for fiscal periods.
Try to visualize the query designer structure as:
Revenue
     Structure
           Fiscal period
           Fiscal period - 12
This will give you the output in format
Revenue
2010   2009
xxx      yyy
Regards,
Pratap Sone

Similar Messages

  • Problem with BI-IP and Offsets in Fiscal Period/Year

    Hi freinds,
    I got a request that is linked to BI-IP and Query design.
    The request is that the users should always see a complete year by Fiscal Periods (001.2010...012.2010).
    Now the BI-IP should be dynamic. This means in 007.2010 the user should plan 008.2010...012.2010, the previous month are supposed to be the actuals.
    Problem: I do not want to change the query each month in order to move the planning month. I tried to use an offset with 11 month actuals. Saying "current month/Year", -1,-2,...,-11 using 11 restricted key figures. Same I did for the planning month. I now limited the Data to 2010 in the filter and anywhere I could. However, the result columns are showing all 22 Month. 001.2010...007.2010 are the only once which carry data. all other columns are empty.
    I just do not want to see the columns that do not belong to the current year.
    Any ideas or How to's I can use?
    Thanx and best regards
    Joerg

    Sorry, but I can't imagine how that should work.
    I have two Cubes combined under a Multicube. One containing the Actuals and one for the Forecasts. To show the actuals I have to create a restricted key figure that shows the actuals and for the forecast I have to select differently.
    What is the exit variable supposed to do? I could use a SAP Provided variable to find out about the first month and the actual month, but since it will be a restricted keyfigure it will be shown as sum between the two month. I need for each month of the year a column, and the "open" Month should be input ready. And this should be dynamic.
    Thanks for helping
    Joerg

  • Offset for Fiscal Period

    Hi All,
    I have 2 columns in my report. When variable window pops-up, user enters value for 2 mandatory field. (From Fiscal Period and To Fiscal Period). Once i get the value of range, i generate one column based on business logic. Now, in the second column I want to show the results for the same period but for previous yr.
    So, if user entry is 001.2007 to 002.2007, first column would display result for 001.2007 to 002.2007, while second column should display result for 001.2006 to 002.2006. I have 2 saperate variables for user entry and i have restricted my KF based on "Value Range" & "Between".
    When I m trying to give offset of '-12' for second KF, it accepts the offset for both the variable in the range, but it displays the result for 001.2006 to 002.2007. So, basically it manipluates offset for just one variable.
    Can anybody tell me what should i do??

    Hi Danny,
    In the mentioned link, read Selecting value range limits
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm
    This is what I was thinking of...

  • Fiscal Period ----- in BEx Report

    Hi All,
    I have a small issue.
    in my report i want to give single selection for fiscal period like 0102005.
    for these selection i want to display all previous period data in separate column
    like 0012005    0022005 ............ 0102005
         KF value   KF value             KF value
    If any know it please guide me step by step.
    Thanks
    samit

    Hi Saha,
    You can do this with the help of variable offsets. Either you can create a series of restricted key figures, or if there are more than one KF being used, you may want to create a Fiscal Period structure andplace it in the columns too.
    What you will be doing in both will be the same. Restrict the Fiscal Period char with the single entry variable, and for other columns, take the same restriction and set an offset of -1. Keep on increasing the value of offsets for each previous selection that you want.
    For more details on how to set offsets, refer to this post:
    Re: TY POS
    Look here too:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm
    Hope this helps...

  • Values by fiscal period

    Hi,
    I have a column "Total Cost To Date" which gets all costs per project.
    The actual value should be =Cummilated cost to last month. Say I am running the report in AUG any time the report should get the total cost till July.
    I have used offsetting but does not work and have also used Variable 0FYTLFP but not getting the correct values.
    the report gets only values for July not cummilayed values.
    Please help.
    Thanks
    Niren

    Use 0FPER  variable.
    Assuming you need to display the value till date and not Year till date.
    Create a Restricted Key Figure and select your key figure and the 0FISCPER characteristic.
    Right click on 0FISCPER and select restrict.
    Select value range and Between from the Selection Drop down
    Select Fixed value tab and transfer the lowest Fiscal period (e.g. Period 12 2006) available to the right. So you can see something like []012/2006; 012/2006
    Select Variables tab and drag 0FPER on the second 012/2006 range. So now you can see the value like [ ]012/2006; 0FPER. Right click on that and select Specify variable offsets and select -1.So now the value looks like [ ]012/2006; 0FPER-1.
    Save and execute the query.

  • Customer  exit to get the result in between two fiscal periods

    Hi Guys,
    I have a requirement  to write customer exit, in which i have to get the result for a range of fiscal periods,
    that is in Between   fiscal period1 and fiscal period3,
    and i am getting this Fiscal period from other variable called version in which it consists of combination of fiscalperiod and text
    and now i have filtered the fiscal period and stored in Final_val ( this is an interger), but  how can i use dynamically this Final_val to get the results in between Final_val1 and Final_val3 ( that means if the Final_val is 2008010 then i have to get the results in between 2008011 and 2009001).
    Please provide me the solution, with the possible piece of code

    Hi Diogo,
    Here is the code
    WHEN 'ZC_PVR'.
        DATA: FIN_YEAR(4) TYPE C,
              FIN_DATE(3) TYPE C,
              FIN_VAL(7) TYPE C.
        IF I_STEP = 2.
          READ TABLE I_T_VAR_RANGE INTO LT_VAR_RANGE WITH KEY VNAM = 'ZC_VCS'.
          IF SY-SUBRC EQ 0.
            CONCATENATE '20' LT_VAR_RANGE-LOW+2(2) INTO FIN_YEAR.
            CONCATENATE '0' LT_VAR_RANGE-LOW+4(2) INTO FIN_DATE.
            CONCATENATE FIN_YEAR FIN_DATE INTO FIN_VAL.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW =  FIN_VAL.
            L_S_RANGE-HIGH =  ''.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
          ENDIF.
        ENDIF.
    which i am using for Filter the fiscal period, after this when i tried to restrict on this "ZC_PVR" vairable and  set the offset like
    zc_pvr 1 to zc-pvr3 under value of ranges, but i am facing an error saying the " variable may be deleted or used incorreclty",
    could u plz suggest

  • How to get previous fiscal period(Fiscal Period-1)

    Hi ,
    According to my business scenario for reporting-(BI-7) , I want to move FISCPER by 1 . The formula for this is ,
    Formula: (Restricited key figure)Sales Order $ (Prior)=Char = Fiscal Period - 1
                                                                                  KF =  Sales Order $
    I also need a variable for fiscal period for user entry -Single value and mandatory.
    I specifically have the task of not including FISCVAR newhere into my query design.
    Please suggest how to go about implementing the above scenario ?
    Thanks

    hi
    you should create RKFs. The variable can be a exit type which givs the current period. Use offset -1
    http://help.sap.com/saphelp_nw04s/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm
    http://help.sap.com/bp_epv260/EP_EN/documentation/EP/N05_BB_ConfigGuide_EN_US.doc
    regards
    abiram

  • Customer Exit for Deriving Current Fiscal Period, Period+1 and Period+2

    Hi all,
    I have created three customer exit variables in my query for custom info object ZFISCPER (Fiscal Year PEriod), Fiscal 1, Fiscal 2 and Fiscal 3. I want to write a customer exit to derive the current period, current 1 and current2 period's respectively for these variables based on the system date. The format of the period is YYYY0MM ( 2009004). Could someone give me the exact code i can plug in CMOD for these
    Thanks a lot
    Rashmi.

    Hi Rashmi,
    I think you need only one customer exit variable. Other can be derived by setting an offset to current Fiscal Period.
    Check the BI content variable for current fiscal period. Use this variable with an offset for derving the other periods (e.g. SAP Exit variables (0FPER, 0FYTCFP, 0FYTLFP). So you have to write no own code...
    Other option is to check how SAP exit is working and building own variable based on this code.
    Check the following link to get information how to do this:
    Reg Variable 0FYTCFP
    Regards
    Andreas

  • Fiscal period problem and regarding....

    Hi all,
    I have a particular query in which posting period and fiscal year are the characteristic variables(mandatory and single values) . I have to define Rolling Year To Date variable/ User exit such that when the user enters posing period and fiscal year query has to fetch previous 12 periods data from the cube..
    If posting period is 005 and fiscal year is 2007 then the output for a particular balance Keyfigure has to be from 005-2007 to 006-2006.
    The thing is we don’t have Fiscal period defined in the cube . One possible solution is Using the Offsets… if we are are goin to offset on the previous 12 periods, is the query going to fetch the correct values….
    Other thing we can think of is user exits… can some one share the logic regarding this... if we have to user the user exits…. Promise to award full points….
    regards,
    sasidhar gunturu

    You can create two restricted key figure (posting period, fiscal year, amount) and hide them.
    1st restricted key figure
        - posting period (restricted with interval 1 to user entered period e.g. YUSERP)
        - Fiscal year (user entered year e.g. YUSERYR)
        - Amount
    2nd restricted key figur
        - posting period (restricted with user exit e.g YPREVP)
        - Fiscal year (user exit e.g YPREVYR)
        - Amount
    Create a formula as ur final balance by adding the above two key figure and make this visible.
    user exit code for YPREVP -
    if i_step = 2.  "After Selection screen is shown
        read table i_t_var_range into l_s_var_range with key vnam = 'YUSERP'.
        if sy-subrc = 0.
          l_per = l_s_var_range-low.
            clear l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt  = 'BT'.
         if l_per = '12'.
                 l_s_range-low  = 0.
              l_s_range-high = 0.
         else.
              l_s_range-low  = l_per + 1.
              l_s_range-high = 12.
         endif.
            append l_s_range to e_t_range.
          endif.
      endif.
    user exit code for YPREVYR -
    if i_step = 2.  "After Selection screen is shown
        read table i_t_var_range into l_s_var_range with key vnam = 'YUSERP'.
        if sy-subrc = 0.
          l_per = l_s_var_range-low.
          read table i_t_var_range into l_s_var_range with key vnam = 'YUSERYR'.
          if sy-subrc = 0.
            l_year = l_s_var_range-low.
            clear l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt  = 'EQ'.
         if l_per = '12'.
                 l_s_range-low  = l_year.
         else.
              l_s_range-low  = l_year - 1.
         endif.
            l_s_range-high = ''.
            append l_s_range to e_t_range.
          endif.
        endif.
      endif.

  • Problem with Fiscal Period and regarding...

    Hi all,
             I have a particular query in which posting period and fiscal year are the characteristic variables(mandatory and single values) . I have to define  Rolling Year To Date variable/ User exit such that when the user enters posing period and fiscal year query has to fetch previous 12 periods data from the cube..
           If posting period is 005 and fiscal year is 2007 then the output for a particular balance Keyfigure has to be from 005-2007 to 006-2006.
         The thing is we don’t have Fiscal period defined in the cube . One possible solution is Using the Offsets… if we are are goin to offset on the previous 12 periods, is the query going to fetch the correct values….
        Other thing we can think of is user exits… can some one share the logic regarding this... if we have to user the user exits…. Promise to award full points….
    regards,
    sasidhar gunturu

    Sasidhar,
    Since you have posting period and fiscal year separately, you need not think of going for an exit. You can simply use offsets on both so that they will fetch right data. Since there are two separate objects offsets should fetch correct data. Go ahead with offsets.....

  • Closing and opening in new fiscal period

    Hi
    I am going to close last fiscal period and open new period . What should I do step by step for closing inventory and BP and Accounting and Open them in new Period. does system has any facility to do these step automatically.
    Thanks in advance

    PEC is a tool to use for you to close any periods.  What it does is mainly creating certain retained earning entries.  There is no way to do anything automatically for you.  You may need to define new fiscal periods first before you do Period-End Close.
    Thanks,
    Gordon

  • Option to show values up to last closed fiscal period or up to current date

    Hello,
    How would I create a query that would ask if I want it to calculate values 'up to the current date' or for the 'latest closed fiscal period'.
    Currently I have setup a report, within which, has restricted key figures that will give the 'Period to date', 'Year to Date', and 'Last Year Year to Date' values for some RKFs, however, it would be very helpful if this report could be setup so that the user could choose whether the report provides:
    1. Values only through the last closed fiscal period
    or
    2. Values up to the current date.
    <b>For example</b> if we are in period 7 of 2006, the user could have the report show all values up to the last closed fiscal period, which in this case would be period 6 of 2006.
    Or the user could have the report show all the values up to the current date.
    Hopefully I have been clear,
    Thanks,
    Nick
    Message was edited by:
            Nick Bertz

    Nick,
        What is the problem you are facing? As San mentioned you can only report till Last Fiscal Period using Customer Exit Variables(Calculate Current Fiscal Period using Current Month and Fiscal Year Variant).
    Or as you mentioned you can create restricted Key Figures using Date or month (YTD etc)
    If i miss your requirement, please guide me.
    Regards,
    Nagesh Ganisetti.
    *Assign Points if it helps.

  • Last Closed Fiscal Period

    Hi All
    How can I identify the Last Closed Fiscal Period in a query variable ?
    eg. The current calendar month is Feb which is Fiscal period 11 (Variant is Z3). However Finance still have January open so they want to report YTD figures up to and including December (Fiscal periopd 9).
    I have created a user exit variable (with help from SDN) that works out the YTD range for the fiscal periods but it uses system date to calculate current period. Therefore, the current fiscal period is coming out at 11 but I need 9. When the Month End occurs on Friday the current fiscal month should become 10.
    All help appreciated.
    Asif

    Hi Surender
    I need a variable that does not have any user interaction, and will determine the range of periods that constitute the current fiscal year. The range should start at 1 and end at the last closed fiscal period as maitained on R3.
    I have decided to bite the bullet extract the table T100B from R3. It contains details on all open periods.
    I am trying to load it as master data. Its the first tme I have done this type of work so taking some time.
    I have created the extractor and a characteristic with attributes to hold this info. I then plan to read this data in the variable to work out the range.
    If there is a simpler way to do this then please advise.
    Regards
    Asif

  • Performance issue on Fiscal period.

    HI all,
    I have multiprovider built on an infoset.The infoset is built on 3 stadard ODS(0FIGL_O02,0PUR_O01,0PUR_DS03).The user is running the report by Company code and Fiscal Period.
    The Company Code and Fiscal period is available only for FI-GL ODS.The purchasing os has only Fiscal Variant time characterstic.When i am trying to runt he report,its taking unusually long time to run.
    How should i resolve this performance issue?
    1)will getting Fiscal period into Purchasing ods help improve the performance.If so can anyone please give me step by step procees.As this is very urgent.
    2) Or should i take any other method to improve the performance.Th FI-GL already has secondary indexes on it.
    Please advise.
    Message was edited by:
            sap novice

    Duplicate post:
    Performance issue on AFPO
    Performance issue on AFPO

  • How to get the last day according to fiscal period input in selection scree

    Hello expert
    how to get the last day of fiscal period input.
    the fiscal period inculdes 1-16
    when fiscal period is greater than 12, only calculate the last day of 12nd month
    your solution will be apprecaited, FM existing?
    thank you
    Kevin

    Hi,
    when you give a particular date in any month
    the following fm will give you the last date of that month
    here you can give
    R_FDATE-HIGH  as 01 and month as the period you wnat and year for current year
    concatenates '01'  month year  into r_fdate-high separated by '.'.
    then it will give g_ltdt for that month and year which wil be the last date of that month
        CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
          EXPORTING
            DAY_IN            = R_FDATE-HIGH
          IMPORTING
            LAST_DAY_OF_MONTH = G_LTDT
          EXCEPTIONS
            DAY_IN_NO_DATE    = 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.
    thanks & regards,
    Venkatesh

Maybe you are looking for