Date of Birth in Years - HR Abap

Hi,
I need to get the date of birth of the employee in years. Please tell me how to go for it.
Thanks & Rgds
Preeti

TRY DIS CODE...(IFNO FM IS AVAILABLE)
DATA YEAR(4) TYPE C.
PARAMETERS DOB TYPE SY-DATUM.
DATA YEAR1(4) TYPE C.
DATA AGE.
YEAR = DOB+0(4).
YEAR1 = SY-DATUM+0(4).
AGE = YEAR1 - YEAR.
WRITE AGE.
RGDS
LEMME KNO WHETHER UR PROB IS SOLVED OR NOT.
Message was edited by:
        abapuser

Similar Messages

  • How can I change the date of birth on my child's Apple ID?

    HI,
    My son's school have started an initiative where they use iPads as part of their lessons, and subsequently my son has a brand new iPad through the scheme.
    The setup guide that the school supplied directed us to enter the parent's date of birth and the student's name to set up an Apple ID.  However, since setting his iPad up we have become aware of Family Sharing when we setup our old iPad for his younger brother, and the ability to create an Apple ID for a child.  We would obviously like the same level of protection and security for both children, not to mention restricting any accidental purchases!
    Is there any way to change his date of birth from mine to his?  I have read other similar posts with the best solutions apparently to fudge the date of birth so that the child is older than 13 years old.  I would like to do this properly rather than lie about his age...
    Thanks in advance

    You can not change the date of birth on the account. You are explicitly told this when the account is created.
    The ID you created is yours, not your son's. If your son is under 13, then to claim it is your son's ID is to say that you committed a crime when you created it. Create a new account for your son.
    Inform the school that if they are instructing parents to do this because the children are under 13, they are potentially criminally liable. They should know better.

  • How to Child Date of Birth on Child's iCloud Account

    Today I've created an iCloud child account / Apple ID for my 12 year old son who's just saved up and bought himself an iPad Mini (cue one very excited boy!) Unfortunately, when creating his Apple ID I accidentally set his year of birth to 2015 instead of 2003 so it's now showing him as being 1 month old.
    It appears that Apple won't allow me to delete his iCloud account from my family group so can anyone advise how I can either get round that restriction in order to delete his account and create a new one or how I can correct his date of birth?
    Thanks.

    Hi, I'm having the same issue. Trying to change my nephews birthday so that I can link him to my account but... 'Manage your Apple ID' can't change the date, it tells me "You cannot change your birthday at this time.". I notice that I can not change the birthday of my nephew so that he is younger than 13 years of age. I presume that this is a safety feature, good. However, how do I make this change with the necessary credentials?
    Thank you Apple.

  • How can I get my @mac email to work? when I try to reset password, i cannot access email for this and the security tells me I have wrong date of birth

    Have used bilmac@mac email address for years last couple of weeks am getting message icloud needs password which it then rejects, when I try to reset password,they want email to verify i cannot access email and the security question is D. O B. it tells me I have wrong date of birth. so I am stumped, any ideas bilmac

    COME ON PEOPLE. (WHY ARE THE LETTERS SO BIG HERE?) I AM VERY OLD AND JUST LIKE THINGS TO STAY THE SAME. I DID NOT, DO NOT, WANT ICLOUD TO DO ANYTHING I HAVE NOT USED IT AT ALL YET IT HAS MANAGED TO MESS UP MY EMAIL ADDRESS WHICH I HAVE BEEN USING FOR YEARS, IT ASKS FOR PASSWORD THEN REJECTS AND WHEN I TRY TO RESET WITH APPLE ID THEY ASK FOR SECURITY AS I CANNOT ACCESS THE EMAIL ADDRESS THEY HAVE FOR ME BECAUSE ICLOUD ASKS FOR PASSWORD, THEN APPLE TELL ME I DONT KNOW MY OWN DATE OF BIRTH, VERY CONFUSING

  • Update age group picklist based on value entered in date of birth

    Hi Gurus,
    Have a requirement where in user would enter the date of birth on a contact record and would like to populate another custom field called age group at the time of creating a new record.
    The condition is some what like
    Age
    1 – 20 Teens
    21-40 Young Adults
    41-60 Adults
    60 – 100 Seniors
    I have tried using the age field but problem is that age is populated only when the record is saved.
    Update the age group via workflow works fine but the saved record has to be modified before triggering the workflow. we would like to avoid the additional step of modifying the record
    Is there any option to calculate age based on the value entered for date of birth - something like DOB Year - current year before saving a record or via post default without using workflows.
    Thanks in advance,
    Arun

    Hi
    The answer is yes, using the post default functionlaity.
    take a look in the folowign example:
    IIf(ToChar(Timestamp(),'DD/MM/YYYY')- [<DateofBirth>] < 20,'20','30')
    You will need to make something like that, but replace the '30' with another IIf expression, and so on for the next interval.
    note that date of birth should be between suqare brackets [  ] (it is shown here with underline for some reason...)
    Good luck
    Guy
    Edited by: Shinshan on 08:45 30/12/2009
    Edited by: Shinshan on 08:46 30/12/2009
    Edited by: Shinshan on 08:47 30/12/2009
    Edited by: Shinshan on 08:47 30/12/2009

  • How to delete data older than three years from DSO

    Hi  all,
    We needs to keep historical data in the DSO only for three years. One way of doing this is by selective deletion we can delete data older than three years but we want to make it authomated. Is it possible to add a process or ABAP program to delete data older than three years.
    If it is p[ossible by ABAP code then can you please give me sample code.
    Many Thanks in advance.
    Harman

    Some time for in case of huge volume of data selective deletion is not works, Try for "prunning" option.
    It's work as follows
    1)     Create DSO which is same replica of your Source DSO.
    2)     Create two transformation
         a) from Source DSO to Copy DSO
         b) Another is from Copy DSO to Source DSO
    3)     Transprort Last 3 years records to Copy of Source DSO using DTP Filter range for time.
    4)     Once data loading from Source DSO to Copy DSO get completed delete all data from Source DSO.
    5)     Now load data from Copy DSO to Source DSO.
    6)     After complete loading delete entire data from Source DSO.
    I use prunning process to one of my client and it's work perfectly.
    Regards,
    Sushant
    +919820849482

  • Accidentally put in the wrong date of birth!!!

    I accidentally put in the wrong date of Birth when signing in to Creative Cloud. Now its locked me out and I can't log in at all.
    I logged in to my main Adobe ID account to see if I could change my date of birth but could not see how to do it!
    Can someone help me change this so I can use the system.
    At the moment according to Creative Cloud Im a 9 year old 29 year old!!!
    Matt

    You will need to contact Customer Support to fix the date-of-birth:
    Phone number: 800-833-6687, Monday-Friday, 5am-7pm PST
    Chat with an agent: http://tinyurl.com/8kquhso

  • Validate date of Birth

    How I can validate date of birth?
    Month-Date-Year
    Example: 11-21-1960
    Thanks

    You could use a regular expression:
    E.g.
    var dateRegExp = "^(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$"; // mm-dd-yyyy
    if (oField.rawValue.search(dateRegExp) === -1) {
         // error!
    Or you could use a date object as suggested in the previous post, but also stop the user from typing in a date so they will be forced to use the date selection box. This would ensure that the date is always in the correct format. To stop the user from typing in data, put the following code in the change event for the field:
    if (xfa.event.change.length == 1) {
    xfa.event.change = "";

  • Retirement Date Calculation based on Date Of Birth

    Hi All,
    We have 11.1.2.2 PSPB Application where we have requirement to calculate "Retirement date" (in the format dd/mm/yyyy) based on employee's "Date Of Birth", for which i tried with @DateRoll function, but no luck. For time being we tried "Retirement Year" which was successful.
    "Retirement Year"=@INT ("Date Of Birth"/10000)+60;
    For Example: If Employee's Date of Birth is 7/11/1946 thru above script i got 2006 as his "Retirement Year", now i need "Retirement Date" as 6/11/2006 which im not getting. I tried in all ways like:
    1) "Retirement Date"=@DateRoll ("Date Of Birth",DP_YEAR,1); got output as 31/03/5127 for "Date Of Birth" 01/01/1975
    2)"Retirement Date"= @FORMATDATE ("yyyyddmm",@DateRoll ("Date Of Birth",DP_YEAR,1)); no luck.
    3)"Retirement Date"=@DATEDIFF (@Today(),"Date Of Birth",DP_YEAR)); no luck.
    Also all the Date functions like @DateRoll,@FromatDate,@DateDiff etc returns number representing the date between January 1, 1970 and Dec 31, 2037, is that true? If yes, what functions needs to be used for  "Date of Birth" above the range.
    Please suggest ASAP.
    Thanks in advance.
    Regards,
    Sahi

    If anyone's interested, I found a solution
    if (DropDownGuarantee.rawValue eq "1" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY") + 30, "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "2" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY") + 30, "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "3" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY") + 60, "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "4" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY") + 60, "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "5" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY") + 60, "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "6" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY") + 90, "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "7" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY") + 90, "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "8" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY") + 90, "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "0" and DteStart.rawValue ne null) then
    Num2Date(Date2Num(DteStart.formattedValue, "M/D/YYYY"), "M/D/YYYY")else
    if (DropDownGuarantee.rawValue eq "9" and DteStart.rawValue ne null) then
    "enter expiration date"
    Marlene

  • Question:  I accidently entered my wrong date of birth and it locked me out.

    I purchased the Adobe Word converter software and when I signed in the first time it asked for my date of birth.  It locked me out when I accidently didn't change the year to the right year.
    Help with that?

    You're going to have to call Apple and ask for Account Security in order to get this straightened out.

  • Calculate age from date of birth

    hi all,
    I have date of birth of few employees,
    I want to know how can i find out their age,
    Please guide,
    thanks,
    HM

    hi
    DATA : BIRTH_DATE LIKE SY-DATUM,
    DAYS TYPE NUM2,
    MONTHS TYPE NUM2,
    YEARS TYPE NUM2.
    BIRTH_DATE = '19830307'.
    CALL FUNCTION 'HRCM_TIME_PERIOD_CALCULATE'
    EXPORTING
    BEGDA = BIRTH_DATE
    ENDDA = SY-DATUM
    IMPORTING
    NOYRS = YEARS
    NOMNS = MONTHS
    NODYS = DAYS
    EXCEPTIONS
    INVALID_DATES = 1
    OVERFLOW = 2
    OTHERS = 3.
    WRITE : / YEARS , 'years' , MONTHS , 'months' , DAYS , 'days'.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Query to sort data by date of birth

    Hi i tried creating this query from the staff table of my database to display the data for only the nurses who are over 50 years old if the date of birth is shown.
    my coding is below and so is the eroor that keeps occurring when i try to run it. please help if you can.
    MY CODING:
    SELECT Staff_Table.StaffNumber, Staff_Table.LastName, Staff_Table.FirstName, Staff_Table.JobDescription, Staff_Table.DateOfBirth
    FROM Staff_Table
    WHERE (((Staff_Table.JobDescription)="nurse") AND ((Staff_Table.DateOfBirth)<=DateAdd("yyyy",-50,Date())));
    ERROR:
    Error starting at line 1 in command:
    SELECT Staff_Table.StaffNumber, Staff_Table.LastName, Staff_Table.FirstName, Staff_Table.JobDescription, Staff_Table.DateOfBirth
    FROM Staff_Table
    WHERE (((Staff_Table.JobDescription)="nurse") AND ((Staff_Table.DateOfBirth)<=DateAdd("yyyy",-50,Date())))
    Error at Command Line:3 Column:36
    Error report:
    SQL Error: ORA-00920: invalid relational operator
    00920. 00000 - "invalid relational operator"
    *Cause:   
    *Action:
    I really dont understand what is wrong with this.

    If you want to search on first name
    SELECT  Staff_Table.StaffNumber,
            Staff_Table.LastName,
            Staff_Table.FirstName,
            Staff_Table.JobDescription,
            Staff_Table.DateOfBirth
      FROM  Staff_Table
      WHERE LOWER(Staff_Table.FirstName) = LOWER( <<entered first name>> )
        AND Staff_Table.DateOfBirth <= ADD_MONTHS(TRUNC(SYSDATE),-600)If you want to search on the last name
    SELECT  Staff_Table.StaffNumber,
            Staff_Table.LastName,
            Staff_Table.FirstName,
            Staff_Table.JobDescription,
            Staff_Table.DateOfBirth
      FROM  Staff_Table
      WHERE LOWER(Staff_Table.LastName) = LOWER( <<entered last name>> )
        AND Staff_Table.DateOfBirth <= ADD_MONTHS(TRUNC(SYSDATE),-600)Or if you want to search on either
    SELECT  Staff_Table.StaffNumber,
            Staff_Table.LastName,
            Staff_Table.FirstName,
            Staff_Table.JobDescription,
            Staff_Table.DateOfBirth
      FROM  Staff_Table
      WHERE (LOWER(Staff_Table.FirstName) = LOWER( <<entered name>> ) OR
            LOWER(Staff_Table.LastName) = LOWER( <<entered name>> ) )
        AND Staff_Table.DateOfBirth <= ADD_MONTHS(TRUNC(SYSDATE),-600)You could also put wild card character to search for the entered string anywhere in the first or last name field
    SELECT  Staff_Table.StaffNumber,
            Staff_Table.LastName,
            Staff_Table.FirstName,
            Staff_Table.JobDescription,
            Staff_Table.DateOfBirth
      FROM  Staff_Table
      WHERE (LOWER(Staff_Table.FirstName) LIKE LOWER( '%' || <<entered name>> || '%' ) OR
            LOWER(Staff_Table.LastName) LIKE LOWER( '%' || <<entered name>> || '%'  ) )
        AND Staff_Table.DateOfBirth <= ADD_MONTHS(TRUNC(SYSDATE),-600)Of course, this gets harder and harder to build indexes that would allow you to find the rows without resorting to a full table scan.
    Justin

  • How do to figure out your Date of Birth?

    Hi, I haven't been able to log into my apple account as it is saying my password is incorrect. However, I do remember what my password was and I know it is right. I have tried resetting my password with the email but it didn't send an email and I also have tried doing the security questions... but I forgot the year I put down as I think I may have put a wrong year in. I hope there is a way to solve this as this account has money on.
    Thanks for the help.

    How do to figure out your Date of Birth?
    Ask your Mom.

  • Current date of birth for my column is null getting error....

    Hi All..
    i am calucating the current date of birth for my column which is date field and accept nulls (cust_dob) in my table.
    select cust_dob,Add_Months(
    to_date(cust_dob, 'dd/mm/yyyy'),
    Months_Between(
    trunc(sysdate, 'year'),
    trunc(to_date(cust_dob, 'dd/mm/yyyy'), 'yyyy')
    ) as current_dob from m_customer_hdr
    when i execute my query in toad. it is showing the result. but when i scroll down to see data it thow error as
    ORA-01858: a non-numeric character was found where a numeric was expected...
    Thanks in advance..
    Abdul rafi

    What datatype is cust_dob datatype. Somehow I have a feeling it is DATE. If so, expression:
    to_date(cust_dob, 'dd/mm/yyyy')Implicitly converts cust_dob to a string using session nls_date_format and then converts it back to date using 'dd/mm/yyyy' format. Now if NULL dob are fetched first, you might get something like:
    SQL> ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-RR';
    Session altered.
    SQL> SET SERVEROUTPUT ON
    SQL> BEGIN
      2      FOR v_rec IN (SELECT  TO_DATE(cust_dob,'mm/dd/yyyy') cust_dob
      3                      FROM  (
      4                             SELECT TO_DATE(NULL) cust_dob FROM DUAL UNION ALL
      5                             SELECT TO_DATE(NULL) cust_dob FROM DUAL UNION ALL
      6                             SELECT TO_DATE(NULL) cust_dob FROM DUAL UNION ALL
      7                             SELECT sysdate cust_dob FROM DUAL
      8                            )
      9                   ) LOOP
    10        DBMS_OUTPUT.PUT_LINE('DOB = "' || v_rec.cust_dob || '"');
    11      END LOOP;
    12  END;
    13  /
    DOB = ""
    DOB = ""
    DOB = ""
    BEGIN
    ERROR at line 1:
    ORA-01858: a non-numeric character was found where a numeric was expected
    ORA-06512: at line 2So if column CUST_DOB is DATE, use:
    select cust_dob,Add_Months(
    cust_dob,
    Months_Between(
    trunc(sysdate, 'year'),
    trunc(cust_dob, 'yyyy')
    ) as current_dob from m_customer_hdrSY.

  • Date of Birth requirement - security concerns

    Well, I've been in business for over 30 years, and it's obvious that since I would pay for a Creative Cloud membership with my credit card, I'm over the age of 13 - a requirement to sign up for the CC subscription.
    I don't want to give Adobe - or anyone else who's just a commercial business - my date of birth, as this is a considerable security risk. Identity theft is a real concern, these days. Same reason I will gladly give people I do business with my Federal Tax ID number, but not my Social Security number.
    Why not just have potential CC users sign an agreement that they are of legal age? It accomplishes the same thing.
    Will Adobe accept some other kind of proof over the phone? Otherwise, I don't think I can sign up for the Creative Cloud, as much as I'd like to. I'm a registered user of CS4 Web Preimum and other Adobe CS products. I have an associate who deals with online security/identity theft as a profession, and he states that he would never give out his date of birth to ANY of his suppliers.

    Thank you for the feeback.
    We ask for the date of birth to comply with COPPA - the Children's Online Privacy Protection Act.
    We agree that identity theft is a serious issue. I will ask about how we can comply with COPPA and not ask for a date of birth.

Maybe you are looking for

  • Links in mouseover images to change with the images

    I have created a page with mouseovers on page headings that affect the main page image -- mouseover image 1 and the main image changes, mouseover image 2 and the main image changes again etc. I have set the mouseovers not to revert on mouseout, so th

  • Number of Alerts Consumed by AlertInterval

    When I do a show stat virt I see the following information:          Number of Alerts Consumed by AlertInterval = 744             Sig 3653.0 = 744 What does this mean? I checked the signature and the Alert Interval is set to 2. The Action is set to P

  • I can't redeem my code..

    So I bought a $25 iTunes gift card but can't redeem it. I'm sure i typed the code in right but it keeps asking for my password countless times and i know I'm typing my stuff in right. Please help

  • What content will I loose if I restore my phone from backup?

    I need to restore my iPhone4S from a backup, but I am scared that I will loose photos and videos. Is it guarenteed that everything will be brought back?

  • MSI 970A-G46 | Needs to be Exchanged for a new one |

    Yup, some stuff happened to it and now I need to exchange it for a new one. Can someone please show me where I can do that? Thanks