SAP HR_LA_TIME_EVALUATION Function Module for Simulation of Time management via RPTIME00
HR_LA_TIME_EVALUATION is a standard hr la time evaluation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Simulation of Time management via RPTIME00 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 la time evaluation FM, simply by entering the name HR_LA_TIME_EVALUATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRTIMLA_TIME_EVAL
Program Name: SAPLHRTIMLA_TIME_EVAL
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_LA_TIME_EVALUATION 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_LA_TIME_EVALUATION'"Simulation of Time management via RPTIME00.
EXPORTING
* EVALUATION_BEGIN = "Forced recalculation as of
* EVALUATION_END = "Evaluation up to
* SELECTION_VARIANT = "Report variant for time evaluation
* SCHEMA = "Name of a schema (program template)
* TEST = "Single-character flag
* KEEP_LOG = "Single-character flag
* FORMNR = ' ' "Form name
* LOG_MEM_KEY = "Key to get log from memory
TABLES
EMPLOYEE_NUMBERS = "Personnel numbers for evaluation
* SIMULATED_INFOTYPES = "List of infotypes for simulation
* SIMULATED_DATA = "Infotype records for simulation
* BUFFER = "
* BUFFER_DIRECTORY = "PCLx buffer directory
* PPSOPER = "Changed infotype records
* LIST_OUTPUT = "Time evaluation log as ASCI list
EXCEPTIONS
VARIANT_NOT_EXIST = 1 PROGRAM_NOT_EXIST = 2
IMPORTING Parameters details for HR_LA_TIME_EVALUATION
EVALUATION_BEGIN - Forced recalculation as of
Data type: RPTAXXXX-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
EVALUATION_END - Evaluation up to
Data type: RPTAXXXX-ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
SELECTION_VARIANT - Report variant for time evaluation
Data type: VARI-VARIANTOptional: Yes
Call by Reference: No ( called with pass by value option)
SCHEMA - Name of a schema (program template)
Data type: SCHEMAOptional: Yes
Call by Reference: No ( called with pass by value option)
TEST - Single-character flag
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
KEEP_LOG - Single-character flag
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
FORMNR - Form name
Data type: FORMU_514DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOG_MEM_KEY - Key to get log from memory
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_LA_TIME_EVALUATION
EMPLOYEE_NUMBERS - Personnel numbers for evaluation
Data type: RPTPERNROptional: No
Call by Reference: No ( called with pass by value option)
SIMULATED_INFOTYPES - List of infotypes for simulation
Data type: RPTINFTYOptional: Yes
Call by Reference: No ( called with pass by value option)
SIMULATED_DATA - Infotype records for simulation
Data type: PRELPOptional: Yes
Call by Reference: No ( called with pass by value option)
BUFFER -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
BUFFER_DIRECTORY - PCLx buffer directory
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
PPSOPER - Changed infotype records
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LIST_OUTPUT - Time evaluation log as ASCI list
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
VARIANT_NOT_EXIST - Report variant does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROGRAM_NOT_EXIST - Time evaluation program does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_LA_TIME_EVALUATION 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_employee_numbers | TYPE STANDARD TABLE OF RPTPERNR, " | |||
| lv_evaluation_begin | TYPE RPTAXXXX-BEGDA, " | |||
| lv_variant_not_exist | TYPE RPTAXXXX, " | |||
| lv_evaluation_end | TYPE RPTAXXXX-ENDDA, " | |||
| lv_program_not_exist | TYPE RPTAXXXX, " | |||
| lt_simulated_infotypes | TYPE STANDARD TABLE OF RPTINFTY, " | |||
| lt_simulated_data | TYPE STANDARD TABLE OF PRELP, " | |||
| lv_selection_variant | TYPE VARI-VARIANT, " | |||
| lt_buffer | TYPE STANDARD TABLE OF VARI, " | |||
| lv_schema | TYPE SCHEMA, " | |||
| lv_test | TYPE CHAR1, " | |||
| lt_buffer_directory | TYPE STANDARD TABLE OF CHAR1, " | |||
| lt_ppsoper | TYPE STANDARD TABLE OF CHAR1, " | |||
| lv_keep_log | TYPE CHAR1, " | |||
| lv_formnr | TYPE FORMU_514D, " SPACE | |||
| lt_list_output | TYPE STANDARD TABLE OF FORMU_514D, " | |||
| lv_log_mem_key | TYPE FORMU_514D. " |
|   CALL FUNCTION 'HR_LA_TIME_EVALUATION' "Simulation of Time management via RPTIME00 |
| EXPORTING | ||
| EVALUATION_BEGIN | = lv_evaluation_begin | |
| EVALUATION_END | = lv_evaluation_end | |
| SELECTION_VARIANT | = lv_selection_variant | |
| SCHEMA | = lv_schema | |
| TEST | = lv_test | |
| KEEP_LOG | = lv_keep_log | |
| FORMNR | = lv_formnr | |
| LOG_MEM_KEY | = lv_log_mem_key | |
| TABLES | ||
| EMPLOYEE_NUMBERS | = lt_employee_numbers | |
| SIMULATED_INFOTYPES | = lt_simulated_infotypes | |
| SIMULATED_DATA | = lt_simulated_data | |
| BUFFER | = lt_buffer | |
| BUFFER_DIRECTORY | = lt_buffer_directory | |
| PPSOPER | = lt_ppsoper | |
| LIST_OUTPUT | = lt_list_output | |
| EXCEPTIONS | ||
| VARIANT_NOT_EXIST = 1 | ||
| PROGRAM_NOT_EXIST = 2 | ||
| . " HR_LA_TIME_EVALUATION | ||
ABAP code using 7.40 inline data declarations to call FM HR_LA_TIME_EVALUATION
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 BEGDA FROM RPTAXXXX INTO @DATA(ld_evaluation_begin). | ||||
| "SELECT single ENDDA FROM RPTAXXXX INTO @DATA(ld_evaluation_end). | ||||
| "SELECT single VARIANT FROM VARI INTO @DATA(ld_selection_variant). | ||||
| DATA(ld_formnr) | = ' '. | |||
Search for further information about these or an SAP related objects