AGE RANGE calculation????

hi,
i am working with HR CUBE(0PA_C01) which is personal actions and headcount, please tell me the logic how to calculate AGE RANGE?
thanks in advance
sheelu

hi,
points will be assured.
thaks

Similar Messages

  • Length of service,age range calculation please?

    Hi all,
    Could you please tell me the logic to calculate the above mentioned fields.
    please provide me the logic.
    cheers
    sheela

    Hi Sheela,
    Few benefits/Leave quota are based on the Age of the Employee, few benefits/Leaves quota are based on the length of service one has with the company...
    If this not the answer, you were looking for, pls. clarify your query little more, probably somebody will be able to help in better way.
    Regards,
    Dev

  • Calculated Age and Age Ranges in a Query

    Hello,
    We are using 3.5 Query Designer.
    I am trying to create age ranges in a query. The InfoProvider at this point (I've gone very simple) is InfoObject, 0PERSON.
    I've created a calculated key figure (CKF) called age which I have used a formula to define. The age is calculating correctly. Age has  'Calculate Result As...' = Summation. And in the 'Enhance', 'Time of Calculation' is set to Before aggregation. Number of decimal places set to 0. Now I've created a CKF, AGE_GE_40 which has as its formula 'COUNT(('Age' >= 40)). I've created an additional CKF, AGE_LE_39 which has a formula 'COUNT(('Age'<=39))'. Both of these have the 'Summation' set in the calculation section. The query contains 0GENDER, 0PERSON with AGE_GE_40 and AGE_LE_39 and Number of records as the key figures in the columns. When executed initially, all of the result rows are correct. The problem is when I remove 0PERSON, the result rows only give me 1 per gender. This seems like an easy thing to do, why is it not working?
    Thanks for any help,
    Diane Merrill

    Diane,
    For each row in the query data, there is only one age value calculated, which is the aggregration of all records which fulfills the row's characteristic value combination. Thus, when there is Gender & Person columns in the query, each row calculates an age value for the Gender/Person combination, which is essentially the same as for each person, because each person has one gender value. However, when you remove person from the columns, there will be only two values for gender, and the age is calculated as the sum of ages for all records with the same gender value. To reveal more on this, you can add the Age key figure into the query columns, and run the query with only the gender (i.e. without person). Once you see the age value for each row, it should be clear to you.
    Please reward points if this is helpful.
    Wayne

  • Creating age range

    Hi All,
    I am creating a technical specification document for below report. and as of now i dont have sandbox system
    age range  ,     no. employee as per age range  ,  No. of spouse as per age range.
    we are having 0age_range  and 0age  in standard cube 0PA_C01 .
    i have a doubt here if i create a calculated keyfigure for age of spouse using DOB add it in my cube and then in query designer if i drag age range in columns and age and spouse age in rows will i get age range wise number of employees and number of spouse ???
    Apoorva

    Yes you can do that. Here is an example from another thread. The chart is using the data in the "stacked bar chart" table which was derived from the raw data. The bars for the first series are formatted so they are invisible (no fill). You can simplify it somewhat if you don't need a median.

  • Age range change preoblem

    SAP deliverd infoobject 0AGE_RANGE with standard age range, but our clients want to have special age range interval and calculate Number of Employees within this range. However HR module doesn't make this kind of range.
    1) How to change the range according to customer's expectation?
    2) How to calculated Number of Employees within this range due to HR team doesn't maintain this age range in R/3?
    3) Should we write ABAP code?
    SAP standard age range
    1  <20
    2  20 - 29
    3  30 - 39
    4  40 - 49
    5  50 - 59
    6  60 - 69
    7  >= 70
    Customer required:
    1     <=25
    2     26 - 30
    3     31 -35
    4     36 - 40
    5     41 - 45
    6     46 - 50
    7     51 - 55
    8     >= 56
    Edited by: hi ni on Apr 19, 2008 5:02 AM

    Hi,
    take a look at 0AGE doc from help.sap.com I think it should solve your problem:
    This characteristic is a derived characteristic. You can use this characteristic to display key figures in accordance with the age of an applicant or an employee.
    The characteristic contains the applicant/employee‘s age at the end of a period. You can define an age hierarchy according to the specific requirements of your enterprise, and then display the age structure of your enterprise, for example. To enable you to perform age-based calculations, the system includes an Age in Years key figure (0AGE_KYF).
    The age characteristics are calculated using update rules at the end of a period. The period depends on the InfoSource from which it is taken. For example, the end of the period can be at the end of a calendar day or month.
    SAP delivers age in years hierarchies in CSV files. (See also InfoSource Age in Years (0AGE)). You can also define hierarchies for the Age in Years characteristic (0AGE). You can determine intervals within the structure as required, for example, in five-year intervals (25 - 29 years, 30 - 34 years, and so on.) Therefore, the age structure that you define yourself offers advantages over the fixed age structure of the Age Range characteristic (0AGE_RANGE).
    http://help.sap.com/saphelp_nw70/helpdata/en/e0/afd837aeadd03ce10000009b38f889/frameset.htm
    Assign points if it was helpful...
    Regards
    Andreas

  • How to summarize age ranges i.e 0-5, 6-10........?

    Post Author: SunilKanta
    CA Forum: General
    Hi,
    I am new to crystal reports, i am designing a report i.e cross tab report as shown below,
    AGE TABLE
    0-5
    6-10
    11-15
    16-20
    21-25
    26-28
    CLASS A Count
                     7
                   15
    CLASS B Count
                     7
                   15
    CLASS C Count
                    109
                 155
                 120
                   96
                   89
    Now my questions are,
    How to display age ranges i.e 0-5, 6-10,........?
    How to group ages in range and get the count or any summarized value ?
    Here i am passing three parameters to the report which are
    1. prmLowAge
    2. prmHighAge
    3. prmAgeBand
    Above shown sample is characterised with prmAgeBand = 5, prmLowAge = 0 and prmHighAge = 28.
    And if possible please try to find the solution for variable age bands.
    Please i am very desperate. Please help me in solving this .

    Post Author: Ishe
    CA Forum: General
    You can use a Do...While loop.  You can use the funtion below:
    LOCAL STRINGVAR AGEGRP;LOCAL NUMBERVAR AGECNT := 0;
    DO (AGEGRP := CSTR(AGECNT,0) + '-' + CSTR(AGECNT+5,0);AGECNT := AGECNT + 5)WHILE AGECNT < ;
    AGEGRP
    Also, you may want to use the following funtion to get , because the formula you were going to use would only compare the year of birth to the current year and ignore the number of months and days difference.
    Int(DateDiff("d",{table.BirthDate},CurrentDate)/365)

  • How to create age range according to customer's requirement

    SAP delivered standard age range(0age_range) as below:
    1  <20
    2  20 - 29
    3  30 - 39
    4  40 - 49
    5  50 - 59
    6  60 - 69
    7  >= 70
    Cusomter's requirement:
    1     <=25
    2     26 - 30
    3     31 -35
    4     36 - 40
    5     41 - 45
    6     46 - 50
    7     51 - 55
    8     >= 56
    How to handle this case if we use 0age instend of fixed age range(0age_range). should we maintain this from external flatfile, if yes, please provider the format. Thank!

    Hi,
    You can write a routine in the update rules for the range as you mentioned.
    Plz find the below code which may help u...
    DATA: AGE TYPE 0AGE.
      IF AGE <= 25.
          RESULT = '1'.
      ELSEIF AGE > 26 AND AGE <= 30.
          RESULT = '2'.
      ELSEIF AGE > 31 AND AGE <= 35.
          RESULT = '3'.
      ELSEIF AGE > 36 AND AGE <= 40.
          RESULT = '4'.
      ELSEIF AGE > 41 AND AGE <= 45.
          RESULT = '5'.
      ELSEIF AGE > 46 AND AGE <= 50.
          RESULT = '6'.
      ELSEIF AGE > 51 AND AGE <= 55.
          RESULT = '7'.
      ELSEIF AGE >= 56.
          RESULT = '8'.
      ENDIF.
    Hope this helps u...
    Regards,
    KK.

  • Is there an up to date version of the Outdoor Bridge Range Calculation Utility?

    I have found this: Outdoor Bridge Range Calculation Utility
    but it dates back to 2007. Brilliant tool but is there an up to date version with the details of current kit?
    Cheers,
    Andy

    The spreadsheet seems to only rate up to 54mbps. I would have thought we could get more than that by now...
    I have a requirement to replace a laser point to point with a wireless bridge, (dont know why the powers that be have decided laser isnt appropriate anymore). I would need at least a gb, preferably more. The link is only 150m.
    Surely with the right kit there is a way to achieve the data rate needed at that distance without laser?
    Cheers,
    Andy

  • Range Calculation

    Hi
    I have one age field(values eg 10,20,15,12).But report requirement is to have details based on age ranges(eg 0-5,5-10 etc.)
    Can anyone please tell me how can I handle this with discoverer.
    Please advice
    Thanks
    Pooja

    I am able to form Range..with formula u have provided,but still facing some issue.
    Data is like this
    Age No of People Calc(Age Range)
    100 9 100-105
    103 2 100-105
    But I want to show information like this
    No of People Calc(Age Range)
    11 100-105
    I have applied group sort on calc.But it doesnt solved my problem.
    Plesae suggest
    Regards
    Pooja

  • Match age with dob and age range

    I have two table Hist and Geog of which Hist contain case_id, DOB, age, age_range and Geog (reference table) contain case_id, age_low and age_high (range value e.g 30-45) . if age_range is 30-45 means age_low =30 and age_high=45
    Query-- find those record from table Hist where age will not match with the age_range (like if age=45 .age range=30-44) and DOB will not match with age range.
    select a.case_id,a.age, ag.age_range from Hist a, Geog g
    where a.case_id=g.case_id
    and a.case_id not in (?????)
    Advance thanks for your support.

    Dear Edsteven
    Thanks for your response
    Data in my database ls like below
    HIST                    
    case_id     dob     age age_range     
    121     23-Jan-1988     23     3     
    123     31-Oct-1968     43     2     
    122     23-Jan-1978     33     3     
    125     23-Jan-1999     9     1------------->     Wrong record
    Geog                    
    case_id     age_range     age_low     age_high     
    123     2     36     50     
    122     3     20     35     
    125     1     10     19     
    I want to retrive those record where age_range will not correspond to age an dob also.
    select hi.case_id, hi.dob, hi.age, ge.age_low, ge.age_high
    from geog ge, (select * from hist hi where age_range not null)
    where hi.case_id=ge.case_id
    and (hi.age is not null orhi.dob is not null)
    and( hi.age<age_low or hi.age>age_high)
    and ( TRUNC(MONTHS_BETWEEN(SYSDATE,hi.dob)/12) <age_low or TRUNC(MONTHS_BETWEEN(SYSDATE,hi.dob)/12)>age_high)

  • LENGTH OF SERVICE,AGE RANGE, NUMBER OF ACTIONS CALCULATION???

    Hi all,
    Could you please tell me the logic to calculate the above mentioned fields.
    <b>please provide me the logic.</b>
    cheers
    sheela

    choose the proper functional forum..
    this looks like an HR question.
    try SAP ERP Human Capital Management (SAP ERP HCM)
    and please do not post using your CAPS LOCK key, it shows disrespect to people who read your question.
    good luck.

  • How to do range calculation with decode/case

    Trying (unsuccesfully) to this as a Discoverer calculation:
    CASE WHEN ( Activity Composite fact.Activity Date >= TO_DATE('03-Jul-2007') AND Activity Composite fact.Activity Date <= TO_DATE('10-OCT-2007') ) THEN SUM(Activity Composite fact.Activity Amount) ELSE 0 END
    I get "Unimplemented Feature." I need to create a calculation that sums the amount for records within a date range only.
    I can't use conditions because I'm comparing a specific date range in one year to a comparable range in the other.
    Am I hoping against hope or is there a way to do this?
    Thanks...

    Hi,
    Try moving the SUM( ) around the entire Case statement, like so:
    SUM(CASE WHEN ( Activity Composite fact.Activity Date >= TO_DATE('03-Jul-2007') AND Activity Composite fact.Activity Date <= TO_DATE('10-OCT-2007') ) THEN Activity Composite fact.Activity Amount ELSE 0 END)
    See if that works.
    Brent

  • Age based calculations for Germany

    Hi,
    In germany,we got a unique requirement.Based on the age of the employee,a one-off payment of a particular amount has to be automatically processed in the payroll.
    Is there any way to meet this requirement.
    Regards
    Mitra

    i think it not possible to get deafalut base on age.
    i hv a solution for that but i belive that is not proper; please
    you need create EE group based on ages and create LGMST based on that.
    If EE crossed some age he need you to transfer to that group by an action
    you have to create an action for that in customizing procedures
    Best Regards

  • Date Range Calculations for gaps and overlaps

    Oracle version: 11.2.0.3
    Platform : Linux
    Empno       position    start_dt       end_dt
         1                X            01/01/2008  01/02/2010
         1                Y           01/02/2009  12/31/2012
         1                X           02/01/2012   04/01/2013    
         1                Z           5/01/2012    12/31/2012
         1                Y           05/01/2013  present         
    I need to find the exact time period the employee worked for the company in a particular position. The query should be able to calculate the overlap/gaps accordingly
    For example in this case the result should be
    Empno  position   days    Total_Days
    1             x              1156        2943
    1             y              1543        2943
    1             z               244        2943
    Thanks
    Kevin

    Hi, Kevin,
    Assuming you do have overlaps (and depending on what you mean by "overlaps") here's one way to handle them:
    WITH got_new_grp AS
       SELECT  empno, position, start_dt
       ,       NVL (end_dt, TRUNC (SYSDATE)) AS end_dt
       ,       CASE
                   WHEN  MAX (end_dt)
                             OVER ( PARTITION BY  empno, position
                                    ORDER BY      start_dt
                                    ROWS BETWEEN  UNBOUNDED PRECEDING
                                         AND      1         PRECEDING
                                  ) < start_dt
                   THEN  1
                   ELSE  0
               END  AS new_grp
        FROM   table_x
    --  WHERE  ... -- If you need any filtering, put it here
    , got_grp  AS
        SELECT  empno, position, start_dt, end_dt
        ,       SUM (new_grp) OVER ( PARTITION BY  empno, position
                                     ORDER BY      start_dt
                                   )  AS grp
        FROM    got_new_grp
    SELECT DISTINCT
              empno, position
    ,         SUM (MAX (end_dt) - MIN (start_dt))
                  OVER (PARTITION BY empno, position)   AS days
    ,         SUM (MAX (end_dt) - MIN (start_dt))
                  OVER (PARTITION BY empno)             AS total_days
    FROM      got_grp
    GROUP BY  empno, position, grp
    ORDER BY  position
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Point out where the statement above is getting the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Calculating Age in BEx Query

    I want to calculate age of Order based on Order create date. I am having order create date as key figure date in Order cube. Age is calculated at runtime as (Last day of month) - Order create Date. For Example.
    If ORder 'A' is created in 10/01/2004 and if query is executed at 12/31/2004 then Query should produce output  as follows:
    Order Number        Month    Age
    A                   10/2004  31 Days
    A                   11/2004  61 Days
    A                   12/2004  92 Days
    In my infocube I've only one record for this order with Order number and Order create date. How to produce above mentioned o/p from this.
    Thanks,
    Milind

    Hi Milind,
    if you are looking for a web solution, use a table interface to create a new column for the age. You can calculate the value for the order age with the table interface, too. An advantage of this table interface solution is, that you can concatenate your unit [days] into the output range, like "31 Days".
    For BEx Analyzer, you can create a VBA macro to get the same advantage...
    rgds Jens

