SAP SGPS_CALC_APE_FROZEN_PE Function Module for Get frozen PE for Pensionable converted to Full CPF scheme in 1973/1986









SGPS_CALC_APE_FROZEN_PE is a standard sgps calc ape frozen pe SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get frozen PE for Pensionable converted to Full CPF scheme in 1973/1986 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 ape frozen pe FM, simply by entering the name SGPS_CALC_APE_FROZEN_PE into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPADSG_PENSIONS_APE
Program Name: SAPLHRPADSG_PENSIONS_APE
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SGPS_CALC_APE_FROZEN_PE 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_APE_FROZEN_PE'"Get  frozen PE for Pensionable converted to Full CPF scheme in 1973/1986
EXPORTING
PERNR = "Personnel Number
MOLGA = "Country Grouping
STARTDATE = "Start date of 3-year period before retirement
FIREDATE = "Retirement Date

IMPORTING
APE_AMT = "Pensions Scheme Annual Pensionable Emolument Amount
BS_AMT = "Pensions Scheme Basic Salary Per Annum
PA_AMT = "Pensions Scheme Pensionable Allowance Per Annum
MAPE_AMT = "Pensions Scheme Annual Pensionable Emolument Amount
MBS_AMT = "Pensions Scheme Basic Salary Per Annum
MPA_AMT = "Pensions Scheme Pensionable Allowance Per Annum

TABLES
EMPLOYEE_DTL = "Structure for feature 25PEN (HR-PS-SG Pensions Scheme)

EXCEPTIONS
DATEINT_ERROR = 1 PENSAL_ERROR = 2
.



IMPORTING Parameters details for SGPS_CALC_APE_FROZEN_PE

PERNR - Personnel Number

Data type: P0003-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

MOLGA - Country Grouping

Data type: T001P-MOLGA
Optional: No
Call by Reference: No ( called with pass by value option)

STARTDATE - Start date of 3-year period before retirement

Data type: P0008-BEGDA
Optional: No
Call by Reference: No ( called with pass by value option)

FIREDATE - Retirement Date

Data type: P0008-BEGDA
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SGPS_CALC_APE_FROZEN_PE

APE_AMT - Pensions Scheme Annual Pensionable Emolument Amount

Data type: P0495-APEAMT
Optional: No
Call by Reference: No ( called with pass by value option)

BS_AMT - Pensions Scheme Basic Salary Per Annum

Data type: P0495-APEAMT
Optional: No
Call by Reference: No ( called with pass by value option)

PA_AMT - Pensions Scheme Pensionable Allowance Per Annum

Data type: P0495-APEAMT
Optional: No
Call by Reference: No ( called with pass by value option)

MAPE_AMT - Pensions Scheme Annual Pensionable Emolument Amount

Data type: P0495-APEAMT
Optional: No
Call by Reference: No ( called with pass by value option)

MBS_AMT - Pensions Scheme Basic Salary Per Annum

Data type: P0495-APEAMT
Optional: No
Call by Reference: No ( called with pass by value option)

MPA_AMT - Pensions Scheme Pensionable Allowance Per Annum

Data type: P0495-APEAMT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SGPS_CALC_APE_FROZEN_PE

EMPLOYEE_DTL - Structure for feature 25PEN (HR-PS-SG Pensions Scheme)

Data type: PSG8D
Optional: No
Call by Reference: Yes

EXCEPTIONS details

DATEINT_ERROR - Error in getting duration

Data type:
Optional: No
Call by Reference: Yes

PENSAL_ERROR - Error when performing 'RP_SALARY_GENERIC_CALC'

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SGPS_CALC_APE_FROZEN_PE 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_pernr  TYPE P0003-PERNR, "   
lv_ape_amt  TYPE P0495-APEAMT, "   
lt_employee_dtl  TYPE STANDARD TABLE OF PSG8D, "   
lv_dateint_error  TYPE PSG8D, "   
lv_molga  TYPE T001P-MOLGA, "   
lv_bs_amt  TYPE P0495-APEAMT, "   
lv_pensal_error  TYPE P0495, "   
lv_pa_amt  TYPE P0495-APEAMT, "   
lv_startdate  TYPE P0008-BEGDA, "   
lv_firedate  TYPE P0008-BEGDA, "   
lv_mape_amt  TYPE P0495-APEAMT, "   
lv_mbs_amt  TYPE P0495-APEAMT, "   
lv_mpa_amt  TYPE P0495-APEAMT. "   

  CALL FUNCTION 'SGPS_CALC_APE_FROZEN_PE'  "Get frozen PE for Pensionable converted to Full CPF scheme in 1973/1986
    EXPORTING
         PERNR = lv_pernr
         MOLGA = lv_molga
         STARTDATE = lv_startdate
         FIREDATE = lv_firedate
    IMPORTING
         APE_AMT = lv_ape_amt
         BS_AMT = lv_bs_amt
         PA_AMT = lv_pa_amt
         MAPE_AMT = lv_mape_amt
         MBS_AMT = lv_mbs_amt
         MPA_AMT = lv_mpa_amt
    TABLES
         EMPLOYEE_DTL = lt_employee_dtl
    EXCEPTIONS
        DATEINT_ERROR = 1
        PENSAL_ERROR = 2
. " SGPS_CALC_APE_FROZEN_PE




ABAP code using 7.40 inline data declarations to call FM SGPS_CALC_APE_FROZEN_PE

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 PERNR FROM P0003 INTO @DATA(ld_pernr).
 
"SELECT single APEAMT FROM P0495 INTO @DATA(ld_ape_amt).
 
 
 
"SELECT single MOLGA FROM T001P INTO @DATA(ld_molga).
 
"SELECT single APEAMT FROM P0495 INTO @DATA(ld_bs_amt).
 
 
"SELECT single APEAMT FROM P0495 INTO @DATA(ld_pa_amt).
 
"SELECT single BEGDA FROM P0008 INTO @DATA(ld_startdate).
 
"SELECT single BEGDA FROM P0008 INTO @DATA(ld_firedate).
 
"SELECT single APEAMT FROM P0495 INTO @DATA(ld_mape_amt).
 
"SELECT single APEAMT FROM P0495 INTO @DATA(ld_mbs_amt).
 
"SELECT single APEAMT FROM P0495 INTO @DATA(ld_mpa_amt).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!