Variable - Current Year

Is there anyway the report will display current fiscal year's data considering Fiscalyear is a user entry optional variable ....the user neednot enter the input for optional variable as it is its purpose but what settings need to be made so as the report will only run for the current year w/o the user entering anything ?

hi Jr,
try SAP variable 0FYEAR - Current Fiscal Year ?
http://help.sap.com/saphelp_nw70/helpdata/en/3a/b92341c045ef23e10000000a155106/frameset.htm
restrict your fiscalyear with that variable.
hope this helps.

Similar Messages

  • Reporting with Time Variance (previous year vs current year)

    Good day all.
    I would like to ask for advice and help in terms of best way to make this report work:
    Let's say I need to show the % variance between the Total Operating Costs per Gross sqft over different times periods (Previous year to Current Year). The trick is that data must be compared to the same data in the previous year, i.e. if we are in June of current fiscal year, the comparison must be between Oct-June of current fiscal year to Oct-June of previous fiscal year, not the full previous year. The report formula itself would be:
    ([TCO Exp/GSF PY] - [TCO Exp/GSF CY]) / [TCO Exp/GSF PY] * 100
    My guess, I could define a static variable Current Year which developers would have to be changed every year. And then create logical columns: TCO Exp PY (where year=Current Year-1)...while writing this, I realized I'm wrong and there must be a more efficient way to do this. UPD: I've also thought about time-series function AGO, but I'm currently testing it, and I'm not happy with its performance...
    Thank you in advance...
    Message was edited by:
    wildmight

    Hi Wildmight,
    The current value will be the value you will select from the table like you normally would do. These would be values per month if I am correct. Next to the column with the current value, you create an additional column with the AGO function in it.
    Now you will have the current value and next to it the value of the required period ago. You won't need any static variables.
    Let me give you an example for the last three months.
    Period CY PY
    jan-08 50 30
    dec-07 40 20
    nov-07 45 25
    In this case the value 20 corresponds to the period dec-06.
    I hope I made myself clear.
    Good Luck,
    Daan Bakboord

  • Current Month, Current Year Variable on Posting Date

    Hi,
    I need to construct a BEx variable that will return the Current Month of the Current Year based on Posting Date. I want to be able to compare Current Month of the Current Year with Current Month of the Prior Year. I know SAP delivers variables for this based on 0CALMONTH. Is there any way to create the variable off Posting Date without having to write a customer exit?
    Thanks,
    C

    I guess you could use replacement path variables for the same. No need to write customer exits.
    Create 2 variables, one on calmonth and the other on calyear.
    Variable on Calmonth -
    type - replacement path.
    Replacement path tab - repace with variable, give variable name into which user enters the posting date, replace with key, offset start 2 and offset length 2.
    Variable on calyear -
    type - replacement path.
    Replacement path tab - repace with variable, give variable name into which user enters the posting date, replace with key, offset start 4 and offset length 4.
    to get key figures for current month and previous year, restrict the key figure with calmonth variable created above and use offset on the calyear variable created above, like zcalyear - 1.

  • Current Year Formula Variable with SAP-Exit

    Hi Experts ,
    Is there any SAP Exit Formula Variable avaliable that we can use in BEX which gives us the Current Calander Year?
    I am able to find the current fiscal period ie "0F_CUFPE" which provides the current posting period/month.
    On similar basis, I need a FV which provides me the Current Calender Year.
    Please note that I do not need Characteristic Variables for Fiscal Year .
    Regards
    Dipali

    Hi,
    If you're refering to the InfoObject 0CALYEAR, there is an exit variable available called: 0CYEAR - Current Calendar year
    Which will filter on the current year.
    br
    Mikael

  • Current Year  variable for 0CALDAY

    Hi Gurus,
    Instead of creating customer exit for Calendar day to get current Year do we have any standard variable to get the current Year if user inputs Calendar Day.
    Thanks
    Ganesh Reddy.
    Edited by: Ganesh Reddy on Oct 17, 2010 9:04 PM

    Hello,
      Following link contains some SAP BI Content variables
    http://www.sapks.com/2010/06/business-content-delivered-variables-in.html
    0CYEAR is variable which contains current year
    Regards,
    Sharayu
    Edited by: Sharayu Kumatkar on Oct 18, 2010 12:52 PM

  • Variable Report Filter (Current Year)

    Dear Gurus,
    I need a report which always will work with current year measure. (Without asking to user in selection screen) The system should automatically assign the current year. I created an object in universe. In definition tab, in the select statement I wrote   to_char(sysdate,'yyyy') . But, in report and while the system gives an error message like "Parse failed. Exception: DBD, The supplied XML is not valid. to_char(sysdate, 'yyyy')State: N/A".  I think the formula is wrong but I wrote it by referencing OSS note 1381486. Are there any suggestion? Thank you.

    Hi,
    This should have been posted in the designer section, but...
    I think I know why you are having problems getting a right answer, the parse failed message says:
    The supplied XML is not valid.
    Which leads me to believe you are using an OLAP universe (on top of BW may be?), all the solutions given here are for SQL access.
    Unfortunately, there is no string handling possible in an OLAP universe on top of BW, you would have to resort to solving this in the underlying BEx query for this universe.
    You can think along the lines of using a BEx variable that is input ready, takes multiple values, is mandatory and has a default value filled with by a user exit (which makes it default to current year).
    You can show the prompt message of the BEx variable for when the user wants to select different year(s).
    Not showing the prompt and leaving it empty will trigger the default.
    Good luck,
    Marianne

  • How to create a 0FISCPER variable for [last period of current year]

    Hello,
    Can anybody tell me how to create a (exit) variable for the last period of the current year, based on 0FISCPER ?
    Based on a single value, user entry variable based on 0FISCPER.
    I did not find any standard (business content) variables for this.
    Can anybody tell me whether the following alternative works:
    variable 0P_BA102 (last period pervious year) with offset of +12 
    Kind regards.

    Hi,
    It should work.
    You can refer to the following link:
    http://help.sap.com/saphelp_sm32/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
    Regards,
    Amit

  • Current Year and YTD in Report/Query

    Hi to all the experts here,
    I have a report requirements to show the cost in the report for the current fiscal year and last fiscal year filtering by YTD month in the report as below when the user enter the month: 12.2010, the month: 07.2010 is the first posting period of the fiscal year.
                          07.2010    08.2010     09.2010      10.2010     11.2010     12.2010     Last Fiscal Year     Last 2 Fiscal Year
    Current Year           10,000    20,000       20,000       20,000       20,000    20,000       100,000                  90,000
    Last Year              15,000    15,000       15,000       15,000       15,000    15,000       120,000                 100,000
    I know that I need to create customer exit to archieve this, but I not sure what to do to get this, I have problems on getting the figures for the Last Fiscal Year and Last 2 Fiscal Year here.
    Please help. Appreciated alot. Thanks alot!

    Hi
    The Fiscal year/period (0FISCPER) in your BW system must be maintained as starting from 07.2010 onwards then you can try the below:
    In the report Filters you can use the manual entry variable for 0FISCPER where the user can input the month restrictions.
    Then for the Current year and Previous year amount KFs you can create 2 customer exits for Current year and Previous year on 0FISCPER characteristic where you can set the interval using the values input by the user in the selection screen. (eg. If user enters 7.2010 to 12.2010 you can use these values in the exit code to set the interval for the customer exit variable.)
    This way you can have the amounts restricted by the period entered by the user in the report.
    For the structure you have mentioned in your post you can have the 0FISCPER in columns and then the KFs current/previous year in the rows so that once you have the Current/Previous YTD as created above, you will see the individual month period values also in the drilldown.
    Hope this helps.
    Regards,
    Ninad

  • Formula for finding specific date in a Current Year

    Hello ,
    Can get  a formula which i can use in variable to find date having first  Thursday in a current Year.
    So in case of Current Year i.e 2014 , Formula should return date as "01/02/2014"(mm/dd/yyyy)
    Thanks & Regards
    Gourav Joshi

    Hi Gourav Joshi,
    Create a variable as per below. it will give you "First Thursday" of the year.
    First_Thursday=
    If(DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=1) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-4)) Else
    If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=2) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-3)) Else
    If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=3) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-2)) Else
    If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=5) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())+6)) Else
    If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=6) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())+5)) Else
    If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=7) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())+4)) Else
    RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1))
    It will help you.
    Regards,
    Anish

  • Get Current year in Query Designer

    Dear all
    I don't know how to determine current year in Query Designer.
    I have a report, i want to see some indexs in bance sheet and income statement in current year and previous year. but, I can only assign with the fixed year (ex, 2010), this is not flexible. I want to get current year on system and calculate previous year.
    Please help me solve this problem
    Thanks

    Hi,
    You can use the SAP Exit variable 0CALYEAR for current year. For Previous year you can offset this by -1.
    You can refer this link for more Information,
    http://help.sap.com/saphelp_bw33/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
    Regards,
    Hari.
    Edited by: Hari Krishnan K on Jul 20, 2010 10:36 AM

  • Help needed on balance sheet plan report for the current year

    Hi BW gurus,
    I have a problem with reporting.
    I need to get  Balance-Sheet Plan Reports for the Planned year and for the current year.
    To get the report for the planned year its  straight forward just by restricting 0balance by the version to 1 and the valuetype 20.
    But I have a problem with the current year report.
    I have fiscal year and the company code as the variables.
    The report should be like this.
    If we need the report as of today(July 26 2006),we may input 2006 for the fiscal year variable.
    And the 0balance for the twelve fiscal periods should be as follows
    From jan 2006 to june 2006(fiscal periods) it should have only the actuals
    From july 2006 to dec 2006(fiscal periods) it should have  only  the plan
    I have already built a query by having two restricted keyfigures on 0balance.
    One by restricting version and valuetype 0 and 10 , and the other with 1 and 20.
    But in the report I am getting two columns of data for each fiscal period for 12 periods.0balance with actuals and 0balance with plan.
    But I need to get 0balance with actuals from jan to june(individually for each fiscal period columnwise),and 0balance with plan from july to dec(individually for each fiscal period columnwise).
    Hope you people can visualize my report.
    Please help me ASAP.
    Any kind of help is appreciated.
    My mail id is [email protected]
    Thanks in advance
    Regards
    Sam Mathew

    Hi Sam,
        Did u get this issue solved. I am having the same issue now. Can u please let me know if u have a solution for this.
    Thanks
    Prasad

  • Line Chart to Compare Current Year vs Last Year

    I am on BI 7 SP9. I need to create a line chart that shows 2 lines to compare  revenue for the current year against last year. The first line should show the revenue for the current year. The second line should show the revenue for last year. In my BEx query, I have the fiscal period values in the row and the revenue key figure in the column. Questions:
    1. How can I show 2 lines in the chart to compare revenue for the current year vs last year?
    2. There are 2 variables for the fiscal period - one for current year and one for last year. The user can enter any value range in the fiscal period variables at query runtime, but the fiscal periods for each of the 2 years must be the same. This means the number of fiscal periods that appear in the query result rows will vary (e.g.. 3 periods for a quarter or 12 periods for a full year). The user has to enter the same fiscal periods for the current year and last year variables. How can I determine the fiscal period values to plot in the line chart for the current year and then last year when the number of rows in the query results will fluctuate?
    The legend at the bottom of the chart should show JAN, FEB, MAR...DEC instead of the fiscal period values like 001/2007, 002/2007. Is there an exit I have to change to get this to work?
    Thanks for any help you can give!

    You can do it in multiple ways
    1.
    SELECT COALESCE(t1.Company,t2.Company) AS Company,
    COALESCE(t1.Sales2015,0) AS CurrentYearSales,
    COALESCE(t2.Sales2014,0) AS PriorYearSales
    FROM Sales2015 t1
    FULL JOIN Sales2014 t2
    On t2.Company = t1.Company
    2.
    SELECT Company,
    MAX(CASE WHEN YearVal = 2015 THEN Sales ELSE 0 END) AS CurrentYearSales,
    MAX(CASE WHEN YearVal = 2014 THEN Sales ELSE 0 END) AS PriorYearSales
    FROM
    SELECT Company,Sales2015 AS Sales,2015 AS YearVal
    FROM Sales2015
    UNION ALL
    SELECT Company,Sales2014 AS Sales,2014
    FROM Sales2014
    )t
    GROUP BY Company
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Filter measure column for current year

    Hi,
    I'm stuck up with issue, we have a report from three tables D1, D2 and F1. In which D1 is time dimension. Now we have report from D2 and F1 with measures, and the report is placed in Dashboard which is having year prompt.
    F1 is joined with D2 and D1 Time dimension as well, the requirement is in the report one of the measure column say X should always show the values for current year, while others will show according to prompt values.. In short I want to display one of the measure column for current year, even though the user selects the prompt value for year earlier to it the values should not change.
    Please let me know, how to achieve this.
    Thanks in advance

    I think you can still solve this.
    Whatever Srini said keep it.
    Now for the date prompt create a presentation variable.
    pass this presentation variable in the expression for measure which you don't want the current year.
    case d1.year=@{presentationvarialbe} then sum(f1.x) else 0 end
    you can also use the filter expression too.
    remove year prompt filter from the report. and then add a new filter for the measure as<>0.

  • Key figure comparision between current year and previous year

    Hello collegues,
    I have created a WEB Intelligence report with key figure ROI (return on investment which is calculated out of three other key figures (capital, revenue and costs). I would now like to calculate the percentage period (year) differences between key figure ROI - between current year (month) and previous year (month).
    Do I have to add coding within a key figure formula within WEBI Rich Tech client or within universe builder.
    The key figures were extracted from SAP BW and added to a universe which is basis for WEBI rich tech client report.
    thanks and regards,
    Christian

    Hi Stratos,
    so I see - i have to use the variable Editor and then define a measure and add coding in the formula field. Do you have an e-mail address ín order to send you the report and explain in more detail what I would like to see - here it is not possible to upload a report...
    thanks and regards,
    Christian

  • Current Year and YTD Calculation

    Hi All,
    I have fiscal year and fiscalyear/period two time chars........in my report i want one column as current year and the other coulmn as current year YTD(year to date).........
    fiscalyear/period values are between 1 to 12
    fiscal year values 1999 to 20009.
    please help on this.......
    also how do i close a thread?
    Thanks

    Create two variables on fiscal year one with user entry and the other customer exit ....use below code
    CASE i_vnam.
      WHEN 'ZPFY'.
        DATA: Z_YEAR TYPE /BI0/OIFISCYEAR.
        IF I_STEP = '2'. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = '0P_FYEAR'.
            Z_YEAR = LOC_VAR_RANGE-LOW.
            Z_YEAR = Z_YEAR - 1 .
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = '1999'.
            L_S_RANGE-HIGH = Z_YEAR.  "high value = input - 1
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
      WHEN 'ZAPOPR'.
        DATA: Z_POSTING TYPE /BI0/OIFISCPER3.
        IF I_STEP = '2'. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZAPOPR'.
            Z_POSTING = LOC_VAR_RANGE-LOW.
           Z_POSTING = Z_POSTING .
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = Z_POSTING.
            cleaR: Z_POSTING.
            Z_POSTING = LOC_VAR_RANGE-high.
            L_S_RANGE-HIGH = Z_POSTING.  "high value = input
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.

Maybe you are looking for

  • No boot disk found

    I'm using a Mac mini, OSX mountain lion or mavericks ( not sure if it's been updated) Using apple wireless keyboard and mouse Backup end up to external HDD using Time Machine I recently purchased a seagate wireless plus 1TB hard drive. During its set

  • Create  of (demo for)OVAI (transaction for create entries for each vendor)

    hi all, can anyone plz tell me how 2 create (demo for)OVAI (transaction for create entries for each vendor) thans & regards, srinivas reddy.

  • Running explain plan on a prepared statement

    I'm using IBatis to run queries against an Oracle database. IBatis runs the queries as prepared statements. I want to run explain plan on the prepared statements. I already have a shim -- a proxy java.sql.Connection object -- that takes the SQL used

  • Error 30 installing illustrator

    I'm trying to install illustrator CS4 on my XP sp2 PC but i'm getting the following error, the installation file are saved on my hard drive. Adobe Color JA Extra Settings CS4 Error: Error 30. The system cannot read from the specified device. The Adob

  • It says my serial number has been revoked

    I'm trying to install creative cloud on a second computer, but when I typed my serial number in it said it had been revoke