Application Development and Automation 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: 
Read only

get candidate name

Former Member
0 Likes
356

hi all,

I need to get the name of a candidate name using CL_HRREF_CANDIDATE class . It has 2 method GET() and GET_CAND_DESCRIPTION(). I am taking Candidate id from HRP5133.

can you please give me the steps to find the name of the candidate.

Regards,

Anirban

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
316

Hello Anirban

Below you see how you can retrieve the name of the candidate (NOTE: I found only class CL_HRHCF_CANDIDATE in our ERP):


DATA: go_candidate   TYPE REF TO cl_hrhcf_candidate.
DATA: gs_hrp5133      TYPE hrp5133.
DATA: gd_descript      TYPE BU_DESCRIP.
DATA: gd_fullname      TYPE BU_NAME1TX.

  go_candidate = cl_hrhcf_candidate( user = gs_hrp5133-uname ).
  gd_descript   = go_candidate->get_cand_description( ).   " Or use public attribute:

  gd_fullname = go_candidate->centraldataperson-fullname.

Instead of the username you can use also use the candidate ID (persumable HRP5133-OTJID).

Regards

Uwe