SAP Function Modules

CBIH_IA30_IAL_READ SAP Function module - EHS: Read Incident/Accident Log Data







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

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


Pattern for FM CBIH_IA30_IAL_READ - CBIH IA30 IAL READ





CALL FUNCTION 'CBIH_IA30_IAL_READ' "EHS: Read Incident/Accident Log Data
  EXPORTING
    i_scenario =                " espap_scenario_type  Lock Scenario
    i_addinf =                  " rcgaddinf     Additional Information on Object
*   i_valfr =                   " rcgaddinf-valdat  Lower Time Interval Limit
*   i_valto =                   " rcgaddinf-valdat  Upper Time Interval Limit
*   i_flg_key_date_switch_only = ESP1_FALSE  " esp1_boolean  Indicator: Change key date and change number only
*   i_flg_return_whole_interval = ESP1_FALSE  " esp1_boolean  Indicator: Read the entire time interval
*   i_flg_fill_exterror = ESP1_TRUE  " esp1_boolean  Indicator: Fill extended error information table
*   i_flg_header = ESP1_FALSE   " esp1_boolean  Indicator: Read incident/accident log header
*   i_flg_result_ltxt = ESP1_FALSE  " esp1_boolean  Indicator: Read determination result
*   i_flg_action = ESP1_FALSE   " esp1_boolean  Indicator: Read IHS safety measures
*   i_flg_invpers = ESP1_FALSE  " esp1_boolean  Indicator: Read persons involved
*   i_flg_invpers_ltxt = ESP1_FALSE  " esp1_boolean  Indicator: Read long texts for persons involved
*   i_flg_affpers = ESP1_FALSE  " esp1_boolean  Indicator: Read data for person affected
*   i_flg_aff_intltxt = ESP1_FALSE  " esp1_boolean  Indicator: Internal long texts for persons affected
*   i_flg_aff_extltxt = ESP1_FALSE  " esp1_boolean  Indicator: External long texts for persons affected
*   i_flg_injuries = ESP1_FALSE  " esp1_boolean  Indicator: Read injuries
*   i_flg_ia_val = ESP1_FALSE   " esp1_boolean  Indicator: Classification system value assignments incident/accident log
*   i_flg_ip_val = ESP1_FALSE   " esp1_boolean  Indicator: Classification system value assignments person affected
*   i_flg_sort_prop_data = ESP1_FALSE  " esp1_boolean  Indicator: Return value assignments sorted
*   i_flg_read_all_charact = ESP1_FALSE  " esp1_boolean  Indicator: Read all value assignments
*   i_flg_no_auth_check = ESP1_FALSE  " esp1_boolean  Indicator: Switch off authorization checks
*   i_flg_action_ltxt = ESP1_FALSE  " esp1_boolean  Indicator: Read safety measure long text
*   i_flg_freetext = ESP1_FALSE  " esp1_boolean  Indicator: Read user-defined texts and documents
*   i_flg_freetext_ltxt = ESP1_FALSE  " esp1_boolean  Indicator: Read user-defined text and document long texts
*   i_flg_rootcause = ESP1_FALSE  " esp1_boolean
*   i_flg_absences = ESP1_FALSE  " esp1_boolean
*   i_flg_restrictions = ESP1_FALSE  " esp1_boolean
*   i_langu = SY-LANGU          " langu
  IMPORTING
    e_flg_lockfail =            " esp1_boolean  Indicator: Lock on at least one record failed
    e_flg_error =               " esp1_boolean  Error reading a record indicator
    e_flg_warning =             " esp1_boolean  Warning reading a record indicator
  TABLES
    x_api_header_tab =          " cihal_ialhapi_tab_type  Incident/accident log header data
