SAP Function RP_CALCULATE_SENIORITY_MY - Calculate seniority of the employee- MY

Parameter Reference Type Length Default Optional Text
BEGDA T5LER-BEGDA D 8 Begin date of period
CLPGM P0196-ICIND C 1 Calling Program (Master data, payroll)
ENDDA T5LER-ENDDA D 8 End date of period
PERNO P0001-PERNR N 8 Personnel Number

Parameter Reference Type Length Text
SENIORITY T5LER-SENIO P 3 Seniority of the Employee

Parameter Reference Length Optional Text
ISENIOR P0196_SENIOR 19 X Employee Provident Fund rates (Malaysia)

Exception Text
FEATURE_ERROR The feature LEPFS has and invalid value
RECORD_NOT_FOUND Record not found
TABLE_ENTRY_NOT_FOUND Required entry not found

Functionality
Calculate and return the seniority of the employee. This
function reads the feature LEPFS (EPF seniority) to determine
how the begin dates and end dates must be derived. Based on
the modifiers set,the function calculates the seniority of the
employee. The function also returns as a table the dates (year
by year) on wbich the employee has reached his seniority. The
seniority is a real number with the fraction converted to
decimals and is not in the month to year format ( ie 4 years
and 3 months is converted into 4.25).

Example
call function 'RP_CALCULATE_SENIORITY_MY'
exporting
begda = p_begda
endda = p_datum
perno = p_pernr
importing
seniority = p_seniority
tables
isenior = int_seniority
exceptions
others = 1.

Notes
This function module calculates the seniority of the employee
based on the values set in the feature LEPFS. The maintaince
of this feature therefore is very important and must be done
carefully. The function module cannot be used for deriving
the senioriy of the employee in the future.

Further information
Please refer to the documentation on the feature LEPFS.