Sometime you’ll need this module to run payroll simulation from ABAP program. It won’t change any data but will provide you with cluster results or remuneration statement, that could be useful.
Here it is HRTO_AU_PAY_PROCESS_SIMULATION. Adjust it for your country and be happy.
Basically, it runs payroll simulation function module with some wrapping around it.
CALL FUNCTION 'HR_PAYROLL_SIMULATION' EXPORTING payroll_area = payroll_area payroll_period = payroll_period payroll_year = payroll_year payroll_type = payroll_type payroll_id = payroll_id payroll_date = payroll_date selection_variant = calc_variant payroll_ocrsn = payroll_ocrsn log_mem_key = memo_key country_grp = molga obj_iprel = obj_iprel prt_prot = display_log TABLES employee_numbers = pernrs buffer = tbuff buffer_directory = buffer_dir ps_oper = psoper EXCEPTIONS program_not_exist = 1 variant_not_exist = 2 missing_parameter = 3 wrong_parameter = 4 wrong_country_group = 5 OTHERS = 6.