SAP Function Modules

HRIQ_EVOBJ_DATA_GET SAP Function module - Evaluation: Read Data







HRIQ_EVOBJ_DATA_GET 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 HRIQ_EVOBJ_DATA_GET into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM HRIQ_EVOBJ_DATA_GET - HRIQ EVOBJ DATA GET





CALL FUNCTION 'HRIQ_EVOBJ_DATA_GET' "Evaluation: Read Data
  EXPORTING
    it_object =                 " hrobject_t    Table Type PLVAR, OTYPE; OBJID
*   iv_begda =                  " begdatum      Start Date
*   iv_endda =                  " enddatum      End Date
*   iv_langu =                  " sy-langu
* TABLES
*   et_1766 =                   " p1766
*   et_1767 =                   " p1767         Infotype 1767
*   et_1767tab =                " p1767_exp     Infotype 1767: Expanded Structure
*   et_relat =                  " p1001         Infotype 1001: Relationships
*   et_descrip =                " p1002_exp     Infotype 1002 Expanded
  EXCEPTIONS
    OBJECTS_MISSING = 1         "
    .  "  HRIQ_EVOBJ_DATA_GET

ABAP code example for Function Module HRIQ_EVOBJ_DATA_GET





The ABAP code below is a full code listing to execute function module HRIQ_EVOBJ_DATA_GET 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_et_1766  TYPE STANDARD TABLE OF P1766,"TABLES PARAM
wa_et_1766  LIKE LINE OF it_et_1766 ,
it_et_1767  TYPE STANDARD TABLE OF P1767,"TABLES PARAM
wa_et_1767  LIKE LINE OF it_et_1767 ,
it_et_1767tab  TYPE STANDARD TABLE OF P1767_EXP,"TABLES PARAM
wa_et_1767tab  LIKE LINE OF it_et_1767tab ,
it_et_relat  TYPE STANDARD TABLE OF P1001,"TABLES PARAM
wa_et_relat  LIKE LINE OF it_et_relat ,
it_et_descrip  TYPE STANDARD TABLE OF P1002_EXP,"TABLES PARAM
wa_et_descrip  LIKE LINE OF it_et_descrip .

DATA(ld_it_object) = 'Check type of data required'.
DATA(ld_iv_begda) = 'Check type of data required'.
DATA(ld_iv_endda) = 'Check type of data required'.
DATA(ld_iv_langu) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_1766 to it_et_1766.

"populate fields of struture and append to itab
append wa_et_1767 to it_et_1767.

"populate fields of struture and append to itab
append wa_et_1767tab to it_et_1767tab.

"populate fields of struture and append to itab
append wa_et_relat to it_et_relat.

"populate fields of struture and append to itab
append wa_et_descrip to it_et_descrip. . CALL FUNCTION 'HRIQ_EVOBJ_DATA_GET' EXPORTING it_object = ld_it_object * iv_begda = ld_iv_begda * iv_endda = ld_iv_endda * iv_langu = ld_iv_langu * TABLES * et_1766 = it_et_1766 * et_1767 = it_et_1767 * et_1767tab = it_et_1767tab * et_relat = it_et_relat * et_descrip = it_et_descrip EXCEPTIONS OBJECTS_MISSING = 1 . " HRIQ_EVOBJ_DATA_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_it_object  TYPE HROBJECT_T ,
it_et_1766  TYPE STANDARD TABLE OF P1766 ,
wa_et_1766  LIKE LINE OF it_et_1766,
ld_iv_begda  TYPE BEGDATUM ,
it_et_1767  TYPE STANDARD TABLE OF P1767 ,
wa_et_1767  LIKE LINE OF it_et_1767,
ld_iv_endda  TYPE ENDDATUM ,
it_et_1767tab  TYPE STANDARD TABLE OF P1767_EXP ,
wa_et_1767tab  LIKE LINE OF it_et_1767tab,
ld_iv_langu  TYPE SY-LANGU ,
it_et_relat  TYPE STANDARD TABLE OF P1001 ,
wa_et_relat  LIKE LINE OF it_et_relat,
it_et_descrip  TYPE STANDARD TABLE OF P1002_EXP ,
wa_et_descrip  LIKE LINE OF it_et_descrip.

ld_it_object = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_1766 to it_et_1766.
ld_iv_begda = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_1767 to it_et_1767.
ld_iv_endda = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_1767tab to it_et_1767tab.
ld_iv_langu = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_relat to it_et_relat.

"populate fields of struture and append to itab
append wa_et_descrip to it_et_descrip.

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 HRIQ_EVOBJ_DATA_GET or its description.