SAP RP_EVALUATION_PERIODS Function Module for Fills Table with Periods to be Evaluated









RP_EVALUATION_PERIODS is a standard rp evaluation periods SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fills Table with Periods to be Evaluated 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 rp evaluation periods FM, simply by entering the name RP_EVALUATION_PERIODS into the relevant SAP transaction such as SE37 or SE38.

Function Group: RPED
Program Name: SAPLRPED
Main Program:
Appliation area: P
Release date: 21-Oct-1992
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RP_EVALUATION_PERIODS 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 'RP_EVALUATION_PERIODS'"Fills Table with Periods to be Evaluated
EXPORTING
* LAST_CALCULATED_DAY = "Last Day Accounted for the Employee
LAST_DAY_IN_PERIOD = "Last day of the Accounting Period
* RETROCALCULATED_DAY = "Is No Longer Used

TABLES
DIR = "Directory of Payroll Results
EVP = "Table of Evaluation Periods

EXCEPTIONS
RGDIR_EMPTY = 1 INTERNAL_ERROR = 2
.



IMPORTING Parameters details for RP_EVALUATION_PERIODS

LAST_CALCULATED_DAY - Last Day Accounted for the Employee

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

LAST_DAY_IN_PERIOD - Last day of the Accounting Period

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

RETROCALCULATED_DAY - Is No Longer Used

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

TABLES Parameters details for RP_EVALUATION_PERIODS

DIR - Directory of Payroll Results

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

EVP - Table of Evaluation Periods

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

EXCEPTIONS details

RGDIR_EMPTY - Table DIR (RGDIR) is empty

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

INTERNAL_ERROR -

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

Copy and paste ABAP code example for RP_EVALUATION_PERIODS 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:
lt_dir  TYPE STANDARD TABLE OF PC260, "   
lv_rgdir_empty  TYPE PC260, "   
lv_last_calculated_day  TYPE P0003-ABRDT, "   
lt_evp  TYPE STANDARD TABLE OF PEVPT, "   
lv_internal_error  TYPE PEVPT, "   
lv_last_day_in_period  TYPE T549Q-ENDDA, "   
lv_retrocalculated_day  TYPE P0003-RRDAT. "   

  CALL FUNCTION 'RP_EVALUATION_PERIODS'  "Fills Table with Periods to be Evaluated
    EXPORTING
         LAST_CALCULATED_DAY = lv_last_calculated_day
         LAST_DAY_IN_PERIOD = lv_last_day_in_period
         RETROCALCULATED_DAY = lv_retrocalculated_day
    TABLES
         DIR = lt_dir
         EVP = lt_evp
    EXCEPTIONS
        RGDIR_EMPTY = 1
        INTERNAL_ERROR = 2
. " RP_EVALUATION_PERIODS




ABAP code using 7.40 inline data declarations to call FM RP_EVALUATION_PERIODS

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 ABRDT FROM P0003 INTO @DATA(ld_last_calculated_day).
 
 
 
"SELECT single ENDDA FROM T549Q INTO @DATA(ld_last_day_in_period).
 
"SELECT single RRDAT FROM P0003 INTO @DATA(ld_retrocalculated_day).
 


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!