First and Last name for a User-Id??

Hi..
I want to know the first and the last name of a USER-ID in SAP. Which table I should refer to to get the names.
Thanks

Hi,
I think it's a bit more complicated than that
First you would need to loook up person number (PERSNUMBER) via USER-ID in ADRP and then look for full name in USR21 via this person number.
So solution to your problem might look something like:
SELECT SINGLE adrp~name_text INTO name_text
  FROM usr21 JOIN adrp ON usr21~persnumber = adrp~persnumber AND
                          adrp~date_from   = '00010101'      AND
                          adrp~nation      = ''
  WHERE usr21~bname = usnam.
Where usnam ofcourse is USER-ID for which you want to find full name.
Regards,
Reinis

Similar Messages

  • How to show the First and Last name of the user instead of user name

    Gurus,
    We have the full email id of the user as the portal user name. Right now we are using the "Item Attributes - Current User" to show the user name. We don't want to show this anymore. We would like to show the First and Last name of the user on the Portal page. How can i do this. Please post a reply if you have some idea about it.
    Thanks
    Raj
    ---------

    I believe this is possible using the security APIs. See http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/INDEX.HTML and look for person_info (Returns user information, given a user name)
    under wwsec_api
    Suggest posting any follow-up questions to the Security forum - http://forums.oracle.com/forums/forum.jsp?forum=6

  • Displaying current user's first and last name on a report.

    I would like to dispay the current user's name on a report. I've tried using User() and NQ_SESSION current user .
    These two options display the User ID (i.e. User name is Jon Smith. there ID is COMP/JSMITH.
    Using the two methods above the ID (COMP/JSMITH) is displayed. Is there a way I could display Jon Smith?
    I thought their might be a way to use Full Name or First and Last Name.
    Message was edited by:
    user618827

    VALUEOF(NQ_SESSION.DISPLAYNAME) will do the trick
    Mike L

  • HT202058 iphone 6+ somehow has switched my name on emails into my nephew's name. We share a first and last name but not a middle name. For example, my name might be John George Doe and his name John James Doe. How did this happen? How do I correct it.

    iphone 6+ somehow has switched my name on emails into my nephew's name. We share a first and last name but not a middle name. For example, my name might be John George Doe and his name John James Doe. How did this happen? How do I correct it.

    So if the solution recommended by Ralph is not working then the other option is this:
    Please make sure that the emails work correctly when signed into, on a computer
    Then delete the account off your phone - you will not lose the emails
    Reset the phone
    Re add the account back in and see if that helps the issue
    Thanks

  • How can I display the first and last name using a paramater as employee ID?

    Hi SAP,
    I have a parameter that is called {? Employee ID}.   What I want to do is display the first and last name based on the employee ID value entered in {? Employee ID} in the page header of the report.  Right now, when I put the following formula in the page header only some pages get the right result while other pages dont....
    if table.employeeid = {? Employee ID} then
    table.firstname" "table.lastname
    It appears as though if the first record in the details section on the beginning of each page happens to be the employee under {? Employee ID} then it prints it correctly, if it isn't I get a null value in the page header.
    Anyone have any ideas?
    Z

    Hi Try this,
    Whileprintingrecords;
    if ={?EmpID} then
    Also check the option "Default values for null" in the formula editor.
    Regards,
    Vinay

  • After installing some updates on final cut pro 7 is asking me to enter my first and last names plus serial number which i dont have. how do i go about this?

    After intalling some updates for Final cut, I m asked to put my first and last names and serial number which unfortunatelt i do not have. how do i go about this?

    To add to what BenB advised, make sure you have proof of purchase when you call Apple for a replacement serial number.
    For future reference, it is a good idea to keep all software serial numbers in a database or text document.  Considering the cost of the software, keeping a list of serial numbers can come in very handy at times like this.
    -DH

  • How can i change the ID on my wifi so it doesn't include my first and last name?

    How can I change the ID on my Wifi so it doesn't include my first and last name when others see it?

    If you are still having difficulty
    Open Macintosh HD > Applications > Utilities
    Locate the listing for AirPort Utility and Right Click on it
    Click Get Info
    Look for the Version in the next window that should appear on the left side of your screen.

  • Problems with envelope-printing in Address Book: First and Last names

    New entries I make in Address Book are printing incorrectly, with Last name then First name. Most of my older entries print correctly as First name then Last name (though oddly I have a small batch of entries I imported ages ago which have always exhibited the same transposition problem).
    I have prefs set to display entries by Last name. Problem entries WILL print correctly if I change this to 'display by First name'. (older entries print correctly regardless of 'display by..' pref).
    I'm having the same problem if I create a new account, which made me suspect the app was corrupted, but not helped by deleting app and re-installing from Tiger DVD then running combo updater.

    Thank you for the suggestion.
    However, it doesn't make sense for the LIST display-order to swap the first-and-last names on an ENVELOPE. Secondly, most of my entries DO print correctly: it's only NEW entries that transpose the first and last names.

  • First and Last Name Swapping

    Address book in Leopard does not have the Swap First Name with Last Name in the drop down menu on the desk top tool bar. All my addresses are indexed with last name first, and I want to continue to keep my records this way. Does anyone know where the Swap First and Last Name control is in Leopard Address Book? Thanks

    Hi:
    The menu items have been renamed somewhat in Leopard. I don't have Leopard in front of me at the moment, but this option should still be available on a per-card basis (or per a selection of cards) within Address Book's Card menu. And the global setting in preferences will affect all of the cards that don't have this setting customized individually.

  • E-Recruitment business partner objects missing First and Last Name

    Hi,
    We are on Netweaver 2004s and ERecruitment EHP3...it's installed on production but not activated.  We are finding a bunch of BP records that exist where there is no First and Last Name on them, however the CP object does have this data.  We can't figure out what is causing this to happen to some candidates?  It appears to only be the case on External/Unregistered Candidates.
    Thanks,
    Michelle

    Hi Michelle,
    could you share the number of the note?
    Kind regards
    Roman

  • How do I bulk edit contact's nicknames to first and last names?

    i imported contacts to the contacts app and they all say "NoName".
    i click on one of them and the first and last name fields are empty but the nickname field has the first and last name in it.
    how can i bulk edit 1120 contacts to change the full nickname to a first and last name?
    ex: "First"  ~  "Last"  ~  "Nickname"
           "Blank"  ~  "Blank"  ~  "John Smith"
    i want to to be:
           "John"  ~  "Smith"
    help me create an applescript or use a program or something cuz its killing me....thanks
    ohh and i used both of the following applescripts and nothing happened:
    tell application "Address Book"
       set all_Persons to every person in group "Test"
       repeat with per_son in all_Persons
           set nknm to per_son's nickname
           set per_son's first name to word 1 of nknm
           set per_son's last name to word -1 of nknm
       end repeat
    end tell
    ANDDDDDD
    tell application "Address Book"
       set {ASTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, space}
       repeat with onePerson in (get people whose nickname is not missing value)
           set N to text items of (get nickname of onePerson)
           tell contents of onePerson
               set first name to text items 1 thru -2 of N as text
               set last name to text item -1 of N as text
           end tell
       end repeat
       set AppleScript's text item delimiters to ASTID
    end tell
    neither did anything...

    to any1 that wants to use the scripts and have them work just type "save" on the next like after end tell and itll do it........

  • SQL Selecting the first and last entries for each day

    Hello SQL experts,
    I hope you can help with this.. I have a table (could have 1M or more rows in it) see structure below. I am looking to get the first and last date/times for each employee for each day. I also need the location GUID for the first read.
    EmployeeGUID (uniqueidentifier datatype)
    LocationGUID (uniqueidentifier datatype)
    DateTime (DateTime datatype)
    12345678-0000-0000-0000-000000000000
    11111111-0000-0000-0000-000000000000
    04/12/2014 07:00:01
    12345678-0000-0000-0000-000000000000
    22222222-0000-0000-0000-000000000000
    04/12/2014 10:40:05
    12345678-0000-0000-0000-000000000000
    22222222-0000-0000-0000-000000000000
    04/12/2014 17:04:02
    44422222-0000-0000-0000-000000000000
    22222222-0000-0000-0000-000000000000
    04/14/2014 08:00:00
    44422222-0000-0000-0000-000000000000
    22222222-0000-0000-0000-000000000000
    04/14/2014 14:00:03
    44422222-0000-0000-0000-000000000000
    33333333-0000-0000-0000-000000000000
    04/15/2014 07:49:00
    44422222-0000-0000-0000-000000000000
    11111111-0000-0000-0000-000000000000
    04/15/2014 09:00:01
    This would be the ideal output (I can do without the TotalTimeInHours):
    EmployeeGUID (uniqueidentifier datatype)
    LocationGUID (uniqueidentifier datatype)
    FirstRead (DateTime datatype)
    LastRead (DateTime datatype)
    TotalTimeInHours
    12345678-0000-0000-0000-000000000000
    11111111-0000-0000-0000-000000000000
    04/12/2014 07:00:01
    04/12/2014 17:04:02
    Total in hours between the first and last read.
    44422222-0000-0000-0000-000000000000
    22222222-0000-0000-0000-000000000000
    04/14/2014 08:00:00
    04/14/2014 14:00:03
    44422222-0000-0000-0000-000000000000
    33333333-0000-0000-0000-000000000000
    04/15/2014 07:49:00
    04/15/2014 09:00:01
    I would post what I have tried so far but I have been trying many different types of queries over the last few days. In short I need the employees first and last reads for each date. They could have many entries per date or just 1. I am certain that this
    is a trivial thing for a SQL expert but not trivial for me :).
    Thank you in advance!

    Thank you!
    This is almost what I need. The LocationGUID has to be included in the output. When I include it, I have to put it in the Group By clause. When I do that the reads are based on the LocationGUID (see below).
    ** I added a few more data entries and included the LocationGUID in the output.
    ***** SQL ***********
    CREATE TABLE test(  EmployeeGUID  uniqueidentifier, LocationGUID  uniqueidentifier, DateTimeCol  DateTime )Insert into test values
    ('12345678-0000-0000-0000-000000000000','11111111-0000-0000-0000-000000000000','04/12/2014 07:00:01')
    ,('12345678-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/12/2014 10:40:05')
    ,('12345678-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/12/2014 17:04:02')
    ,('12345678-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/12/2014 19:00:00')
    ,('44422222-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/14/2014 08:00:00')
    ,('44422222-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/14/2014 14:04:03')
    ,('44422222-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/15/2014 07:49:00')
    ,('44422222-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/15/2014 09:00:01')
    ,('12345678-0000-0000-0000-000000000000','11111111-0000-0000-0000-000000000000','04/13/2014 10:40:05')
    ,('12345678-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/13/2014 17:04:02')
    ,('12345678-0000-0000-0000-000000000000','22222222-0000-0000-0000-000000000000','04/13/2014 19:00:00')
    ;with mycte as (
    SELECT *, row_number() OVER(partition by EmployeeGUID, Cast(DateTimeCol as date)  Order by  DateTimeCol) rnASC,
     row_number() OVER (partition by EmployeeGUID, Cast(DateTimeCol as date)  Order by  DateTimeCol DESC) rnDESC
    FROM    test)
    Select EmployeeGUID ,Cast(DateTimeCol as date) dt,LocationGUID,
    Max(Case when rnASC=1 Then DateTimeCol End) minDateTimeCol
    ,Max(Case when rnDESC=1 Then DateTimeCol End ) maxDateTimeCol
    ,Datediff(minute, Max(Case when rnASC=1 Then DateTimeCol End) ,Max(Case when rnDESC=1 Then DateTimeCol End ) )/60.0  TotalTimeInHours
    from mycte
    Group by EmployeeGUID, LocationGUID,Cast(DateTimeCol as date)
    Order by dt,EmployeeGUID
    drop TABLE test
    **** OUTPUT **********
    EmployeeGUID
    dt
    LocationGUID
    minDateTimeCol
    maxDateTimeCol
    TotalTimeInHours
    12345678-0000-0000-0000-000000000000
    2014-04-12
    11111111-0000-0000-0000-000000000000
    2014-04-12 07:00:01.000
    NULL
    NULL
    12345678-0000-0000-0000-000000000000
    2014-04-12
    22222222-0000-0000-0000-000000000000
    NULL
    2014-04-12 19:00:00.000
    NULL
    12345678-0000-0000-0000-000000000000
    2014-04-13
    11111111-0000-0000-0000-000000000000
    2014-04-13 10:40:05.000
    NULL
    NULL
    12345678-0000-0000-0000-000000000000
    2014-04-13
    22222222-0000-0000-0000-000000000000
    NULL
    2014-04-13 19:00:00.000
    NULL
    44422222-0000-0000-0000-000000000000
    2014-04-14
    22222222-0000-0000-0000-000000000000
    2014-04-14 08:00:00.000
    2014-04-14 14:04:03.000
    6.066666

  • Display First Name and Last Name of generating user in Siebel BIP Report

    Hello,
    My client has a requirement to display First Name and Last Name of user who generated the report. I need some help to resolve this requirement. Thanks
    Eg: Generated by <First Name> <Last Name>
    Generated by Siebel Administrator
    Regards,
    Hari Venkat.

    Hey Rob,
    Is this search help something that you have developed?  Can you explain a little more to how the funcitonality works?  Is this triggering an operation in your BAdI?
    Cheers,
    Kevin

  • Lack of First and Last Name Reversal in Address Book

    I just got a new iMac and transferred the contents of my old eMac running on OS 10.3---(latest) using the Mac transfer system. Problem: in the address book most of the cards do not respond to the Preference setting for First or Last name first. Some do, they toggle back and forth as I change the setting, but most stay unchanged with the Last name first. All respond properly to changes in the sort setting.

    I know the phones only have a single Name field, but there is such an option to change the sort order and display! Did you look in the menu I listed?
    I've just tried it with 5 Sony Ericsson phones I have with me here (W610, K800, K510, Z610 & W200) and that I use iSync with on a daily basis and the option is there and it works perfectly.
    It's in the W810 manual on Page 62:
    http://www.sonyericsson.com/cws/support/products/userguides/w810i
    where it says:
    "To select sort order for contacts *> Contacts > Options > Advanced > Sort order* to select sorting by first or last name"
    With *Sort order* set to *By first name* it displays:
    Anne Baker
    Bill Smith
    Charles Jones
    With *Sort order* set to *By last name* it displays:
    Baker, Anne
    Jones, Charles
    Smith, Bill

  • Search employment verification database by first and last name

    hi
    can anyone please tell me from which info types do i have to get the data???
    this is in compensation management
    thanks
    sateesh

    Sateesh,
    I am assuming that you are trying to build a search help using SSN (surprised), first name and last name.
    I believe for this you can just use infotyypes 2 or 3. i dont what field in those infotypes your company is using to store SSN.
    I dont think you need to use any other ifoctypes like 267 etc.
    Thanks,

Maybe you are looking for