Today, I need to find out whether is there any existing payroll result in our demo system.
A very useful transaction code is "PC_PAYRESULT".
Fill in the employee number that you want to check whether got payroll result exist for the employee, and then hit Enter. You also can enter a range for the employee number.
To read the payroll result from my program, I am using function module "CU_READ_RGDIR" to get the RGDIR, then use function module "CD_READ_LAST" to get the SEQNR. Then, I use function module "PYXX_GET_RELID_FROM_PERNR" to get the RELID, and then use function module "PYXX_READ_PAYROLL_RESULT" to get the payroll result.
The changing parameter of the function module "PYXX_READ_PAYROLL_RESULT" -> "PAYROLL_RESULT", will be type "pay99_result" for international payroll result. If the payroll result for GB, then we can use type "paygb_result".
The payroll result might consist of a lot technical wage type in the RT table, to understand what is those wage type, you can refer to the view "V_T512T" from SM30.