Ansicht
Dokumentation

SGPS_CALCULATE_MVC_COMPONENT - Function to calculate the MVC Component

SGPS_CALCULATE_MVC_COMPONENT - Function to calculate the MVC Component

General Material Data   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

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 and lgart 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.

Notes

Further information





Parameters

DATATAB_T510
EDATE
LGART
MOLGA
RETURN_CODE
TRFAR
TRFGB
TRFKZ

Exceptions

Function Group

3RP6A

ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.

Length: 1592 Date: 20240523 Time: 091704     sap01-206 ( 23 ms )