Maybe you are looking for

  • Can't get Image to switch properly

    Yesterday I made a thread about not being able to change the BorderTitle of a panel whenever I clicked one of the JRadioButtons. That was taken care of thanks to the help of 2 members of this forum. But then, I got stucked in another part. The progra

  • Finally updated to iTunes 11.1.3 and now TV shows will not play?

    With the HD videos, it says "This movie can be played only on displays that support HDCP (High-bandwidth Digital Content Protection)." With the SD videos, the audio plays, but the video is just scrambled colours. Is there any way to fix this, or remo

  • "FileChooser.lookInLabelText" key doesn't work...

    Hi all! As many of you, I use the UIManager's "put" method to localize a JFileChooser. The problem is that the "FileChooser.lookInLabelText" key seems not to work if JFileChooser is shown using the "showSaveDialog" method (though it works fine with "

  • How to use left outer joins ,right outer joins and order by clause for belo

    Hi, How to use left outer joins ,right outer joins and order by clause for below XML query. The query which is red colour returns null then its not displaying any values for columns in that tables. Tried decode, nvl function hasn't worked. SELECT XML

  • OCM inconsistencies

    Dear Experts,                             I have read limitations of OCM.  I am not using collective order and there is no phantom assembly in BOM. Overall profile is assigned in work scheduling view. Strategy used is 40 .I have created change reques