How to appear Current Year  only

I want to show only current year in form e.g 2008.
I know how to show the sysdate .if some body can help me on this i will really appreciate that .
Thanks

Set the default value of your text item to
PL/SQL Expression and enter
to_char(sysdate,'YYYY')
there.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • How to set current year,month as default value in combo box

    hi,  im newbie of xcelsius user
    i realize  that hv a issue that display combo box base on year & month
    let said
    <b><u>step 1</u></b>
    I create excel data like this
    <b><u>year___ </u>  </b>    |     <u><b>month_   </b></u> |     <u><b>Product</b></u> |     <u><b>revenue</b></u>
    02-04-09 |     02-04-09 |       a |     $4,154
    03-04-09 |     03-04-09 |       b |     $6,813
    04-05-09 |     04-05-09 |       a |     $9,875
    05-06-09 |     05-06-09 |       b |     $6,813
    06-04-10 |     06-04-10 |       a |     $6,813
    07-04-10 |     07-04-10 |       b |     $9,875
    08-06-10 |     08-06-10 |       a |     $9,875
    22-06-10 |     22-06-10 |       b |     $6,813
    <u><b>Step2</b></u>
    Then i go format cell to format/custom date to year & month
    Eg1: Year u2013>  02-04-09  convert to u2018YYYYu2019 (2009)
    Eg2: Month u2013>  02-04-09  convert to u2018mmmmu2019 (April)
    So output like this
    <u><b>year</b></u> |     <u><b>month</b></u> |     <u><b>Product</b></u> |     <u><b>revenue </b></u>
    2009 |     April |     a |     $4,154
    2009 |     April |     b |     $6,813
    2009 |     May |     a |     $9,875
    2009 |     June |     b |     $6,813
    2010 |     April |     a |     $6,813
    2010 |     April |     b |      $9,875
    2010 |     June |     a |     $9,875
    2010 |     June |     b |     $6,813
    But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
    But Actual display the Year  in combo box is duplicated :'(
    so any solution ? and then only how to set current year & month as default value  :'(
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
    Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AM

    hi,
    your created  data
    step 1
    I create excel data like this
    year___ | month_ | Product | revenue
    02-04-09 | 02-04-09 | a | $4,154
    03-04-09 | 03-04-09 | b | $6,813
    04-05-09 | 04-05-09 | a | $9,875
    05-06-09 | 05-06-09 | b | $6,813
    06-04-10 | 06-04-10 | a | $6,813
    07-04-10 | 07-04-10 | b | $9,875
    08-06-10 | 08-06-10 | a | $9,875
    22-06-10 | 22-06-10 | b | $6,813
    In this, year and month both are same data, make the diffent data like year  2009, 2010  And month Jan, Feb, March, ...Etc 
    and also one more check you formulas on month and year, select correct source data, destination data  for compoonent..
    OR
    from above, to create a date column and convert  date-->year, date--> month and Explore it.
    All the best,
    Praveen

  • How to show current year and last year sales in a WEBI Report

    Hi Guys
    How can show current YEar Sales in one column and Last YEar Sales in the other column based on a user prompt for the Current YEar Column.
    For Example is user enter 2010 for Year how can i show a Column for Sales-2010 and Sales 2009.
    Thanks

    If you can modify your Universe add an object named New Object Last Year whose SQL is:( yourTableName.Year + 1)
    Then in WebI create two distinct queries in your query Pane. In the first one you could do this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:   Year Equal to '1. Prompt Year'
    Query 2:
    objects: Year, Sales ... etc.
    filters:    New Object Last Year Equal to '1.Prompt Year'
    Then in your report you can drag each object on their respective columns.
    If you don't want to use two distinct queries, use one like this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:        Year Equal to '1. Prompt Year'
                 Or
                      New Object Last Year Equal to '1.Prompt Year'
    Edited by: PadawanGirl on Jun 23, 2011 6:28 PM

  • How to extend current year accounting calendar?

    Due to the business requirements, there is a need to change the accounting periods from Apr-Mar to Jul-Jun. The current FY13 is from Apr-12 to Mar-13. The new FY14 will be changed to Jul-13 to Jun-14. So the periods from Apr-12 to Jun-12 will be considered as FY13. This means FY13 will have 15 accounting periods instead of 12.
    Read the document from 11i: Calendar Changes That Can Be Supported In General Ledger (GL) [ID 357269.1]. Two alternatives are suggested:
    1. Define a new SOB with new account periods.
    2. Update the current calendars.
    However both approaches does not mentioned how to consider the extension of the no. of accounting periods in the current year. In GL, the no. of account period is controlled by period type. However, it does not allow to change the no. of period. So how can the current FY can be extended? May I know the way to do it?
    You advice is appreciated and thanks in advance.

    Hi Raju,
    Thanks for your reply. But the current E-Business Suite version is 11i, not on R12. There is no secondary ledger functionality. Also, only the current year will have 18 accounting periods. In the coming FY, it will keep to have 12 periods. So properly secondary ledger cannot help on this case.
    Thanks!

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • How to transfer current year profit to the Balance sheet in BPC 7.5nw

    Dear Experts,
    I have  maintained script logic for current year profit transfer to Balance sheet. How to check my self whether the profit is moved or not properly. I ran the Legal Consolidation package. This was success. Now how to check by giving the test data values and what combination I have to use in Current view and In Input schedule.  I have maintained two cubes that is moments and Balances cubes. or else through input schedule how can i test with test data. or advise me clearly the steps to execute.
    Regards,
    GURU

    Hi,
    The current year profit should automatically be transferring to your reserves whenver you have data for your P&L accounts.
    The net effect of your income and expense accounts should be tranferred to your reserves account as per your script logic.
    Thanks,
    Sreeni

  • How to create Current Year Filter at Universe Level ?

    Hi,
    I want to create a Current Year, Next Year and Last Year filters at Universe Level.
    Can anyone help me with this.
    I am using Netezza database and not able to find the appropriate date function in Netezza to accomplish this.
    Any suggestions ?
    Thanks

    Hi,
    You would somehow need to extract the Year part from the system date..
    then
    Current Year = Year
    Next Year would be i.e Current Year + 1
    Last Year would be i.e Current Year - 1
    I guess this is the simple part... but you would need to find those functions on your RDBMS..
    Hope this helps
    Jacques

  • How to batch change year only?

    I would like to batch change the year only (leaving all other metadata, to include day and time, the same.  In a recent 5 day shoot I have discovered that my camera was set on 2013 rather than 2014.  Is this possible?  The date, to include year, does not seem to be an option under metadata batch change.  If I select all the photos and then change the year, it seems that all of them will also be set to the exact same day and time.  I am looking for an option other than changing the year on each one separately.  Thanks!

    bobio wrote:
    The result would be that all photos have the exact same date (month/day/year) and exact same time.
    What am I missing?
    The small print! (in the dialog to change the date/time). It says: 'The original date and time of the primary selection is shown below. Adjust it to the correct time and all selected versions will be time-shifted accordingly".
    What it means is based on the time difference you give it for the primary image, it will apply the same difference (time-shift) to all the others.
    Andy

  • How to get Current Year

    Dear Friends
    I am writing a fast formula for medical reimbursement.
    My fiscal year start will be 01-mar every year and end date will be 30apr every year.
    Every year I need the current start date and end date like Accruals.
    Can anyone please suggest me how to get this input.
    Expecting your reply.
    Thanks
    Syed

    You will need something like this to achieve the objective
    Copying from pay_in_tax_utils.get_financial_year_start
    <div>
    if to_number(to_char(p_date,'MM')) >=4 then
    l_year := to_char(p_date,'YYYY');
    pay_in_utils.set_location(g_debug,l_procedure,20);
    else
    l_year := to_number(to_char(p_date,'YYYY')) -1 ;
    pay_in_utils.set_location(g_debug,l_procedure,30);
    end if ;
    pay_in_utils.set_location(g_debug,'Leaving: '||l_procedure,40);
    return (to_date('01-04-'||l_year,'DD-MM-YYYY'));
    </div>

  • 8330 Calendar Deleting appts current year only

    My phone is deleting all appointments from the history for 2010 only.  I have the settings to save forever.  All my history from previous years is still showing up.
    This is not a low memory issue and I dont sync this with my computer so it has nothing to do with that either.  The appointments were there still about a month ago and now are gone.
    Any help would be greatly appreciated.

    Is wireless sync for the calendar turned on?  If so, turn it off.  You can find that in Calendar >Options
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • 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

  • Current Year in Prompt

    Hi,
    How to show current year in week prompt in sql request as dufault value
    thanks
    Edited by: 896398 on May 7, 2012 7:59 PM

    Hi,
    when you creating prompt under show label select 'SQL Results' and write the below code to choose year from week columns
    SELECT YEAR(week_column) FROM SubjectArea
    after that come to Default to label-> SQL Results and write the below code to show current year as a default value.
    SELECT MAX(YEAR(week_column)) FROM SubjectArea
    Note: Replace week_column and subjectArea with your column name and subject area name respectively.
    Hope it helps!
    Regards,
    Pandian

  • Function  module for current year

    Hi ,
    Is there any function module which will give current year only ??
    Regards
    rahul

    data : a(20).
    <b>CALL FUNCTION 'GM_GET_FISCAL_YEAR'</b>
    EXPORTING
    I_DATE = SY-DATUM
    i_fyv = 'V3'
    IMPORTING
    E_FY = a.
    EXCEPTIONS
    FISCAL_YEAR_DOES_NOT_EXIST = 1
    NOT_DEFINED_FOR_DATE = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write : a.

  • When using the search function in mail I only see results from the current year. how can I see results from all years?

    When searching mail results only contain messages from the current year. I'd like to see results from all years. This just started after upgrading from Snow leopard to Lion.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • How do I create a new calendar for the current year, using last years calendar's birthday's/photos and comments from the lower pages?

    Each year for the past 5 years I make a family calendar and send copies to all he family members around the globe.  I hate that I have to recreate all the birthdays and special occasions from scratch, and re-drag all the photos onto these dates, in the lower half of the page of each month on the new calendar.  How can I create a new calendar for the current year and port all of these photos/comments into the new calendar from last years calendar, to save having to redo all this work!!  I am not talking about the upper half page of the photos only...I am referring to the calendar page of each month.
    Thanks in advance. 
    Colin

    Welcome to the Apple Discussions. Open iWeb so you see your original site in the left hand pane. Use the File->New Site menu option to create a new site. Give it the name you want.
    Now select a page in your original site and type Command+D. That will duplicate the page. Drag the duplicate page down to the new site and rename it as needed. Do that for the other pages you need in the original site.
    OT

Maybe you are looking for

  • A problem with my Java Scrabble game

    Hello I am making a Java Scrabble game for a school assignment and I have a problem with the following: The number of players is input by the user (2 to 4) and i need to create a number of arrays based on the number of players. These arrays must have

  • An error message "B channel out of service".

    Much thanks for you spent time to answer my question. I set the "E1 Enhanced Card" on VG200 for MGCP and work with CCM3.3.2. Also the IOS of VG200 has been upgraded to version 12.3<3a>. But this error also will generated of each B channel.Could you h

  • VB 2008, CR component and MS Acc: how to access with database(not user) pwd

    These are the detail of the query: 1. MS Access 2003 and later database via OLE DB provide for entry of a u201Cdatabase passwordu201D to provide additional protection. 2. In VB 2005 and in VB2008 environment I have managed to establish a connection w

  • Cannot run junitreport/ on results from FlexUnit 4.1.0-RC1-77

    I can't seem to run the junitreport ant task on the generated output of my tests from FlexUnit. Here's the error I'm getting: Buildfile: /home/rfkrocktk/Documents/Helios/activeinterview/build.xml setup: setup.main: setup.test: compile.client.test:   

  • How to get movies back

    Hello all, I just sold my Macbook and reformatted the hdd and lost all my movies that I purchased on that Macbook.  I was under the impression that I could just download them again on my new computer.  This is not the case as I do not see them in my