SAP HR_99S_GET_EVAL_CLASS_VALUE Function Module for HR-SE: Returns the value of a given Evaluation Class in a given Wage Type









HR_99S_GET_EVAL_CLASS_VALUE is a standard hr 99s get eval class value 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-SE: Returns the value of a given Evaluation Class in a given Wage Type 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 99s get eval class value FM, simply by entering the name HR_99S_GET_EVAL_CLASS_VALUE into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_99S_GET_EVAL_CLASS_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_99S_GET_EVAL_CLASS_VALUE'"HR-SE: Returns the value of a given Evaluation Class in a given Wage Type
EXPORTING
* P_MOLGA = "Country Grouping
* P_LGART = "Wage Type
P_EVAL_CLASS = "Evaluation class
* P_KEYDATE = "Date and time, current (application server) date
* P_T512W = "Wage Type Valuation

IMPORTING
P_VALUE = "Specification of evaluation class
P_RETURN_CODE = "Return value, return value after ABAP statements
.



IMPORTING Parameters details for HR_99S_GET_EVAL_CLASS_VALUE

P_MOLGA - Country Grouping

Data type: T500L-MOLGA
Optional: Yes
Call by Reference: Yes

P_LGART - Wage Type

Data type: T512W-LGART
Optional: Yes
Call by Reference: Yes

P_EVAL_CLASS - Evaluation class

Data type: T52D3-EVCLS
Optional: No
Call by Reference: Yes

P_KEYDATE - Date and time, current (application server) date

Data type: SY-DATUM
Optional: Yes
Call by Reference: Yes

P_T512W - Wage Type Valuation

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

EXPORTING Parameters details for HR_99S_GET_EVAL_CLASS_VALUE

P_VALUE - Specification of evaluation class

Data type: T52D4-EVCLV
Optional: No
Call by Reference: Yes

P_RETURN_CODE - Return value, return value after ABAP statements

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_99S_GET_EVAL_CLASS_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_molga  TYPE T500L-MOLGA, "   
lv_p_value  TYPE T52D4-EVCLV, "   
lv_p_lgart  TYPE T512W-LGART, "   
lv_p_return_code  TYPE SY-SUBRC, "   
lv_p_eval_class  TYPE T52D3-EVCLS, "   
lv_p_keydate  TYPE SY-DATUM, "   
lv_p_t512w  TYPE T512W. "   

  CALL FUNCTION 'HR_99S_GET_EVAL_CLASS_VALUE'  "HR-SE: Returns the value of a given Evaluation Class in a given Wage Type
    EXPORTING
         P_MOLGA = lv_p_molga
         P_LGART = lv_p_lgart
         P_EVAL_CLASS = lv_p_eval_class
         P_KEYDATE = lv_p_keydate
         P_T512W = lv_p_t512w
    IMPORTING
         P_VALUE = lv_p_value
         P_RETURN_CODE = lv_p_return_code
. " HR_99S_GET_EVAL_CLASS_VALUE




ABAP code using 7.40 inline data declarations to call FM HR_99S_GET_EVAL_CLASS_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 MOLGA FROM T500L INTO @DATA(ld_p_molga).
 
"SELECT single EVCLV FROM T52D4 INTO @DATA(ld_p_value).
 
"SELECT single LGART FROM T512W INTO @DATA(ld_p_lgart).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_p_return_code).
 
"SELECT single EVCLS FROM T52D3 INTO @DATA(ld_p_eval_class).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_p_keydate).
 
 


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!