*   e_api_result_ltxt_tab =     " cihal_resltapi_tab_type
*   e_api_action_tab =          " cihac_achapi_tab_type  IHS safety measures
*   x_api_invpersons_tab =      " cihal_ipapi_tab_type  Persons involved
*   e_api_invpers_ltxt_tab =    " cihal_ipltapi_tab_type
*   e_api_affpersdat_tab =      " cihal_ipevaapi_tab_type  Event data for persons affected
*   e_api_aff_intltxt_tab =     " cihal_ipevaltapi_tab_type
*   e_api_aff_extltxt_tab =     " cihal_ipevaltapi_tab_type
*   e_api_injuries_tab =        " cihal_ipevinjapi_tab_type  Injuries to persons affected
*   e_api_iava_tab =            " cih01_ihvalapi_tab_type  Value assignment instances for incident/accident log header
*   e_api_iaprop_data_tab =     " cih01_ihprapi_tab_type  Value assignment data for incident/accident log header
*   e_api_ipva_tab =            " cih01_ihvalapi_tab_type  Value assignment instances for person affected
*   e_api_ipprop_data_tab =     " cih01_ihprapi_tab_type  Value assignment data for person affected
*   e_api_action_ltxt_tab =     " cihac_acltapi_tab_type
*   e_api_freetext_tab =        " cih01_dftapi_tab_type  User-defined texts and documents
*   e_api_freetext_ltxt_tab =   " cih01_dftltapi_tab_type  Long texts for user-defined texts and documents
*   e_api_rootcause_tab =       " ccihy_rcapi   Cause Data
*   e_api_absences_tab =        " ccihy_ipabssapi  Absence Data
*   e_api_restrictions_tab =    " ccihy_ipevalimapi  Multiple Restrictions of Person Affected
  EXCEPTIONS
    NO_OBJECT_SPECIFIED = 1     "               No objects were specified in the header table
    PARAMETER_ERROR = 2         "               Indicator set but relevant table missing
    INTERNAL_ERROR = 3          "               Internal error or Customizing error
    CONVMODE_SET_FAILED = 4     "               Language Support Error
    INTERVAL_ACCESS_ERROR = 5   "               Access to time intervals failed
    .  "  CBIH_IA30_IAL_READ

ABAP code example for Function Module CBIH_IA30_IAL_READ





