Retrieve name of an employee by employeeno

Hello abapers...
i'm quite new to abap development an actually use it to create bapis for portal use. I would like to retrieve the name of an employee out of the HR. As input-parameter i have the employee-number. What tables do i have to query to get the needed information?
Greets,
Jochen

Hello Jochen
I would recommend to use the methods IF_PT_EMPLOYEE:
DATA: go_employee   TYPE REF TO if_pt_employee,
      gd_fullname      TYPE emnam.
go_employee = cl_pt_employee( i_pernr = <your pernr> ).
gd_fullname = go_employee->get_ename( ).
Regards
  Uwe

Similar Messages

  • What is the field and table name to describe -Employee Hourly Rate or Emplo

    Hi,
    Can any one please tell me what is the field and table name to describe 
    Employee Hourly Rate or Employee Rate.
    Thanks for ur time.
    Murali.

    Hi Murali,
    The hourly rate is tied to a Wagetype & maintained in Infotype 0008. The database table is PA0008.
    the field could vary depending on the No of wagetypes maintained.
    regards,
    Suresh Datti

  • Function module to get name of the employee

    hi friends
      I am working in HCM workflows. Is there any function module which gives the name of the employee when i pass pernr and userid.
    Regards
    vijay

    hi,
    use HR_READ_INFOTYPE on infotype 0002
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = p_pa0002-pernr  -----------> your pernr
          infty           = '0002'
        TABLES
          infty_tab       = t_pa0002
        EXCEPTIONS
          infty_not_found = 1.
    the fields
    INITS NACHN NAME2 NACH2 VORNA CNAME
    TITEL TITL2 NAMZU VORSW VORS2 RUFNM MIDNM
    KNZNM
    stores different parts of employee's name.
    you check your required one.
    Regards,
    Anirban

  • How to display name of the employees start with any letter?

    Hi Developer,
    Please guide me in solving the issues, that i need to display names of the employee starting with any letter.
    example:
    if i provide name of the employee starting letter 'A' it should display only those name in the database table with starting letter.
    parameters:  a*
    it should display name with starting letter a.
    example:
    abdi
    akbar
    akash
    akilesh
    thanks,
    ravi.

    Hi Ravinder,
    You can use Ranges for this purpose:
    RANGES: r_name FOR type_name.
    r_name-sign = 'I'.
    r_name-option = 'CP'.
    r_name-low = 'a*'.
    INSERT r_name.
    SELECT name FROM table_name INTO TABLE it_name WHERE name IN r_name.
    Regards.

  • Name of Sales Employee in Sales Order...........

    Hi Experts,
    In our Company the person who picks the order from the market and one who create the order in SAP, both are different.
    Is there any way so that we can include the name of sales employee in SAP sales Order.
    So that I can fetch all the sales order month wise for any particular Sales Employee......
    Please ,sugess me.
    Thanks and Regards,
    Vishal Singh

    Hi vishal!
    Yes, you can put in the sales order the employee that picked the sales order and the employee that is registering the order in the system.
    To do this, you need to create a partner procedure and assign it in your sales order/contract or others sales documents that you have.
    The partners can be maintained in the sold-to-party, or you can define in your partner procedure that you have a mandatory partner and the user that is registering the sales order in the system need to put manually the partner.
    There are some ways to achieve this.
    Take a look at: [Partner Determination in Sales and Distribution (SD-BF-PD)|http://help.sap.com/saphelp_erp60_sp/helpdata/en/90/758534c960a134e10000009b38f83b/frameset.htm]
    And look at this Wiki too [SD_Business Process|http://wiki.sdn.sap.com/wiki/display/ERPLO/SD_Business+Process].
    Regards.

  • Characteristic Name of Sales Employee in COPA report is not appear

    Characteristic Name of Sales Employee in COPA report is not appear, it is just the a Code of Sales Employee
    1.I created Characteristic Derivation t.code KEDR Table lookup PA0001 using condition Origin GLOBAL USERTEMP1 until USERTEMP6
    2.During Test Analyze Derivation there was result “Derivation was not carried out. Reason: Not fulfilled” in Field USERTEMP6
    How to solve this problem?
    Thanks & Regards,
    Cyrenia

    You need to use Characteristic Derivations for this to work.
    In transaction KEDR, maintain a "look-up" and provide your Reference table as VBPA and your target field will be the COPA Characteristic that you defined for the Partner Function Sales Employee.
    Select the Characteristics that will allow you to determine the Sales Employee (Partner Function = "VE") and then map the KUNNR field to the COPA Value Field.
    This will allow the flow of Sales Employee Values into COPA and hence the description as well.
    Hope this helps.
    Cheers.

  • How to change SAP office name of an employee

    Hi,
    I have to change an SAP office name of an employee. Her SAP office name is different to the SAP user id. I tried to do it in T-Code SO12, but the change option is disabled for the Office name.
    Could you help me to resolve this issue.
    SAP version is 3.1I
    Thanks & regards,
    Pavan.

    Let's assume your service name was "orcl.oracle.com" and now is "orcl", you can do (as sysdba) :
    SQL> alter system set service_names='orcl, orcl.oracle.com'; -- (or just orcl.oracle.com)
    If you use initSID.ora to start the DB, then you have to change it there, and bounce the DB.

  • Talent Search not showing name for one employee

    Hi
    I am facing issue in talent search, it is not showing employee name after search. This is happening only for one user, means surely it will be master data issue,application is working fine.
    But now I want where to see that data maintained.
    Please help with this if anyone knows about it.
    -Yogesh

    Hi Yogesh,
    If it is only one employee that it isn't showing for then it could be authorizations. Some other suggestions are:
    - Incorrect or no name for CP object
    - Incorrect authorizations of user used for delta-indexing
    My guess would to be to look at authorizations first.
    Best regards,
    Luke

  • Webdynpro Application Name for MSS/Employee Search Iview

    Hi all,
    I want to modify <b>MSS/EmployeeSearch</b> application. I am not able to find out the technical name(WebDnypro Application name) for this <b>MSS/employee search</b> I view. I know we can find  it out from pcd I view properties, but in this case its different from PCD.
    Regards
    Praveen

    I solved it my self

  • Query to retrieve Currency Code for Employee Salary

    Hi,
    I'm stumped by this issue.  Does anyone know what table(s) contain the employee's salary currency code?
    Thanks!
    Bruce Marcoux

    Did you check the business components for the salary page ?
    Check the VO query -
    select fct.name as currency ,fct.currency_code as currency_code from per_pay_bases ppb ,pay_input_values_f piv ,pay_element_types_f pet ,per_all_assignments_f paa ,fnd_currencies_tl fct where paa.pay_basis_id = ppb.pay_basis_id and ppb.input_value_id = piv.input_value_id and piv.element_type_id = pet.element_type_id and fct.currency_code = pet.input_currency_code and fct.language = USERENV('LANG') and paa.assignment_id = :1 and :2 between nvl(paa.effective_start_date,hr_general.start_of_time) and nvl(paa.effective_end_date,hr_general.end_of_time) and :3 between nvl(pet.effective_start_date,hr_general.start_of_time) and nvl(pet.effective_end_date,hr_general.end_of_time) and :4 between nvl(piv.effective_start_date,hr_general.start_of_time) and nvl(piv.effective_end_date,hr_general.end_of_time) 

  • How to set the Description Name of Sales Employee in COPA

    Dear Expert,
    I maintained Characteristis Sales Employee at COPA but when I run this report, there is no description name of employee appear. It just appear the Number of Sales Employee.
    I used table VBPA and field Name PARVW in Characteristic Derivation. In Sales Document I created Partner Functin VE Sales Employee.for characterristic and I ser VE Partner Function in SD Document.
    In Data Structure KMVTNR Sales Employee there is no Validation Check Table. 
    Kindly help to solve this problem and thank you in advance for your help.
    Cyrenia

    You need to use Characteristic Derivations for this to work.
    In transaction KEDR, maintain a "look-up" and provide your Reference table as VBPA and your target field will be the COPA Characteristic that you defined for the Partner Function Sales Employee.
    Select the Characteristics that will allow you to determine the Sales Employee (Partner Function = "VE") and then map the KUNNR field to the COPA Value Field.
    This will allow the flow of Sales Employee Values into COPA and hence the description as well.
    Hope this helps.
    Cheers.

  • Linking Sales Employee name/code to Employee data

    I want to display the phone number and email address for the name that is selected in the Sales Quotation Sales Employee field in my sales quotation form. I am having a hard time making the link between the two tables so I can display the correct information.
    Any tips will be welcomed.

    Thank you. Here are the details of what I did.
    The Sales Quote shows:
    Sales Employee: Gary and his Employee No. is 41
    Owner: Octavio and his Employee No. is 11
    In the Print Layout Designer I have the following fields and their results:
    Employee:Sales Employee = 14 (I don't know where this number comes from)
    Employee:Employee No. = 11 (this is the Owner's employee number)
    Employee:Office Phone = phone for Owner
    If I reverse the names in the Sales Quote:
    Sales: Octavio and his Employee No. is 11
    Owner: Employee: Gary and his Employee No. is 41
    In the Print Layout Designer I have the following results:
    Employee:Sales Employee = 22 (I don't know where this number comes from)
    Employee:Employee No. = 14 (this is the Owner's employee number)
    Employee:Office Phone = phone for Owner
    Maybe you can help explain where the Sales Employee numbers come from? Otherwise I think I know what to do.
    Thank you.
    Francisco

  • Retrieve worhk time of employee

    Hello Experts,
    I have an emplyee(PERNR) and i want to retrieve giving a day, the time schedule, i mean
    If is 13/10/2009 and teh pernr is 20000--> the employee works from 8:00 to 14:00
    Can anyone tell how to do that?
    Thanks!

    Ok, but, my request, is inside a ABAP program is to check if the a time is inside the worktime of the employee.
    Thats the reason im looking for a function
    Thanks!

  • Excel column name whitespace (ex: employee name)

    Hello,
    I am trying to read an excel file that has some two-word column names like:
    employee name (instead of employee_name)
    The following executeQuery statement works:
    stmnt.executeQuery("select employee_name from...
    This one doesn't:
    stmnt.executeQuery("select employee name from...
    Any ideas about how to resolve this without having to rename the column headings?
    Thanks,
    Season

    If your connection variable is "conn", do this:String q = conn.getMetaData().getIdentifierQuoteString();If this string is blank you are out of luck. Otherwise, useq + "employee name" + qas your column name. The API documentation says "A JDBC Compliant&trade; driver always uses a double quote character" -- but this is Excel, so who knows?

  • BAPI name to access employee data from systems like CSS, ISP GTP etc

    Hi All,
    Could you please suggest which BAPIs we need to use to access employee data from systems like CSS, ISP GTP etc
    Regards,
    Poonam
    Moderator message: Welcome to SCN!
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on May 20, 2011 2:09 PM

    Hi All,
    Could you please suggest which BAPIs we need to use to access employee data from systems like CSS, ISP GTP etc
    Regards,
    Poonam
    Moderator message: Welcome to SCN!
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on May 20, 2011 2:09 PM

Maybe you are looking for

  • How do I delete an app from my iphone 5 in ios 7?

    I would like to delete an obsolete light app, how do I remove it? Thanks in advance.

  • How to download payload from b2b_instancemessage view in Oracle b2b 10g

    I am not able to extract message payload from B2B_INSTANCEMESSAGE VIEW. when i execute this query: select payload from b2b_instancemessage where documenttype like '%rsConfirmIncid%'; the output I get is "BLOB" I need the complete payload. can somebod

  • Abap WebDynpro Response time monitoring.

    Hi, We are trying to monitor response time for Abap WebDynpro. From SMICM u2192 goto u2192 Http log u2192 server display entries. We can see the response time as 43 milliseconds 07/May/2010:23:03:22 -0500] - "POST XXXXXXXX   HTTP/1.1" 404 2118 [43] h

  • Tracks don't play from 0:00, but from last place played (ie: 0:07)

    My iTunes and my iPod (nano) suddenly started this: When I skip ahead or back a track, it plays that track from the last place I left it (not from 0:00). What is up with that? I can't even rewind to the beginning of the track by skipping, I have to s

  • PDF files and permissions

    Whenever I print documents as PDF files, Adobe Reader 9 opens, the PDF file appears and the following warning invariably appears:  "C:\Program Files(x86)\Common Files\Adobe\ARM\1.0\AdobeARM.exe  Windows cannot access the specified device, path, or fi