Date range using Fiscal Year

Hi,
Please tell me the function module to get this data.
My input is Fiscal Year -2008(for eg).
I need the output with
          f_day = 01.04.2008
          l_day = 31.03.2009
How to get this?

Hi,
I think SAP considers fiscal year from 01.01.2008 to 31.12.2008
And FM for this is 'HR_E_GET_FISC_YEAR_DATES'
So what u can do this is create an Z-FM and paste code as in Standard FM which is given above
In code the changes will be
   FISC_FECINI = FISC_YEAR.
   FISC_FECINI+4(4) = '0401'.
   FISC_FECFIN = FISC_YEAR.
   FISC_FECFIN+4(4) = '0331'.
Let me know further.
Cheers,
Parth Parikh

Similar Messages

  • Using Fiscal/Year Period to get last year all months data

    Hi,
    Had a requirement to get Last Years 1-12 months data based on Fiscal/Year Period. So here i am using Fiscal/Year period as my input. Please let me know with code.
    Regards,
    Vishnu

    Hi ,
    Where you want to write code ?
    Well the basic logic will be like :
    TYPES: BEGIN OF ty_range,
    sign TYPE c LENGTH 1,
    option TYPE c LENGTH 2,
    low TYPE c LENGTH 8,
    high TYPE c LENGTH 8,
    END OF ty_range.
    DATA : t_range TYPE TABLE OF ty_range,
    w_range LIKE LINE OF t_range.
    DATA :v_lastyear type c length 4  .
    v_lastyear = sy-datum(4) - 1 .
    w_range-sign = 'I'.
    w_range-option = 'EQ'.
    concatenate  v_lastyear '001'  t into w_range-low.
    concatenate  v_lastyear '012'  t into w_range-high.
    APPEND w_range TO t_range.
    ****it will select data from source package for last one year .Internally year and period store like YYYYPPP  (2011001)
    select  SOURCE_PACKAGE WHERE 0fiscper  IN t_range.
    you can modify selection statement as per your requirement .
    hope this will be helpful .
    Regards,
    Jaya Tiwari

  • Change in Specify Transfer Date/Last Closed Fiscal Year in Asset Accounting

    Hi,
    While uploading the asset master data and values,I have given the Specify Transfer Date/Last Closed Fiscal Year date as 31-12-2008.But as per the fiscal year 4-4-5,2008 closed on 03-01-2009.
    what are the consequences,If we change the Specify Transfer Date/Last Closed Fiscal Year date from 31-12-2008 to 03-01-2009 as the 2008 closed on 03-01-2009.
    Kindly give me some inputs regarding this change.
    Thanks
    Supriya

    Hi
    Please note
    I you change the transfer date to current FY date , system will not allow u to upload data in PY.
    See the below
    Transfer Date
    This date determines the status of posting to be used for the
    transfer (posting up to this date will be included in the transfer), not
    the actual date the data transfer is carried out. This specification
    also determines whether you want to perform the transfer during the
    fiscal year (with transfer of posted transactions/depreciation in the
    current fiscal year) or at the end of the fiscal year (without
    transactions).
    If the transfer date is not the last day of the fiscal year (according
    to the fiscal year variant in FI), the system interprets this as
    transfer during the fiscal year. The system cannot transfer any
    historical transactions. It can only transfer cumulative values from the
    end of the last fiscal year, and the transactions in the current fiscal
    year (the second is only possible for transfer during the fiscal year).
    Example
    transfer date = December 31, 1997
    => last closed fiscal year = 1997
    Specify Last Period Posted in Prv.System (Transf.During FY)
        You must specify the period up to which depreciation was posted in the previous
        system. This period refers to the posted depreciation that is to be
        transferred during old assets data takeover.
    Thanks
    GG

  • I need a function module for covert TRIP START DATE to TRIP FISCAL YEAR

    Actually my req is
    TRIP START DATE (z object) is coming from TRIP MASTER DATA TABLE.
    based on TRIP START DATE I have to update the fields like
                       1.TRIP FISCAL YEAR,
                       2.TRIP CALENDER YEAR,
                       3.TRIP FISCAL YEAR PERIOD
                       4.CALENDER MONTH
    in the cube.
    my FISCAL YEAR START from JULY 1st to JUNE 30th.
    i need a code for update rules.
    please help me out. its very urgent.
    Thanks in Adv.

    Hi Satya,
       Check these FM.
    GM_GET_FISCAL_YEAR
    'FTI_FISCAL_YEAR_MONTH_GET'
    DATE_GET_WEEK
    MC_PERIO_CONVERT_TO_WEEK_MONTH
    UMC_FISCPER_TO_CALQUARTER
    GET_CURRENT_YEAR
    'GET_CURRENT_YEAR' or FM 'FTI_FISCAL_YEAR_MONTH_GET'
    You can use GET_CURRENT_YEAR to find the Fiscal year of the entered date.
    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
    Enter the date you need in the place of sy-datum.
    FTI_FISCAL_YEAR_MONTH_GET Returns fiscal year for specific date
    Kindly reward points by clicking the star on the left of reply,if it helps.
    Regards,
    Vijay.

  • No data read for fiscal year 2011

    In ECC6, after posting document in FI, I wan to check balances with T-Code FS10N and Enter GL account in which document entry supposed to be recorded. But when I execute it getting message in Information window " NO data read for fiscal year 2011 (Long text)
    what does it mean? Appreciated explanation

    I did saved the entry and then got message, when I was trying to display document no?
    error message "document no 200000003 sony does not exists in fiscal year 2011"
    when I was trying to see display of GL account
    Got message " NO data read for fiscal year 2011"
    when I was trying to make document reversal of document no: 200000003
    Got message "document no 200000003 sony does not exists in fiscal year 2011"
    My document type is SA and reversal document type is Ab, No. range for this document is in fiscal year 2011.
    I really confused where is my config. went wrong?
    suggestion and expert opinion are expected and appreciated.

  • Year To Date for Current Fiscal Year

    Hi All,
    I have installed BC variable Year To Date for Current Fiscal Year 0I_CFYTD..
    foloowing error occurs
    Variable 0I_CFYTD could not be replaced..
    Do i need to write any code or Please help.....

    Hi,
    Please check if fiscal year variant is used in the filter. Else the BC variable throws an error. Drag fiscal year variant to the filter area and set a value or variable input for the same.
    Regards,
    Satya

  • How to count the days between Date Range using OO ABAP?

    hi experts,
            i want to count the days between Date Range using OO ABAP for that  which class and method  can i use?.
    Thanks,
    Mahesh.

    Not sure I understand the requirement for it to be OO, but you could always write your own (i.e. use this):
    REPORT zz_date_diff.
    CLASS date_diff DEFINITION.
      PUBLIC SECTION.
        METHODS diff IMPORTING     i_date_fm TYPE d
                                   i_date_to TYPE d
                     EXPORTING     e_days    TYPE i.
    ENDCLASS."
    CLASS date_diff IMPLEMENTATION.
      METHOD diff.
        e_days = i_date_to - i_date_fm.
      ENDMETHOD."
    ENDCLASS."
    DATA: g_ref TYPE REF TO date_diff,
          g_days  TYPE i,
          g_date_fm  TYPE d VALUE '20080101',
          g_date_to  TYPE d VALUE '20090101'.
    START-OF-SELECTION.
      CREATE OBJECT g_ref.
      CALL METHOD g_ref->diff
        EXPORTING
          i_date_fm = g_date_fm
          i_date_to = g_date_to
        IMPORTING
          e_days    = g_days.
      WRITE g_days.

  • Error : No data read for fiscal year 2006 (error  FDBL020)

    Hello !
    I have a problem in transaction FS10N, when i am trying do execute appear the error: No data read for fiscal year 2006 (error  FDBL020), i tried applying the note 302263 (deleting the attributes of programs)but the attributes has been deleted. Anybody know a solution ?
    Thank´s
    Claudenir

    hi,
    i mean to check, whether there are items posted in that fiscal year.
    Andreas

  • Document number range - per fiscal year  and continuous

    Hi Experts,
    In document number ranges,  generally the FI dox have number ranges which start afresh every year whereas MM and SD dox have continuous number ranges over the years.  It is possible to have continuous number range for FI dox also, but not many people use this.
    Why this differenciation between FI and SD/MM? Why SD/MM also do not have fiscal year based number ranges?
    Also, where do we define that doc range will be year specific or not? or is it SAP standard that FI will be year specific and SD/MM will be continuous?
    Thanks and Regards,
    Sadhana

    HI Sadhana
    You have the option to have document rumber ranges either on fiscal year based or upto 9999 year.
    This can be done in FBN1.
    for posting material documents also above situation applies.
    normally everybody prefer to have fiscal year based number range as FI documents are more in number.
    You can go through other forum members  solution also
    Regards
    A Chandrasekaran

  • Date range From Fiscal period range

    Hi All,
    How can we get the date range for a given fiscal period range?
    please help.
    Thanks
    Gaurav Mittal

    hi
    good
    pls check this code
    declare a range like
    ranges: r_date for s021-spmon. (declare as per your data type for the date)
    in initialization event write.
    r_date-low = '012007'. (enter the required lower range of value)
    r_date-sign = 'I'.
    r_date-option = 'BT'.
    r_date-high = '122007'.
    append r_date.
    now use the r_date field in the program code.
    thanks
    mrutyun^

  • Date validations for fiscal year

    My selection screen has select option for date in that it shold take financial year i.e from april to march.
    suppose if date-low = dec2008 date-high = feb2008. how shld i write the code for this.validations etc. it should not give error saying lower value is higher than high value.

    Hi,
    Anyhow you need to be careful with the validations of Fiscal year, i used the below code in one of my reports which gets Date and fiscal year as inputs;
    Data : fisYr1(4) TYPE n, fisyr2(4) TYPE n.
    CLEAR : fisyr1, fisyr2.
    IF S_date-low+4(2) LE 3.
      fisyr1 = s_date-low+(4) - 1.
    ELSE.
      fisyr1 = s_date-low+(4).
    ENDIF.
    IF S_date-high+4(2) LE 3.
      fisyr2 = s_date-high+(4) - 1.
    ELSE.
      fisyr2 = s_date-high+(4).
    ENDIF.
    IF fisyr1 NE fisyr2.
      invalid_date_Range = 'X'.
    ELSEIF fisyr1 NE p_fisyr.
      invalid_fiscal_year = 'X'.
    ENDIF.
    Regards
    Karthik D

  • Using Fiscal Year in RPM 4.5

    Hello,
    Is there a way to set RPM 4.5 up such that when viewing resource capacity/financial capacity the tables can be set up to display by our company's fiscal year?
    We really need the functionality to be able to think of our demands in the terms of our fiscal year quarters and not calendar year quarters.
    Thank you,
    Wendy Miller

    Hi Wendy
    We managed in a RPM 4.0 implementation to get the fianncial planning to follow the fiscal year of the company Jul - Jun - this was particularly important when trying to reconcile budgeting data from PS
    I will have to look out the BaDI and code that we used and will send you a copy if you are keen
    Cheers
    Wayne

  • Date range using dual table

    I want to get the range of two date(two variables: e_date and s_date) in a proc code. Or I want to ensure the date range must be less than 180 days.
    I used: "SELECT to_date(:e_date1, 'DDMONYY') - to_date(:s_date1, 'DDMONYY') INTO :count FROM DUAL;" and "if (count <= 180)" in a proc code.
    I don't know whether there is some risks in that? Thanks.

    BluShadow wrote:
    EdStevens wrote:
    bill wrote:
    "There's a risk in using 2-digit years. Use 4-digit years to reduce errors."
    Because I only want to get the date range of two date(using :sdate and :edate variables), in anther words the relative value of two days, I think that 2 digits for the year part is permitted. Isn't it? Thanks.I can't believe Y2K was only 12 years ago and we are already forgetting the lessons.
    I few years ago (even closer to Y2k) I was in a conversation with a young programmer who expressed the opinion that Y2K was just a big hoax. After all, none of the bad things predicted really happened. I had to inform him that had he been around in 1998 and 1999 (I think he was in junior high at the time) he would have seen that the reason "nothing happened" is because armies of people like me spent two years working our a**** off to make sure nothing happened.Yep.... I was there too... checking...re-working...testing... just to ensure that everything went ok. I even had to go in and check all the servers on New Years day (oh, yes I made sure I got paid well for that one!) to make sure they were all still up and running. Only one server had a slight issue, but it was an oldie and not fixable and not a major issue.
    Yeah, me too. Sat in the server room all night watching the server light blink :-)
    Please, do yourself and your colleagues a favor and banish from your brain the entire concept of 2-digit years. When "modern" data processing got started, data records were limited to an 80-column punch card. We no longer have those constraints.4 digit years all the time.... oh yeah!You're just burying your head in the sand. It's time to start thinking about the Y10K problem, assuming we get through Dec. 21 :-)
    John

  • HOW TO GET FISCAL PERIOD WISE DATA BY GIVING FISCAL YEAR AS INPUT

    Hi All,
    I am creating a report where input field is FiscYear(0FISCYEAR). My fiscal year is Oct to Sep and 4 spl periods.
      If we give input as 2014 (current FY) it has to show all fiscal periods as on date. i.e., Oct’13 to Feb’14.  Which should show in columns each period
    separately, like Oct 13, Nov’13, …. Feb’14.
       If we give 2013, it has to show all fiscal periods separately each period in columns. i.e., Oct’12 to Sep’13.
    InfoProvider Data: We have a cube, containing data for 0CALMONTH and Fiscal Year. No fiscperiod in the cube.
      Could any one assist here as it’s a bit odd scenario never come across. All your suggestions and assistance are highly appreciable.
    Best Regards
    Venkat...

    Hi Anshu,
    I am getting the below error when I try to execute in Analyser.
    "No value could be determined for variable". Here is my code in CMOD.
    *Variables for ESAS Project
    DATA: curr_yy TYPE /BI0/OICALYEAR,
          input_yy TYPE /BI0/OICALYEAR,
          prev_yy TYPE /BI0/OICALYEAR,
          zmonth(2) TYPE N.
    WHEN 'ZCALMONTH_ESAS'.
        IF i_step = 2. "tried with i_step 1 also, same error message is showing
    READ TABLE i_t_var_range INTO loc_var_range
              WITH KEY vnam = 'ZFISCYEAR_ESAS'.
    IF sy-subrc EQ 0.
      curr_yy = loc_var_range.
      prev_yy = curr_yy - 1.
      zmonth = SY-DATUM+4(2).
      IF SY-DATUM+0(4) = curr_yy.
        CONCATENATE prev_yy '10' into l_s_range-low.
        CONCATENATE curr_yy month into l_s_range-high.
      ELSEIF prev_yy EQ loc_var_range.
        input_yy = loc_var_range.
        prev_yy = input_yy - 1.
        CONCATENATE prev_yy '10' INTO l_s_range-low.
        CONCATENATE input_yy '09' INTO l_s_range-high.
      ENDIF.
        l_s_range-opt = 'BT'.
        l_s_range-sign = 'I'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDIF.
    Everything is fine in CMOD. However, its giving error in execution. Any idea on this pls...
    Best Regards
    Venkat...

  • Variable to display data from Current Fiscal Year to the MONTH entered

    Hi Friends,
    In the Quey Designer I require a CHARACTERISTIC VARIABLE for the 0CALMONTH which should have the following features:-
    1.Input Month(e.g JUN 2008)
    2.Mandatory
    3.Ready for Input
    The query should show the following OUTPUT:-
    The data should be displayed from the CURRENT FISCAL YEAR to the value of the Input MONTH entered.
         e.g For Input  =  DEC2008
               Output = from APRIL 2008 to DEC2008.
    Do we have a standard variable for this or we have to go for a Customer Exit??
    Thanks in Advance!!!
    Vivek

    Hi,
    Create a customer exit as follows.
    WHEN 'ZCMTD'.
    you variable name
    data: ZCMTD_LOW like sy-datum.
    ZCMTD_LOW = sy-datum.
    ZCMTD_LOW+4(2) = '04'.
    *replacing last two symbols (month) in the current month with '04'
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = ZCMTD_LOW.
    *initializing low interval limit
    L_S_RANGE-HIGH = SY-DATUM.
    *initializing high interval limit
    L_S_RANGE-SIGN = 'I'.
    *defining interval as inclusive
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDCASE.
    Thanks,
    Ashok

