No. of year of service

hi experts,
    i am working on hr-abap. I want no. of  years of service. The difference I get is from the begda and the system date for the particular pernr.
but I want this difference to be calculated in years? Is there ne function module for this? please help me..its urgent..

Hi!
Make the subtract from the first 4 charaters of the date.
lv_ years = sy-datum(4) - wa_pa0001-begda(4).
Regards
Tamá

Similar Messages

  • Time--Privilege leaves accumulation for New Joinees after 1 year of service

    Dear Experts,
    We have configured Privilege leaves for Client and its working fineu2026
    Requirement u2013 Where as a new joinee should avail the PL accumulated for first years only after completing on year of service.
    New Joinee is getting quota every month but now we have to restrict to avail the quota till completing of one year in Org and on the day he/she completes one year should be allowed to take them.
    Regards,
    Ratan Roy
    Edited by: ratan roy on Feb 26, 2009 11:40 AM

    ok,
    Posted second time
    Edited by: ratan roy on Mar 9, 2009 5:17 AM

  • Concerning: VGA monitors using an Aluminum Powerbook G4 PowerPC 2004 15"-screen 1.5Ghz  The DVI (converted to VGA) video output stopped working on this computer after 9 years of service. This raises question 1:  Is there any way of fixing this? I've tried

    Concerning: VGA monitors using an Aluminum Powerbook G4 PowerPC 2004 15"-screen 1.5Ghz
    The DVI (converted to VGA) video output stopped working on this computer after 9 years of service. This raises question 1:
    Is there any way of fixing this? I've tried the usual: triple checked all vga cables & devices through trial & error. Bought a new DVI-VGA adapter. Reset PRAM, PMU, etc. Nothing works. Something is probably damaged, because my KVM switch was not working unless I hot-reseated the vga cable into it, leading to this DVI port, and that is pretty rough stuff.
    Question 2 (related):
    This dovetails into this: Can I drive a VGA monitor with the s-video output port on this computer. It would take an s-video (male)-to-15-pin-VGA adapter. Has anyone does this? So far, I haven't even found the adapter mentioned anywhere.
    Thanks for reading this.
    el7

    Thanks for the useful feedback, Knucklesmac. I agree. I must have blown something on the logic board -- because I had a faulty old KVM switch that would not switch between computers without some nasty hot-plugging/unplugging the VGA video cables. (wince!). It's like when Dizzy Dean ruined his arm because a line drive hit him in the foot and he readjusted his mechanics around the injury. I take the blame because this has been a great computer, and does not deserve any blame.
    If it will help anyone else reading this thread, C2G (née Cables to Go) has some interesting ideas for still getting external video out of this computer:
    -USB-to-VGA
    http://www.cablestogo.com/product/30545
    -Convert s-video or composite video signals to high resolution VGA
    http://www.cablestogo.com/product/40971
    The price range is $75-$85, which doesn't make horse sense to me for such an old computer -- which has a lot of life in it anyway, because its own 15" monitor is not chopped liver.
    el7

  • Standard Program for Retirement Calculation or Year of Service

    Hi,
    I like to know whether there is any standard report program for Retirement Calculation or Year of Service. If it is available please share it ..

    Year of service     s_ph9_46000216
    or u can run flexible employee data S_AHR_61016363, select seniority, date of entry etc
    S_L9C_94000095  choose employment status 'retiree'

  • ABAP-HR MODULE(HOW TO CALCULATE AGE & YEARS OF SERVICE)

    HI,
    HOW TO CALCULATE AGE & YEARS OF SERVICE means for example
    I AM USING PNPCE LDB.
    (1) whose age is greater than 52.833 years with 7.833 years of service, with annual rate of pay $170,000 or more, or
    (2) age plus employment service is 65 or more, with annual rate of pay of $ 170,000 or more.
    Note that the $ 170,000 parameter would be a variable that could change annually when this report would be generated. In the past, age and service value were determined as of the run date. The determination date would also be a variable that would change when the report would be generated.
    Thanks&Regards
    Rahul.

    Hi Rahul,
    This is the 2nd warning !!! Please... use the correct or most appropriate forum.
    The ABAP Objects Forum should be used for: ABAP Object definition and implementation including encapsulation, interfaces and inheritance in ABAP Objects.
    This thread will be moved from to .
    You're asking this question in two thread, so the duplicated thread will be deleted.
    Please have a look at [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting.
    Also read this thread Welcome and Rules of Engagement.
    Greetings,
    Marcelo Ramos

  • What is the function module to calculate "years of services" in HR?

    What is the function module to calculate "years of services" in HR?

    hi ,
    following function module will help you to find the years of service
    CALL FUNCTION 'HR_HK_TOTAL_YOS' "HR-HK: Calculate an employee's total years of service
      EXPORTING
        years1 =                    " pea_scryy     Years of service
        months1 =                   " pea_scrmm     Months of service
        days1 =                     " pea_scrdd     Days of service
        years2 =                    " pea_scryy     Credit years of service
        months2 =                   " pea_scrmm     Credit months of service
        days2 =                     " pea_scrdd     Credit days of service
      output_format = '01'        " char2         Format to display the output
      IMPORTING
        years =                     " pea_scryy     Total years of service
        months =                    " pea_scrmm     Total months of service
        days =                      " pea_scrdd     Total days of service
        .  "  HR_HK_TOTAL_YOS
    thanks u..

  • Years of service

    Dear all,
    I would like to learn how to write a PCR to calculate years of service,to give certain allowance.Do I need to create time type?
    Thank you.

    No need of time type
    check the below thread for the reference it may help you
    Get number of years of service completed

  • PCR for years of service calculation in time management

    Hi all,
    i need to write a PCR for calculating the years of service from a date type in time management.
    HRS=FYAD01 gives me the full years but i need the exact fraction.
    suppose years of service is 5 years 6 months i should get 5.5 years in HRS?
    can anyone please help me?

    Hi semvladigo,
    I have problem..I am very new to writing PCRs for time management.
    Could you refer some articles or to some pages where the PCR s have been explained.
    I  am in need to write a PCR for calculating the Leave Quotas.
    Conditions:
    The employee should have spent 1825 days in the organization, from his DOJ.For the excess day that he has worked,He would be recieving a leave quota of 2.3 days per a time evaluation period.(Monthly)
    Would you please guide me in writing a PCR for this & where do this PCr to be inserted in the Schema Exactly.
    Have a nice day !
    Best Regards,
    UV SAP

  • Infotype 552 Years of Service Calculation Error

    Good day,
    Has anybody experienced an error in IT552 when calculating years of service?  We have an associate that hired in on 04-01-1985 and retired on 12-31-2006.  The years of service calculates as 21 years 9 months and 0 days.  If I calculate this by hand it is 21 years 8 months and 31 days.  Now if I change the start date to 03-31-1985 the service is 21 9 and 1 which is correct.  If I change the begin date to 04-01-1985 or 04-02-1985 the service date still remains at 21 9 and 0.  However, if I change the start date to 04-03-1985 then the service is correct again at 21 8 and 29.  Has anyone else experienced this issue before?
    Thanks,
    Jereme

    Hi semvladigo,
    I have problem..I am very new to writing PCRs for time management.
    Could you refer some articles or to some pages where the PCR s have been explained.
    I  am in need to write a PCR for calculating the Leave Quotas.
    Conditions:
    The employee should have spent 1825 days in the organization, from his DOJ.For the excess day that he has worked,He would be recieving a leave quota of 2.3 days per a time evaluation period.(Monthly)
    Would you please guide me in writing a PCR for this & where do this PCr to be inserted in the Schema Exactly.
    Have a nice day !
    Best Regards,
    UV SAP

  • Calculation of years of service

    Hi All,
    I need to add one field in the report, Tenure/Years of service.
    How can i get that. Do i need to build some logic in report to calculate service years from date of hire from It0041 or is it standardly available?
    Regards
    Aryan

    Hi Aryan,
    Please use this below function module to fetch the number of years of service details..
    HR_ECM_GET_SERVICE_TIME.
    importing parameter : Pernr
    I hope this will slove your problem.
    Thanks & Regards,
    Ganesh R K

  • Warranty - What exactly is one year of service coverage with Apple?

    Hey All..
    My MacBook Pro is seriously playing up. I haven't purchased the AppleCare service additional to my computer as I wasn't sure I'd need it...Hmm. Anyways, I have 2 questions:
    1) I purchased my MBP on March 7th 2007 (11 months 27days ago..Eek!), is it then too late to purchase AppleCare with the fact my MBP is feeling a little shaky?
    2) What exactly does one year of service coverage at an Apple-authorized repair center mean? Does this cover me for any repairs that they do to my machine..or is that only covered in the 90 day of "Complimentary" support? I am confused to the difference between the 90 days and the 12 month support. Would love to know anyones opions on this as I have to move fast with a weeks vacation coming up next Friday...many many thanks..
    ~RICKY
    Message was edited by: RickyGray

    The 90 days is if you want to phone someone up and ask them how to set up your email and that sort of thing.
    The hardware warranty is one year, so if you have a hardware problem within the year, Apple will fix for free.
    If you have a software problem, then that is not something they'll fix - they give you the Install DVs so that you can get it back to the state it was in on day 1 if you want to.
    You can buy and register AppleCare as long as you do it before the warranty expires.
    If you paid with a credit card, sometimes they double your warranty for free - so check with them in case they did.
    Good luck.
    PS - For AppleCare, check out eBay and CompUSa - might be cheaper.

  • Last Year's Service Contract

    Hi,
    Am using SAP 2007B PL 08. My client has service contracts which were created in previous financial years and are still active. How to create the same in SAP?  Can I create Service Contracts in Previous financial year? If Yes, how? Will the Service Contract ID start from 1 every financial year or will it continue from the last number used?
    Rgds
    Kalli

    Hi Suda,
    I created posting period of year 07-08. I then selected the relevant month say April, set the period status as "Unlocked". Created the service contract. Does this procedure have any relevance. I can easily create a Service Contract with start date of year 2004 and end date of any year without the necessity of creating a new posting period but the Service Contract ID will be the latest one.
    My question, is it necessary to create financial period and then create Service contracts or can we directly create back dated Service Contracts with the necessary start date and end date in the current financial year.
    Kalli

  • Last Year available Service Tax Credit not appearing in J2IUN

    While doing CENVAT Utilization thru J2IUN, Last year service tax available Credit balance is not appearing, Only Current year balances are appearing.
    Example: Opening in service tax credit account:      1,50,000.00
            Current year Transactions:            3,00,000.00
                      Total               :      4,50,000.00
    While doing J2IUN Utilization, system is showing available balance as 3,00,000 instead of 4,50,000.
    I am looking forward for your earlier response.
    Thanks in advance.

    Hi,
    Please check the G/L account (FS00) whether it is "Profit & Loss Account" or "Balance sheet account". If it is P&L account, the balances of last year won't be coming. Please check with FICO consultants.
    Regards
    G S Prasad

  • Senior Citizens have been overcharged for approximately 3 years for services that were not used.

    The technician that personally visited the home confirmed, while servicing a technical issue, that the FIOS service sold to the Senior Citizens were not needed and not used. There is no need for the package that has been paid for over the years despite attempts to reduce the monthly bill with customer service. The home has no computers or any other device that needs a internet connection. Please help these seniors that are on a fixed income.

    Just a friendly reminder, this is a forum where users help other users. It looks like your issue may require a Verizon representative to review your account details. Please visit our Support page for a variety of ways to contact Verizon, including “Ask Verizon,” our virtual chat agent, and customer support phone numbers.

  • Customer Support Nightmare - Cannot believe it after 10 years of service

    TO VERIZON:
    This is my fourth contact to you to make a simple plan change, at least the first person on the phone told me would be simple.  Here is a summery of what I sent via your webpage.  Please tell me who can really help me and not tell me that it was done and do nothing or promise me a return call to disappear from the face of the earth.
    I have been a customer for 10 years and believe I am finished. I have spent 7 (9 now including this morning) hours trying to resolve an issue. Your representative stated they could lower my bill but due to circumstances I had to go to the store to do it. They said they would put specific notes on my account so we didn't have to spend another two hours working it out. t went to the store and spent 4 hours there with another representative who couldn't seem to figure this out until I said "forget it, I would just go to Sprint.  (That was why I called the above representative in the first place as I had already done an application and was attempting to transfer my number) Suddenly it became possible to do what the first representative stated would be easy. Another Customer witnessed the entire event. I can give you her contact info. Then I found out yesterday that after all this, they did not even bother to make the changes to my plan. They gave me "yes yes lip service" and did nothing.  I was at the store for a total of 4.5 hours.
    Yesterday I contacted you again by phone(after realizing online that my plan had not been changed), a representative named Dylan said he, was going to call the store and call me back. He said they would definitely get this taken care of. It is now 8am the next day and no one has contacted me. There is clearly no one in your company that can follow through. I have already applied to both Sprint and T-Moblie and while I hate to do it. I am furious. I will be trying to make a decision today. I am so angry, I do not know if I want to stay even if they change my lines. This should be so simple, it is a change to my plan and I have wasted a day of my life and raised my blood pressure because every seems completely incompetent. At the very least, even if I leave, I want you to know why. I want a lot of people to know why.
    Julie
    Private info removed as required by the Terms of Service.
    Message was edited by: Admin Moderator

    Julie, I have no idea what type of plan changes you are referring to but you can change your plan at anytime at http://www.verizonwireless.com under your account, under the device shown etc.
    In very rare cases you will get a system message saying the transaction could not be done and to call 800-922-0204 to speak to a customer service representative. Again I have never had this issue.
    If I read your missive correctly you have applied to what? There is no application to leave and port out your service to T-Mobile or Sprint or even AT&T.
    All that is needed is your full account number off your billing invoice or from the My Account screen at the web portal.
    You give that and your Verizon account password which normally is the last four digits of your social security number.
    It can take the other provider 20 minutes or 24 hours. Once done it cancels the line account at Verizon wireless.
    If you are feeling unhappy and agitated it is always best to wait an hour or longer to compose yourself and either port out or continue with other methods to get what is necessary done.
    Good Luck

