SAP HR_FR_GET_PRORATA Function Module for









HR_FR_GET_PRORATA is a standard hr fr get prorata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fr get prorata FM, simply by entering the name HR_FR_GET_PRORATA into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_FR_GET_PRORATA 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_FR_GET_PRORATA'"
EXPORTING
P_PERNR = "
P_BEGDA = "
P_ENDDA = "
* P_CONTRACT = "
* IT_P2001 = "
* IT_ABSENCES = "
* IT_BSGRD = "

IMPORTING
P_PRORATA = "
P_PRORATA_D2 = "
EV_COEF_BSGRD = "
EV_COEF_ATTND = "
EV_PRORATA_ELECT = "

TABLES
* T_SIRET = "
* T_PHIFI = "
* T0000 = "
* T0001 = "
* T0008 = "

EXCEPTIONS
ERROR = 1 NO_ACTIVE = 2 ERROR_READING_T5F1P = 3 NO_CONTRACT_DETERMINED = 4 CONTRACT_NOT_CLASSIFIED = 5 NO_BSGRD = 6
.



IMPORTING Parameters details for HR_FR_GET_PRORATA

P_PERNR -

Data type: PERNR-PERNR
Optional: No
Call by Reference: Yes

P_BEGDA -

Data type: PREL-BEGDA
Optional: No
Call by Reference: Yes

P_ENDDA -

Data type: PREL-ENDDA
Optional: No
Call by Reference: Yes

P_CONTRACT -

Data type: PFRL0_CONTR
Optional: Yes
Call by Reference: Yes

IT_P2001 -

Data type: P2001_TAB
Optional: Yes
Call by Reference: Yes

IT_ABSENCES -

Data type: PFRL0_TAB_AWART
Optional: Yes
Call by Reference: Yes

IT_BSGRD -

Data type: PFRL0_TY_T_BSGRD
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for HR_FR_GET_PRORATA

P_PRORATA -

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

P_PRORATA_D2 -

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

EV_COEF_BSGRD -

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

EV_COEF_ATTND -

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

EV_PRORATA_ELECT -

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

TABLES Parameters details for HR_FR_GET_PRORATA

T_SIRET -

Data type: RSDSSELOPT
Optional: Yes
Call by Reference: Yes

T_PHIFI -

Data type: PHIFI
Optional: Yes
Call by Reference: Yes

T0000 -

Data type: P0000
Optional: Yes
Call by Reference: Yes

T0001 -

Data type: P0001
Optional: Yes
Call by Reference: Yes

T0008 -

Data type: P0008
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_ACTIVE -

Data type:
Optional: No
Call by Reference: Yes

ERROR_READING_T5F1P -

Data type:
Optional: No
Call by Reference: Yes

NO_CONTRACT_DETERMINED -

Data type:
Optional: No
Call by Reference: Yes

CONTRACT_NOT_CLASSIFIED -

Data type:
Optional: No
Call by Reference: Yes

NO_BSGRD -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_FR_GET_PRORATA 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_error  TYPE STRING, "   
lv_p_pernr  TYPE PERNR-PERNR, "   
lt_t_siret  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lv_p_prorata  TYPE PFRL0_PRORATA, "   
lv_p_begda  TYPE PREL-BEGDA, "   
lt_t_phifi  TYPE STANDARD TABLE OF PHIFI, "   
lv_no_active  TYPE PHIFI, "   
lv_p_prorata_d2  TYPE PFRL0_PRORATA_LONG, "   
lt_t0000  TYPE STANDARD TABLE OF P0000, "   
lv_p_endda  TYPE PREL-ENDDA, "   
lv_ev_coef_bsgrd  TYPE PFRL0_PRORATA, "   
lv_error_reading_t5f1p  TYPE PFRL0_PRORATA, "   
lt_t0001  TYPE STANDARD TABLE OF P0001, "   
lv_p_contract  TYPE PFRL0_CONTR, "   
lv_ev_coef_attnd  TYPE PFRL0_PRORATA, "   
lv_no_contract_determined  TYPE PFRL0_PRORATA, "   
lt_t0008  TYPE STANDARD TABLE OF P0008, "   
lv_it_p2001  TYPE P2001_TAB, "   
lv_ev_prorata_elect  TYPE PFRL0_PRORATA, "   
lv_contract_not_classified  TYPE PFRL0_PRORATA, "   
lv_no_bsgrd  TYPE PFRL0_PRORATA, "   
lv_it_absences  TYPE PFRL0_TAB_AWART, "   
lv_it_bsgrd  TYPE PFRL0_TY_T_BSGRD. "   

  CALL FUNCTION 'HR_FR_GET_PRORATA'  "
    EXPORTING
         P_PERNR = lv_p_pernr
         P_BEGDA = lv_p_begda
         P_ENDDA = lv_p_endda
         P_CONTRACT = lv_p_contract
         IT_P2001 = lv_it_p2001
         IT_ABSENCES = lv_it_absences
         IT_BSGRD = lv_it_bsgrd
    IMPORTING
         P_PRORATA = lv_p_prorata
         P_PRORATA_D2 = lv_p_prorata_d2
         EV_COEF_BSGRD = lv_ev_coef_bsgrd
         EV_COEF_ATTND = lv_ev_coef_attnd
         EV_PRORATA_ELECT = lv_ev_prorata_elect
    TABLES
         T_SIRET = lt_t_siret
         T_PHIFI = lt_t_phifi
         T0000 = lt_t0000
         T0001 = lt_t0001
         T0008 = lt_t0008
    EXCEPTIONS
        ERROR = 1
        NO_ACTIVE = 2
        ERROR_READING_T5F1P = 3
        NO_CONTRACT_DETERMINED = 4
        CONTRACT_NOT_CLASSIFIED = 5
        NO_BSGRD = 6
. " HR_FR_GET_PRORATA




ABAP code using 7.40 inline data declarations to call FM HR_FR_GET_PRORATA

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 PERNR INTO @DATA(ld_p_pernr).
 
 
 
"SELECT single BEGDA FROM PREL INTO @DATA(ld_p_begda).
 
 
 
 
 
"SELECT single ENDDA FROM PREL INTO @DATA(ld_p_endda).
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!