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

Similar Messages

  • 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

  • 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.

  • 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.

  • 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.

  • 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

  • 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

  • Error: "posting period is not defined for fiscal year variant" in  FBICS3

    Hi,
    I got error  "posting period is not defined for fiscal year variant" when I execute t code FBICS3.
    I checked in OB29 &  t code FBIC010 & noted that the fiscal year variant had ben maintained.
    Please advice.

    HI,
    It was noted that the mentioned t code had been maintain but below mentioned error appear:
    Posting period  is not defined for fiscal year variant
    Message no. GU506
    Diagnosis
    You have tried to determine a posting date in fiscal year variant for period , fiscal year , but this period is not defined for the variant.
    Procedure
    You maintain fiscal year variants in table T009.
    It was referring to t code OB29. I have checked the detail, in OB29 also details maintain.
    Please advice why the error still prompt.

  • 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

  • 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>

  • 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

  • Transfer global settings for Fiscal year

    Hi friends,
    There are two entries are posted for Fiscal year in R/3.. In BW side, I know that replicate transfer global settings is good option to get R/3 data for the Fiscal year.. here there is no fiscal year option.. but there is fiscal year variant options.. i want to know how can i replicate global settings by which option and which mode should use.....
    Guide and help me...
    with regards,
    Jaya

    Hi,
        I doubt if we have such option for Fiscal variant. I maybe wrong.
    But try to get the data for Fiscal Variant in a flat file and load it to BW.
    or
    Check the the table T009B if the Fisc variant is Updated.
    If not, there must be some option for that.
    Regards,
    Balaji V

  • Sugestion required for Fiscal Year scenario

    Hi Gurus,
    I  need your suggestion for the below scenario
    One of our client going to  change the Fiscal period  from  (Jan -  dec ) to (Sep - Oct). We have nearly 5 years of records as on date based on the (Jan-Dec) fiscal period.
    Requirement: If new fiscal peirod will come in active , they want to view all the data ( Including  historical records)based on the both the fiscal period based on the selection in the query.
    Technical requirement: Dynamic switching is requried for Fiscal Year Variant in the query level. 
    Suggestion Required for below point:
    1. Is it required to maintain two Fiscal year variant ?
    2.How do we maintain the new fiscal year period for historical record ?
    3. Is it any posibilities their with out major disturbance of the existing query ?
    4. Is it possible to do in query level with minor impact of performance ?
    5. Is it possible to do in back end side with out redundancy of the records ?
    6.I have a solution to use multiprovider on top of two infoprovides which are maintain the fiscal period based on two fiscal year variant. If I realize this it would lead major back end work.
    7. I have another solution to add another two fields in the existing structure to hold new variant and fiscal period. If I do this How dynamically I can change the structure of the query for to view the different fiscal period information.
    Anticipate your reply eagerly
    With Regards
    Siva

    Hi,
    1. Is it required to maintain two Fiscal year variant ?
    Yes,  You will need to  have another Fiscal Year variant for Sep to Oct.
    2.How do we maintain the new fiscal year period for historical record ?
    To do this at the BI Level, You can have a routine to convert the Fiscal Year Period according to the new Variant.
    You will have to get the help of a functional consultant in order to understand the logic of opening and closing balance. According to the new variant the current Fisc Period 009.2009(Sep 2009) will become 001.2010 and so on. Apart form just converting the period, you will also have to take care of carrying over the balances.
    3. Is it any posibilities their with out major disturbance of the existing query ?
    Once you implement the above logic, you can just include the New Fiscal variant into the query.
    4. Is it possible to do in query level with minor impact of performance ?
    Yes, as mentioned above.
    5. Is it possible to do in back end side with out redundancy of the records ?
    Not sure about this.
    6.I have a solution to use multiprovider on top of two infoprovides which are maintain the fiscal period based on two fiscal year variant. If I realize this it would lead major back end work.
    This seems to be the best way. You will not have to touch the existing cube. Only your reports will have to be copied to the New MultiCube. The logic in the 2nd Q above will be for the new cube.
    Regards,
    Gaurav

  • 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

  • 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.

Maybe you are looking for

  • Lightning to 30 Pin Adapter Charging Starts and Stops Intermittently

    I purchased two Lightning to 30 Pin adapters, and both are exhibiting the same problem.  They seem to start and stop charging intermittently on my iPhone 5, which, to be clear, is not in a case, nor is the adapter obstructed in any way. I purchased o

  • Using 2009 iMac as second display for 2012 iMac

    I am using my 2009 iMac as a second display using a mini display plugged into the 2012 iMac Thunderbolt port.  When I plug it in, it works fine, but if I need to restart my 2012 iMac, it won't recognize the second display on reboot. How do I make my

  • New transactions for BW in SAP ECC source system

    Hi experts, I need to know if in SAP ECC 6.0 there is someones transactions news or changed for datasources manages. For example: For create/Modify generic datasource Activate LIS* datasources rsa5 Functionality because the hierarchy has differents n

  • Restoring photo with severe water damage

    A friend of mine asked me to restore the attached photo (of her dad) which has suffered severe water damage (I have erased the gentleman since I have not asked for permission to share the photo with others). Fortunately the person's face is intact bu

  • What function opens sharepoint EditControlBlock menu?

    I cannot find what JS function actually opens list item menu (EditControlBlock) when I press down-arrow next to file name ? I tried using FireBug, it seems I removed all onclick, onmouseover, onfocus, etc events from current and parent elements, but