Need the first day of the year and last day of the year.

hi all,
i need a function module which can get me the first day of current year and last day of the current year??
please help.

Similar date questions are being asked ALL THE TIME.  Please search.

Similar Messages

  • How do we find first date of a month and last date of month?

    is it required long caluculation or is there any simple method?

    hi,
    try this FM -> 'HR_JP_MONTH_BEGIN_END_DATE'
    chk this also
    CALL FUNCTION 'LAST_DAY_OF_MONTHS'
    EXPORTING
    DAY_IN = sy-datum
    IMPORTING
    LAST_DAY_OF_MONTH = v_lastdate. <--Gives you the last day of a Month
    Other FM
    SG_PS_GET_LAST_DAY_OF_MONTH
    HRVE_LAST_DAY_OF_MONTH
    SLS_MISC_GET_LAST_DAY_OF_MONTH
    rgds
    anver
    if hklped mark points

  • My First Days in Life and work events

    Hi All,
    I want to implement the My First Days alone in the Life and work events for other countries. I found some notes and docs saying how to adopt the entire LWE for other countries. But i need My first days alone. Is it possible to do so?
    Regards,
    Vijay

    In continuation of my question...
    In order to use Life and Work Events application (For Non US)..
    I updated the process template id in resource definition in SPRO transaction.
    Earlier it was :
    URL Parameter : process.template.id=CECE64A19C8F11DAA5C1000E7FA67AEB&process.autostart=true (for US)
    now I have changed it to
    URL Parameter : process.template.id=CE140F51C11711D9824C000BCD45EE55&process.autostart=true (for non US)
    So now I guess I am actually picking up non US application..
    But now when I try to access application :
    Personal Data in My first days
    Family/member dependent
    I am getting below error :
    The following ABAP Exception occurred: SERVICEKEY_INVALID:
    caused by
    Caused by: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFC_Fault_Exception: Fault name: SERVICEKEY_INVALID, fault text: SERVICEKEY_INVALID
    I do not even know whether i should revert back to old process template id for US country

  • Current and Last PO Calculation

    Hello All,
    0PUR_C01 is my InfoProvider. I also have data in 0PUR_O01, which is an DSO.
    I need to build a report giving Current and Last PO details for a Material (independent of vendor).
    The user will input only single date. The system should check which is the latest and latest-1 PO using that input date.
    I am looking for a customer exit which can solve this.
    Thanks,
    Mainak

    Hi Mainak,
    I do not have the exact code as per your requirements.This is sample code for Quantity field with the document date field ( date should be restricted between system date and system date+112 days).
    WHEN 'ZPRDATE1'.
    IF i_step = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WITH KEY VNAM = 'ZPRDATE'.
    v_date1 = LOC_VAR_RANGE-LOW.
    ddate1 = sy-datum.
    l_s_range-sign = 'I'.
    *l_s_range-opt = 'EQ'.
    l_s_range-opt = 'BT'.
    l_s_range-low = ddate1.
    l_s_range-high = sy-datum + 112. (Check syntax)
    Append l_s_range to E_T_RANGE.
    ENDIF.
    If  your variable  want to be defined as "Ready for Input" ?
    pls refer this.
    The RSR00001 enhancement ("BW: Enhancements for global variables in reporting") is called repeatedly while the report is being executed. In this case, the I_STEP parameter specifies when the enhancement is being called.
    The following values are valid for I_STEP:
    I_STEP = 1
    Call directly before the variable is entered
    I_STEP = 2
    Call directly after the variable is entered. This step is activated only if the same variable could not be filled for I_STEP = 1 and it is not ready for input.
    I_STEP = 3
    In this call, you can check the values of the variables. Activating an exception (RAISE) causes the variable screen to appear again. I_STEP = 2 is also then executed once more.
    I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the monitor.
    Source : Note 492504 - Dependent customer exit-type variables
    I hope this might helps you a bit,
    Regards
    CSM Reddy

  • SQL select Statement -first day and last day of the month - 1 year from now

    Hi,
    I need to write a SQL to get the dates in between first day and last day of the month one year from now.
    SELECT last_day(add_months(sysdate,12)) as lastday from dual
    What could be the Query to get the first day of the month one year from now..
    ie ..Sysdate - 3-DEC-2009
    Result - 1-DEC-2010
    thank you

    Hi,
    You can use TRUNC with 2 arguments to get the first DATE in a month, year, quarter, week, hour, minute, ISO year, ...
    SELECT  TRUNC ( ADD_MONTHS ( SYSDATE
                               , 12
                  , 'MONTH'
                  )     AS first_of_month
    FROM    dual
    ;The DATE returned will be in the same month, year, quearter, ... as the first argument.
    \We convered the last day of the month in [your previous question|http://forums.oracle.com/forums/message.jspa?messageID=3942939#3942939].
    At that time, I warded about using LAST_DAY as a cutoff point; TRUNC is a much better way.
    For example, to find all appointment_dates in the current month next year:
    SELECT  *
    FROM    appointments
    WHERE   appointment_date >= TRUNC (ADD_MONTHS (SYSDATE, 12), 'MONTH')
    AND     appointment_date <  TRUNC (ADD_MONTHS (SYSDATE, 13), 'MONTH')Note that
    the first part of the WHERE clause calls for dates on or equal to the beginning of the 12th month in the future, but
    the second part of the WHERE clause calls for dates before, not equal to , the beginning of the 13th month in the future.

  • BI Content Variable on 0Calday for first day of the fiscal year and first day of the current month

    Hi Friends,
    In one of my BEx queries, I need to restrict a key figure for 0Calday based on the first day of the current fiscal year. And another key figure for the first day of the current month. Instead of using Customer exit, I hope there is some SAP delivered standard variable for these filters.
    Please let me know if there is anything available for this. Your answers will be highly appreciated.
    Thanks & Regards,
    Ranjan

    Hi Ranjan,
    Please find below standard variables.
    Pls check below link for more.
    Standard Variables in BEX related to Time Charcteristics
    Characteristic
    Variable
    Description
    0CALDAY
    0CWD
    Current Workday (SAP Exit)
    0CALDAY
    0CYTCD
    Cumulated to Current Day (SAP Exit)
    0CALDAY
    0DAT
    Current Calendar Day (SAP Exit)
    0CALDAY
    0DAY_***
    Cumulation of all Values to Key Date (SAP-Exit)
    0CALDAY
    0LYTCLD
    Cumulated to Current Day of Previous Year
    0CALDAY
    0LYTCLD
    Previous Year Cumulated to Current Day (SAP Exit)
    0CALDAY
    0L_DATE
    Last Calendar Date
    0CALDAY
    0P_LY_R
    Comparative Period for Last Year
    0CALDAY
    0P_TY_R
    Period for Current Year up to Yesterday
    0CALDAY
    0S_KDATE
    Key Date Interval for Previous Year (SAP Exit)
    0CALDAY
    0S_KDAY
    Key Date Interval Current Year (SAP Exit)
    Best,
    SATYA.

  • First day of year and next monday of the year

    Dear all;
    Given a year, how do you determine the very first day of that year and the next two mondays for that year...

    Hi,
    user13328581 wrote:
    Dear all;
    Given a year, how do you determine the very first day of that year and the next two mondays for that year...As Sayan hinted, you can use NEXT_DAY to find the next Monday after (not the same as) a given date.
    NEXT_DAY(trunc(SYSDATE), 'MON') next_mondayis the next Monday after today. (You may not need TRUNC in the example above.)
    For the Monday after January 1 of this year:
    NEXT_DAY ( TRUNC (SYSDATE, 'YEAR')
             , 'Monday'
             )If the year happens to begin on a Monday, this will return Jaunary 8, the 2nd Monday of the year; otherwise, it will be the 1st Monday of the year.
    For the 2nd Monday after New Year's Day, add 7 to the expression above.

  • I've bought a few songs recently and they played the first day but now it says that i need to Authorize my computer with is already authorized How can I fix this?

    Ive bought a few songs recently and they played the first day but then when i go to play them again it say i need to Authorize the computer which is already authorized I don't understand can someone help me??

    Hello there, HelpMePlease117.
    There is a good Knowledge Base article that helps resolve authorization issues you might want to look over:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    Any one of the steps listed there should help you get to the bottom of your issue and resolve it for you.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • How to find first day of the year

    Big picture: trying to determine how many pay periods are left in the year. There are 52 weeks in a year, and our company pay out each week.
    The first pay week of the year always starts on a Friday. So If Janurary 1 is a friday, then the 1st week of pay period starts that week. If Jan 1 is a Thursday, then the first pay week will start on Janurary 2.
    I need to figure out what day the first day of any year it is. By day, i mean Mon, Tue, Wed, Thur, Fri, Sat, or Sun.
    Then when I figure out what day it is, i will write an if/then statement saying if Jan 1 is a monday, then add 4 days to that date and that will be the first day of a pay period.
    Then when i figure out the first day of the first week, I wanted to add 7 days to create week2, week3.... week 52.
    Then take todays date and if it was between week x and week y, then it would determine that z many pay periods are left...
    is this the best way to go about this? anything easier?

    You can use the getDay method of a Date object to determine the day of the week. Any decent JavaScript reference will have more information.
    George

  • How to get the First day in a Week in a Fiscal Year

    Hi guys,
    I have a Requirement to calculate the First day in  a Week  in a Fiscal year .
    The FM GET*FIRST_DATE and all are for Calender year.
    Is there any FM to calculate the First in a Week in a Fiscal year.
    For eg. They will give 200826.
    In this 26 is the Week.
    I need to find the First date value in that Week.
    Thanks,
    Gokul

    Hi Gokul...
    Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
    Its similar to the above one but instead of writing case statement you can achive the following.
    data : w_res type i,
             w_data type d,
    w_res = w_date mod 7.
    w_date = w_date - w_res.
    write w_date.
    This works.
    Regards,
    Siddarth

  • First day on new contract and a fault on the line....

    I never normally bother writing in these forums but wanted to vent my frustrations somewhere after spending hours on the phone to BT and bascially getting no where.
    Have been a BT phone customer for quite a few years and decided to move the broadband to BT in order to get the BT sport channel. The first day that my service was meant to switch providers the phone line is totally dead and obviously no broadband. When I spoke to someone, having spent ages on hold, they tested the line and found a fault. I told them how this happening on the same day as we changed contracts is a coincidence that I fail to accept. They basically said that it was a coincidence and it could take up to a week to fix. I live on a farm and therefore use the phone and internet for work and also have very limited mobile phone reception. If I had known we would have this issue when we changed contracts I'm not sure I would have bothered. We will see how this plays out from now but whilst each individual I spoke to seemed to understand and appreciate my position I basically got no where and on the first day of a new contract with BT I am left deeply unimpressed with the service.

    Hi michaelpearce84,
    Sorry to see you're having some problems switching your broadband over to us.  I can help you sort this out from here.  To get in touch, click on the "about me" section of my profile where you'll see the link to "contact the mods".
    Thanks a million,
    Robbie
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Hi kids, my first day using apple, anyway, is a Power Book 4.1 , bought from someone else,and i dont have the password for the key chain, and no chances of getting it, the screen, for the password keeps on coming up, any ideas?

    my  first day using apple, i love it, is a power 4.1, older, but is ok to learn it, however, i bought it from someone , and i was not
    given the password for key chain, so, this screen keeps on coming up, and i dont know the password, so i keep on canceling out
    of it, ..... any ideas on how to fix this problem, is the key chain, that you can access through utilities, but i dont have the old password, that is my first
    problem
    my second problem is that the key board, closer to the screen, is coming out, as it needs to be put in place, you would imagine you can
    put it back in place, but, not sure i should mess with it, any input would be greatly appreciated it
    thank you
    lisa

    Hi, Lisa. Now I see what you're desperate about.
    Does it allow you to go ahead and use the iBook after you cancel the Keychain login? If so, it's not a big deal.
    Are you able to go to System Preferences > Accounts and create a new account for yourself? That should eliminate Keychain password problems.
    Check out these instructions on replacing the keyboard:
    http://docs.info.apple.com/article.html?artnum=111917
    Maybe they will help you get it seated better. It's considered a customer-installable part, so it should be easy enough for you to handle without worrying about goofing anything up.
    What CDs (if any) came with the iBook?
    Which version of the operating system is it running?
    How big is the hard drive and how much space remains available on it? If it's the original hard drive, it's getting very old and could fail at any time. The identifier "PowerBook 4,1" tells me that the iBook is ten years old, and is either a 500 or 600 MHz PowerPC G3 (Dual USB) iBook. As such, you can't expect a whole lot from it.
    The optical drive on this iBook could be a CD-ROM (reads CDs only), CD-RW (reads and writes CDs; no DVD capability), DVD (reads CDs and DVDs), or Combo (reads and writes CDs; reads DVDs) drive.
    Good luck with it.

  • FM for First day of the Fiscal Year.

    Hi ,
          i want to calculate First day of the Fiscal Year ,please send me the FM name urgently.
    Thanks  in advance

    hi,
    BAPI_CCODE_GET_LASTDAY_FYEAR
    this will give you back the last day of a fiscal year for a company code, but if you start with previous year, than you add 1 to the result, than you get first day of current fiscal year.
    FIRST_AND_LAST_DAY_IN_YEAR_GET
    this will give you back the first and the last dates of a given year, but you'll need the period version as well.
    hope this helps
    ec

  • HT204053 Somehow the very first email I had years ago that I don't even remember the password for, keeps coming up as my apple ID, when I want to make any purchase on ITunes. Why won't my real ID come up, and I can't find the right solution?

    Does anyone know how to eliminate a mistaken apple ID that you still use as an email
    but for some reason, now when I go to make a purchase at ITunes, it  brings up this email
    as my apple ID instead of my actual Id and it will not take the current password I have for
    this email. Somehow I believe it is confused, because years ago this was my first email, and
    it had a different password way back then, that I no longer remember.
    I am very sorry if this all sounds confusing, but my Mac book has been out of commission for the
    past year, and I have been recently trying to work on it, and I am not suave on the computer at all, so
    if my next question sounds lame, you'll know why... I wondered if that may have caused any of my
    latest hitches, only because when I first purchased Mac, 4 years ago, this rogue email was the one
    I signed up with everything on my Mac, but I have not been using it for the past 9 months, just my
    iPhone, until that died 3 months ago, and then I got this new I phone 5 2 months ago, thinking my
    problems would be..., a thing of the past,??, for at least a little while??? But NO, they have not,
    However, I'm sticking to the problem at hand, I have a full functioning apple ID that works and at
    some occasional times, ITunes would bring the correct ID up. And only once in a while bring the
    Bogus one up. But in the last few weeks, all it asks for now is the wrong ID and my frustration has
    reached its max!!' I have missed out on purchasing two apps I needed, and some music I wanted,
    and I don't think I'll be able to even use ITunes at all until I can know how to make my devices realize
    that my email is an email, not a apple ID, and then make it accept my real ID!!!
    Without having to eliminate, or delete my email address I still use, and receive mail
    at. Please forgive this lengthy explanation!!!
    I was only trying to make sense, if I confused you
    more, I'm very sorry... Thank you for any brave ones that tackle this, and actually have some
    Solutions for me.., I thank you much indeed!!  Sincerely  Kim

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • For the previous month first day and last day

    i want to schedule my reports from the last month first date to last month last date.
    any body have queries for the while scheduling to uuse it.
    Ex:sysdate() - today's date
    first_day_of_month()- first day of current month
    first day of last month ---?
    last day of the last month ---?

    In the parameter, put this
    {$FIRST_DAY_OF_MONTH()$}other values you can use in default parameter values are
    {$SYSDATE()$} - to get current date
    {$FIRST_DAY_OF_MONTH()$} - to get first day of the current month
    {$FIRST_DAY_OF_YEAR()$} - to get first day of the current year
    {$LAST_DAY_OF_MONTH()$} - to get last day of the current month
    {$LAST_DAY_OF_YEAR()$} - to get last day of the current year
    Re: Default date as first of month
    TO get last day of last month
    {$FIRST_DAY_OF_MONTH()-1$}You can add/subtract number with these functions and no other functions are available.

Maybe you are looking for