The ABAP code below is a full code listing to execute function module CBIH_IA30_IAL_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:
ld_e_flg_lockfail  TYPE ESP1_BOOLEAN ,
ld_e_flg_error  TYPE ESP1_BOOLEAN ,
ld_e_flg_warning  TYPE ESP1_BOOLEAN ,
it_x_api_header_tab  TYPE STANDARD TABLE OF CIHAL_IALHAPI_TAB_TYPE,"TABLES PARAM
wa_x_api_header_tab  LIKE LINE OF it_x_api_header_tab ,
it_e_api_result_ltxt_tab  TYPE STANDARD TABLE OF CIHAL_RESLTAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_result_ltxt_tab  LIKE LINE OF it_e_api_result_ltxt_tab ,
it_e_api_action_tab  TYPE STANDARD TABLE OF CIHAC_ACHAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_action_tab  LIKE LINE OF it_e_api_action_tab ,
it_x_api_invpersons_tab  TYPE STANDARD TABLE OF CIHAL_IPAPI_TAB_TYPE,"TABLES PARAM
wa_x_api_invpersons_tab  LIKE LINE OF it_x_api_invpersons_tab ,
it_e_api_invpers_ltxt_tab  TYPE STANDARD TABLE OF CIHAL_IPLTAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_invpers_ltxt_tab  LIKE LINE OF it_e_api_invpers_ltxt_tab ,
it_e_api_affpersdat_tab  TYPE STANDARD TABLE OF CIHAL_IPEVAAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_affpersdat_tab  LIKE LINE OF it_e_api_affpersdat_tab ,
it_e_api_aff_intltxt_tab  TYPE STANDARD TABLE OF CIHAL_IPEVALTAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_aff_intltxt_tab  LIKE LINE OF it_e_api_aff_intltxt_tab ,
it_e_api_aff_extltxt_tab  TYPE STANDARD TABLE OF CIHAL_IPEVALTAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_aff_extltxt_tab  LIKE LINE OF it_e_api_aff_extltxt_tab ,
it_e_api_injuries_tab  TYPE STANDARD TABLE OF CIHAL_IPEVINJAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_injuries_tab  LIKE LINE OF it_e_api_injuries_tab ,
it_e_api_iava_tab  TYPE STANDARD TABLE OF CIH01_IHVALAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_iava_tab  LIKE LINE OF it_e_api_iava_tab ,
it_e_api_iaprop_data_tab  TYPE STANDARD TABLE OF CIH01_IHPRAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_iaprop_data_tab  LIKE LINE OF it_e_api_iaprop_data_tab ,
it_e_api_ipva_tab  TYPE STANDARD TABLE OF CIH01_IHVALAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_ipva_tab  LIKE LINE OF it_e_api_ipva_tab ,
it_e_api_ipprop_data_tab  TYPE STANDARD TABLE OF CIH01_IHPRAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_ipprop_data_tab  LIKE LINE OF it_e_api_ipprop_data_tab ,
it_e_api_action_ltxt_tab  TYPE STANDARD TABLE OF CIHAC_ACLTAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_action_ltxt_tab  LIKE LINE OF it_e_api_action_ltxt_tab ,
it_e_api_freetext_tab  TYPE STANDARD TABLE OF CIH01_DFTAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_freetext_tab  LIKE LINE OF it_e_api_freetext_tab ,
it_e_api_freetext_ltxt_tab  TYPE STANDARD TABLE OF CIH01_DFTLTAPI_TAB_TYPE,"TABLES PARAM
wa_e_api_freetext_ltxt_tab  LIKE LINE OF it_e_api_freetext_ltxt_tab ,
it_e_api_rootcause_tab  TYPE STANDARD TABLE OF CCIHY_RCAPI,"TABLES PARAM
wa_e_api_rootcause_tab  LIKE LINE OF it_e_api_rootcause_tab ,
it_e_api_absences_tab  TYPE STANDARD TABLE OF CCIHY_IPABSSAPI,"TABLES PARAM
wa_e_api_absences_tab  LIKE LINE OF it_e_api_absences_tab ,
it_e_api_restrictions_tab  TYPE STANDARD TABLE OF CCIHY_IPEVALIMAPI,"TABLES PARAM
wa_e_api_restrictions_tab  LIKE LINE OF it_e_api_restrictions_tab .

DATA(ld_i_scenario) = 'Check type of data required'.
DATA(ld_i_addinf) = 'Check type of data required'.

DATA(ld_i_valfr) = 20210129

DATA(ld_i_valto) = 20210129
DATA(ld_i_flg_key_date_switch_only) = 'Check type of data required'.
DATA(ld_i_flg_return_whole_interval) = 'Check type of data required'.
DATA(ld_i_flg_fill_exterror) = 'Check type of data required'.
DATA(ld_i_flg_header) = 'Check type of data required'.
DATA(ld_i_flg_result_ltxt) = 'Check type of data required'.
DATA(ld_i_flg_action) = 'Check type of data required'.
DATA(ld_i_flg_invpers) = 'Check type of data required'.
DATA(ld_i_flg_invpers_ltxt) = 'Check type of data required'.
DATA(ld_i_flg_affpers) = 'Check type of data required'.
DATA(ld_i_flg_aff_intltxt) = 'Check type of data required'.
DATA(ld_i_flg_aff_extltxt) = 'Check type of data required'.
DATA(ld_i_flg_injuries) = 'Check type of data required'.
DATA(ld_i_flg_ia_val) = 'Check type of data required'.
DATA(ld_i_flg_ip_val) = 'Check type of data required'.
DATA(ld_i_flg_sort_prop_data) = 'Check type of data required'.
DATA(ld_i_flg_read_all_charact) = 'Check type of data required'.
DATA(ld_i_flg_no_auth_check) = 'Check type of data required'.
DATA(ld_i_flg_action_ltxt) = 'Check type of data required'.
DATA(ld_i_flg_freetext) = 'Check type of data required'.
DATA(ld_i_flg_freetext_ltxt) = 'Check type of data required'.
DATA(ld_i_flg_rootcause) = 'Check type of data required'.
DATA(ld_i_flg_absences) = 'Check type of data required'.
DATA(ld_i_flg_restrictions) = 'Check type of data required'.
DATA(ld_i_langu) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_api_header_tab to it_x_api_header_tab.

"populate fields of struture and append to itab
append wa_e_api_result_ltxt_tab to it_e_api_result_ltxt_tab.

"populate fields of struture and append to itab
append wa_e_api_action_tab to it_e_api_action_tab.

"populate fields of struture and append to itab
append wa_x_api_invpersons_tab to it_x_api_invpersons_tab.

"populate fields of struture and append to itab
append wa_e_api_invpers_ltxt_tab to it_e_api_invpers_ltxt_tab.

"populate fields of struture and append to itab
append wa_e_api_affpersdat_tab to it_e_api_affpersdat_tab.

"populate fields of struture and append to itab
append wa_e_api_aff_intltxt_tab to it_e_api_aff_intltxt_tab.

"populate fields of struture and append to itab
append wa_e_api_aff_extltxt_tab to it_e_api_aff_extltxt_tab.

"populate fields of struture and append to itab
append wa_e_api_injuries_tab to it_e_api_injuries_tab.

"populate fields of struture and append to itab
append wa_e_api_iava_tab to it_e_api_iava_tab.

"populate fields of struture and append to itab
append wa_e_api_iaprop_data_tab to it_e_api_iaprop_data_tab.

"populate fields of struture and append to itab
append wa_e_api_ipva_tab to it_e_api_ipva_tab.

"populate fields of struture and append to itab
append wa_e_api_ipprop_data_tab to it_e_api_ipprop_data_tab.

"populate fields of struture and append to itab
append wa_e_api_action_ltxt_tab to it_e_api_action_ltxt_tab.

"populate fields of struture and append to itab
append wa_e_api_freetext_tab to it_e_api_freetext_tab.

"populate fields of struture and append to itab
append wa_e_api_freetext_ltxt_tab to it_e_api_freetext_ltxt_tab.

"populate fields of struture and append to itab
append wa_e_api_rootcause_tab to it_e_api_rootcause_tab.

"populate fields of struture and append to itab
append wa_e_api_absences_tab to it_e_api_absences_tab.

