SAP HR_READ_TRAINING_VALUE Function Module for
HR_READ_TRAINING_VALUE is a standard hr read training value 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 read training value FM, simply by entering the name HR_READ_TRAINING_VALUE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR_TRAINING_QUALIFICATION
Program Name: SAPLHR_TRAINING_QUALIFICATION
Main Program: SAPLHR_TRAINING_QUALIFICATION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_READ_TRAINING_VALUE 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_READ_TRAINING_VALUE'".
EXPORTING
P_TPROGID = "Training Program ID
P_FUNCTID = "Function
P_STATID = "Unique identifier for status information
P_TRAINID = "Training ID
* P_BEGDA = '01011800' "Start Date
* P_ENDDA = '31129999' "End Date
IMPORTING
P_WA_TRAIN = "Planned Data for a Training Course
SUBRC = "Return Value of ABAP Statements
IMPORTING Parameters details for HR_READ_TRAINING_VALUE
P_TPROGID - Training Program ID
Data type: TPROG_IDOptional: No
Call by Reference: No ( called with pass by value option)
P_FUNCTID - Function
Data type: FUNCT_IDOptional: No
Call by Reference: No ( called with pass by value option)
P_STATID - Unique identifier for status information
Data type: TSTAT_IDOptional: No
Call by Reference: No ( called with pass by value option)
P_TRAINID - Training ID
Data type: TRAIN_IDOptional: No
Call by Reference: No ( called with pass by value option)
P_BEGDA - Start Date
Data type: BEGDADefault: '01011800'
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_ENDDA - End Date
Data type: ENDDADefault: '31129999'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_READ_TRAINING_VALUE
P_WA_TRAIN - Planned Data for a Training Course
Data type: TRAIN_PLAN_VALOptional: No
Call by Reference: No ( called with pass by value option)
SUBRC - Return Value of ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_READ_TRAINING_VALUE 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_p_tprogid | TYPE TPROG_ID, " | |||
| lv_p_wa_train | TYPE TRAIN_PLAN_VAL, " | |||
| lv_subrc | TYPE SY-SUBRC, " | |||
| lv_p_functid | TYPE FUNCT_ID, " | |||
| lv_p_statid | TYPE TSTAT_ID, " | |||
| lv_p_trainid | TYPE TRAIN_ID, " | |||
| lv_p_begda | TYPE BEGDA, " '01011800' | |||
| lv_p_endda | TYPE ENDDA. " '31129999' |
|   CALL FUNCTION 'HR_READ_TRAINING_VALUE' " |
| EXPORTING | ||
| P_TPROGID | = lv_p_tprogid | |
| P_FUNCTID | = lv_p_functid | |
| P_STATID | = lv_p_statid | |
| P_TRAINID | = lv_p_trainid | |
| P_BEGDA | = lv_p_begda | |
| P_ENDDA | = lv_p_endda | |
| IMPORTING | ||
| P_WA_TRAIN | = lv_p_wa_train | |
| SUBRC | = lv_subrc | |
| . " HR_READ_TRAINING_VALUE | ||
ABAP code using 7.40 inline data declarations to call FM HR_READ_TRAINING_VALUE
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 SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
| DATA(ld_p_begda) | = '01011800'. | |||
| DATA(ld_p_endda) | = '31129999'. | |||
Search for further information about these or an SAP related objects