How to calculate financial year

Hi,
How to calculate financial yearfrom 01.04.2008 to 31.03.2009.
regards
nani

Hi,
use the below FM's
GM_GET_FISCAL_YEAR
GET_CURRENT_YEAR
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
but this will help you for a particular company code ACE_CHECK_FISCAL_YEAR
Thanks

Similar Messages

  • ABAP-HR MODULE(HOW TO CALCULATE AGE & YEARS OF SERVICE)

    HI,
    HOW TO CALCULATE AGE & YEARS OF SERVICE means for example
    I AM USING PNPCE LDB.
    (1) whose age is greater than 52.833 years with 7.833 years of service, with annual rate of pay $170,000 or more, or
    (2) age plus employment service is 65 or more, with annual rate of pay of $ 170,000 or more.
    Note that the $ 170,000 parameter would be a variable that could change annually when this report would be generated. In the past, age and service value were determined as of the run date. The determination date would also be a variable that would change when the report would be generated.
    Thanks&Regards
    Rahul.

    Hi Rahul,
    This is the 2nd warning !!! Please... use the correct or most appropriate forum.
    The ABAP Objects Forum should be used for: ABAP Object definition and implementation including encapsulation, interfaces and inheritance in ABAP Objects.
    This thread will be moved from to .
    You're asking this question in two thread, so the duplicated thread will be deleted.
    Please have a look at [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting.
    Also read this thread Welcome and Rules of Engagement.
    Greetings,
    Marcelo Ramos

  • How to Calculate Leap Year ago in OBIEE 11g

    Hi Gurus,
    I have one fact table and having one measure column. I have to calculate current year and Last year.
    Using Time series function (Todate,Ago) have calculated current year as well last year also.
    The problem is Current year is showing correct value only but Last year was showing wrong data.
    We found the problem is Leap year, last year FEB month is having 29 dates. Due to this we are getting wrong date.
    Kindly suggest me how to achieve this requirement.
    Thanks

    Hi Gurus,
    How to resolve Leap Year calculation in OBIEE 11g.
    The problems is Year Ago column.
    Please suggest me how to resolve this.
    Thanks

  • How to calculate Last year in BEx Report

    Hi Experts
    I have a requirement to create report in BEx --> report output will be Amount, Diff in percentage(Plan-Actual),Last year
    My question how we calculate the Last year and actual minus plan difference in percentage

    Hi,
    Make use of % functions in query designer to get the desired result.Please search on forum lot of examples will be there.
    Hope it helps.
    Regards,
    AL
    Edited by: AL1112 on Mar 7, 2011 4:56 PM

  • How to define financial year to start in November and end  in October

    Hi,
    I am trying to build a report with following columns
    Resort, Month, YTD Rooms, LY YTD Rooms.
    Filter on Year==2010
    The above measures
    YTD=Year to date rooms
    LY YTD = Last Year Year To Date Rooms
    The results would be
    AF, Jan-10, 300, 350
    AF, Feb-10, 200, 280
    Now for this client the financial year, starts in November, therefore their year should be Nov-09 till Oct-10.
    How can set the Year to be from november to October with a timestamp function?
    Thanks and Regards
    Giuliano

    Here's an idea you might want to try in the Presentation Layer base solely on what you shared so far:
    Assuming that the report will always be run in the "current year" as you have in your example, than this should work:
    1) Put a dummy column in your report with this CASE statement:
    CASE WHEN Table.Month ((LIKE 'JAN%' OR Table.Month LIKE 'FEB%' OR Table.Month LIKE 'MAR%' OR Table.Month LIKE 'APR%' OR Table.Month LIKE 'MAY%' OR Table.Month LIKE 'JUN%' OR Table.Month LIKE 'JUL%' OR Table.Month LIKE 'AUG%' OR Table.Month LIKE 'SEP%' OR Table.Month LIKE 'OCT%') AND (Table.Year = CURRENT_YEAR)) OR ((Table.Month LIKE 'NOV%' OR Table.Month LIKE 'Dec%') AND (Table.Year = CURRENT_YEAR - 1)) THEN 1 ELSE 0 END
    Put a filter on this column and set it to 1.
    2) Add another filter on CURRENT_YEAR and CURRENT_YEAR -1.
    NOTE: In my example, CURRENT_YEAR is a repository variable you should have (name could be different, but it should be in number format).
    The way this works is that the second filter filters your report overall on all data for "this year" and "last year." The first filter works with the data within this potential two-year period. Within this time frame, you want the data, for the months of Jan - Oct, where the year = current year and (which in logic, uses the logical operand "OR"), you want the data for the months of Nov - Dec when the year = current year minus 1. This filter will filter out Jan - Oct of "last year" and Nov - Dec of "this year," leaving you with the time period you are looking for.
    Play with the syntax, cause I didn't build this one, but it should work.

  • How to view Financial Year details in Scorecard

    Hello all ,
    We are using SSM 7.5 SP 04. We have built a scorecard with monthly KPIs. The financial year for my client is April to March. So , he wants to see the monthly data and the FY data in the scorecard. But , the timeperiod drop down box shows only 2 options for checking the yearly data ie. Year , Year to date. It is assuming calendar year and the data is coming for Apr to dec of 1 year and jan to march of second year.
    It is a compulsory requirement for the client to check the FY data. Is there any setting change to be able to see the FY data from Apr to March ? Also , the client wants to see the data for all the 12 months in the FY year. But only 11 months data is displayed.
    Thanks
    Vijay

    Hi Vijay,
    You need to set the calendar year before any data is loaded into the Model. If data is already loaded, you cannot change the calendar year. In this case, you just need to remove the data, change the fiscal year, and load the data again.
    Check the following note for the steps to follow in order to bring data from queries with FISCAL YEAR or FISCAL MONTH characteristics:
    https://service.sap.com/sap/support/notes/1325802
    Best regards!
    Ricardo Vieira

  • How to calculate Prior Year To Date in SSRS

    Hi,
    I've been developing reports in Crystal for a while. The new ERP software we have just purchased uses SSRS for all of their reports. I just started converting the crystal reports to SSRS. I can't seem to find an easy way to do a calculation for Prior Year
    to Date or Prior Year Month to Date in SSRS. Can somebody help me?
    Thanks,
    Cindy

    Your best bet would be to use a calendar table in the TSQL queries. I wrote an article on them here: http://social.technet.microsoft.com/wiki/contents/articles/29260.tsql-calendar-functions-and-tables.aspx
    Alternatively you can use a formula like:
    =DateValue(DATEADD(DateInterval.Day,1-DATEPART(DateInterval.DayOfYear,NOW()),Now()))
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • How to get consolidated last financial year(1-July-2011 onwards) Tablesize

    Hi All,
    My database contain 120 tables.
    Could you please suggest me the consolidated last financial year (1-July-2011 onwards) data size for 120 tables shared before?
    How to get this/Is this possible Please advice.
    I used below query, but date wise..how to do. pls suggest.
    SELECT sum(BYTES)/1024/1024/1024 "SIZE IN GB" FROM DBA_SEGMENTS WHERE SEGMENT_NAME IN(Table1,table2…)
    Regrads,
    Venkat

    If the data is not partitioned, it is not easy to get the exact size, and it might be impossible.
    I can see two approaches.
    - use the vsize function to calculate the size of a row, and/or individual columns (I don't recall whether vsize supports the *)
    set up an appropriate where clause
    - get the avg_row_size from user_tables. Count the number of rows by year. Multiply.
    Sybrand Bakker
    Senior Oracle DBA

  • How to calculate the previous year YTD balance in profit & loss statement

    Dear all,
    I would like to seek for advice on how to calculate the previous year YTD (Year to date) balance in profit & loss statement
    For example, if I enter May 2009, the YTD value should be a sum up of value from Jan to May.
    I have tried the current year YTD could be set in column selection dimension "financial period"
    FACT PER( Code = YearFirst(@Per):@Per )  Order By PER.Code Descending
    Then, I tried the previous year YTD in another column using
    FACT PER( Code = YearFirst(@Per-12):@Per-12 )  Order By PER.Code Descending
    But it failed -> Abnormally display three column, while the financial period I enter 200903 in parameter @Per
    Would anyone kindly help me on that?
    Regards,
    Simon Chiu

    Dear Jim,
    Thanks for your reply.
    However, the problems still cannot be solved.
    My expected output is 1 column listing the YTD value from previous year.
    I have tried two times using both the Code = YTD(@Per-12) and Code = YearFirst(@Per)-12:@Per respectively. However, the Excel display various column.
    I am using Financial Period 200903. In the last three column, it display the data in Financial Period 200901, 200902 and 200903 respectively.
    For the current year, the YTD is correct and show 1 column listing the sum of account in the Financial Period 200901, 200902 and 200903
    Would you kindly advice the code setting and how to set? Also, how I can access the syntax builder?
    Regards,
    Simon Chiu

  • How to calculate YTD and Last year YTD on Date in Bex

    Hi,
    I have a requirement in which I need to show the report as following format.
    I need to show    Year>monthday as Hierarchy. user will drill down on Month to Date.
                 Del Qty              Ord Qty              Del  Qty LY              Del Qty YTD                  Del Qty  L YTD
    Year
    > Drill Down to Months
            Jan
            Feb
            Mar
              ---> 1.03.2010
              ---> 2.03.2010
              ---> 3.03.2010
            Dec
    I have Calday, Calmonth, Calyear all three objects.
    Now my question is how I can achive this? On which i need to create hierarchy?
    and how to calculate the YTD at day level.
    Note:- in the selection calyear is mandatory. User wants to display as per year.   So What infoobject I need to take in selection?
    and the way to calculate YTD on Day (in the case also ,where user doesn't give the date in selection)
    Plz reply asap its uregent !!!
    Thanks in advance,
    Amit

    Hi,
    As per my understanding I think YTD means JAN to current date result. I means say if user enter 062005 then result in YTD should be from 012005 to 062005.
    And to do this you need to write a customer exit variable where LOW field of internal table you will put JAN year and HIGH will contain month year entered by user.
    Hope this will help you.
    Suneel

  • How to calculate first date and end date of this year in Query

    Hi Expert
    I want to calculate following dates with inputted date in query.
    I have no knowledge on ABAP and I just can create a query with simple logic.
    Could you teach me how to calculate following date?
    (If inputted date is April 12 2009)
    - First date of this year (Ex January 1 2009)
    - End date  of this year (Ex December 31 2009)
    - First date of last year (Ex January 1 2008)
    - End date of last year  (Ex December 31 2008)
    - First date of this month (Ex April 1 2009)
    Thank you!
    Take

    HR_JP_MONTH_BEGIN_END_DATE   use this FM to get the begin and end date of the Date you are passing. eg when u give input as 04/12/2009, it will return
    04/01/2009 as begin date
    04/30/2009 as end date
    pass the Year in this FM HR_E_GET_FISC_YEAR_DATES, you will get the Fiscal year Begin and End Dates
    Abh

  • How to read data from Logical Database ADA for more than one financia year

    Hi,
    I need to read data from ADA logical database and ANLCV node for current financial year 2007 and for the next 3 years – 2008, 2009, 2010. When I do this using program attached below, I receive only data for one year, which is entered at the selection screen in the field BERDATUM. How should I modify my program to read ANLCV node for more then one year ? Could anybody help me ?
    Kind regards,
    Zbigniew Debowski
    REPORT  ZWRZD075.
    NODES: anlav, anlcv.
    START-OF-SELECTION.
    GET anlav.
    WRITE:/ anlav-anln1, ' ', anlav-anln2.
    GET anlcv.
    WRITE:/ anlcv-kansw, ' ', anlcv-knafa, ' ', anlcv-gjahr.

    Hi!
    Have you already tried your luck in Java Programming forum?
    Regards,
    Thomas

  • How to calculate Number of weeks in Year ?? urgent

    hi gurus,
    i have to calculate the number of weeks in year. could you please suggest me is there any function module for that or do we need to create variable to get the number of weeks?
    regards

    Get some pointers frm
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/help-on-function-day_get_week-1067350
    Re: printing calender
    Calculating the number of days of a year including leap year
    Re: How to calculate No.of Weeks?

  • Calculate week no based on financial year

    Hi
    Financial year starts with 01-Apr . I need to calculate week no based on 01-APR(financial year) not 01-Jan
    for each date. Is there a way to calculate based on this

    It works for all year long :-)
    SQL> ed
    Wrote file afiedt.buf
      1  with testdata as (
      2     select date '2011-04-01' + 7 * (level-1) dt from dual
      3     connect by level <= 60
      4  )
      5  --
      6  -- End of test data
      7  --
      8  select
      9  to_char(dt,'YYYY-MM-DD') the_date,
    10  to_char(add_months(dt,-3),'WW') fiscal_week,
    11  to_char(add_months(dt,-3),'IW') iso_fiscal_week
    12  from testdata
    13* order by dt
    SQL> /
    THE_DATE   FI IS
    2011-04-01 01 52
    2011-04-08 02 01
    2011-04-15 03 02
    2011-04-22 04 03
    2011-04-29 05 04
    2011-05-06 06 05
    2011-05-13 07 06
    2011-05-20 08 07
    2011-05-27 09 08
    2011-06-03 09 09
    2011-06-10 10 10
    2011-06-17 11 11
    2011-06-24 12 12
    2011-07-01 13 13
    2011-07-08 14 14
    2011-07-15 15 15
    2011-07-22 16 16
    2011-07-29 17 17
    2011-08-05 18 18
    2011-08-12 19 19
    2011-08-19 20 20
    2011-08-26 21 21
    2011-09-02 22 22
    2011-09-09 23 23
    2011-09-16 24 24
    2011-09-23 25 25
    2011-09-30 26 26
    2011-10-07 27 27
    2011-10-14 28 28
    2011-10-21 29 29
    2011-10-28 30 30
    2011-11-04 31 31
    2011-11-11 32 32
    2011-11-18 33 33
    2011-11-25 34 34
    2011-12-02 35 35
    2011-12-09 36 36
    2011-12-16 37 37
    2011-12-23 38 38
    2011-12-30 39 39
    2012-01-06 40 40
    2012-01-13 41 41
    2012-01-20 42 42
    2012-01-27 43 43
    2012-02-03 44 44
    2012-02-10 45 45
    2012-02-17 46 46
    2012-02-24 47 47
    2012-03-02 48 48
    2012-03-09 49 49
    2012-03-16 50 50
    2012-03-23 51 51
    2012-03-30 52 52
    2012-04-06 01 01
    2012-04-13 02 02
    2012-04-20 03 03
    2012-04-27 04 04
    2012-05-04 05 05
    2012-05-11 06 06
    2012-05-18 07 07
    60 rows selected.ISO Week (IW) works with a different way of defining week 01. Using IW April 1st will become week 52. You will have to decide if that is correct according to your finance department :-)

  • How to create opening balance (financial year - inclusive) as calculated column

    Hi all
    i'm trying to add a opening balance (financial year) column to a table.. Or i guess it's more of a summed balance for a specific date, and repeated for a defined date range.
    The financial year is 1-july to 30-june. the desired output column below is what i'm trying to get. It's the sum of balance as at the 1st of july for that year
    Date |balance|desired output
    1-Jul-2014| 10| 11
    1-Jul-2014| 1| 11
    1-Aug-2014| 400| 11
    .... 11
    1-Jun-2014| 50| 11
    1-Jul-2015| 7| 7
    etc
    I tried using startofyear() with lookupvalue() but that errors out if there are two or more rows for the start of the period (like 1-jul-2014).. Everything else i've tried either gives me the wrong number or #errors
    Thanks
    Jakub @ Adelaide, Australia Blog

    Jakub, is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

Maybe you are looking for