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.

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

  • 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

  • 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

  • Variable for fiscal year

    Hello all,
    I have a requirement to determine the current year in BPS. I made a variable and wrote a function module.
    The code I have is:
    DATA: DATE LIKE SY-DATUM,         
         CURRYEAR TYPE C,            
         CHARSEL TYPE UPC_YS_CHARSEL.
    CLEAR: CHARSEL.                   
    CURRYEAR = DATE(4).               
    CHARSEL-CHANM = I_CHANM.          
    CHARSEL-SIGN = 'I'.               
    CHARSEL-OPT = 'EQ'.               
    CHARSEL-LOW = CURRYEAR.                
    INSERT CHARSEL INTO TABLE ETO_CHARSEL. 
    ENDFUNCTION.                           
    The code is correct and i activated the function module and inserted the variable in folder. When I execute the folder, it says, variable cant be determined.
    Any clues?
    Thank you/

    HI Anil Kumar Sharma,
    I declared another in the variable called "nextyear" and derived that by incrementing the curryear with 1. this is the code. But when i run the folder, it fills only curryear. Any clues. The code is pasted below.
    Thanks a lot.
    DATA: DATE LIKE SY-DATUM,             
         CURRYEAR(4) TYPE C,             
         NEXTYEAR(4) TYPE C,             
         CHARSEL TYPE UPC_YS_CHARSEL.    
    CLEAR: CHARSEL.                       
    DATE(8) = SY-DATUM(8).                
    CURRYEAR(4) = DATE(4).                
    NEXTYEAR = CURRYEAR + 1.            
    CHARSEL-CHANM = I_CHANM.              
    CHARSEL-SIGN = 'I'.                   
    CHARSEL-OPT = 'EQ'.                   
    CHARSEL-LOW = CURRYEAR.               
    CHARSEL-HIGH = NEXTYEAR.            
    ENDFUNCTION.

  • Varibale for Fiscal Year

    Hi,
    I have created the query for which i ahve a variable for fiscal year and period, but when i try to get the data from F4 help key is taking longer time.. Please can anyone will suggest what should be the problem..
    I would like to increase the performance of the Query on Multirovider in which data is feeding from Cube and ODS.. what can be done to increase the erformance of the system
    I have already created Compression and indexes on the cube any other option to increase the perforamnce..
    Thanks and Regards
    Sonu

    Hello Sonu,
    For the info-object 0FISCYEAR  goto bex setting tab in the maintainance screen and set the value for " Query Def. Filter Value Sel " to " Only Values in the info Provider".
    This is should limit the values for the F4 option to those in the Info-Providers; If the option has already has been set to the above change it " Master Data " and see how that works.

  • Bex Report for Fiscal year

    I have requirement like as below
    In my report selection screen there will be a variable for fiscal year variable is user input.
    in report column there is one KF that is a amount field.
    if user give some value range in the variable like 2005001 to 2005003
    he want to see the amount value for year to date
    like
                   2005001     2005002     2005003
                   1000.00     200.00     300.00
                   300     400     400
    if any one knows please glide me the steps
    how to display year to date value for each fiscal period as per user input in the variable selection.
    Thanks
    samit

    Hi,
    1) You will create a customer exist varible for FYP.
    2) You will also have a user entry varible for FYP to allow the user to enter his values for YTD.
    3) Write a code in CMOD for the customer exist YTD varible.
      if i_step = 2.
          read table i_t_var_range into loc_var_range with key vnam =  'user entry variable.
          year = loc_var_range-low+0(4) .
          period = loc_var_range-low+4(3).
          concatenate year 001 into l_s_range-low .
          concatenate year period into l_s_range-high .
          l_s_range-sign   = 'I'.
          l_s_range-opt    = 'BT'.
          append l_s_range to e_t_range.

  • Job gets cancelled - Plan version cannot be planned for fiscal year

    hello,
    In R/3, I am trying to delete data using KEPM TCODEand the job gets cancelled with message "Plan version cannot be planned for fiscal year".
    Does anyone know what I should do to resolve it.
    thanks,
    Bhat

    Hello,
    Thanks for your response.
    I have checked OKEQ and
    we have entries for fiscal year planning version and in operating concern the version is locked. I don't know if I should unlock the version and what will be the impact.
    thanks,
    Bhat

  • 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

  • How to  Create  a selection variable for Fiscal period/year range

    How to  Create  a selection variable for Fiscal period/year range. The idea is to filter the query results using a fiscal period/year range user input rather than a full fiscal year input.

    Hi Priya,
    Open the query in a query designer -> in the left hand side you would find the fiscal year period under the time dimension -> right click -> create variable -> create the variable.
    The better option would be use any of the SAP provided variable. You would find them under the Fiscal year period in the left hand side in the query designer.
    Bye
    Dinesh

  • Reports with variables on fiscal year and want to display the current fiscal period values

    Hi
    i wan to display the fiscal periods in one of the reports when i give input for fiscal year, let say i will pass the fiscal year  as 2012 , then i need to display the revenue for 2012.01,2012.02,2012.03,....2012.12 and in another selection i need to restrict the revenue with the previous year.
    how can we achieve that.

    Hi,
    Refer this thread:Same thing has been discussed.
    http://scn.sap.com/thread/3365593
    Regards,
    AL

  • 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

  • Splitting is not working for fiscal year 2008

    hai experts,
    The splitting is not working for fiscal year 2008. This is critical for month end.
    pls explain me ful cycle and advise me what i have to do,
    thank you

    Hi
    Please check the documentation in the links below.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/1c/2ed140ed61712ae10000000a155106/content.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/87/3da04028f40160e10000000a1550b0/content.htm
    This gives yuo a brief on Document splitting. Please let me know if you need any further help. Please do award points if found useful.
    Karthik

  • Budget control - Assigned funds are less than payment budget for fiscal year in document item

    Dear Experts,
    We are using Former budgeting, when ever we run the transaction FMBV getting the following message to a particular user.
    Budgeting
    Assigned funds are xxxx BHD less than payment budget for fiscal year
    2014 in document item XXXX /XXXXX .
    And also when purchasing creates the PO getting similar message to a particular user.
    Purchase order 450000XXXX
    Assigned funds are XXXX BHD less than the commitment budget for
    fiscal year 2014 in document item 010 XXXX /XXXXX .
    How to know where these users were maintained.
    Thanks for the help

    Hello Itai,
    Sorry for my late reply. Have you been able to find a solution for this?
    If not, please update, otherwise please make this thread as answered.
    Sorry for the delay...
    Kind regards, Mar.

Maybe you are looking for