SAP Function Modules

HR_HIS_READ SAP Function module







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

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


Pattern for FM HR_HIS_READ - HR HIS READ





CALL FUNCTION 'HR_HIS_READ' "
  EXPORTING
    act_prefix =                " mwb_prefix
    act_scenario =              " hrmwbscen
    act_fcode =                 " mwb_fcode
  TABLES
    i77mwbfcd =                 " t77mwbfcd
    i77mwbfco =                 " t77mwbfco
    i77mwbfct =                 " t77mwbfct
    i77mwbfch =                 " t77mwbfch
  EXCEPTIONS
    NOTHING_FOUND = 1           "
    .  "  HR_HIS_READ

ABAP code example for Function Module HR_HIS_READ





The ABAP code below is a full code listing to execute function module HR_HIS_READ 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_i77mwbfcd  TYPE STANDARD TABLE OF T77MWBFCD,"TABLES PARAM
wa_i77mwbfcd  LIKE LINE OF it_i77mwbfcd ,
it_i77mwbfco  TYPE STANDARD TABLE OF T77MWBFCO,"TABLES PARAM
wa_i77mwbfco  LIKE LINE OF it_i77mwbfco ,
it_i77mwbfct  TYPE STANDARD TABLE OF T77MWBFCT,"TABLES PARAM
wa_i77mwbfct  LIKE LINE OF it_i77mwbfct ,
it_i77mwbfch  TYPE STANDARD TABLE OF T77MWBFCH,"TABLES PARAM
wa_i77mwbfch  LIKE LINE OF it_i77mwbfch .

DATA(ld_act_prefix) = 'Check type of data required'.
DATA(ld_act_scenario) = 'Check type of data required'.
DATA(ld_act_fcode) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i77mwbfcd to it_i77mwbfcd.

"populate fields of struture and append to itab
append wa_i77mwbfco to it_i77mwbfco.

"populate fields of struture and append to itab
append wa_i77mwbfct to it_i77mwbfct.

"populate fields of struture and append to itab
append wa_i77mwbfch to it_i77mwbfch. . CALL FUNCTION 'HR_HIS_READ' EXPORTING act_prefix = ld_act_prefix act_scenario = ld_act_scenario act_fcode = ld_act_fcode TABLES i77mwbfcd = it_i77mwbfcd i77mwbfco = it_i77mwbfco i77mwbfct = it_i77mwbfct i77mwbfch = it_i77mwbfch EXCEPTIONS NOTHING_FOUND = 1 . " HR_HIS_READ
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_act_prefix  TYPE MWB_PREFIX ,
it_i77mwbfcd  TYPE STANDARD TABLE OF T77MWBFCD ,
wa_i77mwbfcd  LIKE LINE OF it_i77mwbfcd,
ld_act_scenario  TYPE HRMWBSCEN ,
it_i77mwbfco  TYPE STANDARD TABLE OF T77MWBFCO ,
wa_i77mwbfco  LIKE LINE OF it_i77mwbfco,
ld_act_fcode  TYPE MWB_FCODE ,
it_i77mwbfct  TYPE STANDARD TABLE OF T77MWBFCT ,
wa_i77mwbfct  LIKE LINE OF it_i77mwbfct,
it_i77mwbfch  TYPE STANDARD TABLE OF T77MWBFCH ,
wa_i77mwbfch  LIKE LINE OF it_i77mwbfch.

ld_act_prefix = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i77mwbfcd to it_i77mwbfcd.
ld_act_scenario = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i77mwbfco to it_i77mwbfco.
ld_act_fcode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i77mwbfct to it_i77mwbfct.

"populate fields of struture and append to itab
append wa_i77mwbfch to it_i77mwbfch.

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