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

Similar Messages

  • 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

  • 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

  • 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

  • Texts for Fiscal Year Period

    Hi all
    We are currently using Fiscal Year Variant Z6(July - June, 4 special periods).
    When we display the texts for Fiscal Year Period in a Query it displays as CALMONTH FISCYEAR. E.g. July 2004, which is FISCPER 01.2004 but Calmonth 07.2003 (July 2003). I want the texts to display as the correct calendar year month, not as a combination of calendar month with the fiscal year.
    I have tried to maintain the texts of 0FISCPER, but I get the following message "The master data table of char. 0FISCPER is not generated, operation terminated"
    Has anyone managed to solve this problem?
    Thanks in advance
    Chami

    Chami,
    I see the problem. The Year Part of the Text is wrong.
    Unfortunately this means that Fiscal Year cannot be used to display the texts.
    The solution to your problem is to have the description from the calendar month/year in the column headings by adding the calendar period to the data target, convert the fiscal period to calendar period on data loading (using provided date conversion functions in the formula builder) and use it for display purposes. The fiscal year is still used as selection criteria (as a filter)
    The other solution is to have text variables created from the Calendar period and used in the column headings
    Hope that helps!
    Rishi

  • Variables for Fiscal year YTD, MTD and Quarter to data

    Hello Gurus,
    I have a fiscal year that runs from September to August. Is it possible to create a customer exit variable for Fiscal year YTD, fiscal year MTD and fiscal year QTD (quarter to date) based on sy-datum and not though user entry.
    If yes, then how should I restrict my key figures so that the user don't have to enter any date and the varaibles derive the data based on sy-datum.
    Looking forward to your expert advices
    Thanks,
    Rishi

    Hi Rishi,
    I understand your query some extent,You can create Characteristic varaible with processing type  Customer exit for fiscal year MTD and fiscal year QTD (quarter to date) based on sy-datum.
    If you want to see fiscal year MTD and fiscal year QTD  values in the column level, you have to create Text variable with replacememnt path.
    Do as follows.
    1) Create Characteristic varaiable  with processing type Customer exit. Search for required code in the SDN.
    2) Create the restricted keyfigure on required keyfigure.  Restrict it on fiscal year MTD and fiscal year QTD  with Char variable to enter year value.
    3)After maintaining the restricted keyfigure  (In the same step ) Create a text variable to get the value populated with the year specified with the processing type Replacement path with characteristic Fiscalyear.
    I hope above steps definetely help full for you.
    If any case you need  help let me know.
    Thanks,
    Chandu.

  • BSC:  Display values for Fiscal Year/Period

    Hi all,
        We are trying to create a small test scenario to know about balance score card. We have a cube which has Actual and Plan data in one KF diffentiated based on Value type character. Time character is fiscal year/period.
    We want to display a graph which displays actual and plan for fiscal year/period wise. But when we execute the score card it shows the total year's plan and actual for the individual fiscal year/period. But ideally it should display actual and plan for the respective fiscal year/period.
    we have created two value field in the measures of score card. and formula a/b (Plan / Actual ) is used.
    Please guide us in solving the problem.
    Regards,
    PM

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi
    <Br>
    Do you have Fiscal Year Period in the Rows of your BW Report? If not, please try that.
    <Br><Br>Hope it helps.
    <Br>
    Cheers
    Abhijit
    <Br>* It's a good habit to reward someone with points in SDN if you think his/her
    response was helpful to you
    </FONT>

  • F4 Help Option for fiscal year/period to show most recent one first

    Hello Friends, We have audit team which wants this F4 Help for fiscal year/period to show the per/year in the current one first and then old one. Like 007/2007, 006/2007 -
    012/2005
    Please tell me if there is any Settings in Web template or in BI to make this work. Please help asap since auditor are required to test the reports for SOX.
    Thanks
    Regards
    SK

    i don't think it's possible... if you want you can restrict it to fiscal year 2007.

  • Invalid value for Fiscal year/period

    Hi all,
      I have an user exit variable which populates the fiscal year period value from two separate fields.
    1) Fiscal Period
    2) Fiscal Year
    But when I contatenate it and place it in the format 200601 the report in BEx gives me the error
    "Value 200601 for user-exit variable ZRMA_FIP is invalid"
    ZRMA_FIP is my variable name
    The code I have is:
    WHEN 'ZRMA_FIP'.
      l_yr_zrma_fip = l_v_cur_year.
      l_per_zrma_fip = l_v_cur_period.
      CONCATENATE l_yr_zrma_fip l_per_zrma_fip INTO
    l_calmth_zrma_fip.
            r_vari-low = l_calmth_zrma_fip.
            r_vari-sign = 'I'.
            r_vari-opt = 'EQ'.
            APPEND r_vari TO e_t_range.
        ENDCASE.
    I thought I had to take care of internal/external format but nothing is working...can anybody help?
    thanks

    Hi
    I have demo code
    hope that will help u.
       WHEN 'ZMXFIPED'.
    clearing the storage areas used above.
         CLEAR: l_s_range , loc_var_range .
    checking step if it is after inputing the variable value.
         IF i_step = 2.                "After selecting of input variable
    looping at interval range table .
           LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZMSFPER8'.
    assigning values to year and period values.
             l_year_exit   = loc_var_range-low+0(4).
             l_period_exit = loc_var_range-low+4(3).
    putting the from and to values together with year and period values.
             CONCATENATE l_year_exit '001'  INTO l_s_range-low .
             CONCATENATE l_year_exit l_period_exit INTO l_s_range-high .
    sign I-> includes the range between.
             l_s_range-sign =  'I'.
             l_s_range-opt =   'BT'.
    appending the fianl interval range table.
             APPEND l_s_range TO e_t_range.
    exiting after appending.
             EXIT.
           ENDLOOP.
    clearing the storage area for next iteration.
           CLEAR: l_s_range .
         ENDIF.
    by using tha logic u can try.

  • Format for Fiscal Year Period 0FISCPER

    Hi,
    Im uploading the fiscal year period into BW infoobject 0FISCPER. Im uploading it in the format eg: 003.2005 but it is getting read into bw as 003.2000.
    Im using Excel/ CSV file and the field is converted to Text.
    Does anyone know what format I have to use to upload fiscal year period and get it in the format I want ?
    ie 003.2005 ?
    Regards,
    Dominic

    Hi Dominic,
    0FISCPER is a NUMC 7 infoobject. And it takes your 003.200 seven symbols leaving the last symbol. Though, the output format is length of 8.
    A'm not sure if you are dealing with external format (in this case try to enter 0032005) or with internal (then try 2005003).
    Best regards,
    Eugene

  • 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

  • F4 help for Fiscal year/period gives junk values

    Hello All,
    We have a web query based on a ODS. FISCPER is having variable and used for selection in query. ON selection screen , when user go for F4 help of fiscper , he gets lots of junk values such 001.0001,002.0002 etc. All these values are not valid for our fiscal year variant Z4 .I checked t009B table , but of no use .It does not contain those values at all.When i checked the SID table for Fiscper , i found those junk values there in SID table.Anybody knows how to correct SID table without hampering the system?
    Regards
    Yogesh

    HI Yogesh,
    When you see entries in SID table, that means these Invalid entries were loaded into Cube/ODS, while loading some transaction data.
    So, if that transaction data exists in the ODS/Cube, and you delete these values from SID table, I guess it is going to create some problems.
    A solution I could think of is to change the FISCPER InfoObject properties in Business Explorer tab. You have an option of changing the source of the F4 help, instead of fetching values from master data, it can fetch from the DataTarget itself. So, it will show only valid values to the users.
    Option - Business Explorer tab -> Query Def. Filter Value Selection. (I believe this property can be changed any time)
    Regards,
    Sree
    Message was edited by: Sree Damodararaj

  • Remainder for Fiscal year period

    I am using Fiscalyear period vairable in one of my Customer Exit in BW.
    Below is the pseudocode for which i am looking for ABAP code, please help me in coding:
    in L_S_RANGE-LOW i am going to get 0102006 (Fiscal Period)
    Now i want to catch period in one var i.e L_S_RANGE-LOW(3)=010
    How to save it in some variable with decleration part?
    now since 0 is coming in with the period value for to supress it?
    Now i wanna calculate remainder of 10 after diving by 3? i.e. 10/3?
    please help me in coding.

    Please try if the below code helps you.
    data: l_mon(3) type n.
    data: l_rem type i.
    l_mon = l_s_range-low(3).
    shift l_mon left deleting leading '0'.
    l_rem = l_mon / 3.
    write:/ l_rem.
    Kind Regards
    Eswar

  • BPS-Configuration of data columns-Add variable to Fiscal year/period

    Dear experts,
    I have the following message when I run the manual input excel layout -
    >>
    "The environment has changed; the layout can no longer be executed"
    I guess actually it is because of the variable i added to a charcter "0FISCPER" in the data colomn.
    When i remove the variable and replace it with a fixed value, the error message disappeared and the excel layout works very well.
    Could anybody tell me what is the root cause for this error? How could I debug it and correct it?
    Thanks very much in advance!!!

    Thanks for you both for the reply.
    Hi, Sharma,
    The layout works when I restrict the 0FISCPER with a fixed value directly on the layout definition level.  The variable I made was defined at the planning area level and added to the 0FISCPER at the layout level in the u201Cdata colomnu201D.
    Hi, Panda,
    The fisper variable is devrived from a u201CFixed valueu201D which I defined at the planning area level.

