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

Similar Messages

  • Issue with Fiscal Year Period in Custom Extractor

    We have a custom extractor that pulls posting period (PERIO) and Fiscal Year (GJHAR)...once we move it to BW we do a concatenate in the transfer rules to get Fiscal Year / Period.  Before we did the ERP Upgrade the concatenate worked and then  after the Upgrade it stopped working.  I have checked RSA3 and the extractor is not pulling the fields any differently then before.  I have also tested the same concatenate in our development system and it is working.  Does anyone have any idea what might be happening? 
    Before we were getting data that looked like 2008001 and now thet data is saying 8  1200.
    We also have another custom extractor that does the exact same thing and it is working!
    We are stumped....can anyone assist?
    Thanks!
    Caroline

    I dont understand why you had to extract period and year?
    Can you pl explain. Do you have other fields in the extractor, if so what are they?
    Can you paste your code here to look at.
    Ravi Thothadri

  • Problem with Fiscal Year/Period

    Hi Expert,
    I am facing an issue with Fiscal year/per in my query. User is running the report on web. When he enters Fiscal year and period in selection screen, the report fetches correct data, however if I go to the information tab, there the value of the fiscal year/per is wrong. e.g. The user enters 010 2007. The report fetches 010.2007 data only but in the information tab, the value of the variable is shown 010.2008
    Please help me in identifying the issue.

    There might be one more variable in the query which is not of type ready for input.
    Fiscal year/per  can be the name of two variables in the query.
    Check in the query if you have one more variable.
    Hope this helps.

  • Web Report not printing the fiscal year period variable value

    Hi,
    In web report where in one text element, we enabled the fiscal year period variable value to display
    in the report result.
    If we run the report then this fiscal year period is displaying in the general information.
    We have print button (Java Code),  where user can take a printout of the same report.
    In the printout this Fiscal year period is NOT PRINTING, other variables like rollup time, technical name of report etc are printing perfectly.
    It is required to print the fiscal period also in the print out of the report.
    Any help to come out of this.....
    Thanks
    Srinivas

    Hi
    Any Help.....
    Srini

  • Netweaver 04s F4 on Fiscal Year / Period Variable does not retun any value

    Netweaver 04s
    F4 on Fiscal Year / Period Variable does not retun any list. When I tried to run the same query in RSRT, It gave a screen where it stopped at a break point.
    62     *_____________________________________________________________________
    63
    64     *              error in >> l_repid       <<
    65     *                       >> l_include     <<
    66     *                       >> l_source_line <<
    67     *__________________________^^^^^^^^^^^^^^_____________________________
    68                 BREAK-POINT.                                   "#EC NOBREAK
    69                 l_message = rs_c_true.
    70               ELSE.
    71                 CALL FUNCTION 'RRSV_SYSTYPE_GET'

    Press F5 after that..lets see wat happens to it.
    and tell wat value is there in your 0FISVARNT infoObject.
    Regards,
    San!

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

  • Currency Tranlation Type with Fiscal Year Period

    Hello Friends, I have a requirement to Choose the Currency Conversion in Context Menu right mouse click on report and then select "Currency Tranlation Type" Monthly Average (002M) thenCurrency Tranlation Type should take the fiscal period/fiscal year as time reference for conversion. Please suggest how to do this
    since in RSCUR, When I create the Currency Tranlation Type only Time reference is Current Date etc. but we want is Fiscal year / period so that If User select
    006.2007 -0102007
    Currency for 006 2007 Should be converted as Month end rate of 006
    AND in 010. 2008 Should be converted as Month end rate of 010
    Please suggest how to do this
    Thanks
    Soniya

    Hello , Good response but thats all standard which I know. Please help me to resolve the problem as stated below
    1. I have created a Currency Translation Type " <b>FiscperConversion</b>" <b>"ZVHGR"</b> now this has Exchange Rate Type from Variable "ZVARN" (Which is a variable single value manual input on 0RTYPE Infoobject for exchange rate.)
    2. Now Currency Tab: Target Currency is selected from Variable placed in the Report. ZRPVAR.
    3. Now the Variable Time Reference is used.  Standard Infoobject 0FISCPER
    which is beginning of period.
    Now all the above is done. Let go to the query and For Value of kEYFIGURE "Audit Balance" in Conversion Tab Conversion Type is specified is "FiscperConversion" ZVHGR"same as above and thats it. <b>But the problem is here user want a variable that user can select the Conversion Type Instead of Hard coding.</b>
    Please suggest how to create this variable for Conversion Type and specify in query designer since In Conversion Tab this is not allowed to have variable.
    Please help me very soon
    Thanks
    Soniya Kapoor
    null

  • Issue with Fiscal Year Varient Period modifications for 2012

    Hi All,
    Can you please advice how the Fiscal Year Varient modified periods be transported to different clients.
    The issue is, we have 2012 Periods already setup in DEV and transported to QAS and PRD, now the clinet came up with different periods for 2012. I have modified the periods as requested and captured them in transport.
    When the new transport was sent to QAS, the new periods are appended to the old periods, instead of replacing the old periods.
    any help is much appreaciated.
    Thanks
    Shasha

    Hi All,
    My issue has been resolved, we figured out that we need to delete the existing calender and capture that in transport and  then recreate the calender for 2012 with new periods and capture this in the same transport and this works.
    Instead of deleting the existing calender we changed the values before, which is the reason it was appedning the previous periods and the new periods.
    Thanks
    Smitha

  • I am getting error with Fiscal Year Period

    Hi Gurus
    When i am loading data into Data Target from ODS i am getting this error
    Time conversion from 0CALDAY to 0FISCPER (fiscal year Z1 ) failed with value 02000801
    Can u please help me to solve this issue
    Thanks & Regards
    Mahi

    There is somthing wrong in 0calday value (02000801); it should be 20000801 fro first of augost 2000.
    Che data in your ODS.
    Hope it helps.
    Regards

  • Up to the period : Fiscal year period Exit variable is not working

    Hi Experts,
    I have the following code to get the upto the Fiscal year period variable .It shoudl fetch the Values  From the starting of the Fiscal period like 2009001 whatever the  period user enters.But currnelty it is not woking.Please let me know am I doing any mistake in code.currently it is only fetching for the month user enters not up to the period.
    Prasad
    Variable Name : ZUPTOPER
    User Entry  Var : 0P_FPER
    WHEN 'ZUPTOPER'.
        IF i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
          WHERE vnam = '0P_FPER'.
            fper = loc_var_range-low.
            fper+4(3) = '001'.
            CLEAR l_s_range.
            l_s_range-low      = fper.
            l_s_range-high     = loc_var_range-low.
            l_s_range-sign     = 'I'.
            l_s_range-opt      = 'BT'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.

    Hi Prasad,
    This would be happening if you have put the user entry variable in the global filter of your query.
    As a result the complete data set is restrcted to get the data only for one month.
    Please use the variable for user entry month in a selection and not globally.
    -Vikram

  • Text variable for Fiscal year/period

    Hi gurus,
    We are on BI 7.0 (PL 15). In G/L i am using the standard 0FISCPER text variable 0T_FPERF in the columns, which should e.g. produce the text "04.2008".
    However instead it displays "4  .0800". Adding Fiscal year/period 0FISCPER to drilldown shows a correct format in the rows "APR.2008", so the problem seems to be only with the text variables.
    I have checked on a reference 7.0 system where the same variable is working fine, so i assume that some fix must be available. Any hints as to what should be performed to correct this display error?
    Points will be rewarded.
    BR
    Morten

    Hello Jamspam,
    I had a similiar problem with indicators in BEX. I had an numerical indicator that displays me value in a very weird way.
    My solution was to upgrade my frontend, with SAP Business Explorer patch.
    Have you got the latest BEX patch (or others) on your frontend? No guarantees that will solve your case, but for me it worked
    Regards,
    Bruno

  • Custome variable exit for fiscal year/period

    Hello BW Gurus,
    Q1[1,2,3] Q2[4,5,6] Q3[7,8,9] Q4[10,11,12] quarterly periods
    I have a custom variable exit as shown for fiscal year period
           IF LOC_VAR_RANGE-LOW+4(3) =< '003'.
              L_S_RANGE-LOW+4(3) = '001'.
           ELSEIF LOC_VAR_RANGE-LOW+4(3) > '003' AND
                                              LOC_VAR_RANGE-LOW+4(3) =<'006'.
              L_S_RANGE-LOW+4(3) = '004'.
           ELSEIF LOC_VAR_RANGE-LOW+4(3) > '006' AND
                                                LOC_VAR_RANGE-LOW+4(3) =< '009'.
              L_S_RANGE-LOW+4(3) = '007'.
           ELSE.
              L_S_RANGE-LOW+4(3) = '010'.
           ENDIF.
    Now this works fine to give me the Current Quarter ....say if user puts 005/2007 i get the data Current quarter as [4+ 5] i.e. April and MAy data. Now for <b>Previous Period</b> I gave an offset as -3 to -1 inorder to get data for Q1[123] but the requirement is changed and I want the same time period i.e. [1+2] and not the entire quarter since the Current Quarter calculates only for 4 and 5.
    I hope u are getting my point....please give your suggestions will reciprocate with lots of points

    Hi gaurav,
    Basically If I am selecting period 005 I am getting the data for 4 and 5 as Current Quarter i.e. April is the starting period of that Q2.
    Similarly the previous Quarter should also give me data for period 1 and period 2.
    Right now the offset I gave is -3 to -1 on my custom variable so i am getting data for the entire previous quarter which is Q1[1,2,3] but in reality i just want data for period 1and period 2.
    Can you please help me in this
    Appreciate your concern
    Thanks

  • Custom variable for fiscal year/period

    Hi BW Experts,
    My problem is only fiscal year/period is populated
    (fiscal year and posting period is not populated) and I need to have a custom exit ...that if the user enters 006/2007 i need to have a varaible which will contain 001/2006 to 012/2006 ..i.e data for entire year.
    It doesnt matter which year the user enters ...i should fetch data for the entire year
    I am very weak in ABAP programming ..if any body can share their experience..I would appreicate with full points
    Thanks

    Create a customer exit  variable(not ready for input) var1 with interval
    var2 is a ready for input variable that take the value entered by the user.
    IF I_STEP = 2.
    WHEN 'var2'.
          DATA: v_mth_beg TYPE d,
                     v_mth_end TYPE d
          REFRESH e_t_range.
          CLEAR l_s_range.
          LOOP AT i_t_var_range INTO loc_var_range
                   WHERE vnam = 'var1'.
            EXIT.
          ENDLOOP.
          CONCATENATE loc_var_range-low+0(4) '001' INTO v_mth_beg.
          CONCATENATE loc_var_range-low+0(4) '012' INTO v_mth_end
          l_s_range-sign = 'I'.
          l_s_range-opt = 'BT'.
          l_s_range-low = v_mth_beg.
          l_s_range-high = v_mth_end.
          APPEND l_s_range TO e_t_range.
    try this out.Hope it helps.
    Regards,
    Rakesh

  • Variable for Fiscal Year Period in cube "0ECCS_C01" - Urgent

    Hi all,
    I have created a query based on cube "0ECCS_C01". I have restriced the characterstic " Fiscal Year Period" on  "Period/Fiscal Year (Single Value Entry, Required)" variable. Output of the query are just 2 numbers : sum of "cumulative value GC" and sum of "period value gc" for given period. This query is working fine in query designer. The variable takes input in following form "001.2008". I have checked that in analyzer that the 'key' value of the variable is in this format "001.2008".
    Now in VC , when i place "001.2008" in start point coding for fiscal year, it is giving error. Can any one please tell me that why it is throwing an error.I have given the same format as i gave in query designer. or shud i give period in some other format??
    Please respond.
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    Hi,
    can you give us further information about the data type in the cube resp. the infoobject, which is used in the cube for the fiscal year/period?
    Maybe you can try 0002008. Can you check which values you can enter when you execute the query in the web, so that the value helps for the variable comes up?
    Best Regards
    Marcel

  • Custom exit variable for fiscal year/period

    Hi BI Experts
    1) In one of the column i just want Budget data to be displayed for the entire year..i.e even if the user enters 005/2006 for fiscal year /period that column should display 001/2006 to 012/2006 Budget.
    I have created a restricted KF for 0AMOUNT restricted by version(for Budget), valuetype (for Budget )
    now how do I assign variable for Fiscal year/period...and the problem is posting period is not populated ...I mean there is no transformation for that...
    Can you share your experience on that ...full points wil be awarded...
    Thanks

    Hi Ajay and Pradhiba
    I am really sorry for assigning you guuys points ...wasa bit busy ...
    The problem is that the year and posting period is not populated...there fore I cannot use those time characteristics...
    Now I have only fiscal year/period populated..now i want
    if the user enters 005/2006 ....i want my first column to calculate the data for 001/2006 to 012/2006 ...thats the req...
    can u share ur ABAP experience in that...
    thanks

Maybe you are looking for