Skip to end of metadata
Go to start of metadata


You have a requirement to discover all the users/candidates that have job agents associated for reporting purposes.


This information is contained in table PCL_RCF, with OBJID = JA. There, you can obtain the user linked to the CP object in E-recruiting.

Below, a sample report was written on how to obtain the candidate information based on the user from PCL_RCF table and present it on the screen.



 DATA: d_candidate TYPE REF TO cl_hrrcf_candidate,

       c_user TYPE SYUNAME,

       oref   TYPE REF TO cx_root.


   WRITE: 'Candidates with Job Agent Assigned'.

   SELECT * FROM pcl_rcf
     INTO pcl_rcf
     WHERE relid EQ 'JA'.

     c_user = pcl_rcf-srtfd.


             user      = c_user
             candidate = d_candidate.

         "All candidate information is within object *d_candidate*
         WRITE: / d_candidate->id.

         "You should deal here with exceptions for missing relationships

The structure d_candidate is of type CL_HRRCF_CANDIDATE which contains all the candidate's information, such as BP, user and CP. You can use it to obtain further information on your report.

Don't forget to have your validations for missing relationships on the CATCH statement.

  • No labels