Fonction SAP SGPS_CALCULATE_MVC_COMPONENT - Function to calculate the MVC Component

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EDATE SYST-DATUM D 8 Effective Date
LGART T510-LGART C 4 Wage Type
MOLGA T510-MOLGA C 2 Country Grouping
TRFAR T510-TRFAR C 2 Pay scale Type
TRFGB T510-TRFGB C 2 Pay scale area
TRFKZ T510-TRFKZ C 1 Employee subgroup grouping for CAP.

Paramètre Reférence Type Long. Description
RETURN_CODE SYST-SUBRC I 4 Return Code

Paramètre Reférence Long. Facultatif Description
DATATAB_T510 T510 47 Internal table of structure t510

Functionality
The main objective of this function is to calculate the MVC amount.This amount can be derived by the formula which is as follows.
MVC = X% of Basic Pay + Amount.
Program receives basic parameters like molga,trfar,trfgb,trfkz andlgart and internal table of structure t510.
Program Description.
* Select * from T5PBSR6J and move it to the Internal Table.
* Select * from T5PBSR6J and move it to the Internal Table.
* Move the data from datatab_t510 to tmp_tab for processing.
* For each record read, move its salary code into sal_code.
(Here Salary code can be obtained from "trfgr" Psgroup. PSgroup
is the combination of salary code and bar-indicator.
* For each salary code, retrieve corresponding Scheme code.
* Use Scheme code as the key field to retrieve the respective
percentage and amount from T5PBSR6J
* Calculate the MVC amount using the formula.
* Append the internal table datatab_t510
* Return the Internal table datatab_t510

Example
MVC = (2/100) * 1500 + 200 ( 1500 = Basic Component).
MVC = 230.