Find the fiscal year for the date

My fiscal year starts from 1st of august to july31
if i pass the period Aug-2011 need to know in which fiscal year it falls in
Expected output as 2012.
How can i write simple query

hI,
893185 wrote:
select EXTRACT (YEAR FROM ADD_MONTHS ('AUG-2011', 5)) from dual
The above is giving non numeic character. How can i write the sqlThe first argument to ADD_MONTHS is supposed to be a DATE, not a string.
Use a DATE instead of the string 'AUG-2011'. For example:
EXTRACT (YEAR FROM ADD_MONTHS ( TO_DATE ( 'AUG-2011'
                                        , 'MON-YYYY'
                     , 5
     )

Similar Messages

  • Creation of shortend Fiscal year for the Merger of two Companies.

    Company 'A'is getting Merged with the Company 'B' on 15th February 2010. Company 'A' is suppose to submit all the financial details to the Company 'B' on 15th February 2010, furthermore the users with the Company 'A' should not be allowed to post any transactions after 15th February 2010.(Max they should be given 10 days grace period for closing the financial year)
    The current fiscal year for the Company 'A' is from April to March. However, as per the above mentioned scenario it is required to have fiscal year from April to February.i.e. a shortened fiscal year.
    Please note that Company 'A' is using the version 4.7.
    Steps we have already proceeded with
    1. we created a Shortened fiscal year "Z1"from April to Feb 2010 (Monthly basis) wherein we have taken only 15 days for the month of Feb 2010.
    2. we have created an another Shortened fiscal year(weekly basis) wherein we have taken six weeks as posting period.
    3.We assigned the Fiscal year Variant to the company code.
    4.After assigning when we want to check the details of the assets in the Asset explorer AW01N.the system is reflecting an error "
    SYST: Error when calculating first day in fiscal period   > F1
    Message no. AA654
    Please provide us with the solution for the above mentioned scenario.
    Thanks and Regards,
    Tejprakash Chaurasia.

    Hey,
    I am facing a similar scenario at my client place, thought if i could get insights on how you resolved the issue identified...
    We are yet to configure the shortened fiscal year settings.
    Thanks
    Pradeep

  • How to change the fiscal year in the controlling area?

    I want to change the fiscal year mentioned in the controlling area. The problem is that the controlling area is assigned to a company code and number ranges have been defined and cost center hierarchy has been created.
    Please suggest me what to do?
    Thanks in advance

    Hi
    If its a Productive system - You cant change the FY.. You need to take SAP SLO Service.. Its a chargeble one
    If its a Test system and data is posted, then you need to delete the data 1st of all... I advise create a new contr area / comp code
    "Activate components & Control Indicators" - Just COPY 2011 and make it 1900 or any year of your choice
    br, Ajay M

  • Fiscal year in the columns outside the key figure structure

    Dear Experts
    I have a report requirement to show the keyfigures in the columns from year 1 to year 10 and in each year there are 4 keyfigures each restricted to 1 quarter for 4 quarters.
    So, there are too many keyfigures to create.
    I am using fiscal year in the columns outside the Key figure structure containing the keyfigures restricted at each of 4 quarters.
    So, when the report displays, all the 10 years will automatically be displayed.
    The problem is one of the 4 quarter level keyfigures needs to be restricted by calendar year.
    How can I read what is the fiscal year for each column at runtime so that I can reference this value to determine the calendar year ?
    As you know, each FY spans 2 Calendar Years. So, i need to restrict this on the 4th keyfigure by calendar year but while having the FY outside the keyfigure structure i can get all the FY, I am not sure how to access this value at runtime so that eg.
    if FY for column 1 is 2010, i can set calendar year to be 2010 to 2011.
    Hope you can give me some clues.
    Thanks you Gurus!
    Best regards
    John

    Dear Sunnybt
    Copy Riyes,  I find your response interesting. Please could you elaborate your idea of using condition in more detail.
    Sorry for my late response.
    Allow me to clarify my statement, which you are right, is unclear.
    By :
    "if the current QuarterFY is less than the current QuarterFY"
    I mean :
    eg. user enters FY range : 2009 to 20NN  (eg. 2017)
    KF_column1_FY2009_Q1______KF_column2_FY2009_Q2____KF_column3_FY2009_Q3______KF_column_FY2009_Q4______KF_column_FY2010_Q1______KF_column2_FY2010_Q2____KF_column3_FY2010_Q3______KF_column_FY2010_Q4_____KF_column_FY_NNNN_Q1
    For each column, where the FY can be any year range entered by user,
    the Text Description of the Column should show either 'Actual' or 'Plan' based on what is the current FY Quarter at runtime.
    If the FY Quarter (eg. 1st column is 200101) is before current FY Quarter (i.e 201103), then the Description of this column should be "Actual" , else "Plan".
    In my current design, I am unable to use customer exit text variable to meet this requirement.
    So, I like to check with you for fresher ideas.
    If not , I would use a workbook, which I am avoiding as the user needs to drilldown and I believe drilldown is not possible in workbooks where report layout needs to be rigid or cell positions fixed. Of course, unless there is a way out of this which I do not know.
    Best regards
    Bass

  • Program has to display the calender year with certain dates highlighted

    The program will have a selection screen with the parameter option for empid (Provide F4 help) and select option for Start Date and End Date (Provide the F4 functionality to the date fields.)
    2.        When the user  Executes the program, the program will do the following:
    a.       It has to display the calendar year for the start date and end date(same as Microsoft outlook calendar) . For Ex: you had taken casual leave on 12/04/05 then this date should be colored with yellow. And use different colors for different type of leaves.(it should cover casual, sick, optional, vacation and privilege leaves).
    we have maintained separate ztable to get the leave data.
    [email protected]
    [email protected]

    Hi Ashwneder,
    1. To implement the first part of your requirement , you can use the following code :
    REPORT  ZKUN_DATE1                              .
    tables : ztable.
    parameter : empid type ztable-empid.
    select-options  sdate for  sy-datum.
    Here i am assuming the table ztable contains the field empid.
    2. After you execute the button , you should retrieve the dates for the various leaves from the database table as below :
    select cas_leave Sick_leave opt_leave vac_leave pri_leave from ztable into table itab where empid = empid and sdate = sdate-low and edate = sdate-high.
    Note : Ztable is assumed to be the database table containig the other fileds also .
    Also ztable-sdate =Start date
    ztable-edate = End date.
    3. to display the data you can use the following code .
    Loop at itab.
    write the code tro display.
    Endloop.
    Here to display the various leaves as colored , you should use the option For coloring.
    The synax for coloring is :
    <b>FORMAT COLOR <n> [ON] INTENSIFIED [ON|OFF] INVERSE [ON|OFF].</b>
    Note : When n = 3, the color is yellow.
    Simlarly other values of n will give you different color.
    Hope this solves your provblem.
    Regards,
    Kunal.
    Note : Reward the helpful answer.

  • The table name for the system generated transactions (Retained Earnings).

    Hi Gurus,
    I have a doubt and want to know from U experts there. Hope you won't let me down. The situation is
    I have created a new chart of account in our Oracle Financial. Uploaded 2007 transactions and opened year 2008 and closed all the periods of year 2007.
    When I open a new year Oracle will do internal process transfer R&L balance to Retained Earnings account and make income & expenses accounts to Zero.
    I want to know the system generated entries which table they are stored, this transaction is not in Gl_Balances table.
    Its an urgent plz reply back soon.
    Thanks in advance
    Barkat

    Hello.
    For EBS 11.5.10.2
    Let’s suppose that the last period of you fiscal year is called ‘LAST-2008’ (not adjusting period). If you have an account with a debtor balance of 100 in this period, when you open the following fiscal year you will find an entry of 100 in the first adjustment period of the fiscal year that the ‘LAST-2008’ period belongs to, in the column BEGIN_BALANCE_DR.
    It is clear that if the balance is creditor you will find it in the BEGIN_BALANCE_CR column.
    Hope this helps.
    Octavio

  • Read a csv file and read the fiscal yr in the 4th pos?

    Hello ABAP Experts,
    how to write a code for read a csv file and read the fiscal year in the 4th position.
    any suggestions or code highly appreciated.
    Thanks,
    BWer

    Hi Bwer,
    Declare table itab with the required fields...
    Use GUI UPLOAD to get the contents of the file (say abc.csv) in case if the file is on the presentation server...
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = 'c:\abc.csv'
       FILETYPE                        = 'ASC'
        WRITE_FIELD_SEPARATOR           = 'X'
      tables
        data_tab                        = itab
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       OTHERS                          = 22
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Use OPEN DATASET in case if the file is on the application server..
    After that USE SPLIT command at comma to get the contents of the 4th field...
    Regards,
    Tanveer.
    <b>Please mark helpful answers</b>

  • Differing Fiscal year for Accounting & Tax purposes

    What procedure needs to be followed in ECC 6.0 when the fiscal year for accounting purposes and the fiscal year for taxation purposes are different.
    For Accounting  - Jan to Dec: For taxn - April to March.
    How to accomplish the same?
    One should not extract two different financials and merge it manually. Is there any other way out?

    Hi Smurthi
    If my understanding is right - Your company books fiscal year is Jan to Dec and for country like India the tax book is to be maintained from April to March
    If this is what you are in need off -  its very well possible using Special Purpose Ledger.
    Once this is configured - you will have two books as the period stated above.
    Any transaction posted in SAP will go to your regular book and special purpose ledger.
    At this point if you open any posted document using FB03 etc - go to the Environment -> Document Environment -> Accounting Document - you can see the Special purpose ledger document also
    Warm Regards
    Bala
    Edited by: Balasubramanian Nagarajan on Jul 5, 2008 9:30 AM

  • Fiscal year for consolidation

    Hi All,
    Anyone knows how to maintain the fiscal year for consolidation ?
    I'm trying to post some transaction and I hit this error message
    "No postable ledger/FY variant found for cons unit ICFNBT (dim FN)"
    Thanks,
    Melissa

    Hi,
    Refer the fallowing SAP notes regarding your.
    981570 , 793716.
    Reason and Prerequisites:
    As of Release ECC 6.0 (mySAP ERP 2005), the new "Realtime update: Ledger selection" standard function replaces the modification solution from Note 793716 for older releases.
    This problem is caused by a program error.
    Solution:
    Implement the program corrections.
    Rds,
    Anil

  • How to give the Fiscal year period in RSA3 for checking the data.

    Hi BW Experts, good morning.
      We have loaded the data monthlywise with selection parameters as Fiscal Year Period(FISCPER).
      While checking the data consistency in both R/3 and BI, the selection parameter which i have given  is in the format of         001.2005   
      I got the records in BI side.
      But if we give the same format In RSA3 in the Fiscal Year Period tab , we r getting 0 records.
      So kindly help me how to  enter the selection parameters for 1 month.
        Thanks
                  Anjali

    Hi sanyam ,
       Thanks for the help.
      I got it now.
      Thank you so much
      Bye
                   Regards
                         Anjali

  • Find out the FISCAL YEAR by putting today date.

    From which table I can find out the FISCAL YEAR by putting today date.
    Thanks
    Kris

    hi Kris,
    try FM GET_CURRENT_YEAR.
    You have to add a date and a company code and you'll get:
    current year
    current period
    previous year
    previous period
    hope this helps
    ec

  • 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

  • Can we setup a 13 period fiscal year for 2010 only, using the same variant

    We currently have a fiscal year running from October. We have been taken over by a new comany who want our fiscal year to run from November. It has been decided that year 2010 will contain 13 periods.
    Can someone help with how to set this up in OB29.
    The current settings are for 12 normal periods and 4 special periods. Therefore it will not allow 13 periods to be setup in 2010. However, if I change the number of normal periods in the variant to 13 then there is a message saying that there are gaps in the other fiscal years which are not 2010.
    What is the correct way to deal with the extra month? We are currently in 2010 which started in October and we don't want FY 2011 to start until November.
    Thank you
    Karen

    Thank you for your reply, but the problem is that we want to add a 13th period.
    The setup we have is as below.
    1     29     4     0
    2     26     5     0
    3     26     6     0
    4     30     7     0
    5     28     8     0
    6     25     9     0
    7     30     10     0
    8     27     11     0
    9     30     12     0
    10     29     13     0
    11     27     1     +1
    12     24     2     +1
    12     31     3     +1
    This is working fine to find October as period 13 when we use function DATE_TO_PERIOD_CONVERT, but there is an error in the setup saying 'Only define periods until 12'. When we try to run function LAST_DAY_IN_PERIOD_GET this crashes saying fiscal year variant not found for 2010.
    There is a setting in the fiscal year variant which says
    Calendar yr     2010  No.posting periods   12   No.special periods 4    
    For 2010 only we want this to be 13 periods. Is this possible?
    Thank you
    Karen

  • Error in Data loading - The source of the fiscal year variant has changed

    Hi All,
    Need your kind suggestions to solve the issue.
    I am trying gto load data from one cube to another. the base cube has data with 0CALDAY. in the next cube I am trying to derive 0FISCPER from 0CALDAY. But while loading I am getting this error.
    The source of the fiscal year variant has changed
    Could someone guide me.
    Thanks in advance.

    Hi Saugata,
    nice to exchange views after a long time.
    well, if u are sending data to the target cube which contains data for the separate financial entity of different finacial parameters like fiscal varient then u need to update global transfer settings, and then load data.
    parhaps u also need to check the value of the Fiscal year varient to the target cube.
    hope this helps.

  • The system could not calculate the fiscal year start or finish date message

    While running the transaction FMO1 and FMOA in funds management we have confronted with the following problem.
    Message no. FI 500
    The system could not calculate the fiscal year start or finish date.
    WE are using year dependent fiscal year and are implementing Funds Management for the first time.
    SAP Version – 4.0 B
    Priority – Urgent
    For the same problem in Version 4.5 and 4.6 there is a note number 213713 available on service.sap.com.

    No, there is no bug.
    Those activities that have asterisks (Stars) next to their start or finish dates (despite having no constraints) have "External Early Start" or "External Late Finish" dates, respectively, assigned to them. These dates get imported with XER and represent links to activities of those projects that are not in your database but in the external database where the XER originated from.
    To remove, filter out all such activities (with stars) and delete their "External" dates. However, be aware that Start or Finish dates of such activities might change if you delete theire External dates. If getting rid of asterisks does alter your schedule, ask the person who sent you the XER to confirm start/finish dates of all such (starred) activiites.
    Cheers

Maybe you are looking for

  • For maintaining FI text

    Hi All, I want to give text to FI document just after posting (As we give text thru FB02 going to Extras->Texts..). I am getting the pop up for text using function module 'FI_TEXTS_DOCUMENT'. But after clicking OK, I am still unable to save the text

  • Archive log mode required for async. CDC?

    Hello there, I have tried to set up asyn. HotLog CDC on my 10g database but after creating a publisher I get the following error Message when creating a change set with the publisher: BEGIN DBMS_CDC_PUBLISH.CREATE_CHANGE_SET( change_set_name => 'MY_C

  • HTTP probe in ACE

    we have a simple layer3-4 port 80 app thta is being load balanced by ACE and created an HTTP probe that actually acts more like a TCP probe, since we took a default on just about all the attributes: probe http WEB_SERVERS expect status 200 200 Unfort

  • Statement must appear within on Handler

    Ok. So there are a lot of things asking about this already, but I keep getting the "statement must appear within on handler" error when I try to add a gotoAndPlay event to my button...and reading other peoples problems and solutions has not helped me

  • Weblogic deployer exception

    +"${JAVA_HOME}/bin/java" -Dprod.props.file=${WL_HOME}/.product.properties weblogic.Deployer -adminurl t3://10.18.2.7:9732 -userconfigfile /opt/weblogic/weblogic-WebLogicConfig.properties -userkeyfile /opt/weblogic/weblogic-WebLogicKey.properties -dep