Employee number in Master header

Hi all,
My client wants to display the portal users' employee number next to his or her name in the portal masthead. A picture named 'employeenumber'.jpg is available on a local file system of the portal server. This also needs to be displayed in the portal masthead.
I've been thinking how to fix this:
-Call function module HRWPC_AP_GET_EMPLOYEE_FOR_USER, which gives me back employeenumber of portal user. Promblem is that I don't know how to call this RFC enabled function module from jsp. Also, this would trigger a lot of bapi calls when multiple logins occur.
-Create webservice from function module. This is an option, but I need the employeenumber as a variable to display photo using html img tag. Also SSO for webservices seems to be difficult.
-Copy database table PA105 and do a query....
Currently I'm stuck. Any help or suggestions would be greatly appreciated!

Hello Ballemans,
The first option is right, and yes it will trigger many calls to the BAPI.
The other option is (workaround):
If you are using the UME database for user base, re use one of the field that you may not be using currently i.e. Job Title etc etc... and use ask the User Administrator to enter the employee number there.
Then you can use the UME API to retrieve this value. In terms of performance its better.
The API can easily be used in the masthead jsp.
Hope this helped.

Similar Messages

  • Can we change the employee number on the employee master data form ?

    Hi,
    Simple question but can we change the employee number on the employee master data form ? We need to use the same employee numkbers from another system but just cannot interact with the employee no. in SAP 2007 ?
    Thank you,
    MB

    You canu2019t modify the employee number. It is assigned by the system sequentially.
    But you can define a user defined field to store the other systemu2019s identifier or use (and even rename) some other field to store this information.

  • How re-activate an employee number that we deleted, with Master Data detail

    Hi Sapeer's
    I have an issue need your inputs at the earliest.
    I wonder if it is possible for you to re-activate an employee number that we deleted, with all the Infotypes maintained in the Master Data for that particular employee.
    Your early response will be of great help.
    Regards,
    Subbu

    Hi Luke,
    This employee's personnel number has been deleted. It was first withdrawn and they have deleted the data using PU00.
    The personnel number and the data does not show up in the Master Data PA20/30 since it has been deleted.
    Now we would like to know if we could reactive the deleted personnel number and get back the same Master Data inputs which was maintained for this employee.
    Kindly advice.
    Regards,
    Subbu

  • Partner functions (R/3- CRM) based on employee number (KNVP-PERNR) or CP

    Hi all gurus,
    I am trying to replicate an partner-function base on personnel number/employee number for customers from R/3 to CRM.
    For those partner-functions only the employee number is filled in KNVP-PERNR (the KNVP-KUNN2, KNVP-LIFNR and KNVP-PARNR are empty).
    If I follow the replication process I don't see the employee number getting mapped to the "bapimtcs structure" (in function module COM_BUPA_MWX_CREATE_REL) and therefore those partnerfunctions are not replicated to CRM.
    (all employees are entered in HR-R/3 and downloaded to CRM as business partners)
    Basically this is exatly the same situation described in the following forum:
    [Replicate partner functions (R/3->CRM) base on employee number (KNVP-PERNR)  |Replicate partner functions (R/3->CRM) base on employee number (KNVP-PERNR)]
    What (function modules/configuration) is necessary to get those partner-functions being replicated to CRM?
    Unfortunately I was pretty unable to collect valid solution track.
    Thanks in advance,
    AndreA

    Hi Andrea,
    We were able to solve the exact same issue.
    Here are steps used by us to fix the issue :
    IMG Settings in CRM :
    SPRO>CRM>Basic Functions>Partner Processing> Date Transfer>Distribution of Partner Functions from SAP ECC into CRM>
    Partner Function = VE
    Funciton = Employee  Responsible(00000014)   ( can be any other partner function which is a employee)
    Usage= CRM
    Also make sure the following settings are also done
    SPRO>CRM>Basic Functions>Partner Processing> Date Transfer-->Distribution of Partner Functions from CRM into SAP ECC
    Funciton = Employee  Responsible(00000014)
    Partner Function Cat = Employee
    Scenario = CRM
    R/3 func = VE    ( even though you are using the PE partner function in ECCwe use VE here as you know VE is the german  version of PE)
    Type = MR master record
    Also make sure that SAP Notes 1020514  and 1099363 have been applied in ECC.
    Let me know if you have any issues. This should fix it.
    Thanks
    Edited by: Venkat_30 on Dec 14, 2011 5:15 AM

  • Identifying Tables - Employee number field and email address field

    We need to identify specific tables for data extraction purposes. 
    The tables we need are - "employee number" tables (used in SU01) and "email address" field - (techinical info. field name - SMTP_ADDR)
    Thanks.
    Marie

    If you are looking for email addresses tied to user master records, then the table is ADR6,  you must link to this thru USR21.
    * Get email address
      clear smtp_address.
      select single adr6~smtp_addr into smtp_address
                    from usr21
                       inner join adr6
                            on  usr21~addrnumber = adr6~addrnumber
                           and  usr21~persnumber = adr6~persnumber
                                   where usr21~bname = sy-uname.
    Not sure that I've ever seen an employee number tied directly to a user in SU01.
    Regards,
    Rich Heilman

  • PA30 Display Employee details on the Header Screen

    Dear Team:
    Sometimes I see that using transaction PA20 or PA30, when I give the Personnel Number, in the header screen, I do not see any employee information for some employees and could able to see other employees.
    Anything that restricts us to see the employee details in the header screen.
    If it is an authorization issue, what is the check that is restricting the same. Which authorization details should the I have to look for the employee details in the header screen.
    Thanks and Regards
    Team Member.

    Below are already avialable in the table.
    00     A     60
    00     B     80
    01     A     01
    01     B     21
    02     A     02
    02     B     22
    03     A     03
    03     B     23
    04     A     04
    04     B     24
    05     A     18
    10     A     00
    10     B     20
    45     A     45
    Regards
    Team Member

  • Employee number in the Asset Report

    We have a requirement to see a report of Assets assigned to employees.  We have created assets filled with Personnel Numbers in the master data.
    In the asset report, we have given the employee number in the dynamic selection and got the report.  But in the report output, the field 'personnel number' is not available. 
    Is there any asset report wherein the employee number is also displayed ?

    Hello Atif
    As you said, I created a sort variant and included the fields Personnel Number and Cost Centre. 
    I have the requirement to add the Personnel Name & Department also in the report.  Is it possible to bring those fields also ?

  • How to Customize Employee Number Generation?

    m trying to generate a custom employee,applicant numbers through a dummy business group.
    I've created on Application: Oracle E-Business 11.5.10.2 the work structure and am now on the step of customizing the employee generating number.
    I followed the link steps:
    Below steps already done:
    Technical Side:
    1- Create New Sequence in DB.
    -----Sequence Code----------
    DROP SEQUENCE APPS.APPSLEAD_CUST_NUMB;
    CREATE SEQUENCE APPS.APPSLEAD_CUST_NUMB
    START WITH 1
    MAXVALUE 999999999999999999999999999
    MINVALUE 0
    NOCYCLE
    NOCACHE
    NOORDER;
    2- Create New Package for issuing the numbers.
    ----------Package Code--------------
    Create or replace package appslead_package as
    Function get_emp_custom_number (
    p_business_group_id IN number
    ,p_legislation_code IN varchar2
    ,p_person_type IN varchar2
    ,p_person_number IN varchar2
    ,p_party_id IN number
    ,p_person_id IN number
    ,p_national_id IN varchar2
    ,p_date_of_birth IN date
    ) return varchar2;
    end appslead_package;
    Create or replace package body APPSLEAD_PACKAGE as
    Function GET_EMP_CUSTOM_NUMBER (
    p_business_group_id IN number
    ,p_legislation_code IN varchar2
    ,p_person_type IN varchar2
    ,p_person_number IN varchar2
    ,p_party_id IN number
    ,p_person_id IN number
    ,p_national_id IN varchar2
    ,p_date_of_birth IN date
    ) return varchar2 as
    /*Check if the person id is exists on the system or not*/
    cursor person_exists is
    select employee_number,applicant_number,npw_number
    from per_all_people_f
    where party_id = p_party_id;
    --and p_effective_date between effective_start_date and effective_end_date;
    lseq_num number;
    l_next varchar2(30);
    l_emp_num varchar2(30);
    l_apl_num varchar2(30);
    l_npw_num varchar2(30);
    begin
    open person_exists;
    fetch person_exists into l_emp_num,l_apl_num,l_npw_num;
    if person_exists%notfound then
    Select to_char(Appslead_Cust_Numb.Nextval) Into lseq_num From Dual;
    l_next := 'AppsLead-'||lseq_num;
    return l_next;
    Else
    If p_person_type = 'EMP' then
    l_next := l_emp_num;
    Elsif p_person_type = 'APL' then
    l_next := l_apl_num;
    Elsif p_person_type = 'CWK' then
    l_next := l_apl_num;
    End if;
    End if;
    Close person_exists;
    return l_next;
    end get_emp_custom_number;
    End appslead_package;
    Functional Side:
    1- Create or Modify Business Group Employee numbering method to Manual.
    2- Create New Formula Function.
    3- Create New Formula EMP_NUMBER_GENERATION with Type "Person Number Generation"
    ------Formula Script--------
    EMP_NUMBER_GENERATION
    Create Custome formula for generation employee number*/
    DEFAULT FOR Person_Number IS ' '
    DEFAULT FOR Party_ID IS 0
    DEFAULT FOR Person_ID IS 0
    DEFAULT FOR National_ID IS ' '
    DEFAULT FOR DATE_OF_BIRTH IS '1900/01/01 00:00:00' (date)
    DEFAULT FOR Hire_Date IS '1900/01/01 00:00:00' (date)
    INPUTS ARE
    Legislation_Code (text),
    Person_Type (text),
    Person_number (text),
    Party_id,
    Person_id,
    Date_of_birth (date),
    Hire_date (date),
    National_ID (text)
    Next_Number = '0'
    Invalid_msg = ' '
    IF Person_Type = 'EMP' then
    Next_Number = TO_CHAR(Get_Emp_Custom_Number(Legislation_Code,Person_Type,Person_Number,Party_Id,Person_Id,National_ID,Date_Of_Birth))
    Else
    Invalid_msg = 'This is not an person_type of Employee!'
    Return Next_Number
    Now, when I create a new employee I need the employee number to appear as
    "AppsLead-Emp-00001"
    But its not, and the screen of employee master is not allow to create an employee without filling the number.
    How to do the same?
    What should be the Employee Number Generation ?
    1- Automatic generation with Global Sequencing
    2- Manual
    If your answer is manual, in the employee master screen, the employee id is required and when you create the employee the id should be entered.

    there are some fast formula you can use.
    Please check metalink

  • Structural authorization - creation of employee number

    Hello Experts,
    We are facing an issue with strutural authorization in creation of employee number,
    I have tested without assigning stuctural authorization and it process the hiring action and generates the employee number
    (Hiring action is carried through the adobe form which inturn calls the ABAP Function module),
    for the same user if i assign Strctural profile with Function module RH_GET_MANAGER_ASSIGNMENT ( User is assigned to an employee who is Chief ) the hiring action which has to happen through adobe form is not happening and when we check in the program it is throwing an error as Failed strutural authorizations.
    I checked whether the employee which has to generate lies within the organization unit of the manager ( who is chief) and it does lies with in the same org unit.
    can you please help me in analysing why the employee is not getting gereating though the user is having proper HR authorizations and Strutural authorization assigned.

    Hi.
    After 2½ days of frustration I finally nailed this.
    Function group RHAC, that handles the authority checks, initially buffers a table called VIEW containing all objects available for the user. As stated earlier in this conversation, SAP handles creation of relations in HRP1001 (links PA and OM). At this point the new employee number is appended to buffered table VIEW in function group RHAC.
    When execution the PA40 activity through CALL TRANSACTION, the creation of the relations are not handled - and the same goes for updating the buffered table VIEW. The table can be updated using the function module RH_VIEW_ENTRY_INSERT from the same fundtion group:
    This example might be useful
      data: ls_view_entry type hrview,
            ls_related_object type hrobject.
      ls_view_entry-plvar = '01'.
      ls_view_entry-otype = 'P'.
      ls_view_entry-objid = lv_pernr.
      ls_view_entry-begda = '18000101'.
      ls_view_entry-endda = '99991231'.
      ls_view_entry-maint = 'X'.
      ls_related_object-plvar = '01'.
      ls_related_object-otype = 'S'.
      ls_related_object-objid = lv_ny_objid.
      call function 'RH_VIEW_ENTRY_INSERT'
        exporting
          view_entry     = ls_view_entry
          related_object = ls_related_object.
    Best regards
    Poul Steen Hansen
    Senior Technical Consultant
    EDB Consulting Group A/S, Denmark

  • Structural authorization - creation of employee number in webdynpro or abap

    Hello Experts,
    We are facing some problems with the combination of structural authorizations and the creation of a new employee.
    When we use PA40 to create a new employee this does not give any problem.
    In the webdynpro we first execute a call transaction PA40 to apply infotype 0000 and 0001. This works well.
    Except that the call transaction does not set the connection between PA and OM. (so we did program this ourselves)
    In PO13 and the table HRP1001 the same relations are made as when we use PA40 in the sap gui.
    After this we do call transactions PA30 for the next infotypes.
    When we check the SU53 it gives a message: problems with structural authorizations object P (with the employeenumber) starting at 01.01.1800, enddate is empty.
    The employee is manager and connected with his userid in infotype 0105.
    We use in the structural profile the function module  RH_GET_MANAGER_ASSIGNMENT
    We checked with transaction HRHAUTH.
    User has been adjusted to the tables T77UA etc.
    We do not use workflow in this webdynpro
    We used the trace function when this was executed, but it did not give more information about missing structural authorizations.
    This issue was before on SDN (Structural authorization - creation of employee number) but unfortunally there was no solution there for the issue!
    Hope one of you can help me to find the solution!
    With kind regards,
    Rita Mensink

    Hi.
    After 2½ days of frustration I finally nailed this.
    Function group RHAC, that handles the authority checks, initially buffers a table called VIEW containing all objects available for the user. As stated earlier in this conversation, SAP handles creation of relations in HRP1001 (links PA and OM). At this point the new employee number is appended to buffered table VIEW in function group RHAC.
    When execution the PA40 activity through CALL TRANSACTION, the creation of the relations are not handled - and the same goes for updating the buffered table VIEW. The table can be updated using the function module RH_VIEW_ENTRY_INSERT from the same fundtion group:
    This example might be useful
      data: ls_view_entry type hrview,
            ls_related_object type hrobject.
      ls_view_entry-plvar = '01'.
      ls_view_entry-otype = 'P'.
      ls_view_entry-objid = lv_pernr.
      ls_view_entry-begda = '18000101'.
      ls_view_entry-endda = '99991231'.
      ls_view_entry-maint = 'X'.
      ls_related_object-plvar = '01'.
      ls_related_object-otype = 'S'.
      ls_related_object-objid = lv_ny_objid.
      call function 'RH_VIEW_ENTRY_INSERT'
        exporting
          view_entry     = ls_view_entry
          related_object = ls_related_object.
    Best regards
    Poul Steen Hansen
    Senior Technical Consultant
    EDB Consulting Group A/S, Denmark

  • Same Employee Number two Vendor Codes

    Hi All
    I created an employee as vendor by linking his personnel number in FK01 but when I tried to create the another vendor with same employee number the system is allowing me to do so. Am i missing any config or is it a standard process in SAP to allow to vendor codes for one employee number.
    Expecting your replies.
    Regards
    Rajaram

    Hi,
    yes why should this be not possible? Normally you cretae the "employee" vendors e.g. for the travel management with TC: PRAA, so just think the case  one employee is working in company code A (assigned to personell area A) he gets paid his travel expenses through the vendor account in cc A, then the employee moves to another company e.g B in assigned to  Personell Area B then he gets paid on his vendor account cretaed in cc b but stil has the same employee number.
    I hope this help a little bit to explaing why it should be possible to allow this,
    Regards,

  • How to enable the logo using master head par?

    I want to change the logo on the portal page in Master Head
    I have downloaded the par file of masterhead and changed required things like added .jar file, image required to show
    Then i created the new par file and uploaded the same.
    (with another name given for the uploaded par file)
    how can i make this par file enabled to show the new logo? in PCD?

    You can also use other tools(non-eclipse) to change it.
    Modifying Portal Initial logon pageThis procedure applies for EP 6.0 SP3 and higher.
    The logon user interface (UI) of SAP Enterprise Portal is delivered in a liportal archive (PAR file) named com.sap.portal.runtime.logon.par which
    contains all the logon UI's code and resources. In a deployed portal, the PAR file is located at
    <J2EE_Engine_Instance>\j2ee\cluster\server<X>\apps\sap.com\irj\servlet_jsp\i
    rj\root\WEBINF\deployment\pcd.
    During initial portal deployment, it is renamed to
    com.sap.portal.runtime.logon.par.bak.
    To customize the logon UI, we recommend the following procedure:
    Modify the PAR file containing the logon UIs
    1. Make a copy of com.sap.portal.runtime.logon.par.bak and rename it. In
    this example, it is renamed to my.new.logon.par.
    2. Move my.new.logon.par to a location outside of the
    <SAPJ2EEngine-deployment-dir>.
    3. Extract the files from my.new.logon.par preserving the directory
    structure.
    4. Modify files in the extracted PAR file.
    5. Put the modified files back into my.new.logon.par.
    6. Copy my.new.logon.par back to
    <J2EE_Engine_Instance>\j2ee\cluster\server<X>\apps\sap.com\irj\servlet_jsp\i
    rj\root\WEBINF\deployment\pcd.

  • How to get BU, Company, Group details with the help of Employee number

    Hi Friends,
    How to get information related with Employee like Business unit, Company, Business Group and other details.
    Pravin

    Yes Arul.
    I want to get these information in a custom Java webdynpro application but if you can guide me how to get these values in SAP-Hr. Can you just give me details of tables. I have Employee number(pernr) with me and want to fetch Group, Company, Business Unit.
    With rgds,
    Pravin

  • Impact on roaming profile accounts if we Change User logon Name to Employee Number format in Active Directory for all User accounts

    I want to understand if we change User logon Name to Employee Number format in Active Directory for all User accounts, then what would be the impact on existing profile. Whether we need to change it manualy or it will connect to same profiles in terminal
    session.
    As i observed it create new profile after logon name changed to employee number where existing users profile settings get fails to load and prompt for new settings (such as outlook reconfiguration, share drive mapping etc.).
    Kindly let me know the proper process to overcome with this, how to connect same existing roaming profile with employee number format change.

    Hi,
    What if we change the user name of user account, will it have impact on roaming profiles.
    Yes, it will affect roaming profiles. Please rename the roaming profile folder as the new user account name, in addition, change the profile path in ADUC.
    Here is an related article below for you:
    How to Rename a Windows 7 User Account and Related Profile Folder
    http://social.technet.microsoft.com/wiki/contents/articles/19834.how-to-rename-a-windows-7-user-account-and-related-profile-folder.aspx
    Best Regards,
    Amy

  • How to Create an Custom Employee Number Generation ...

    Dear Friends,
    We are Implementing HRMS Suite Version12i, for one of the Client in Middle east.
    One question about Custom Person Numbering.
    How to create custom employee numbering Based on the User Person Type?
    Example:
    Two person types
    o Permanent Employee
    o Probationary employees
    We Need to give two different numbering schemes for each person type.
    eg Permanent Employee will use a seq begin 100000 whereas Probationary employees (other user type) will use a sequence beginning 200000.. Can any pls let me know how to handle the Custom Employee Number Generation (with Setups)
    With regards
    Swpana

    Hi,
    Could you please help me to write/or send a sample of a Person Number Generation Formula.
    I don't see the noteid : 279458.1 on metalink,I get the following message:
    Article or Bug cannot be displayed. Possible reasons are:
    The article Id or bug number was entered incorrectly. Please check and try again.
    The article Id or bug number does not exist (was referenced incorrectly).
    The article or bug is not classified as publicly accessible ("non-public").
    The content is being updated and it is temporarily unavailable but will be made available again soon.
    If you still have questions about why you could not access this article or bug, please use Feedback.
    Please help!!

