SAP Function Modules

HR_BIW_GET_MASTER_DATA SAP Function module







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

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


Pattern for FM HR_BIW_GET_MASTER_DATA - HR BIW GET MASTER DATA





CALL FUNCTION 'HR_BIW_GET_MASTER_DATA' "
  EXPORTING
    i_requnr =                  " sbiwa_s_interface-requnr
*   i_chabasnm =                " sbiwa_s_interface-chabasnm
*   i_maxsize =                 " sbiwa_s_interface-maxsize
*   i_initflag =                " sbiwa_s_interface-initflag
*   i_updmode =                 " sbiwa_s_interface-updmode
*   i_datapakid =               " sbiwa_s_interface-datapakid
*   i_s_timeint =               " sbiwa_s_timeint
*   i_private_mode =            "
* TABLES
*   i_t_select =                " sbiwa_t_select
*   i_t_fields =                " sbiwa_t_fields
*   e_t_hrms_biw_io_occupancy =   " hrms_biw_io_occupancy
*   e_t_hrms_bw_io_person =     " hrms_bw_io_person
*   e_t_hrms_bw_io_event =      " hrms_bw_io_event
*   e_t_hrms_bw_io_position =   " hrms_bw_io_position
*   e_t_hrms_bw_io_applicant =   " hrms_bw_io_applicant
*   e_t_hrms_bw_io_qualigroup =   " hrms_bw_io_qualigroup
*   e_t_hrms_bw_io_appraisal =   " hrms_bw_io_appraisal
*   e_t_hrms_bw_io_payscalelv =   " hrms_bw_io_payscalelv
*   e_t_hrms_bw_io_salarylv =   " hrms_bw_io_salarylv
*   e_t_hrms_bw_io_external_person =   " hrms_bw_io_external_person
*   e_t_hrms_bw_io_resourcetype =   " hrms_bw_io_resourcetype
*   e_t_hrms_bw_io_comp_award =   " hrms_bw_io_comp_award
*   e_t_hrms_bw_io_award =      " hrms_bw_io_award
*   e_t_hrms_bw_io_orgunit =    " hrms_bw_io_orgunit
*   e_t_hrms_bw_io_position_cctr =   " hrms_bw_io_position_cctr
*   e_t_hrms_bw_attr_employee_id =   " hrms_bw_attr_employee_id
  EXCEPTIONS
    NO_MORE_DATA = 1            "
    ERROR_PASSED_TO_MESS_HANDLER = 2  "
    .  "  HR_BIW_GET_MASTER_DATA

ABAP code example for Function Module HR_BIW_GET_MASTER_DATA





