2008 Nov 03 4:28 AM
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
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
2008 Nov 03 4:58 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |