SAP SGPS_CALC_MVC_COMPONENT Function Module for Function to calculate the MVC Component - Ernst & Young
SGPS_CALC_MVC_COMPONENT is a standard sgps calc mvc component SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Function to calculate the MVC Component - Ernst & Young processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for sgps calc mvc component FM, simply by entering the name SGPS_CALC_MVC_COMPONENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: 3RP6A
Program Name: SAPL3RP6A
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SGPS_CALC_MVC_COMPONENT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SGPS_CALC_MVC_COMPONENT'"Function to calculate the MVC Component - Ernst & Young.
EXPORTING
MOLGA = "Country Grouping
TRFAR = "Pay scale Type
TRFGB = "Pay scale area
TRFKZ = "Employee subgroup grouping for CAP.
LGART = "Wage Type
EDATE = "Effective Date
IMPORTING
RETURN_CODE = "Return Code
TABLES
DATATAB_T510 = "Internal table of structure t510
IMPORTING Parameters details for SGPS_CALC_MVC_COMPONENT
MOLGA - Country Grouping
Data type: T510-MOLGAOptional: No
Call by Reference: No ( called with pass by value option)
TRFAR - Pay scale Type
Data type: T510-TRFAROptional: No
Call by Reference: No ( called with pass by value option)
TRFGB - Pay scale area
Data type: T510-TRFGBOptional: No
Call by Reference: No ( called with pass by value option)
TRFKZ - Employee subgroup grouping for CAP.
Data type: T510-TRFKZOptional: No
Call by Reference: No ( called with pass by value option)
LGART - Wage Type
Data type: T510-LGARTOptional: No
Call by Reference: No ( called with pass by value option)
EDATE - Effective Date
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SGPS_CALC_MVC_COMPONENT
RETURN_CODE - Return Code
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SGPS_CALC_MVC_COMPONENT
DATATAB_T510 - Internal table of structure t510
Data type: T510Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SGPS_CALC_MVC_COMPONENT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_molga | TYPE T510-MOLGA, " | |||
| lv_return_code | TYPE SY-SUBRC, " | |||
| lt_datatab_t510 | TYPE STANDARD TABLE OF T510, " | |||
| lv_trfar | TYPE T510-TRFAR, " | |||
| lv_trfgb | TYPE T510-TRFGB, " | |||
| lv_trfkz | TYPE T510-TRFKZ, " | |||
| lv_lgart | TYPE T510-LGART, " | |||
| lv_edate | TYPE SY-DATUM. " |
|   CALL FUNCTION 'SGPS_CALC_MVC_COMPONENT' "Function to calculate the MVC Component - Ernst & Young |
| EXPORTING | ||
| MOLGA | = lv_molga | |
| TRFAR | = lv_trfar | |
| TRFGB | = lv_trfgb | |
| TRFKZ | = lv_trfkz | |
| LGART | = lv_lgart | |
| EDATE | = lv_edate | |
| IMPORTING | ||
| RETURN_CODE | = lv_return_code | |
| TABLES | ||
| DATATAB_T510 | = lt_datatab_t510 | |
| . " SGPS_CALC_MVC_COMPONENT | ||
ABAP code using 7.40 inline data declarations to call FM SGPS_CALC_MVC_COMPONENT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single MOLGA FROM T510 INTO @DATA(ld_molga). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_return_code). | ||||
| "SELECT single TRFAR FROM T510 INTO @DATA(ld_trfar). | ||||
| "SELECT single TRFGB FROM T510 INTO @DATA(ld_trfgb). | ||||
| "SELECT single TRFKZ FROM T510 INTO @DATA(ld_trfkz). | ||||
| "SELECT single LGART FROM T510 INTO @DATA(ld_lgart). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_edate). | ||||
Search for further information about these or an SAP related objects