The ABAP code below is a full code listing to execute function module HR_BIW_GET_MASTER_DATA 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_i_t_select  TYPE STANDARD TABLE OF SBIWA_T_SELECT,"TABLES PARAM
wa_i_t_select  LIKE LINE OF it_i_t_select ,
it_i_t_fields  TYPE STANDARD TABLE OF SBIWA_T_FIELDS,"TABLES PARAM
wa_i_t_fields  LIKE LINE OF it_i_t_fields ,
it_e_t_hrms_biw_io_occupancy  TYPE STANDARD TABLE OF HRMS_BIW_IO_OCCUPANCY,"TABLES PARAM
wa_e_t_hrms_biw_io_occupancy  LIKE LINE OF it_e_t_hrms_biw_io_occupancy ,
it_e_t_hrms_bw_io_person  TYPE STANDARD TABLE OF HRMS_BW_IO_PERSON,"TABLES PARAM
wa_e_t_hrms_bw_io_person  LIKE LINE OF it_e_t_hrms_bw_io_person ,
it_e_t_hrms_bw_io_event  TYPE STANDARD TABLE OF HRMS_BW_IO_EVENT,"TABLES PARAM
wa_e_t_hrms_bw_io_event  LIKE LINE OF it_e_t_hrms_bw_io_event ,
it_e_t_hrms_bw_io_position  TYPE STANDARD TABLE OF HRMS_BW_IO_POSITION,"TABLES PARAM
wa_e_t_hrms_bw_io_position  LIKE LINE OF it_e_t_hrms_bw_io_position ,
it_e_t_hrms_bw_io_applicant  TYPE STANDARD TABLE OF HRMS_BW_IO_APPLICANT,"TABLES PARAM
wa_e_t_hrms_bw_io_applicant  LIKE LINE OF it_e_t_hrms_bw_io_applicant ,
it_e_t_hrms_bw_io_qualigroup  TYPE STANDARD TABLE OF HRMS_BW_IO_QUALIGROUP,"TABLES PARAM
wa_e_t_hrms_bw_io_qualigroup  LIKE LINE OF it_e_t_hrms_bw_io_qualigroup ,
it_e_t_hrms_bw_io_appraisal  TYPE STANDARD TABLE OF HRMS_BW_IO_APPRAISAL,"TABLES PARAM
wa_e_t_hrms_bw_io_appraisal  LIKE LINE OF it_e_t_hrms_bw_io_appraisal ,
it_e_t_hrms_bw_io_payscalelv  TYPE STANDARD TABLE OF HRMS_BW_IO_PAYSCALELV,"TABLES PARAM
wa_e_t_hrms_bw_io_payscalelv  LIKE LINE OF it_e_t_hrms_bw_io_payscalelv ,
it_e_t_hrms_bw_io_salarylv  TYPE STANDARD TABLE OF HRMS_BW_IO_SALARYLV,"TABLES PARAM
wa_e_t_hrms_bw_io_salarylv  LIKE LINE OF it_e_t_hrms_bw_io_salarylv ,
it_e_t_hrms_bw_io_external_person  TYPE STANDARD TABLE OF HRMS_BW_IO_EXTERNAL_PERSON,"TABLES PARAM
wa_e_t_hrms_bw_io_external_person  LIKE LINE OF it_e_t_hrms_bw_io_external_person ,
it_e_t_hrms_bw_io_resourcetype  TYPE STANDARD TABLE OF HRMS_BW_IO_RESOURCETYPE,"TABLES PARAM
wa_e_t_hrms_bw_io_resourcetype  LIKE LINE OF it_e_t_hrms_bw_io_resourcetype ,
it_e_t_hrms_bw_io_comp_award  TYPE STANDARD TABLE OF HRMS_BW_IO_COMP_AWARD,"TABLES PARAM
wa_e_t_hrms_bw_io_comp_award  LIKE LINE OF it_e_t_hrms_bw_io_comp_award ,
it_e_t_hrms_bw_io_award  TYPE STANDARD TABLE OF HRMS_BW_IO_AWARD,"TABLES PARAM
wa_e_t_hrms_bw_io_award  LIKE LINE OF it_e_t_hrms_bw_io_award ,
it_e_t_hrms_bw_io_orgunit  TYPE STANDARD TABLE OF HRMS_BW_IO_ORGUNIT,"TABLES PARAM
wa_e_t_hrms_bw_io_orgunit  LIKE LINE OF it_e_t_hrms_bw_io_orgunit ,
it_e_t_hrms_bw_io_position_cctr  TYPE STANDARD TABLE OF HRMS_BW_IO_POSITION_CCTR,"TABLES PARAM
wa_e_t_hrms_bw_io_position_cctr  LIKE LINE OF it_e_t_hrms_bw_io_position_cctr ,
it_e_t_hrms_bw_attr_employee_id  TYPE STANDARD TABLE OF HRMS_BW_ATTR_EMPLOYEE_ID,"TABLES PARAM
wa_e_t_hrms_bw_attr_employee_id  LIKE LINE OF it_e_t_hrms_bw_attr_employee_id .


DATA(ld_i_requnr) = some text here

DATA(ld_i_chabasnm) = some text here

DATA(ld_i_maxsize) = some text here

DATA(ld_i_initflag) = some text here

DATA(ld_i_updmode) = some text here

DATA(ld_i_datapakid) = some text here
DATA(ld_i_s_timeint) = 'Check type of data required'.
DATA(ld_i_private_mode) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_t_select to it_i_t_select.

"populate fields of struture and append to itab
append wa_i_t_fields to it_i_t_fields.

