SAP FM_SS_PERKS Function Module for Perks Calculation
FM_SS_PERKS is a standard fm ss perks SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Perks Calculation 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 fm ss perks FM, simply by entering the name FM_SS_PERKS into the relevant SAP transaction such as SE37 or SE38.
Function Group: EH_SS_ITP
Program Name: SAPLEH_SS_ITP
Main Program: SAPLEH_SS_ITP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_SS_PERKS 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 'FM_SS_PERKS'"Perks Calculation.
EXPORTING
* IDS_PAYRESULT = "Structure for payroll result: India
IMPORTING
EFD_PRTOT = "HR Payroll: Amount
ETB_PERKS = "Table type to hold the Perks value for Salary Statement
EFD_MEDIC = "HR Payroll: Amount
EFD_MEDTR = "HR Payroll: Amount
IMPORTING Parameters details for FM_SS_PERKS
IDS_PAYRESULT - Structure for payroll result: India
Data type: PAYIN_RESULTOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FM_SS_PERKS
EFD_PRTOT - HR Payroll: Amount
Data type: MAXBTOptional: No
Call by Reference: Yes
ETB_PERKS - Table type to hold the Perks value for Salary Statement
Data type: PIN_SSTT_PERKSOptional: No
Call by Reference: Yes
EFD_MEDIC - HR Payroll: Amount
Data type: MAXBTOptional: No
Call by Reference: Yes
EFD_MEDTR - HR Payroll: Amount
Data type: MAXBTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FM_SS_PERKS 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_efd_prtot | TYPE MAXBT, " | |||
| lv_ids_payresult | TYPE PAYIN_RESULT, " | |||
| lv_etb_perks | TYPE PIN_SSTT_PERKS, " | |||
| lv_efd_medic | TYPE MAXBT, " | |||
| lv_efd_medtr | TYPE MAXBT. " |
|   CALL FUNCTION 'FM_SS_PERKS' "Perks Calculation |
| EXPORTING | ||
| IDS_PAYRESULT | = lv_ids_payresult | |
| IMPORTING | ||
| EFD_PRTOT | = lv_efd_prtot | |
| ETB_PERKS | = lv_etb_perks | |
| EFD_MEDIC | = lv_efd_medic | |
| EFD_MEDTR | = lv_efd_medtr | |
| . " FM_SS_PERKS | ||
ABAP code using 7.40 inline data declarations to call FM FM_SS_PERKS
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.Search for further information about these or an SAP related objects