Ansicht
Dokumentation

SGPS_CALC_APE_AVG_COMMON - Function Module for computing APE

SGPS_CALC_APE_AVG_COMMON - Function Module for computing APE

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module helps to compute the Annual Pensionable Emolument (APE) of an employee for cases in which no averaging of the the last 3 years is required, ie. no promotion, reversion or reduction due to disciplinary action during the last 3 years prior to an employee's retirement.

It will first attempt to read from the payroll cluster the last regular payroll result of the employee just prior to retirement. If no payroll result could be found, it shall simulate payroll run for the employee.

Afterwhich, it will retrieve from the results table the wage types /PEN and /PEB (Pensions Scheme wage types customised based on Processing Class 86) to determine the APE amount, the Pensionable Salary Per Annum and the Pensionable Allowance Per Annum.

One worthy point of note is that if there is a WPBP split in the last payroll result, it will pick up the last relevant pay details of the employee. Please copy this standard function module and amend otherwise if you have your own otherwise specific requirements.

Example

In last payroll result, we have in RT:

WT APZNR BETRG($)
/PEB 01 2400
/PEB 02 2600
/PEN 01 2700
/PEN 02 2950

In WPBP table:

APZNR BEGDA ENDDA
01 20001101 20001104
02 20001105 20001130

In the above example, our current function module will pick up the entry with APZNR=02, ie the last valid record. APE will be returned as $2950*12 while Basic Salary Per Annum as $2600*12.

Pensionable Allowance Per Annum will be returned as the difference between the APE and the Basic Salary (APE - Basic Salary)

Notes

Further information





Parameters

APE_AMT
BDATE
BPAYP
BS_AMT
EDATE
EPAYP
MAPE_AMT
MBS_AMT
MOLGA
MPA_AMT
PA_AMT
TAB_0001

Exceptions

NO_RGDIR
RPIMP_ERROR
SIM_ERROR

Function Group

3RP8A

PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3155 Date: 20240523 Time: 112114     sap01-206 ( 52 ms )