Maybe you are looking for

  • If you rub the edge of the fingerprint scanner in a circle, why does the screen drop down?

    MY daughter was drawing circles around the metal part of the fingerprint scanner and noticed the screen contents moves to the bottom of the screen instead of the top. Then it goes back to the top when touched again. Why does it do this?

  • How to get rid of a very little amount at the apple-account?

    I live in two countries Denmark and Sweden. I have got at presentcard only to be used in sweden itunes store. To change the country of my applestore, I have to empty my account. But how do I get rid of the last (very little) amount of 1 DKK? Best reg

  • ADOBE FLASH PLAYER UPDATE

    I have a Macbook Pro. My Adobe based downloaded info such as video's etc does not want to operate, it flags 'Flash out-of-date'. I have tried downloading the 'official' compatible Adobe update from the 'only update' recommended from these pages, but

  • Apple TV Speaker Problem! HELP!

    I am using my apple tv with my tv speakers (Which are Bose). I am buying yamaha speakers for my patio  is their a way i can have two speaker systems connected to the apple tv with the ability to switch between them without having to unplug them. Both

  • Sequence issue with Toplink 9048

    We are trying to get sequences to work using Toplink 9.048 but keep getting errors. We reference are sequences in our descriptors like the following: descriptor.setSequenceNumberFieldName("ACRS_APPOINTMENT.ID"); descriptor.setSequenceNumberName("ACRS