Ansicht
Dokumentation

HRTO_AU_PAY_PROCESS_SIM_CE - Run payroll in simulation for termination

HRTO_AU_PAY_PROCESS_SIM_CE - Run payroll in simulation for termination

Addresses (Business Address Services)   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module runs the payroll driver in simulation with simulated infotype data and generates the simulated pay results. The mechanism of the simulation run is as follows,

  1. Export the simulated infotype records to memory id
  2. Call the payroll driver with a parameter ecalled = 'X'.
  3. The payroll driver exports simulated pay results to buffer
  4. Import the buffer results. Add up the RT's for the periods for which termination simulation has run. Subtract actual results from the added ones if the simulation run has run retro and the original run results are subtracted.
  5. Get the final IRT table which has the net payout figures for the simulation run.
  6. Construct the CRT tables relevant to Payment summary based on simulated pay results.
  7. If error occurs during a simulation run, or if log has been requested explicitly, display the payroll log.

This function calls the HR_PAYROLL function module which exports the simulated infotype records to memory in the form of an IPREL table, the Pyroll driver is called with the parameter 'X' which enables the payroll driver to export buffer tables TBUFF and BUFFER_DIR to memory. The above buffer tables are imported from memory. Import simulated RGDIR from the buffer. Call function module HR_EVAL_PERIODS_CALCSIM to get the periods for which termination simulation payroll has run. Loop through this simulated RGDIR and import simulated RT results from memory and cumulate to IRT. Then for each periods, import original results only if the period is on or before the last payrun date. Subtract these results from IRT. Make sure wagetype values for /560, /561, /552 and /563 belongs to that of the latest simulation run RT.

Both normal and offcycle payroll can be run through this function module. The correct parameters needs to be passed to payroll accordingly.

For normal termination, simulation run is performed with inperiod as the termination period with retro back from next pay period.

For a retro termination, simulation run is performed with in-period as the next pay period(period after the exit payroll) retro back to termination period.

For offcycle payroll, normal bonus offcyle is run as of a particular date.

If prior to running termination simulation, there are some offcycle records created as IT0267 records, they are not considered in the simulation run. Therefore the user has to make sure that these offcycle runs are performed manually prior to running termination.

Example

1. Payroll has been run and exited for a person for 01/2001(01/07/2001 - 31/07/2001) and 02/2001. Termination happens on 10/10/2001. This is the case of a normal termination. The following simulation runs are performed,

03/2001 in 04/2001

04/2001 in 04/2001

2. Payroll has been run and exited for a person for 01/2001(01/07/2001 - 31/07/2001), 02/2001 and 03/2001. Termination happens on 15/08/2001. This is the case of a retro termination. The following simulation runs are performed,

02/2001 in 04/2001

03/2001 in 04/2001

04/2001 in 04/2001

Notes

Further information





Parameters

CRT_LAST
CRT_RT
DISPLAY_LOG
FIRSTTIME
GROUPING_TAB
IRT
NEXT_PAY_BEGDA
OBJ_IPREL
PAYDATE
PAYROLL
PAYROLL_AREA
PAYROLL_DATE
PAYROLL_ID
PAYROLL_OCRSN
PAYROLL_PERIOD
PAYROLL_TYPE
PAYROLL_YEAR
PERSONNEL_NO
PTYPE
RETRO_DATE
RT_PERNR
RT_PERSON
SIM0003
SW_ASSIGNMENT
TEMP_PAYSUM

Exceptions

OTHERS
SIMULATION_FAILED

Function Group

HRCCEAU

ROGBILLS - Synchronize billing plans   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 4167 Date: 20240523 Time: 091558     sap01-206 ( 98 ms )