Maybe you are looking for

  • Web Dynpro application Session time expired in Portal

    Hi All ,    I am runnnig my web dynpro application in portal. When i log in for first time its working fine. But if if lof off and try to log in again in portal in same browser and try to access that web dynpro application then i am gettting error as

  • IPhone 5S some music grayed out

    I just got an iPhone 5S.  Backed up my old phone to computer, and used this backup to get info, data and music onto new phone.  After syncing the phone with iTunes on my computer, some songs on some albums are grayed out and have a red circle with a

  • Dual Displays - sleep delays

    I had a dual disply setup (i7 iMac 27" + Dell 2408WFP) which worked great but I gave up and went back to just one after getting exremely frustrated with the long delays in the "wake up" period for the two. The single display 27" iMac sceen wakes inst

  • Isql*plus 9.2 problem: Substitution variables

    hi, i'm new to using isql*plus. i have written the following script to setup my the structure of a database, it works but when i execute it it asks me to: Substitution Variables Enter values for substitution variables in the script to execute: Variab

  • GroupEditorMBean not available

    I use Weblogic 9.2 with no external LDAP server to manage users. I need to add a user to a group programmatically. I did Context ctx = env.getInitialContext();           MBeanHome mbeanHome = (MBeanHome) ctx.lookup(MBeanHome.LOCAL_JNDI_NAME);