PERNR from Name

Hi All,
Is there a function module that takes in the name of the employee and returns the PERNR?
Regards,
~Mark

hi mark,
   why not check the input name in table pa0001-sname and then get the aufnr (order no) with respect to that you can get pernr in any of the tables like AFRU or QMEL.
   hope this might be helpful
Do reward points if this is helpful.
Regards
kishore Yerra

Similar Messages

  • How to get PERNR from employee search(teamviewer) iView in to a WD-4-ABAP.

    Hello All,
    I had developed a new Web Dynpro for ABAP (WD4A) component for updating a custom Infotype. This application is meant for the manager to maintain some specific data through portal for his employees in the team.
    WD4A application is built based on the employee number it receives from the portal.
         How could I get PERNR from employee search(teamviewer) iView in to my WD4A component?
    In portal I had developed a test page by copying the standard page from MSS com.sap.pct.erp.mss.general_information, and added my WD4A application through an iView into this page.
    Then I hided all the other iVews in the page except (1) employee search and (2)my WD4A iVew. On the preview everything appears fine.
    During the preview of this page it triggers the WDDOINIT of WD4A component main view and then the WDDOMODIFYVIEW. When I select an employee from the employee search, then it triggers only WDDOMODIFYVIEW in the WD4A application and not the WDDOINIT anymore.
    In my  WDDOMODIFYVIEW I had inserted the following code:
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      DATA lo_api_controller TYPE REF TO if_wd_view_controller.
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_portal_manager->subscribe_event
        EXPORTING
          portal_event_namespace = 'urn:com.sap.mss.employeesearch'
          portal_event_name      = 'selection_changed'
          view                   = lo_api_controller
          action                 = 'GET_SELECTED_PERNR'.
    And in the action: 'GET_SELECTED_PERNR'
    METHOD onactionget_selected_pernr .
      DATA lv_str_pernr TYPE string.
      DATA lv_strlen TYPE i.
      DATA lv_pernr TYPE pernr_d.
      DATA lv_offset TYPE i.
      wdevent->get_string(
      EXPORTING
      name = 'PORTAL_EVENT_PARAMETER'
      RECEIVING
      value = lv_str_pernr ).
      lv_strlen = STRLEN( lv_str_pernr ).
      lv_offset = lv_strlen - 8.
      lv_pernr = lv_str_pernr+lv_offset(8).
    ENDMETHOD.
    This is not functioning form me. The action is not getting trigged with the code in WDDOMODIFYVIEW.
    I had gone through several threads in u2018SDN say:
         Pass pernr to WebDynro
         MSS - General Information - Related Activities Links persnr.
         SAP Note: 1112733.
    Most of the threads are answered but incomplete. In some threads people shared document personally which had been helpful.
    I am stuck with this scenario of handling the employee number from employee search iView. Helpful suggestions will be rewarded for sure.
    Thanks in advance.

    Do i understand you correctly that you are not getting the portal event ?
    This can be several reasons ?
    Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
    Please check in that direction and search posts on this topic.

  • How to pass the selected Pernr from Portal to WDA iview dynamically ?

    Hi ,
    How we can pass the selected Pernr from portal page to the webdynpro application dynamically?
    Ex:
    If a manager select a employee id of an employee then it should display all the related document regarding the employee in the ivew.
    For that we need to pass the employee id(Pernr) to the iview.How it is possible.
    Thanks,
    Deepika

    Hi Deepika,
    Try using portal events. You will have to register and handle the required portal event in your WDA application.
    [Portal Events Help|http://help.sap.com/saphelp_nw70/helpdata/EN/03/0048413e466e24e10000000a155106/frameset.htm]
    In this link, navigate to Integration->portal integration->Portal Events.
    Also go through some sample applications:
    WDR_TEST_PORTAL_EVENT
    Regards,
    Reema.

  • Pass pernr from employee search iView to abap webDynpro in Related Activity

    Hi All,
    I have seen many threads explaining how to pass pernr from employee search iView to custom ABAP webDynpro application in the "Employee profile" page. Also seen sap note 1112733.
    I am trying to launch custom ABAP webDynpro application from "Related Activities" view found in the employee information page in MSS.  I want to pass pernr selected from Employee Search iView to the ABAP webDynpro application in "Related Activities" view.
    In the ABAP webDynpro application, I am listening to the portal event (as per note 1112733) but the ABAP webDynpro can not catch the event.
    Anyone has passed pernr from employee search iView to the ABAP webDynpro application launched from "related activities" view?
    Regards
    Ashutosh

    Hi Ashutosh,
    can you tell me exactly what you did? I have the same issue.
    Thanks,
    Joeri

  • Cfmail "from name" and "from email address"

    I have been using a cf newsletter app with a <cfmail>
    function, and the syntax like this for the from and to addresses
    <cfmail from="#from_name# <#from_email_address#>"
    to="#first_name# #last_name# <#email_address#>"
    subject="#form.message_subject#">
    Note the <email address> after the name in both places
    I receive the mail just fine in Outlook Express, but replying
    is another matter as both the name and address for the reply are
    incorrect syntax for reply.
    Most email I receive shows the Name of the sender in the
    "From" field, with the address for "reply to" or "sent from" stored
    separately. How can I separate the "from name" and the "from
    email" using <cfmail> ?
    Michael Evangelista
    Evangelista Design / Evangelista Consulting, inc.
    www.evangelista-web.com
    Custom Small Business Website Solutions

    DUH no I havent... but I will, thanks!
    Michael Evangelista
    Evangelista Design / Evangelista Consulting, inc.
    www.evangelista-web.com
    Custom Small Business Website Solutions
    "Lossed" <[email protected]> wrote in message
    news:[email protected]...
    > There is a replyto="insert email addy here" attribute
    for the cfmail tag. Have you tried that?
    > Here's what my local tag reference says:
    >
    > <cfmail to = "recipient" from = "sender" cc =
    "copy_to" bcc = "blind_copy_to" subject = "msg_subject" replyto =
    > "reply_to_addr"
    > failto = "fail_message_addr" username = "user name"
    password = "password" wraptext = "column number" charset =
    > "character encoding" type = "msg_type" mimeattach =
    "path" query = "query_name" group = "query_column"
    > groupcasesensitive = "yes" or "no" startrow =
    "query_row" maxrows = "max_msgs" server = "serverspecs" port =
    "port_id"
    > mailerid = "headerid" timeout = "seconds" spoolenable =
    "yes" or "no">
    >
    > (Optional) Mail message body and/or cfhttpparam tags
    >
    > </cfmail>"Michael Evangelista"
    <[email protected]> wrote in message
    > news:[email protected]...
    >>I have been using a cf newsletter app with a
    <cfmail> function, and the syntax like this for the from and
    to addresses
    >>
    >> <cfmail from="#from_name#
    <#from_email_address#>" to="#first_name# #last_name#
    <#email_address#>"
    >> subject="#form.message_subject#">
    >>
    >> Note the <email address> after the name in
    both places
    >>
    >> I receive the mail just fine in Outlook Express, but
    replying is another matter as both the name and address for the
    reply
    >> are incorrect syntax for reply.
    >>
    >> Most email I receive shows the Name of the sender in
    the "From" field, with the address for "reply to" or "sent from"
    stored
    >> separately. How can I separate the "from name" and
    the "from email" using <cfmail> ?
    >>
    >>
    >> --
    >> Michael Evangelista
    >> Evangelista Design / Evangelista Consulting, inc.
    >> www.evangelista-web.com
    >> Custom Small Business Website Solutions
    >>
    >>
    >>
    >>
    >
    >

  • Mail.app Is Showing Wrong "From" Name

    I'm having a heck of a time with Mail.app.
    The latest bug is that in the list of incoming mail, it occasionally shows the wrong From name. When I open it up, it shows the correct name.
    Any ideas?
    And I still can't get it to send mail from the proper email address. I has one it likes, and will not deviate.

    Quit Mail. Force quit if necessary.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Mail/V2/MailData
    Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens by pressing command-V, then press return.
    A folder window will open. Inside it there should be files with names as follows:
              Envelope Index
              ExternalUpdates.storedata
    Move those files to the Desktop, leaving the window open. Other files in the folder may have longer names that begin as above. Move those files, if any, to the Trash.
    Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is damaged and that Mail has to quit. Click OK. Typically, the process takes a few minutes, but it may take hours if you have gigantic mailboxes. In that case, you may be able to speed things up by temporarily adding your home folder to the Privacy list in the Spotlight preference pane. Remove it when Mail has finished importing.
    Test. If Mail now works as expected, you can delete the files you moved to the Desktop. Otherwise, post your results.

  • N9 email from name, where is the option?

    In the Mail app I'm trying to send email with a custom name and custom email address. I set up Other mail account (IMAP/SMTP). This worked fine in Nokia E55 for example (custom from name and address). In N9, I don't find any place to change the sender email address and also the name inserted into Accounts -> Other mail account -> My name doesn't seem to have any effect. The messages are sent just by the IMAP email address (no full name). Outgoing mail server username doesn't have effect on the visible from field either.
    Where are the working sender options?

    yes, this is a draw-back for sure.
    i found a way around it.
    first, it sounds like you are only able to send from the IMAP email that you set as the default.
    in order to change the "from" email address, you will need to tap the "down arrow" under the subject, there you will see the "from" and you can tap and change it there.
    there seems to be an issue with the signiture not working correctly, so it will not change from what your default email signiture says. so if you want to have the correct signiture, then you will need to go to the inbox of the email account and then tap the + for a new email from there.
    as for changing what you want it to show...
    i cannot make the email show "Jim Hoyle", but lets say your email is [email protected] and you want people to actually see [email protected], then you would do that during setup.
    when setting up the account, type in [email protected] and use an incorrect password.
    once it fails, then tap manual and change all the data you need to for the correct settings. now when you send an email, in the 'from' area on the recievers end, it will show [email protected]
    hope that helps.

  • Request: Function Module - Get PERNR from UserID

    Hi,
    Is a simple Function Module available for getting the PERNR from a UserID?
    For example, I'll send the FM the UserID and will get back the relevant PERNR.
    Please Help.
    Thanks,
    John

    Hi John,
    FM is one way but
    Simple code to Find personnel number for UNAME
      SELECT SINGLE pernr INTO t_pernr
        FROM pa0105
        WHERE subty = '0001' AND
              endda >= sy-datum AND
              begda <= sy-datum AND
              usrid = p_uname.
    Best Regards,
    Aslam

  • How to get pernr from Recruitment module(PB000),

    Hi All,
    I want to read the pernr from the applicant data PBnnnn, There is one GET PERNR,
    for PAnnnn, which reads pernrs from Employee data. Is there any similar way for
    applicant data also?

    Do i understand you correctly that you are not getting the portal event ?
    This can be several reasons ?
    Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
    Please check in that direction and search posts on this topic.

  • Fetching pernr from workitem

    HI All,
    I am working on workflow for approval /rejection of leave requests. Can someone tell me if there is any BAPI/function module or DB table from where i can fetch the personnel number (pernr) from the workitem id in my function module?
    Regards
    Partha
    Edited by: Partha Kar on Apr 6, 2010 6:03 PM

    Check below code snippet, Actually Iam not clear whose pernr you are trying to get whether the Intiiators or the approvers, if it is intiiators the you can use the below code snippet,
    DATA:
               lv_wiid   TYPE sww_wiid,
               lt_cont   TYPE STANDARD TABLE OF swr_cont,
               ls_cont  TYPE swr_cont,
               lv_pernr  TYPE pernr_d,
               lv_initiator TYPE sysid.
    CALL FUNCTION 'SAP_WAPI_READ_CONTAINER'
      EXPORTING
        workitem_id      = lv_wiid
      TABLES
        simple_container = lt_cont.
    READ TABLE lt_cont INTO ls_cont WITH KEY element = '_WF_INITIATOR'.
    IF sy-subrc IS  INITIAL.
      lv_initiator = ls_cont-value.
      CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'
        EXPORTING
          begda     = sy-datum
          endda     = sy-datum
          usrid       = lv_initiator
          usrty       = '0001'
        IMPORTING
          usr_pernr = lv_pernr
        EXCEPTIONS
          retcd     = 1
          OTHERS    = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDIF.
    If at all you are looking for approvers pernr then you need to change read table statement by replacing the key from WIINITIATOR to WIACTUAL_AGENT.

  • How come all my email that comes from facebook comes with the same from name

    All e-mail that comes from my facebook has the same from name like sandy wenfel when its from my mother,wife,friend ect.
    What did i do and how do i fix it

    Airmail you my friend are a Genius.
    I've been living with that nightmare for months, and you fixed it in seconds.
    I should have asked this question here a long time ago. Thank You Kevin (AKA)''Teeter-Kick-Azz [[#question-1056669|said]]''
    <blockquote>
    All e-mail that comes from my facebook has the same from name like sandy wenfel when its from my mother,wife,friend ect.
    What did i do and how do i fix it
    </blockquote>

  • JDBC Problem: "select * from NAMES for update of FIRSTNAME"

    I am using Oracle 8 and JDBC thin driver. Is there any reason
    why when I try to use the statement:
    "select * from NAMES for update of FIRSTNAME"
    it does NOT work in JDBC?
    However when I do the statement in SQL-Plus it works fine.
    If anyone has used this statement with success, please let me
    know that it actually works, so that I know there is something
    wrong with me!
    Any code snippets would be very helpful.
    Could it be the thin driver?
    Please help! Thanks in advance.
    null

    Thomas Gutzmann (guest) wrote:
    : James,
    : for this command you need transactional control, which is not
    : possible with JDBC - if I'm not wrong. You can circumvent it
    with
    : something like:
    : select x into vOld from t where id=4711;
    : vNew := 0.815;
    : update t set x = vNew where id = 4711 and x = vOld;
    : Another option would be to write a stored PL/SQL procedure that
    : runs the whole transaction.
    : Cheers
    : Thomas
    : James Ward (guest) wrote:
    : : I am using Oracle 8 and JDBC thin driver. Is there any
    reason
    : : why when I try to use the statement:
    : : "select * from NAMES for update of FIRSTNAME"
    : : it does NOT work in JDBC?
    : : However when I do the statement in SQL-Plus it works fine.
    : : If anyone has used this statement with success, please let me
    : : know that it actually works, so that I know there is
    something
    : : wrong with me!
    : : Any code snippets would be very helpful.
    : : Could it be the thin driver?
    : : Please help! Thanks in advance.
    I don't think this is correct. I have used select for update
    with no problems. you can send a "set transaction control"
    via sql, I believe, but you shouldn't need to do so...
    Maureen
    null

  • How to select all PERNR from infotype 0000 (Action)

    Hi,
    How to select all PERNR from IT0000 (Action), if an action has been done on IT0000 between reporting START DATE and END DATE. What fields I should consider in IT0000.
    Thanks,
    mini

    You can try:
    data: t_0000 type standard table of pa0000.
    select * from pa0000
       into corresponding fields of table t_0000
      where begda le <your-initial-date> and endda ge <your-final-date>.
    Or use one of options described at last forum.
    Regards!
    Marcello
    Edited by: Marcello Lanzoni on Jul 24, 2008 8:11 PM

  • Mail "From" name displayed oddly

    Virtually all my emails, when received from someone in my Address Book, display the From name as "Joe Bloggs" - or whatever, as shown in my Address Book - both in my in-box and in the email itself when the email is opened.
    So far, so good.
    However, in at least one case the name is displayed correctly in the opened email, but as <[email protected]> and not as Joe Bloggs in my mailboxes. This is by far the minority and most appear as expected.
    What have I done wrong with that Address Book entry? It looks fine to me, but I presume that I am overlooking something?
    Looking through my Mail folder for this sender, I note that they are all displayed as being from Joe Bloggs, as expected, up to 22 September 2006 and as <[email protected]> since 21 November 2006. That's probably totally irrelevant, but there it is for what it is worth!
    I use Mail v2.1 (752/752.2), Address Book v4.0.4 (485.1) and MacOSX.4.8 Build 8L127.

    Thanks, Allan.
    I infer, therefore that my sender must have changed their details at around the time the change took place? Their email address (a work address) is the same and I haven't, to the best of my knowledge, changed anything at my end - and in any event if it's theor client that makes the call then whatever I did wouldn't make any difference.
    Irritating, but at least I know I've [probably] not done anything stupid!
    I'm assuming the "Where in Mail" question is aimed at Kevin?

  • How do I change the "From" name connected to my email in iCloud email?

    How do I change the "From" name connected to my email messages in iCloud?

    Hi,
    Both modems are on a same network or 2 different networks ? If on TWO networks, the printer can see 2 networks and on the setup menu you have to select the new network, enter security code (if any) then pick it as default.
    Now your machines on the same network might see 2 logical printers, one offline and one online, the online is the one connected to the new modem.
    Regards,
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for