Two Fiscal Period in Infocube :? possible

Hi Experts
I have two fiscal variants one for weekly periods  and other for monthly periods in R/3
In BW I want to do reporting on fiscal week and fiscal month .In BW we can use one fiscal variant in one infocube which determines the period whether it is weekly or monthly
But If your reporting requirement is to Report fiscal week and Fiscal month from one Infocube how to do that
Also I am aware of Function module who gives to 1st  day of period based on first fiscal variant and then you can use this day and find out the second period based on second fiscal variant
but how to use these function modules as this convert one period into other period based on fiscal variant in a infocube as infocube will have one fiscal period

This is solved

Similar Messages

  • 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

  • Allow two fiscal periods

    I have the following situation:
    My company fiscal period now used is from Jan - Dec.
    However my HQ uses fiscal period from Apr - Mar.
    When we try to enter budget entry in Tcode 7KE1, KP06, FSE5, it only allows to process for half fiscal periods, ie Jan - June and Jul - Dec. However, I would like to maintain the figures for up to Mar the following year to meet my HQ reporting.
    Is there anyway to maintain to fiscal year variants. One main and the other for reporting purposes?
    regards
    Shakeer

    Hi Expert,
    Your company fiscal period is using Fiscal Year -  Jan - Dec - K4.
    However your HQ wants to use Fiscal Year -  Apr - Mar - V3.
    Scenario - 1:
    If you are using ECC6.0 Version, then just create one Non-Leading ledger for your HQ, which is to be assigned with Fiscal year - V3 and it leads to post the transaction parallel to the HQ Fiscal year.
    Scenario - 2:
    Use Special Purpose Ledger to use Fiscal Year - V3, which need to customize the Special Purpose ledger.
    Regards,
    GK
    SAP

  • 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

  • Query Fiscal Periods as numbers

    Hi Experts,
    I need to calculate de difference between two fiscal periods. As simple as that. So I created two formula variables for this.
    Variable1
    - Type: Formula
    - Processing: Replacement path
    - Ref.Char: 0FISCPER
    - Replace with: Variable
    - Variable: ZPERIOD (user input)
    - Replace with: Key
    - Currency/Unit: Number
    Variable2
    - Type: Formula
    - Processing: Replacement path
    - Ref.Char: 0MATERIAL__ZLNCHDATE (ZLNCHDATE was created with reference to 0FISCPER)
    - Replace with: InfoObject
    - Replace with: Key
    - Currency/Unit: Number
    But when I use the values in a formula to calculate de difference Variable1 - Variable 2 the fiscal periods are being interpreted as numbers, such as: 2011012 - 2009008 = 2004. Even when I display the variables in the report it is presenting 2.011.012 and 2.009.008 respectivelly.
    I already tried to change variables Currency/Unit to 'Date' but it comes with '00.00.0000'.
    Also I already tried with and without 0FISCVARNT = 'K4' in the query with no success.
    Any suggestions?
    Regards,

    Hi Marcelo,
    This is in ABAP, convert to your BEx requirement.
    REPORT  YBW_FISCPER_DIFF.
    data: fisp1 type /BI0/OIFISCPER,
          y1(4) type n,
          p1(3) type n,
          fisp2 type /BI0/OIFISCPER,
          y2(4) type n,
          p2(3) type n,
          y3(4) type n,
          p3(3) type n,
          fisp3 type /BI0/OIFISCPER.
    fisp1 = '2011012'.
    y1 = fisp1+0(4).
    p1 = fisp1+4(3).
    fisp2 = '2009008'.
    y2 = fisp2+0(4).
    p2 = fisp2+4(3).
    y3 = y1 - y2.
    p3 = p1 - p2.
    CONCATENATE y3 p3 into fisp3.
    write: 'fisp1 =', fisp1,
          /'   y1 =', y1,
          /'   p1 =', p1.
    write / .
    write: 'fisp2 =', fisp2,
          /'   y2 =', y2,
          /'   p2 =', p2.
    write / .
    write: '   y3 =', y3,
          /'   p3 =', p3,
          /'fisp3 =', fisp3.
    Result of this is below:
    fisp1 = 012/2011
       y1 = 2011
       p1 = 012
    fisp2 = 008/2009
       y2 = 2009
       p2 = 008
       y3 = 0002
       p3 = 004
    fisp3 = 004/0002

  • Function module to find the fiscal periods

    Hi Guys,
    Please let me know if any of you are aware a function module which determines the fiscal periods between two dates.
    (Begin and end dates.) 
    Thanks.

    Hi Sai,
    From your post, I understood that you want to find how many periods are there between two dates, right.
    I am not sure whether there is a direct function module for this.
    But you can try this.
    Use the FM DATE_TO_PERIOD_CONVERT to get the Fiscal Year and Period from a date. You have to input the date and Fiscal variant.
    Using this you can determine the Fiscal year and Period for both the dates.
    Then you can find the difference of these two Fiscal Periods.
    This thread will be helpful for you to find the Difference of two fiscal periods
    Urgent : Difference of two fiscal period
    Hope this helps,
    Regards,
    Hari.

  • Using fiscal period and Fiscal quarter reporting seemlessly in a BI Query

    Hi,
    We have a very specific issue. Reporting the Fiscal Period( in our
    case we have 53 fiscal periods) and Fiscal Quarter( we have 4 quarters)
    in the same query seamlessly as we would have done using Calander Month
    and Calander quarter in other reports that uses SAP delivered standard
    time dimensions.
    However unlike the Calander time dimension (SAP provided all
    possible...0CALDAY, 0CALWEEK, 0CALMONTH, 0CALQUARTER, 0CALYEAR) where you have all of these inside your info provider, you can get
    aggregation on week, month, quarter etc in your query seamlessly, The Fiscal Year/Period offers a problem in doing report seamlessly.
    When we delve into Fiscal realm, SAP only provided with 0FISCVARNT,
    0FISCPER, 0FISCYEAR and a special period 0FISCPER3. It doesn't provide
    anything like 0FISCQUARTER etc and rightly so, because you can have
    only one 0FISCVARNT in the Time dimension and can have related periods
    (0FISCPER) only for a Row of data in your infocube. For example if you need to model as per the Fiscalweek, you can create a custom Fiscal year variant (Say z1) and can configure to have only 53 periods (Mapped to 0FISCPER) representing
    53 Fiscal WEEK. Similarly for mapping Fiscal Quarter you can create
    another fiscal year variant (Say Z2) and have only 4 periods (mapped to
    0FISCPER also in this case) to represent the 4 Fiscal Quarter. However
    the issue is that for one record you can only map either of those and
    not both since you can only have one Fiscal year variant in one row of
    data in the info provider.
    For example
    If I have two rows OF DATA coming from different sources (One FOR
    Fiscal Week and another for Fiscal Quarter) I can have the following in
    my info provider.
    1> Example data in Fiscal
    Char1 Char2 0CALDAY 0FISCVARNT 0FISCPER Quantity
    X  ......  y .....10/22/07 ....Z1 ....           43’2007 .......10
    X .......  Y .....10/22/07 ....Z2 ....          Q3’2007 .......20
    The issue is how do I report the Quantity in a query in Quarter Q3 as
    (10 + 20 = 30) since both the rows corresponds to FISCAL Q3’2007?
    (Please note that Fiscal week 43’2007(For VARIANT Z1 ) actually is
    Fiscal Quarter Q3’2007( For Fiscal Variant Z2) as per our
    configuration of Fiscal Year Variant configuration Z1 and Z2)
    The same is very simple when I have infoprovider with CALENDAR Time
    dimensions , for example if we don’t have any fiscal reporting
    requirement and just report on calendar time dimension the record in
    the info provider would look like the following ( example)
    2> Example Data in CALENDAR DIMENSION
    Char1 Char2 0CALDAY 0CALWEEK 0CALQUARTER Quantity
    X ........ y .......10/22/07 .......43’2007 .......Q3’2007 .......10
    X ........Y .......10/22/07 ....... 44’2007 .......Q3’2007 .......20
    Here we can use both 0CALQUARTER and get the data aggregated on the
    quarter level in addition to the 0CALWEEK.
    To solve this issue, One option that we are thinking of Using 0CALQUARTER to represent the
    Fiscal Quarter and use Update rule to populate this one. For example
    THE example 1 can be as follows.
    1A> Example of using 0CALQUARTER along with 0FISCVARNT and 0FISCPER
    Char1 Char2 0CALDAY 0FISCVARNT 0FISCPER 0CALQUARTERE Quantity
    X .......y .......10/22/07 ..............Z1 .......43’2007 .......Q3’2007 ..............10
    X .......Y .......10/22/07 ..............Z2 .......Q3’2007 .......Q3’2007 ..............20
    In this case we would populate the 0CALQUARTER by the actual Fiscal
    Quarter and then can use both as per example 2 above. But this is not a
    smooth option since we have various other info providers to join and
    report based on solely Fiscal Quarter etc…
    I am certain that this issue have already been solved by somebody as this bound to happen in any finance application.
    Would appreciate if we can get some light on this regarding the data modelling, reporting etc.
    Thanks
    Arun G.

    You have yourself suggested a solution, which is fine,
    Other option is to have a new characteristic Fiscal Qtr in all the infoproviders ans update the same using a routine in the updaterule depending on the fiscal year variant.
    for eg. for transaction with variant Z1 in one case you can say if fiscal week 01 between 01 to 13 the Fiscal Qtr should be update with1 and if it is between 14 to 26 then update fiscal qtr with 2 and so on.
    For other Variants Z2 you write a different login in the routine ans so on.
    so for all the data irrespective of the variant you will have the qtr as either 1 or 2 or 3 or 4 and you can report on this fiscal qtr.
    assign points if it helps.
    regards
    Venkata Devaraj

  • Macro to Unlock the Cell on the start day of the Fiscal period

    Dear Experts
    We are using  fiscal periods for the forecasting.1 period = 15 days.We forecast for 24 fiscal periods.
    We only give chance to some customers to update forecast on  1 day of the fiscal period in the customer planning book .In this regard we have to lock the cell all most all the days except on 1 st day of the fiscal period.If the first of the Fiscal period is Sunday or Saturday, system should not unlock.
    We did not maintained any Time stream ID to the storage bucket profile.
    Example:
    KF1 is used by our customers to update forecast.This keyfigure should always in the unedit mode.On the first day of the Fiscal period system should unlock the keyfigure.If first day of the period is saturday or sunday then system should not unlock this keyfigure.
    Can we use calender in Macro?
    Is it possible to achieve above logic in our case since we did not maintained time stream ID in storage bucket profile.
    Please give your expertise opinion on my requirment.
    regards
    Vicky

    Hi Vicky,
    Whilst other simpler  options are given by others for locking /unlocking a KF with macros, Work around as below,  if feasible in your environment.
    Create two planning books (or with authorization at data view level, 2 data views).
    One planning book PB1 with the KF1 in  non-edit mode. This will be used normally.
    Other planning book PB2 with KF1 in edit mode.
    Create one more authorization profile/ role   for each customer user.
    Assign this additional authorization profile/ role only on specific dates as per background job to give additional authorizations.
    Otherwise, if  no. of user licenses is not an issue, then create an additional user id for each of the customer with additional authorizations and unlock these additional user accounts only on specific dates by background jobs.
    We had in one project, some additional user accounts for similar( not exactly same) requirement. This gave better traceability.
    Regards
    Datta

  • 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.....

  • How to get total number of days in current Fiscal period/year

    Hi,
    I need to get total number of days in current Fiscal period/year (current month) and assign it to an infoobject. I need a routine for this. Is there any function module to get this.If possible pls paste the ABAP code also for this task. Thanks in advance

    here is the FM:
    LAST_DAY_IN_PERIOD_GET
    KJ!!!

  • Fiscal Period in 0PA_C01

    The cube 0PA_C01 works on the basis of calmonth and it is easy to map it to fiscal period if each fiscal period corresponds to a whole calendar month.
    But we are facing a peculiar situation where the Client's fiscal periods are irregular and do not correspond to exact calendar months.For example Fiscal Period 01.2009 corresponds to the period 02.04.2009 to 29.04.2009 and not to Calendar month April'09.
    In such a case it is becoming a challenge to extract the headcount on the basis of fiscal period from the cube 0PA_C01.
    Could any one offer a clue as to how this could possibly be achieved?

    Hello Rajeev,
    you can always use FM DATE_TO_PERIOD_CONVERT during extraction in ZXRSAU01 or in transfer/update rules on BW. Remember to transfer Global Settings from source system to BW when using second method. Don't forget about transfer data to 0FISCVARNT as well.
    Thanks = points.
    Best Regards,
    Maciej Janik

  • 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

  • Defining an exit variable for a specific day based on Fiscal Period

    If I do not have Calendar Day time dimension available for reporting is it possible to define a customer exit variable for a specific day.  The days are the first and last day of the financial year?
    Example
    User Input for Fiscal Period: 2009004
    The exit is to define a value for 01.01.2009 and 31.12.2008 (end of last year)
    Thanks

    Hello Niten,
    yes it is possible. Procedure:
    - add a new column in the report structure
    - hide this column
    - create a new text variable in this column (for customer exit)
    - now you can fill this variable during query execution based on 0FISCPER
    You don't want to filter by this variable. Right?
    Buy,
    André

  • How to create the above Fiscal period & Client Calender

    Hi All,
    I want to create Client Factory Calendar in BI System.
    Source is MS SQL DB(UD Connect) not ECC.
    I got the below information from the Business Group:
    For the moment we need to implement the Client Calendar. So periods should be according to Client Fiscal Periods. We do not need to implement public holidays, as they donu2019t affect periods.
    Client periods always contain complete weeks, starting Monday, finishing Sunday. Periods contain the following number of weeks: 5-4-4-5-4-4-5-4-4-5-4-4.
    Please calsri fy the below:
    >> Holiday calender is not required. but w/o holiday calender how we can define Factory calendor? Is it possible?
    >> How to define the fisacl periods?.
    >> When can we use these fiscal periods in the Factory Calender?.
    Please provide me step wise procedures..how to create the above Fiscal periods & Client Calender.
    Thanks in advance,
    Sri.

    hi siri.
    please go though these links
    calendar
    difference b/n Factory Calendar and Public Holiday Calendar
    hope this will help u.
    thanks

Maybe you are looking for