Fields/Tables to locate most recent overall performance rating of employee

Hi,
I'm looking for the table names and fields that would be involved in determining a person's latest performance rating.  I've spotted  the latest date in HRHAP, but want to be able to tie this to a personnel number and a field that hopefully links to text (Good, Very Good??) regarding the employee's overall rating.  Thanks for any help!
Zaj

Hi Zajebiscie
Love the name!
Depending upon your implementation (i.e. - if you're using EHP4), you can also rely on HRP7409 (which uses Central Person as the key) to pull the previous performance rating.  For any of these choices though, you're going to have to take the value and the scale and go against the text lookup table to find out what that actual value is.  So in this hypothetical, you'd look at HRP7409 for the max ENDDA of the the CP you're looking for.  Then you'd take the PERFORMANCE field and the SCALE_ID field and go up against T77SP where SCALE_ID = SCALE_ID and PERFORMANCE = RATING and return PSTEXT.
That way, if your company chooses to change scale year over year, your query will accomodate the change in scale values without skewing past data.
Let me know if you have any questions.
Thanks,
Chris

Similar Messages

  • How to print only the 2 most recent values in a multi-value table field

    Hi there,
    I have a history table field in my report that may contain anywhere up to 100 values for any one database record... however for each database record, I only want the LAST 2 (ie. 2 most recent) values of this field to be included in the report. I then want to do a value change comparison and produce a percentage change for the field.
    It seems like a simple concept... can anyone assist?
    -Karen

    Hi Jyothi,
    I'm not sure I understand your qeustion.
    For example:
    The table field may contain a list of 4 values:
    (value1) 5000
    (value2) 4000
    (value3) 7000
    (value4) 7500
    I only want the report to include value3 and value4, and then I want it to show the difference between these values (ie. 7500 minus 7000) and then also express a percentage change between these two values). I am not sure what kind of formula to use for this.
    Thanks for your time!
    -Karen

  • SQL to compare 2 most recent rows in table

    Hi,
    I am trying to compare STATUS fields ( Most recent to Next Most recent )
    and select Most recent row if there STATUS values are different.
    SQL :
    select c.id,c.effdt,c.end_dt,c.status
    from table c ,table k
    where c.id = k.id
    and c.status <> k.status
    SAMPLE DATA
    ID EFFDT END_DT STATUS
    6 10/10/2006 12/31/9999 Y
    6 10/01/2006 10/09/2006 N
    6 09/02/2006 09/30/2006 Y
    EXPETING O/P
    6,10/10/2006 , 12/31/9999 , Y
    but with the above SQL i am getting 3 rows with same data .
    6,10/10/2006 , 12/31/9999 , Y
    6,10/10/2006 , 12/31/9999 , Y
    6,10/10/2006 , 12/31/9999 , Y
    is there a way to select only one row without using DISTINCT ?
    i can't use DISTINCT keyword because if sample data contains
    below data my SQL compares 1st row and 4th row since STATUS are not
    equal and returns results which we dont want . we just want
    to compare Most recent and next most recent ( i.e first and second rows
    only )
    SAMPLE DATA
    ID EFFDT END_DT STATUS
    6 10/10/2006 12/31/9999 Y
    6 10/01/2006 10/09/2006 Y
    6 09/02/2006 09/30/2006 Y
    6 08/01/2006 09/01/2006 N
    Best regards,
    Karru

    Try this
    SELECT *
    FROM
         (SELECT end_dt,
              status,
              lead(status) over(PARTITION BY id
            ORDER BY end_dt DESC) AS
           next_status
            FROM qry
            ORDER BY end_dt DESC)
    WHERE NVL(status,'Z') <> next_status
    AND rownum = 1

  • Most recent date (UDATE) from CDHDR table based on CDPOS

    Hi,
    I am working on one object where i stuck with one issue. The requirement is I have to retrieve the most recent date from CDHDR table based on CHANGENR in CDPOS table. Where i am doing FOR ALL ENTRIES on CDPOS table to get the MAX( date )and i got the error, that aggregate functions are not allowed except COUNT( * ) with for all entries.
    Any thread which can solve this issue would help aswel.
    Please guide me how to achieve this. <removed>
    Edited by: Thomas Zloch on Mar 13, 2010 9:10 PM

    Hi Li,
    Thats was really helpful information , infact my requirement is same as what you said. I even checked in the table entries there is only one changenumber.
    You said we can take the first record, i even did the same. But for TABNAME I have to pass 3 table name 'LFA1', 'LFB1' and 'LFM1'. For FNAME 'LOEVM', 'SPERR'. I have written the code as below.
      SELECT objectclas
                   objectid
                   changenr
                   FROM cdpos
                   INTO TABLE i_cdpos_a1
                   FOR ALL ENTRIES IN i_lfabm1
                   WHERE objectclas = c_kred               "KRED
                   AND objectid EQ i_lfabm1-objectid       "Lifnr
                   AND ( tabname EQ c_lfa1 OR tabname EQ c_lfb1 OR tabname EQ c_lfm1 )          "LFA1, LFB1 and LFM1
                   AND ( fname EQ c_loevm OR fname OR fname EQ c_sperr )    "LOEVM, SPERR
                   AND value_new EQ c_x.
            IF sy-subrc EQ c_0.
              IF i_cdpos_a1[] IS NOT INITIAL.
    Select UDATE from CDHDR based on CHANGENR in CDPOS.
                SELECT objectclas
                       objectid
                       changenr
                       udate
                       FROM cdhdr
                       INTO TABLE i_cdhdr_a1
                       FOR ALL ENTRIES IN i_cdpos_a1
                       WHERE objectclas = c_kred             "KRED
                       AND  objectid EQ i_lfabm1-objectid               "Lifnr
                       AND changenr EQ i_cdpos_a1-changenr.   "(this is coming from CDPOS above selection)
    Here i got UDATE which have all the dates from 3 tables. I have to display in the output the field value (X) of LOEVM and UDATE for LFA1, SPERR value and UDATE for LFA1.Same way for other two tables, I have to display the UDATE and its field value (X). Where UDATE should be most recent date respectively.
    How can I populate the Recent date (UDATE) from one interal table for indvidual field values and table names.

  • Choosing most recent records from multiple tables?

    Let's say that you have two tables; one contains news
    articles with the fields TITLE, ARTICLE, and a timestamp DATE and
    the other contains different news articles with the fields TITLE,
    DESCRIPTION, and a timestamp DATEPOSTED.
    How would you go about selecting the (let's say) five most
    recent articles with the corresponding fields? I'm relatively new
    to CF but even the experienced guy in our office can't figure it
    out. The following code is what we were working with -- which
    doesn't quite work the way it should anyway -- but I'm thinking
    there
    must be an easier (or at least less convoluted) way.

    Thank you so much! Azadi hit the nail on the head; I hadn't
    known the terms to look for so Google hadn't been any help, but
    UNION was just the trick for this MySQL query. I had to add a field
    to each table in order to tell the link which page to go to since
    there's a different one depending on which table the record came
    from, but here's the code that works (just in case anyone else does
    a search for this problem):

  • Most recent data first in table view

     I am adding values to a display table like in the example, but I want the top row to be the newest data for the user to see. 
    It keeps adding to the bottom, and then the user would have to scrolll down to see all the data.      Can I select somehow the most recent data or get the table to auto scroll as data is applied?     I have tried shift registers as well but no luck.        
    Here is my VI
    Thanks
    Mike
    Solved!
    Go to Solution.
    Attachments:
    BasicTableExample.vi ‏11 KB

    Be aware that if you populate the table with a lot of data, its performance will get very slow.  You can work around this issue by only writing data to the table which the table is actually displaying.  To do this, you will need to use a scroll bar separate from the main table and the event structure to capture events.  If you run into this issue, let us know so we can provide some sample code.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Select statement for most recent value in a table

    Hi all,
    I need  to select most recent value from a table . I dont have any date or time field in that table . Can one help me in this issue

    Hi,
    Just check this thread:
    how to determine most recent date from the date column of internal table
    U will find the solution here.
    Regards,
    Kumar

  • How do I get the location bar drop-down list to show the most recently visited page at the top? I have no idea how it's deciding what to display.

    In IE when you show the drop-down list from the location bar, it show you all of your most recently visited pages in descending order with the most recent at the top. Firefox is showing me a list that I have no idea where it's getting the pages from or how it's ordering them. It doesn't update the pages or the order when I go to a new page. I have recently switched from IE to Firefox and cannot figure out how to get Firefox to do this; very annoying.

    That drop down list doesn't show recently visited pages, but shows list list of most visited sites sorted by what the Mozilla devs call frecency (frequency and recency) and is based on bonus points. It is not possible to have much influence on what shows on that list.
    If you want a list of recently visited sites then you can use a smart bookmark e.g. on the Bookmarks Toolbar with the location set to this smart folder.<br />
    Name: <b>Recently Visited</b><br />
    Location: <b>place:queryType=0&sort=4&maxResults=30</b><br />
    You need to close and restart Firefox to make that folder work as intended.
    * https://support.mozilla.org/kb/Smart+Bookmarks+folders
    See also:
    * http://developer.mozilla.org/en/The_Places_frecency_algorithm
    * http://kb.mozillazine.org/places.frecency.numVisits

  • After the most recent update, I can no longer access stand alone GPS services. What's up with that? I am now forced to use google location services which use up some of my data allotment.

    After the most recent update, I can no longer access stand alone GPS services. What's up with that? I am now forced to use google location services which use up some of my data allotment.

        ddmathias, I want to make sure all services are working correctly on your phone. What GPS services were you using before the update happened? What kind of issues are you having with the services? Do you get any kind of errors? Please keep us posted.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • How to determine most recent date from the date column of internal table

    Dear friends
    would you like to tell me. how i determine the most recently changed record by looking at date and time from internal table i am not supposed to sort the table by date and time... I must check date and time with other records date and time to determine which record is most recently changed...
    here the scenario is.
    id idnumber chdate chtime
    1 123456 20060606 135312
    2 123456 20060606 135900
    3 123456 20060606 132300
    4 123457 20060606 140000
    5 123457 20060606 142500
    in the above scenario i must keep in my mind that the most recently changed record is identical to its idnumber i can say that:
    the record should be fetched this way
    id idnumber chdate chtime
    3 123456 20060606 132300
    5 123457 20060606 142500
    because here the id 3 is the most recently changed in the idnumber 123456
    where id 5 is the most recently changed in the idnumber 123457
    please help me to determin how i am supposed to carry out this task any suggestion, code will be great help of mine.
    regards
    Naim

    After testing my suggestion above, I realized that it doesn't work because the delete adjacent actually will keep the first one and delete the rest.  I'm working with Srinivas's code a bit now,  I think it is almost what you want.  I am under the impression that you dont' want to HIGHest date/time, but just the last record of the sequence, if this is the case, then this code will help.  Here we will assign an index to each record per the idnumber, that way we can sort it and get the lastest record.
    report zrich_0001.
    types: begin of itab_type,
            id       type i,
            idnumber type i,
            chdate   like sy-datum,
            chtime   like sy-uzeit.
    types: end of itab_type.
    types: begin of itab_type2,
            id       type i,
            idnumber type i,
            index    type i,
            chdate   like sy-datum,
            chtime   like sy-uzeit.
    types: end of itab_type2.
    data: itab     type table of itab_type with header line,
          itab2    type table of itab_type2 with header line,
          prev_rec type itab_type.
    data: v_id type i.
    start-of-selection.
      itab-id       = 1.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '135312'.
      append itab. clear itab.
      itab-id       = 2.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '135900'.
      append itab. clear itab.
      itab-id       = 3.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '142500'.
      append itab. clear itab.
      itab-id       = 4.
      itab-idnumber = 123457.
      itab-chdate   = '20060606'.
      itab-chtime   = '140000'.
      append itab. clear itab.
      itab-id       = 5.
      itab-idnumber = 123457.
      itab-chdate   = '20060606'.
      itab-chtime   = '120000'.
      append itab.
      clear itab.
    <b>  data: counter type i.
    * Assign an index to each row per idnumber
      loop at itab.
        on change of itab-idnumber.
        if sy-tabix > 1.
          clear counter.
          endif.
        endon.
        clear itab2.
        move-corresponding itab to itab2.
        counter = counter + 1.
        itab2-index = counter.
        append itab2.
      endloop.
    * Sort it and get rid of older records.
      sort itab2  by idnumber ascending
                     index descending.
      delete adjacent duplicates from itab2 comparing idnumber.</b>
      read table itab2 with key idnumber = '123456'.
      write:/ itab2-chdate, itab2-chtime.
      read table itab2 with key idnumber = '123457'.
      write:/ itab2-chdate, itab2-chtime.
    Regards,
    Rich Heilman

  • When I press the down arrow on the right side of my location bar and history is displayed, how can I get it to display history from most recently accessed site on down?

    When I click the down arrow on the right side of the location bar (without having typed a full or partial URL in, I am just clicking the down arrow) a history dropdown is displayed which shows 12 website URLs that I have visited, but there does not appear to be any rhyme or reason as to what is being displayed. How can I cause this dropdown to display sites visited from the most recently accessed on down? And how can I cause more than 12 URLs to be listed in this dropdown? Why I can't I scroll down through my entire history in chronological order from most recently accessed site?

    Upgrade your browser to Firefox 8 and check
    * getfirefox.com

  • How do I get the numbers ipad app to plot a graph of dates against values, where the most recent date is on the right of the graph, but the most recent date is at the top rather than bottom of the rows in the table?

    How do I get the numbers ipad app to plot a graph of dates against values, where the most recent date is on the right of the graph, but the most recent date is at the top rather than bottom of the rows in the table?
    Also how can it be a line graph without plotting a circle at each value?
    Thanks this is very frustrating

    Make a copy of the table and produce your Line chart or Bar chart from the copy. Sort the copy into the order you want to see in your chart.
    Alternately you could use a Scatter Chart...
    Jerry

  • Want to store the text of most recently executed query in a table

    Hi,
    I know that there is a data dictionary table or view (i forget the name, if someone can tell, i will appreciate) which can show me the most recently executed query. If i am using some web based front end and want to store the most recently executed query (not only select but also updates, inserts and deletes statments)
    into a table, is it possible that i can do this through some sort of triggers. I want to use this for auditing inert, update or delete. Your help in this matter will be highly appreciated.
    Thanks
    Muhammad Ejaz

    Hi,
    I am not sure how to get result but the tables from which you can get the sql statements are v$sqltext, v$session
    Hari

  • Progressive Profiling - Lead Source Most Recent Hidden Field - Query String

    I've just finished setting up my first progressive profile form and landing page. Caveat: I have not tested it out yet. On my other forms, I'm using a query string to capture lead source most recent as a hidden field. Is it also possible, using the same javascript, to capture that information on the form? I have added the source field to each of my three rule sets - but have no idea if it will work.
    Does anyone have any experience in using hidden fields with a query string and javascript in progressive profiling? Wow, that's a mouthful, and I can't even believe I know enough to be able to ask that question.
    thank you in advance for any guidance!

    Hi Leah,
    Great news! Nothing better than solving an Eloqua issue on a Monday!
    When you're using the cloud connector the HTML form name in the page code is "CCPPForm" instead of the HTML form name you used in the original form. If you take a look at the code of the page you're working on you'll see a div that includes your form. It should say "id="CCPPForm" name="CCPPForm"  in the form tag. Your instance might use something different, but I found using the progressive profile HTML name instead of my form HTML name did the trick. Also just double check to make sure your hidden field is showing for every rule in your progressive profile form rule settings.
    If this isn't making sense I'll grab some screen shots for you!
    Danielle

  • Disable most recently used items for this field in CRM 2013

    Hi,
    I have checked "Disable most recently used items for this field " property option for lookup filed in CRM 2013. But it still displaying MRU items on the lookup filed. Can someone please help to fix this ?
    Regards,
    Thanga

    did you try to clean your browser cache? use a different browser?
    My blog: www.crmanswers.net -
    Rockstar 365 Profile

