Hi,
To complete Remi answer, use the following fonction module to retrieve payroll:
CA_CU_READ_RGDIR_NEW : To retrieve payroll directory of an employee
PYXX_READ_PAYROLL_RESULT: To retrieve Rt, CRT... from the payroll directory
There's also using get payroll when using logical database.
Hope this helps you get the info from an bap program.
Regards
Frederick