SAP CBIH_IA00_KEYTAB_FILL_FROM_SEL Function Module for EHS: Fill Key Table Based on Criteria from Search Screen
CBIH_IA00_KEYTAB_FILL_FROM_SEL is a standard cbih ia00 keytab fill from sel SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Fill Key Table Based on Criteria from Search Screen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for cbih ia00 keytab fill from sel FM, simply by entering the name CBIH_IA00_KEYTAB_FILL_FROM_SEL into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBIH_IA00
Program Name: SAPLCBIH_IA00
Main Program: SAPLCBIH_IA00
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBIH_IA00_KEYTAB_FILL_FROM_SEL pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CBIH_IA00_KEYTAB_FILL_FROM_SEL'"EHS: Fill Key Table Based on Criteria from Search Screen.
EXPORTING
I_SELSCR = "
I_VALDAT = "
* I_SEARCHMODE = "Search mode
* I_DATERANGE = "Period for Historical Search
* I_FLG_POPUP_NO_PARAM = ESP1_FALSE "
* I_FLG_NO_AUTH_CHECK = ESP1_TRUE "
* I_FLG_DIRECT_CHECK = ESP1_FALSE "
* I_FLG_PROG_INDICATOR = ESP1_FALSE "
IMPORTING
E_FLG_CANCEL = "Search cancelled
E_FLG_CANCEL_AT_NO_SRCH_PARAMS = "
TABLES
I_EXT_SEARCH_TAB = "
E_KEYTAB = "
EXCEPTIONS
AUTHORITY_CHECK_ERROR = 1
IMPORTING Parameters details for CBIH_IA00_KEYTAB_FILL_FROM_SEL
I_SELSCR -
Data type: CCIHS_IASELOptional: No
Call by Reference: No ( called with pass by value option)
I_VALDAT -
Data type: CCIHT_IAL-VALFROptional: No
Call by Reference: No ( called with pass by value option)
I_SEARCHMODE - Search mode
Data type: RCGSELSCR-SEARCHMODEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATERANGE - Period for Historical Search
Data type: RCGDATERANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_POPUP_NO_PARAM -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_NO_AUTH_CHECK -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_DIRECT_CHECK -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_PROG_INDICATOR -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CBIH_IA00_KEYTAB_FILL_FROM_SEL
E_FLG_CANCEL - Search cancelled
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_CANCEL_AT_NO_SRCH_PARAMS -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CBIH_IA00_KEYTAB_FILL_FROM_SEL
I_EXT_SEARCH_TAB -
Data type: RCGESSELIOOptional: No
Call by Reference: No ( called with pass by value option)
E_KEYTAB -
Data type: CIHAL_APIFIND_KEY_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
AUTHORITY_CHECK_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CBIH_IA00_KEYTAB_FILL_FROM_SEL Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_selscr | TYPE CCIHS_IASEL, " | |||
| lv_e_flg_cancel | TYPE ESP1_BOOLEAN, " | |||
| lt_i_ext_search_tab | TYPE STANDARD TABLE OF RCGESSELIO, " | |||
| lv_authority_check_error | TYPE RCGESSELIO, " | |||
| lt_e_keytab | TYPE STANDARD TABLE OF CIHAL_APIFIND_KEY_TAB_TYPE, " | |||
| lv_i_valdat | TYPE CCIHT_IAL-VALFR, " | |||
| lv_e_flg_cancel_at_no_srch_params | TYPE ESP1_BOOLEAN, " | |||
| lv_i_searchmode | TYPE RCGSELSCR-SEARCHMODE, " | |||
| lv_i_daterange | TYPE RCGDATERANGE, " | |||
| lv_i_flg_popup_no_param | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_i_flg_no_auth_check | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_flg_direct_check | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_i_flg_prog_indicator | TYPE ESP1_BOOLEAN. " ESP1_FALSE |
|   CALL FUNCTION 'CBIH_IA00_KEYTAB_FILL_FROM_SEL' "EHS: Fill Key Table Based on Criteria from Search Screen |
| EXPORTING | ||
| I_SELSCR | = lv_i_selscr | |
| I_VALDAT | = lv_i_valdat | |
| I_SEARCHMODE | = lv_i_searchmode | |
| I_DATERANGE | = lv_i_daterange | |
| I_FLG_POPUP_NO_PARAM | = lv_i_flg_popup_no_param | |
| I_FLG_NO_AUTH_CHECK | = lv_i_flg_no_auth_check | |
| I_FLG_DIRECT_CHECK | = lv_i_flg_direct_check | |
| I_FLG_PROG_INDICATOR | = lv_i_flg_prog_indicator | |
| IMPORTING | ||
| E_FLG_CANCEL | = lv_e_flg_cancel | |
| E_FLG_CANCEL_AT_NO_SRCH_PARAMS | = lv_e_flg_cancel_at_no_srch_params | |
| TABLES | ||
| I_EXT_SEARCH_TAB | = lt_i_ext_search_tab | |
| E_KEYTAB | = lt_e_keytab | |
| EXCEPTIONS | ||
| AUTHORITY_CHECK_ERROR = 1 | ||
| . " CBIH_IA00_KEYTAB_FILL_FROM_SEL | ||
ABAP code using 7.40 inline data declarations to call FM CBIH_IA00_KEYTAB_FILL_FROM_SEL
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single VALFR FROM CCIHT_IAL INTO @DATA(ld_i_valdat). | ||||
| "SELECT single SEARCHMODE FROM RCGSELSCR INTO @DATA(ld_i_searchmode). | ||||
| DATA(ld_i_flg_popup_no_param) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_no_auth_check) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_direct_check) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_prog_indicator) | = ESP1_FALSE. | |||
Search for further information about these or an SAP related objects