Display full name (first+lastname) sy-uname

hey all,
I have a bsp page where sy-uname shows the logged in username...
I want this to be replaced by the users first- and lastname...
can this be done? if yes? how?
thanks a lot,
points will be awarded!

Koen, I have put your code in my oninitailisation event like this:
CALL FUNCTION 'BP_CENTRALPERSON_GET'
EXPORTING
iv_username = sy-uname
IMPORTING
EV_NAME = lv_partner_name
EXCEPTIONS
no_central_person = 1
no_business_partner = 2
no_id = 3
OTHERS = 4.
IF sy-subrc = 0.
ev_partner_name = lv_partner_name.
this struggles with lv_partner_name and with the "tables"....
errors are:
Field "LV_PARTNER_NAME" is unknown. It is neither in one of the          
specified tables nor defined by a "DATA" statement. "DATA" statement.     
as you can see I am in no way a BSP programmer...
my next question after solving these errors will be: how to show this family of firstname in the layout section?

Similar Messages

  • Display Full Name in SharePoint Designer Workflow Email

    Hi!
        I want to Display Full Name of a User value from "Assigned to" column...
        When I use lookup on "Assigned to" column I get domain/username instead I want to display John Smith (Full Name)...
        Is there a way to do that within SharePoint Designer...

    Hi,
    Even I am facing the exactly similar issue as Ashish. Also I don’t have Central Administration access :(
    But I was just wondering, is there any way to extract the proper name in FName and LName format using user profile details option?
    I mean on the top-right section on sharepoint site you can see “Welcome username” section. On this you can select “My
    settings” option where you can see a form with user details including Name field (e.g. Sachin Dubey) and Account field (e.g. CompanyName/Dubey.s.4).
    In our case the workflow takes “Account” field instead of “Name” field so can we make any settings from the workflow
    or sharepoint front-end so that it takes Name field.
    Help is much appreciated.
    Sachin D Sharepoint Developer

  • In which table I can get the Contact full name(First name and Last name)

    Hi,
    In  which table, I can get the field for Contact Person Full  name. In many tables Iam seeing FIRST NAME and LAST NAME as two fields.
    Regards
    Babu.

    You can use FM "CRM_BUPA_DESCRIPTION_READ".
    regard,
    vijay.

  • How to display last name first and then first name last from one name column?

    I am trying to write a code which will display the last Name first then second name at last. For example;
    If the value of table column is: "John Decker Revora"
    I want to display "Revora, John Decker".
    I think I will first look for the gap in between the name and from last gap i will pick up the value and then concathenate with rest of the name.
    If u have any advice please reply ASAP with some examples.
    Thanks

    You need to do this in the query, using the instr and substr functions. Search the documentation for info on these functions. As a startpoint, I'll copy here an example from Kevin Loney's Oracle 8i The Complete Reference that does the opposite... you can adjust this to your needs:
    select Author, SUBSTR(Author, INSTR(Author,',')+2) | |' '| | SUBSTR(Author, INSTR(Author,',')-1) ByFirstName
    from Magazine

  • I have my contacts sorted and displayed last name, first name - however when I access my contact list via message they display first name, last name - WHY????

    Contacts sorted and dispalyed last name, first name - why when I access contacts via messaging do they display first name, last name?

    Hi
    It is when I tap on the +....
    My husbands display with first name first but grouped by surname alphabetically.
    Thanks
    Cat

  • Pie Chart Legend not displaying full names

    Hi All,
    In a RTF template, we have displayed a PIE chart. In the PIE chart, when the number of legends are more, the legends are getting truncated on the generated PDF report. The document which describes the issue with screen shots is placed at [http://www-apps.us.oracle.com/~sgnanama/Pie%20Chart%20Legends%20Display%20Issue.doc] . And following is the snippet of code placed at ALT text of PIE chart picture present in the template. Is there any way to enlarge the legends display section to show the full text of the legends? Please share your thoughts. Thanks.
    chart:
    <Graph graphType="PIE" depthAngle="50" depthRadius="8" pieDepth="30" pieTilt="20" seriesEffect="SE_NONE">
    <LegendArea borderColor="#cccccc" borderTransparent="false"/>
    <LegendText wordWrapEnabled ="true"/>
    <SeriesItems defaultBorderColor="#cccccc">
    <Series id="0" color="#336699"/>
    <Series id="1" color="#99ccff"/>
    <Series id="2" color="#999933"/>
    <Series id="3" color="#666699"/>
    <Series id="4" color="#cc9933"/>
    <Series id="5" color="#6666"/>
    <Series id="6" color="#3399ff"/>
    </SeriesItems>
    <Title text="" visible="true"/>
    <Footnote text="Company Contribution" visible="true" horizontalAlignment="CENTER"/>
    <O1Title text="Company Contribution" visible="true"/>
    <LocalGridData rowCount="{count(CATEGORY/ERC)}" colCount="1">
    <RowLabels>
    <xsl:for-each select="CATEGORY">
    <xsl:if test="string(ERC)">
    <Label>
    <xsl:value-of select="CATEGORY_NAME"/>
    </Label>
    </xsl:if>
    </xsl:for-each>
    </RowLabels>
    <DataValues>
    <xsl:for-each select="CATEGORY">
    <xsl:if test="string(ERC)">
    <RowData>
    <Cell>
    <xsl:value-of select="ERC"/>
    </Cell>
    </RowData>
    </xsl:if>
    </xsl:for-each>
    </DataValues>
    </LocalGridData>
    </Graph>

    as far as i know only way to display legname in full when u have more values is to make the size of the chart large . i have one the req like that i made it large enough so that it will withstand if i get more values .
    it may not be good idea but this is the way i did .

  • IChat:  Display as Full Names

    Hello,
    I'm using the new Server 3.0 on a Mac Pro running Mavericks.  We have the Messages service enabled and our users are authenticating with a local account on the Server to sign into messages.  This helps us manage our IM accounts. 
    My question is on the client side.  There is an option under View that says Show as Full Names.  However, it seems like that option just shows the short name.  We would like it to show the full name (firstname lastname). 
    Does anyone know if this is possible with user interaction? Can this be done on the server side?
    Thanks

    HI,
    I was trying to gain an understanding of what can be seen at your end, not suggesting it was an everyday way of working.
    Lets try this another way.
    An AIM Name can have a Display Name.
    This is set at AIM and is sent as a replacement for the Screen Name.
    Here is a pic of my main AIM name logged into the AIM Settings site
    (it's part of the window)
    It states the "Web  Settings for iChat Guru (then my Screen Name)
    If people don't have my real name in their Address Book, this is what they will see.
    iChat and Messages display Buddy's real names when their Address Card has the relevant Jabber ID or AIM Screen Name or Yahoo ID.
    The Contacts App can be synced via iTunes or iCloud to other computers or iOS devices.
    It can also use Google or Yahoo services as "Accounts" in the App itself, as well as the default "On My Mac" option.
    Info can also be called from Directory Services connections to Servers where "global" address books can be held.
    The Address Cards can also have Nicknames on them. Of the ones I have set up these have been done through the Messages > Buddy List > Get Info > Info Card method.
    As your Contacts app could be getting external info, rather than "On My Mac" info it is not clear from what you have posted so far  if the Address Cards show Nicknames or only First Names (which it will default to if no Nickname) because that is what is being seen by Messages - or if the setting on the View Menu is not working.
    My understanding is that the Server needs to have a databases set up of who is allowed to login.
    From there I understand this list is then used by the iChat server as it used to be called.
    The Client end then needs a Jabber account set up using that persons particular data.
    So the Contacts app may be getting Address Book data from the server.
    This may only be First names or "Nicknames".
    It could be the Messages app is not actually changing the setting properly when you change it from Show Nicknames.
    I would try setting up a separate Mac User on this computer and see if you get different results.
    8:35 pm      Friday; December 13, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to display the Full Name in Masthead of the Portal

    Where exactly in the HeaderiView.jsp I need to edit to be able to display the full name in the Masthead of the portal.
    e.g.
    Welcome Paul Jones

    Hi Paul,
    Following customized code displays Full Names on my portal:
    private String GetWelcomeMsg(IPortalComponentRequest request, String welcomeClause)
        IUserContext userContext = request.getUser();
        if (userContext != null)
              String firstName = userContext.getFirstName();
              String lastName = userContext.getLastName();
              String displayName = userContext.getDisplayName();
              String salutation = userContext.getSalutation();
              if (displayName != null)
                   if(salutation != null)
                        return java.text.MessageFormat.format(welcomeClause, new Object[] {displayName, salutation, " "}).toString();
                   else
                        return java.text.MessageFormat.format(welcomeClause, new Object[] {displayName, " ", " "}).toString();
              else if ((firstName != null) && (lastName != null))
                   if(salutation != null)
                        return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, salutation}).toString();
                   else
                        return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, " "}).toString();
              else
                   return java.text.MessageFormat.format(welcomeClause, new Object[] {userContext.getUniqueName()," ", " "}).toString();          
        return "";
    Regards,
    Sergei

  • Not sync or display middle names?

    I find it annoying that the iPhone displays FULL names of contacts -- First Middle Last. It's okay in Contacts, but on things like the Recent Calls list, the middle names consume a large amount of the space for the name, so I can't even read the last name on the list.
    Short of removing middle names from their records in my Mac Address Book, is there any way to prevent iPhone from displaying or synchronizing middle names?
    dt

    I originally thought of doing that, and it'd be easy enough to write such a script. But as I mentioned, I'd rather find a solution OTHER than deleting the data from Address Book, where it's actually valuable and useful to store it. I just want to be able to customize how names appear on iPhone's listings, OR, be able to customize whether that particular field is synchronized to MobileMe.
    Thanks anyway.

  • How to show full name of user in crystal report

    Hi. I am using Crystal Report 2008. I need to show full name (first name and last name) of the user logged in. Currently I am using "currentceusername" but it shows the user id that a user uses to login.
    Is there any way to show the full name of the user in crystal report?
    Thanks in advance.

    Hello,
    Not you H4... Can I suggest if someone replies to actually add something of value!!!!
    Cr does not have the ability to query your AD Server. What you would have to do is use a AD query tool or Export Option and export the user info from the log on ID into a Excel or an Access table or something CR could report off of. Then you can add a subreport to get the name from the ID and insert it into the main report.
    Check with your IT department, they should have tools to get the info. I'm not sure if there is a DB connector that would allow you to query the AD server directly but if there is one and it supports ODBC then you can use that as your subreport Data connection.
    Typically names do not change that often so rather than running the Query every time the report is generated it would be better to export the info to a text type file and simply use it for your report. IT can put a rule on to export if the Names change.
    Thank you
    Don

  • Deleted User Full Name

    Hi,
    I could get past histroy of deleted user using SUIM using user SAP_ID.
    But I need FULL Name ( First, Middle and Last ) of the user id I am looking for.
    Is there anyway to the full name as it was in User master record after deletion?
    Thanks,
    Sam

    Hi Sam,
    Try this thing out. Recreate the user id in SU01. You will get the message that Address Data for the user id already exisits. Do you want to continue. Go for this option and user id address data will be automatically filled. Here you can find his full name.
    Please award points for useful answers.
    Regards.
    Ruchit.

  • Obtaining a split value of a person's full name

    I have a field which a person enters their full name (First Name [space] Last Name). I want to have another field obtain and return the substring/split value of the First name only (i.e. up until it encounters a space in the main string).
    For example: A value of John Doe will return "John"
    Thank you in advance!

    Upon further investigation, I found a solution:
    var nameArray = this.rawValue.split(" ");
    TextField2.rawValue = "Hello " + nameArray[0];
    Credit to dperani70 & aks@lc in a different thread. I hope this helps someone else in the future!

  • How do I convert a full name to firstname lastname

    I need to parse some text that I have in a DB. I have over
    5000 records to output, so I am hoping something will be
    effiecient. However, it is a one time process, so it is not that
    big of a deal.
    I have a field 'fullName'. It contains a users full name (as
    the name implies). I need to output this so that the 'firstName' is
    in one field and the 'lastName' is in another field. The entries
    range from 'Jim Smith' to 'John C. Dvorak Jr.' (not really John,
    but I wanted to keep this interesting).
    In the case of John, I need the first name and Middle initial
    to end up in the 'firstName' field and everything else in the last
    name field.
    I tried to loop over using a space as the delimeter, but that
    just sepeates everything into parts. I need the middle initial to
    hang with the first name and anything trailing the last name to
    remain there.
    Any clever thoughts? Help is much appreciated.

    ok, try this:
    <cfoutput query="getUsers">
    <cfset numelements = listlen(getUsers.fullName, "
    ")><!--- this will give you number of elements in fullName
    --->
    <cfif numelements is 2>
    <cfset firstname = listfirst(getUsers.fullName, "
    ")><!--- assign first element to firstname --->
    <cfset lastname = listlast(getUsers.fullName, "
    ")><!--- assign last (2nd) element to lastname --->
    <cfelseif numelements gte 3><!--- 3 or more elements
    in fullName --->
    <cfset firstname = listgetat(getUsers.fullName, 1, " ")
    & " " & listgetat(getUsers.fullName, 2, " ")><!---
    assign elements 1 and 2 to firstname --->
    <cfset lastname = right(getUsers.fullName,
    len(getUsers.fullName) - len(firstname) - 1)><!--- assign the
    rest of the string (less the space separating 2nd and 3rd elements
    [the -1]) to lastname --->
    <cfelse><!--- 0 or 1 elements in fullName --->
    <cfset firstname = getUsers.fullName>
    <cfset lastname = ''>
    </cfif>
    </cfoutput>

  • How do I change my display name to stop showing full name

    I chose a display name yet every time I post something it shows my full name!! How can I change this? I have gone into my settings and set it so only I can see my real name, yet it still shows on all my posts in discussions.

    Yes I about had a heart attack too - here's not only my full name but my full email address too, just flappin' in the breeze.
    Does anyone here know how to contact these Jack Secret website techs at VerizonWireless.com?  They've got some bugs to iron out, but they've insulated themselves thoroughly from us plebes.
    First of all would be this infuriating little thing in these post forms that keep jumping you back to the last paragraph after you've made a paragraph break.
    Secondly, I can think of n  ...GRRRR  - It just did it again...
    Secondly, I can think of no circumstance in which I want to see my profile in any other mode than the way in which it's viewed by every other user.  I've never been on any website forum where this bizarre bipolar thing was going on.  Just show my profile as seen by others, thanks.
    At the very least, put a notice on the profile edit page that tells people about... that bizarre bipolar thing - so they don't have to freak out at the apparent general broadcast of name and email address to the world, the exciting prospect of identity theft, etc.
    Lastly, I can find no method by which a person can delete his Ve - RRRRRRRR!!!!!!!!!!
    Lastly, I can find no method by which a person can delete his VerizonWireless community profile.  This should always be an option, but not here.

  • Having problem with display of full name in finder bar!

    As shown in the image above, my full name in finder bar is not showing properly. When I select 'icon' from system preferences it shows correctly, but when I select full name or short name, it touches the top.
    Help me fixing this issue!

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Boot in safe mode and log in as yourself. First, disconnect all wired peripherals except keyboard, mouse, and monitor, if applicable. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    During startup, you will see "Safe Boot" on the login screen, which appears even if you normally log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Safe mode is slower than normal, and some things won’t work at all, including your login items.
    Test again. Same problem now?
    After testing, reboot as usual (i.e., not in safe mode.)

Maybe you are looking for

  • How to print from pantech element via Bluetooth?

    how to print from my pantech element tablet via bluetooth

  • Help with a basic query

    Hello I am looking at a set of records and need to query them but cannot work out what syntax to use to get the desired result. This is the query for the basic data SELECT SCE_STUC, SCE_CRSC, SCE_STAC FROM SRS_SCE WHERE SCE_AYRC = '2009/0' and Sce_st

  • Cost Center does not exist

    Hi, I have called "BAPI_GOODSMVT_CREATE" to have the goods issue, the posting period of MM and FI are opened but the it returned a message Cost center XXX /1101019 does not exist on DD.MM.YYYY . Any transaction I need to run for the cost center?

  • Scenario and Process Component List: Available on SAP Service Marketplace

    <b>Is the following useful to a BPX?</b> Warning: It is only available to those with a Service Marketplace logon. This was shared by Content Strategist: Scott Jones: The latest version of the Scenario and Process Component List on SAP Service Marketp

  • VSAM file with multiple record layouts (COBOL REDEFINES)

    Hi. We're using Tuxedo 12c to migrate a COBOL/CICS/VSAM application from MVS to Solaris/Oracle 11gR2. We have a few VSAM files with record layouts that start with a record-type field, and based on that, the remainder of the record layout varies based