Maybe you are looking for

  • I can't get mail to stop regarding friend's emails as junk

    I add her email to address book, but no joy! It goes straight to the junk folder, but it doesn't get marked as junk, so I can't press "not junk mail". If I mark it as junk, then mark it as not, it still doesn't work! Any clues, friends?

  • Rs232

    I won't let off the RS 232. I would like to communicate with an SPN 1 (Pyranometer). I use the Serial Port on my CRIo 9074 For the RS232 communication of the SPN 1 All digital information can be output via the RS232 port (9600,N,8,1). This can be use

  • Upgrading to 10.1.3.1 - should I be able to using 'check for updates'

    I'm using JDev 10.1.3.04; from Help | Check for Updates menu I checked to see if I could upgrade to 10.1.3.1 but it did not provide this option? Should I be able to upgrade this way? If not how? Also, secondary question to confirm - will I need to re

  • 12c- Middleware feature - Import Assertion template to middleware domain

    Hi All, I have integrated SOA domain to Oracle Enterprise Manager 12c and not able to find the way to import the policy templates to my domain. Earlier we did this by using "Import from file" option using Web Services Assertion Templates. I have gone

  • Existing program for DAQ from FP1000

    I have an FP1000, with RTD 122. Is it possible to find an existing program that can adquire data? How can I meassure and take samples? Regards, Pablo Sanchez