"populate fields of struture and append to itab
append wa_e_t_hrms_biw_io_occupancy to it_e_t_hrms_biw_io_occupancy.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_person to it_e_t_hrms_bw_io_person.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_event to it_e_t_hrms_bw_io_event.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_position to it_e_t_hrms_bw_io_position.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_applicant to it_e_t_hrms_bw_io_applicant.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_qualigroup to it_e_t_hrms_bw_io_qualigroup.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_appraisal to it_e_t_hrms_bw_io_appraisal.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_payscalelv to it_e_t_hrms_bw_io_payscalelv.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_salarylv to it_e_t_hrms_bw_io_salarylv.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_external_person to it_e_t_hrms_bw_io_external_person.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_resourcetype to it_e_t_hrms_bw_io_resourcetype.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_comp_award to it_e_t_hrms_bw_io_comp_award.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_award to it_e_t_hrms_bw_io_award.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_orgunit to it_e_t_hrms_bw_io_orgunit.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_position_cctr to it_e_t_hrms_bw_io_position_cctr.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_attr_employee_id to it_e_t_hrms_bw_attr_employee_id. . CALL FUNCTION 'HR_BIW_GET_MASTER_DATA' EXPORTING i_requnr = ld_i_requnr * i_chabasnm = ld_i_chabasnm * i_maxsize = ld_i_maxsize * i_initflag = ld_i_initflag * i_updmode = ld_i_updmode * i_datapakid = ld_i_datapakid * i_s_timeint = ld_i_s_timeint * i_private_mode = ld_i_private_mode * TABLES * i_t_select = it_i_t_select * i_t_fields = it_i_t_fields * e_t_hrms_biw_io_occupancy = it_e_t_hrms_biw_io_occupancy * e_t_hrms_bw_io_person = it_e_t_hrms_bw_io_person * e_t_hrms_bw_io_event = it_e_t_hrms_bw_io_event * e_t_hrms_bw_io_position = it_e_t_hrms_bw_io_position * e_t_hrms_bw_io_applicant = it_e_t_hrms_bw_io_applicant * e_t_hrms_bw_io_qualigroup = it_e_t_hrms_bw_io_qualigroup * e_t_hrms_bw_io_appraisal = it_e_t_hrms_bw_io_appraisal * e_t_hrms_bw_io_payscalelv = it_e_t_hrms_bw_io_payscalelv * e_t_hrms_bw_io_salarylv = it_e_t_hrms_bw_io_salarylv * e_t_hrms_bw_io_external_person = it_e_t_hrms_bw_io_external_person * e_t_hrms_bw_io_resourcetype = it_e_t_hrms_bw_io_resourcetype * e_t_hrms_bw_io_comp_award = it_e_t_hrms_bw_io_comp_award * e_t_hrms_bw_io_award = it_e_t_hrms_bw_io_award * e_t_hrms_bw_io_orgunit = it_e_t_hrms_bw_io_orgunit * e_t_hrms_bw_io_position_cctr = it_e_t_hrms_bw_io_position_cctr * e_t_hrms_bw_attr_employee_id = it_e_t_hrms_bw_attr_employee_id EXCEPTIONS NO_MORE_DATA = 1 ERROR_PASSED_TO_MESS_HANDLER = 2 . " HR_BIW_GET_MASTER_DATA
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_i_requnr  TYPE SBIWA_S_INTERFACE-REQUNR ,
it_i_t_select  TYPE STANDARD TABLE OF SBIWA_T_SELECT ,
wa_i_t_select  LIKE LINE OF it_i_t_select,
ld_i_chabasnm  TYPE SBIWA_S_INTERFACE-CHABASNM ,
it_i_t_fields  TYPE STANDARD TABLE OF SBIWA_T_FIELDS ,
wa_i_t_fields  LIKE LINE OF it_i_t_fields,
ld_i_maxsize  TYPE SBIWA_S_INTERFACE-MAXSIZE ,
it_e_t_hrms_biw_io_occupancy  TYPE STANDARD TABLE OF HRMS_BIW_IO_OCCUPANCY ,
wa_e_t_hrms_biw_io_occupancy  LIKE LINE OF it_e_t_hrms_biw_io_occupancy,
ld_i_initflag  TYPE SBIWA_S_INTERFACE-INITFLAG ,
it_e_t_hrms_bw_io_person  TYPE STANDARD TABLE OF HRMS_BW_IO_PERSON ,
wa_e_t_hrms_bw_io_person  LIKE LINE OF it_e_t_hrms_bw_io_person,
ld_i_updmode  TYPE SBIWA_S_INTERFACE-UPDMODE ,
it_e_t_hrms_bw_io_event  TYPE STANDARD TABLE OF HRMS_BW_IO_EVENT ,
wa_e_t_hrms_bw_io_event  LIKE LINE OF it_e_t_hrms_bw_io_event,
it_e_t_hrms_bw_io_position  TYPE STANDARD TABLE OF HRMS_BW_IO_POSITION ,
wa_e_t_hrms_bw_io_position  LIKE LINE OF it_e_t_hrms_bw_io_position,
ld_i_datapakid  TYPE SBIWA_S_INTERFACE-DATAPAKID ,
it_e_t_hrms_bw_io_applicant  TYPE STANDARD TABLE OF HRMS_BW_IO_APPLICANT ,
wa_e_t_hrms_bw_io_applicant  LIKE LINE OF it_e_t_hrms_bw_io_applicant,
ld_i_s_timeint  TYPE SBIWA_S_TIMEINT ,
ld_i_private_mode  TYPE STRING ,
it_e_t_hrms_bw_io_qualigroup  TYPE STANDARD TABLE OF HRMS_BW_IO_QUALIGROUP ,
wa_e_t_hrms_bw_io_qualigroup  LIKE LINE OF it_e_t_hrms_bw_io_qualigroup,
it_e_t_hrms_bw_io_appraisal  TYPE STANDARD TABLE OF HRMS_BW_IO_APPRAISAL ,
wa_e_t_hrms_bw_io_appraisal  LIKE LINE OF it_e_t_hrms_bw_io_appraisal,
it_e_t_hrms_bw_io_payscalelv  TYPE STANDARD TABLE OF HRMS_BW_IO_PAYSCALELV ,
wa_e_t_hrms_bw_io_payscalelv  LIKE LINE OF it_e_t_hrms_bw_io_payscalelv,
it_e_t_hrms_bw_io_salarylv  TYPE STANDARD TABLE OF HRMS_BW_IO_SALARYLV ,
wa_e_t_hrms_bw_io_salarylv  LIKE LINE OF it_e_t_hrms_bw_io_salarylv,
it_e_t_hrms_bw_io_external_person  TYPE STANDARD TABLE OF HRMS_BW_IO_EXTERNAL_PERSON ,
wa_e_t_hrms_bw_io_external_person  LIKE LINE OF it_e_t_hrms_bw_io_external_person,
it_e_t_hrms_bw_io_resourcetype  TYPE STANDARD TABLE OF HRMS_BW_IO_RESOURCETYPE ,
wa_e_t_hrms_bw_io_resourcetype  LIKE LINE OF it_e_t_hrms_bw_io_resourcetype,
it_e_t_hrms_bw_io_comp_award  TYPE STANDARD TABLE OF HRMS_BW_IO_COMP_AWARD ,
wa_e_t_hrms_bw_io_comp_award  LIKE LINE OF it_e_t_hrms_bw_io_comp_award,
it_e_t_hrms_bw_io_award  TYPE STANDARD TABLE OF HRMS_BW_IO_AWARD ,
wa_e_t_hrms_bw_io_award  LIKE LINE OF it_e_t_hrms_bw_io_award,
it_e_t_hrms_bw_io_orgunit  TYPE STANDARD TABLE OF HRMS_BW_IO_ORGUNIT ,
wa_e_t_hrms_bw_io_orgunit  LIKE LINE OF it_e_t_hrms_bw_io_orgunit,
it_e_t_hrms_bw_io_position_cctr  TYPE STANDARD TABLE OF HRMS_BW_IO_POSITION_CCTR ,
wa_e_t_hrms_bw_io_position_cctr  LIKE LINE OF it_e_t_hrms_bw_io_position_cctr,
it_e_t_hrms_bw_attr_employee_id  TYPE STANDARD TABLE OF HRMS_BW_ATTR_EMPLOYEE_ID ,
wa_e_t_hrms_bw_attr_employee_id  LIKE LINE OF it_e_t_hrms_bw_attr_employee_id.