Maybe you are looking for

  • Fields missing in Characteristic Relationship

    Hi Experts, I want to derive Currency Key from Company code using Characteristic Relationship. I am using 'With Derivation' and master data attributes. But in the source fields I see only two fields Cost Center and Controlling Area. Not sure why I am

  • Report on Released Invoices

    Hi Gurus, Can we get a report from system that what all invoices we have released using MRBR in a single year? Please revert asap. Regards,

  • Albums won't display in Firefox

    I know this is kind of an old problem, but I can't seem to resolve it. I'm running iweb 2.0.4, and my photo galleries will not display in Firefox 3. I tried downloading Fix iweb, but it won't recognize my software. It says "This patch will only run o

  • How to find the Minimum value of a Measure across a Custom Dimension

    I am having Trouble figuring the best approach for the given below scenario. I have a measure called Inventory which is basically by Product by Part by Geography across a Time period. Part dimension is 3 levels Deep. Part --Configuration_NAME - Part_

  • Where are the interfaces, such as ddi_intr_add_handler, in Solaris 10?

    Hi: I am writing a PCI driver in Solaris10. There are many new DDI/DKI interfaces for interrupt handler, such as ddi_intr_add_handler in document. But I can not find them in my system. My OS is Solaris10. Where are the interfaces for interrupt handle