Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

function module to get name of the employee

vijy_mukunthan
Active Contributor
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

Former Member
0 Kudos

Sorry...repeat post

Former Member
0 Kudos

Hi Vijay,

Try function module: HR_TMW_GET_EMPLOYEE_NAME

Regards,

Chandra Sekhar

Edited by: Chandrasekhar Gandla on Sep 26, 2008 2:40 PM

Former Member
0 Kudos

Hi,

Try 'HR_FR_GET_EMPLOYEE'.

Else

'CATS_GET_EMPLOYEE_NAME'.

Is it working for you?

Regards,

R.Nagarajan.

Edited by: Nagarajan Ramamoorthy on Sep 26, 2008 6:09 PM

former_member181995
Active Contributor
0 Kudos
CATS_GET_EMPLOYEE_NAME    
HR_TMW_GET_EMPLOYEE_NAME  
HRWPC_GET_EMPLOYEE_NAME

??

vijy_mukunthan
Active Contributor
0 Kudos

hi friends

problem sloved

Thanks for your solution

Regards

vijay