"populate fields of struture and append to itab
append wa_e_api_restrictions_tab to it_e_api_restrictions_tab. . CALL FUNCTION 'CBIH_IA30_IAL_READ' EXPORTING i_scenario = ld_i_scenario i_addinf = ld_i_addinf * i_valfr = ld_i_valfr * i_valto = ld_i_valto * i_flg_key_date_switch_only = ld_i_flg_key_date_switch_only * i_flg_return_whole_interval = ld_i_flg_return_whole_interval * i_flg_fill_exterror = ld_i_flg_fill_exterror * i_flg_header = ld_i_flg_header * i_flg_result_ltxt = ld_i_flg_result_ltxt * i_flg_action = ld_i_flg_action * i_flg_invpers = ld_i_flg_invpers * i_flg_invpers_ltxt = ld_i_flg_invpers_ltxt * i_flg_affpers = ld_i_flg_affpers * i_flg_aff_intltxt = ld_i_flg_aff_intltxt * i_flg_aff_extltxt = ld_i_flg_aff_extltxt * i_flg_injuries = ld_i_flg_injuries * i_flg_ia_val = ld_i_flg_ia_val * i_flg_ip_val = ld_i_flg_ip_val * i_flg_sort_prop_data = ld_i_flg_sort_prop_data * i_flg_read_all_charact = ld_i_flg_read_all_charact * i_flg_no_auth_check = ld_i_flg_no_auth_check * i_flg_action_ltxt = ld_i_flg_action_ltxt * i_flg_freetext = ld_i_flg_freetext * i_flg_freetext_ltxt = ld_i_flg_freetext_ltxt * i_flg_rootcause = ld_i_flg_rootcause * i_flg_absences = ld_i_flg_absences * i_flg_restrictions = ld_i_flg_restrictions * i_langu = ld_i_langu IMPORTING e_flg_lockfail = ld_e_flg_lockfail e_flg_error = ld_e_flg_error e_flg_warning = ld_e_flg_warning TABLES x_api_header_tab = it_x_api_header_tab * e_api_result_ltxt_tab = it_e_api_result_ltxt_tab * e_api_action_tab = it_e_api_action_tab * x_api_invpersons_tab = it_x_api_invpersons_tab * e_api_invpers_ltxt_tab = it_e_api_invpers_ltxt_tab * e_api_affpersdat_tab = it_e_api_affpersdat_tab * e_api_aff_intltxt_tab = it_e_api_aff_intltxt_tab * e_api_aff_extltxt_tab = it_e_api_aff_extltxt_tab * e_api_injuries_tab = it_e_api_injuries_tab * e_api_iava_tab = it_e_api_iava_tab * e_api_iaprop_data_tab = it_e_api_iaprop_data_tab * e_api_ipva_tab = it_e_api_ipva_tab * e_api_ipprop_data_tab = it_e_api_ipprop_data_tab * e_api_action_ltxt_tab = it_e_api_action_ltxt_tab * e_api_freetext_tab = it_e_api_freetext_tab * e_api_freetext_ltxt_tab = it_e_api_freetext_ltxt_tab * e_api_rootcause_tab = it_e_api_rootcause_tab * e_api_absences_tab = it_e_api_absences_tab * e_api_restrictions_tab = it_e_api_restrictions_tab EXCEPTIONS NO_OBJECT_SPECIFIED = 1 PARAMETER_ERROR = 2 INTERNAL_ERROR = 3 CONVMODE_SET_FAILED = 4 INTERVAL_ACCESS_ERROR = 5 . " CBIH_IA30_IAL_READ
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_e_flg_lockfail  TYPE ESP1_BOOLEAN ,
ld_i_scenario  TYPE ESPAP_SCENARIO_TYPE ,
it_x_api_header_tab  TYPE STANDARD TABLE OF CIHAL_IALHAPI_TAB_TYPE ,
wa_x_api_header_tab  LIKE LINE OF it_x_api_header_tab,
ld_e_flg_error  TYPE ESP1_BOOLEAN ,
ld_i_addinf  TYPE RCGADDINF ,
it_e_api_result_ltxt_tab  TYPE STANDARD TABLE OF CIHAL_RESLTAPI_TAB_TYPE ,
wa_e_api_result_ltxt_tab  LIKE LINE OF it_e_api_result_ltxt_tab,
ld_e_flg_warning  TYPE ESP1_BOOLEAN ,
ld_i_valfr  TYPE RCGADDINF-VALDAT ,
it_e_api_action_tab  TYPE STANDARD TABLE OF CIHAC_ACHAPI_TAB_TYPE ,
wa_e_api_action_tab  LIKE LINE OF it_e_api_action_tab,
ld_i_valto  TYPE RCGADDINF-VALDAT ,
it_x_api_invpersons_tab  TYPE STANDARD TABLE OF CIHAL_IPAPI_TAB_TYPE ,
wa_x_api_invpersons_tab  LIKE LINE OF it_x_api_invpersons_tab,
ld_i_flg_key_date_switch_only  TYPE ESP1_BOOLEAN ,
it_e_api_invpers_ltxt_tab  TYPE STANDARD TABLE OF CIHAL_IPLTAPI_TAB_TYPE ,
wa_e_api_invpers_ltxt_tab  LIKE LINE OF it_e_api_invpers_ltxt_tab,
ld_i_flg_return_whole_interval  TYPE ESP1_BOOLEAN ,
it_e_api_affpersdat_tab  TYPE STANDARD TABLE OF CIHAL_IPEVAAPI_TAB_TYPE ,
wa_e_api_affpersdat_tab  LIKE LINE OF it_e_api_affpersdat_tab,
it_e_api_aff_intltxt_tab  TYPE STANDARD TABLE OF CIHAL_IPEVALTAPI_TAB_TYPE ,
wa_e_api_aff_intltxt_tab  LIKE LINE OF it_e_api_aff_intltxt_tab,
ld_i_flg_fill_exterror  TYPE ESP1_BOOLEAN ,
it_e_api_aff_extltxt_tab  TYPE STANDARD TABLE OF CIHAL_IPEVALTAPI_TAB_TYPE ,
wa_e_api_aff_extltxt_tab  LIKE LINE OF it_e_api_aff_extltxt_tab,
ld_i_flg_header  TYPE ESP1_BOOLEAN ,
it_e_api_injuries_tab  TYPE STANDARD TABLE OF CIHAL_IPEVINJAPI_TAB_TYPE ,
wa_e_api_injuries_tab  LIKE LINE OF it_e_api_injuries_tab,
ld_i_flg_result_ltxt  TYPE ESP1_BOOLEAN ,
it_e_api_iava_tab  TYPE STANDARD TABLE OF CIH01_IHVALAPI_TAB_TYPE ,
wa_e_api_iava_tab  LIKE LINE OF it_e_api_iava_tab,
ld_i_flg_action  TYPE ESP1_BOOLEAN ,
it_e_api_iaprop_data_tab  TYPE STANDARD TABLE OF CIH01_IHPRAPI_TAB_TYPE ,
wa_e_api_iaprop_data_tab  LIKE LINE OF it_e_api_iaprop_data_tab,
ld_i_flg_invpers  TYPE ESP1_BOOLEAN ,
it_e_api_ipva_tab  TYPE STANDARD TABLE OF CIH01_IHVALAPI_TAB_TYPE ,
wa_e_api_ipva_tab  LIKE LINE OF it_e_api_ipva_tab,
ld_i_flg_invpers_ltxt  TYPE ESP1_BOOLEAN ,
it_e_api_ipprop_data_tab  TYPE STANDARD TABLE OF CIH01_IHPRAPI_TAB_TYPE ,
wa_e_api_ipprop_data_tab  LIKE LINE OF it_e_api_ipprop_data_tab,
ld_i_flg_affpers  TYPE ESP1_BOOLEAN ,
it_e_api_action_ltxt_tab  TYPE STANDARD TABLE OF CIHAC_ACLTAPI_TAB_TYPE ,
wa_e_api_action_ltxt_tab  LIKE LINE OF it_e_api_action_ltxt_tab,
ld_i_flg_aff_intltxt  TYPE ESP1_BOOLEAN ,
it_e_api_freetext_tab  TYPE STANDARD TABLE OF CIH01_DFTAPI_TAB_TYPE ,
wa_e_api_freetext_tab  LIKE LINE OF it_e_api_freetext_tab,
ld_i_flg_aff_extltxt  TYPE ESP1_BOOLEAN ,
it_e_api_freetext_ltxt_tab  TYPE STANDARD TABLE OF CIH01_DFTLTAPI_TAB_TYPE ,
wa_e_api_freetext_ltxt_tab  LIKE LINE OF it_e_api_freetext_ltxt_tab,
ld_i_flg_injuries  TYPE ESP1_BOOLEAN ,
it_e_api_rootcause_tab  TYPE STANDARD TABLE OF CCIHY_RCAPI ,
wa_e_api_rootcause_tab  LIKE LINE OF it_e_api_rootcause_tab,
ld_i_flg_ia_val  TYPE ESP1_BOOLEAN ,
it_e_api_absences_tab  TYPE STANDARD TABLE OF CCIHY_IPABSSAPI ,
wa_e_api_absences_tab  LIKE LINE OF it_e_api_absences_tab,
ld_i_flg_ip_val  TYPE ESP1_BOOLEAN ,
it_e_api_restrictions_tab  TYPE STANDARD TABLE OF CCIHY_IPEVALIMAPI ,
wa_e_api_restrictions_tab  LIKE LINE OF it_e_api_restrictions_tab,
ld_i_flg_sort_prop_data  TYPE ESP1_BOOLEAN ,
ld_i_flg_read_all_charact  TYPE ESP1_BOOLEAN ,
ld_i_flg_no_auth_check  TYPE ESP1_BOOLEAN ,
ld_i_flg_action_ltxt  TYPE ESP1_BOOLEAN ,
ld_i_flg_freetext  TYPE ESP1_BOOLEAN ,
ld_i_flg_freetext_ltxt  TYPE ESP1_BOOLEAN ,
ld_i_flg_rootcause  TYPE ESP1_BOOLEAN ,
ld_i_flg_absences  TYPE ESP1_BOOLEAN ,
ld_i_flg_restrictions  TYPE ESP1_BOOLEAN ,
ld_i_langu  TYPE LANGU .

