SAP Function SGPS_CALCULATE_NPC_COMPONENT - Function to calculate the NPC Component

Parameter Reference Type Length Default Optional Text
CSTAT T5PBSR6F-PSTAT C 1
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

Parameter Reference Type Length Text
RETURN_CODE SYST-SUBRC I 4

Parameter Reference Length Optional Text
DATATAB_T510 T510 47 Internal Table of Structure T510

Functionality
The main objective of this function is to calculate the NPC amount. The
amount can be derived from the formula which is as follows.
NPC = Monthly Salary - Basic - MVC
Program Description.
====================
1. Retrieve the data from T5PBSR6F and T5PBSR6L.
2. Move it to the Internal Table tab_sal_info
3. Retrieve the data from T5PBSR6G
4. Move it to the Internal Table tab_t5pbsr6g
5. Loop at tab_sal_info
6. Find out the level by subtracting Max.Salary - Min. Salary
7. Divide the above amount by Increment
8. Loop at tab_t5pbsr6g (It contains the basic component records
which is entered by the user.
9. Move corresponding elements to datatab_t510
10. Calculate the MVC amount.
11. Calculate the subsequent monthly salary by incrementing the
Minimum salary with increment.
12. Calculate the NPC Amount by the following formula.
NPC Amount = Monthly Salary - Basic amount - Mvc amount
13. Update the table datatab_t510.

Example
NPC = 3000 - 1500 - 200
NPC = 1300