SAP Function Modules

HR_BR_LOAD_ID SAP Function module







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

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


Pattern for FM HR_BR_LOAD_ID - HR BR LOAD ID





CALL FUNCTION 'HR_BR_LOAD_ID' "
  EXPORTING
    perno =                     " pernr-pernr
*   b_date =                    " sy-datum
*   e_date =                    " sy-datum
*   id_type =                   " p0185-subty
*   sw_raw = PBR99_OFF          " xflag
  IMPORTING
    all_infos =                 " pbr18_all_infos
  TABLES
*   pp0185 =                    " p0185
    list_of_ids =               " pbr18_table_id
    list_of_not_found =         " pbr18_table_id
  EXCEPTIONS
    INFTY_NOT_FOUND = 1         "
    PARAMS_INITIAL = 2          "
    .  "  HR_BR_LOAD_ID

ABAP code example for Function Module HR_BR_LOAD_ID





The ABAP code below is a full code listing to execute function module HR_BR_LOAD_ID 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:
ld_all_infos  TYPE PBR18_ALL_INFOS ,
it_pp0185  TYPE STANDARD TABLE OF P0185,"TABLES PARAM
wa_pp0185  LIKE LINE OF it_pp0185 ,
it_list_of_ids  TYPE STANDARD TABLE OF PBR18_TABLE_ID,"TABLES PARAM
wa_list_of_ids  LIKE LINE OF it_list_of_ids ,
it_list_of_not_found  TYPE STANDARD TABLE OF PBR18_TABLE_ID,"TABLES PARAM
wa_list_of_not_found  LIKE LINE OF it_list_of_not_found .


DATA(ld_perno) = Check type of data required
DATA(ld_b_date) = '20210129'.
DATA(ld_e_date) = '20210129'.

DATA(ld_id_type) = some text here
DATA(ld_sw_raw) = '20210129'.

"populate fields of struture and append to itab
append wa_pp0185 to it_pp0185.

"populate fields of struture and append to itab
append wa_list_of_ids to it_list_of_ids.

"populate fields of struture and append to itab
append wa_list_of_not_found to it_list_of_not_found. . CALL FUNCTION 'HR_BR_LOAD_ID' EXPORTING perno = ld_perno * b_date = ld_b_date * e_date = ld_e_date * id_type = ld_id_type * sw_raw = ld_sw_raw IMPORTING all_infos = ld_all_infos TABLES * pp0185 = it_pp0185 list_of_ids = it_list_of_ids list_of_not_found = it_list_of_not_found EXCEPTIONS INFTY_NOT_FOUND = 1 PARAMS_INITIAL = 2 . " HR_BR_LOAD_ID
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_all_infos  TYPE PBR18_ALL_INFOS ,
ld_perno  TYPE PERNR-PERNR ,
it_pp0185  TYPE STANDARD TABLE OF P0185 ,
wa_pp0185  LIKE LINE OF it_pp0185,
ld_b_date  TYPE SY-DATUM ,
it_list_of_ids  TYPE STANDARD TABLE OF PBR18_TABLE_ID ,
wa_list_of_ids  LIKE LINE OF it_list_of_ids,
ld_e_date  TYPE SY-DATUM ,
it_list_of_not_found  TYPE STANDARD TABLE OF PBR18_TABLE_ID ,
wa_list_of_not_found  LIKE LINE OF it_list_of_not_found,
ld_id_type  TYPE P0185-SUBTY ,
ld_sw_raw  TYPE XFLAG .


ld_perno = Check type of data required

"populate fields of struture and append to itab
append wa_pp0185 to it_pp0185.
ld_b_date = '20210129'.

"populate fields of struture and append to itab
append wa_list_of_ids to it_list_of_ids.
ld_e_date = '20210129'.

"populate fields of struture and append to itab
append wa_list_of_not_found to it_list_of_not_found.

ld_id_type = some text here
ld_sw_raw = '20210129'.

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