SAP HR_PF_OLREP_UN Function Module for HR-PF: Online-Auswertung für Pensionskasse









HR_PF_OLREP_UN is a standard hr pf olrep un SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for HR-PF: Online-Auswertung für Pensionskasse 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 hr pf olrep un FM, simply by entering the name HR_PF_OLREP_UN into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_PF_OLREP_UN 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 'HR_PF_OLREP_UN'"HR-PF: Online-Auswertung für Pensionskasse
EXPORTING
KASSE = "Pension fund
PERNR = "Personnel Number
* REFDA = SY-DATUM "
* VALTY = ' ' "PC Value Type
* INIT_BUFFER = ' ' "HR-CH: Indicator
* NCOLS = 9 "
* CALCN = ' ' "HR-CH: Calculation for PC online evaluation

IMPORTING
SEL_VALTY = "PC Value Type
SEL_VALUE = "Value within processing control
.



IMPORTING Parameters details for HR_PF_OLREP_UN

KASSE - Pension fund

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

PERNR - Personnel Number

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

REFDA -

Data type: D
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALTY - PC Value Type

Data type: T5CA2-VALTY
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

INIT_BUFFER - HR-CH: Indicator

Data type: P02VS_FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

NCOLS -

Data type: I
Default: 9
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALCN - HR-CH: Calculation for PC online evaluation

Data type: P02_CALCN
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HR_PF_OLREP_UN

SEL_VALTY - PC Value Type

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

SEL_VALUE - Value within processing control

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

Copy and paste ABAP code example for HR_PF_OLREP_UN 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_kasse  TYPE T5CP0-KASSE, "   
lv_sel_valty  TYPE T5CA2-VALTY, "   
lv_pernr  TYPE P0001-PERNR, "   
lv_sel_value  TYPE T5CAD-VALUE, "   
lv_refda  TYPE D, "   SY-DATUM
lv_valty  TYPE T5CA2-VALTY, "   ' '
lv_init_buffer  TYPE P02VS_FLAG, "   ' '
lv_ncols  TYPE I, "   9
lv_calcn  TYPE P02_CALCN. "   ' '

  CALL FUNCTION 'HR_PF_OLREP_UN'  "HR-PF: Online-Auswertung für Pensionskasse
    EXPORTING
         KASSE = lv_kasse
         PERNR = lv_pernr
         REFDA = lv_refda
         VALTY = lv_valty
         INIT_BUFFER = lv_init_buffer
         NCOLS = lv_ncols
         CALCN = lv_calcn
    IMPORTING
         SEL_VALTY = lv_sel_valty
         SEL_VALUE = lv_sel_value
. " HR_PF_OLREP_UN




ABAP code using 7.40 inline data declarations to call FM HR_PF_OLREP_UN

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 KASSE FROM T5CP0 INTO @DATA(ld_kasse).
 
"SELECT single VALTY FROM T5CA2 INTO @DATA(ld_sel_valty).
 
"SELECT single PERNR FROM P0001 INTO @DATA(ld_pernr).
 
"SELECT single VALUE FROM T5CAD INTO @DATA(ld_sel_value).
 
DATA(ld_refda) = SY-DATUM.
 
"SELECT single VALTY FROM T5CA2 INTO @DATA(ld_valty).
DATA(ld_valty) = ' '.
 
DATA(ld_init_buffer) = ' '.
 
DATA(ld_ncols) = 9.
 
DATA(ld_calcn) = ' '.
 


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!