SAP Function Modules

HR_EVALUATION_CLASS_3 SAP Function module







HR_EVALUATION_CLASS_3 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HR_EVALUATION_CLASS_3 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HRGW
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM HR_EVALUATION_CLASS_3 - HR EVALUATION CLASS 3





CALL FUNCTION 'HR_EVALUATION_CLASS_3' "
  EXPORTING
    molga =                     " t512w-molga
*   begda = '18000101'          " d
*   endda = '99991231'          " d
    evcls =                     " t52d4-evcls
*   add_entry = 1               " p512e-lfdnr
  TABLES
    form_lga =                  " p512e
    form_lga_gen =              " p512e
*   error =                     " hrerror
  EXCEPTIONS
    INVALID_VALUE_FOR_ADD_ENTRY = 1  "
    INVALID_EVALUATION_CLASS = 2  "
    .  "  HR_EVALUATION_CLASS_3

ABAP code example for Function Module HR_EVALUATION_CLASS_3





The ABAP code below is a full code listing to execute function module HR_EVALUATION_CLASS_3 including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_form_lga  TYPE STANDARD TABLE OF P512E,"TABLES PARAM
wa_form_lga  LIKE LINE OF it_form_lga ,
it_form_lga_gen  TYPE STANDARD TABLE OF P512E,"TABLES PARAM
wa_form_lga_gen  LIKE LINE OF it_form_lga_gen ,
it_error  TYPE STANDARD TABLE OF HRERROR,"TABLES PARAM
wa_error  LIKE LINE OF it_error .


SELECT single MOLGA
FROM T512W
INTO @DATA(ld_molga).

DATA(ld_begda) = 'Check type of data required'.
DATA(ld_endda) = 'Check type of data required'.

SELECT single EVCLS
FROM T52D4
INTO @DATA(ld_evcls).


DATA(ld_add_entry) = Check type of data required

"populate fields of struture and append to itab
append wa_form_lga to it_form_lga.

"populate fields of struture and append to itab
append wa_form_lga_gen to it_form_lga_gen.

"populate fields of struture and append to itab
append wa_error to it_error. . CALL FUNCTION 'HR_EVALUATION_CLASS_3' EXPORTING molga = ld_molga * begda = ld_begda * endda = ld_endda evcls = ld_evcls * add_entry = ld_add_entry TABLES form_lga = it_form_lga form_lga_gen = it_form_lga_gen * error = it_error EXCEPTIONS INVALID_VALUE_FOR_ADD_ENTRY = 1 INVALID_EVALUATION_CLASS = 2 . " HR_EVALUATION_CLASS_3
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_molga  TYPE T512W-MOLGA ,
it_form_lga  TYPE STANDARD TABLE OF P512E ,
wa_form_lga  LIKE LINE OF it_form_lga,
ld_begda  TYPE D ,
it_form_lga_gen  TYPE STANDARD TABLE OF P512E ,
wa_form_lga_gen  LIKE LINE OF it_form_lga_gen,
ld_endda  TYPE D ,
it_error  TYPE STANDARD TABLE OF HRERROR ,
wa_error  LIKE LINE OF it_error,
ld_evcls  TYPE T52D4-EVCLS ,
ld_add_entry  TYPE P512E-LFDNR .


SELECT single MOLGA
FROM T512W
INTO ld_molga.


"populate fields of struture and append to itab
append wa_form_lga to it_form_lga.
ld_begda = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_form_lga_gen to it_form_lga_gen.
ld_endda = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_error to it_error.

SELECT single EVCLS
FROM T52D4
INTO ld_evcls.


ld_add_entry = Check type of data required

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HR_EVALUATION_CLASS_3 or its description.