ld_i_scenario = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_api_header_tab to it_x_api_header_tab.
ld_i_addinf = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_result_ltxt_tab to it_e_api_result_ltxt_tab.

ld_i_valfr = 20210129

"populate fields of struture and append to itab
append wa_e_api_action_tab to it_e_api_action_tab.

ld_i_valto = 20210129

"populate fields of struture and append to itab
append wa_x_api_invpersons_tab to it_x_api_invpersons_tab.
ld_i_flg_key_date_switch_only = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_invpers_ltxt_tab to it_e_api_invpers_ltxt_tab.
ld_i_flg_return_whole_interval = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_affpersdat_tab to it_e_api_affpersdat_tab.

"populate fields of struture and append to itab
append wa_e_api_aff_intltxt_tab to it_e_api_aff_intltxt_tab.
ld_i_flg_fill_exterror = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_aff_extltxt_tab to it_e_api_aff_extltxt_tab.
ld_i_flg_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_injuries_tab to it_e_api_injuries_tab.
ld_i_flg_result_ltxt = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_iava_tab to it_e_api_iava_tab.
ld_i_flg_action = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_iaprop_data_tab to it_e_api_iaprop_data_tab.
ld_i_flg_invpers = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_ipva_tab to it_e_api_ipva_tab.
ld_i_flg_invpers_ltxt = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_ipprop_data_tab to it_e_api_ipprop_data_tab.
ld_i_flg_affpers = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_action_ltxt_tab to it_e_api_action_ltxt_tab.
ld_i_flg_aff_intltxt = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_freetext_tab to it_e_api_freetext_tab.
ld_i_flg_aff_extltxt = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_freetext_ltxt_tab to it_e_api_freetext_ltxt_tab.
ld_i_flg_injuries = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_rootcause_tab to it_e_api_rootcause_tab.
ld_i_flg_ia_val = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_absences_tab to it_e_api_absences_tab.
ld_i_flg_ip_val = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_api_restrictions_tab to it_e_api_restrictions_tab.
ld_i_flg_sort_prop_data = 'Check type of data required'.
ld_i_flg_read_all_charact = 'Check type of data required'.
ld_i_flg_no_auth_check = 'Check type of data required'.
ld_i_flg_action_ltxt = 'Check type of data required'.
ld_i_flg_freetext = 'Check type of data required'.
ld_i_flg_freetext_ltxt = 'Check type of data required'.
ld_i_flg_rootcause = 'Check type of data required'.
ld_i_flg_absences = 'Check type of data required'.
ld_i_flg_restrictions = 'Check type of data required'.
ld_i_langu = 'Check type of data required'.

SAP Documentation for FM CBIH_IA30_IAL_READ


This function module is part of the Application Programming Interface (API) of the EH S ...See here for full SAP fm documentation

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