Maybe you are looking for

  • 5th Gen IPOD - Won't Sync and Not Seen by Windows

    Help!!! Tried the 5 R's. I have the IPOD in Disk Mode but whilst it will happily charge, it still is not seen by ITunes or Windows Explorer (though is visible inDisk Defragmenter). I have already un-installed and re-installed ITunes etc. Prior to put

  • JQuery Mobile in Dreamweaver CS6

    This question was posted in response to the following article: http://helpx.adobe.com/dreamweaver/using/whats-new Mulling the upgrade to CS6. This article says Dreamweaver CS6 ships with jQueryMobile 1.0 and jQuery 1.6.4. We now have version 1.1.0 of

  • How to authorize QT Pro in v. 6...?

    This is an unusual question about backwards compatibility... I have a Quicktime Pro 7 key for OS X on my iBook G4 and it works great, no problems there. But I also have a G4 running OS 9.2.2 (only) in my studio with QT 6.0.3, Standard Edition. It wou

  • Where is iMessage for iOS 5

    I jsut updated to the iOS 5 and cannot locate the iMessage app. Is it in the app store or is it still just the message icon. I thought that there were to be 2 seperate icons.

  • I have lost a lot of Albums since I tunes changed

    Any one else had this problem ? how do you get old Library back ups restored, they just will not open on my MAC IT STINKS