ld_i_requnr = some text here

"populate fields of struture and append to itab
append wa_i_t_select to it_i_t_select.

ld_i_chabasnm = some text here

"populate fields of struture and append to itab
append wa_i_t_fields to it_i_t_fields.

ld_i_maxsize = some text here

"populate fields of struture and append to itab
append wa_e_t_hrms_biw_io_occupancy to it_e_t_hrms_biw_io_occupancy.

ld_i_initflag = some text here

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_person to it_e_t_hrms_bw_io_person.

ld_i_updmode = some text here

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_event to it_e_t_hrms_bw_io_event.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_position to it_e_t_hrms_bw_io_position.

ld_i_datapakid = some text here

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_applicant to it_e_t_hrms_bw_io_applicant.
ld_i_s_timeint = 'Check type of data required'.
ld_i_private_mode = 'some text here'.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_qualigroup to it_e_t_hrms_bw_io_qualigroup.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_appraisal to it_e_t_hrms_bw_io_appraisal.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_payscalelv to it_e_t_hrms_bw_io_payscalelv.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_salarylv to it_e_t_hrms_bw_io_salarylv.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_external_person to it_e_t_hrms_bw_io_external_person.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_resourcetype to it_e_t_hrms_bw_io_resourcetype.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_comp_award to it_e_t_hrms_bw_io_comp_award.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_award to it_e_t_hrms_bw_io_award.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_orgunit to it_e_t_hrms_bw_io_orgunit.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_io_position_cctr to it_e_t_hrms_bw_io_position_cctr.

"populate fields of struture and append to itab
append wa_e_t_hrms_bw_attr_employee_id to it_e_t_hrms_bw_attr_employee_id.

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