SAP GLE_ADB_CHECK_SOURCE_SELOPT Function Module for
GLE_ADB_CHECK_SOURCE_SELOPT is a standard gle adb check source selopt SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 gle adb check source selopt FM, simply by entering the name GLE_ADB_CHECK_SOURCE_SELOPT into the relevant SAP transaction such as SE37 or SE38.
Function Group: GLE_ADB_UI_UTIL
Program Name: SAPLGLE_ADB_UI_UTIL
Main Program: SAPLGLE_ADB_UI_UTIL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GLE_ADB_CHECK_SOURCE_SELOPT 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 'GLE_ADB_CHECK_SOURCE_SELOPT'".
EXPORTING
IT_SOURCETRANGE = "
* IV_CHECK_CHART_ACC = 'X' "
I_FIELDNAME_COMPC = "
IMPORTING
EV_CHART_OF_ACCOUNTS = "Chart of Accounts
ET_BUKRS = "List of Company Codes in Average Daily Balance
ET_BUKRS_SELOPT = "Table for Selection Options
EXCEPTIONS
CHARTS_OF_ACCOUNT_DIFFERENT = 1 COMPANY_CODE_NOT_FOUND = 2 COMPANY_CODE_INITIAL = 3
IMPORTING Parameters details for GLE_ADB_CHECK_SOURCE_SELOPT
IT_SOURCETRANGE -
Data type: RSDS_TRANGEOptional: No
Call by Reference: Yes
IV_CHECK_CHART_ACC -
Data type: GLE_DTE_ADB_BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FIELDNAME_COMPC -
Data type: GLE_DTE_ADB_GUSL_FIELDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GLE_ADB_CHECK_SOURCE_SELOPT
EV_CHART_OF_ACCOUNTS - Chart of Accounts
Data type: T001-KTOPLOptional: No
Call by Reference: Yes
ET_BUKRS - List of Company Codes in Average Daily Balance
Data type: GLE_TAB_ADB_BUKRSOptional: No
Call by Reference: Yes
ET_BUKRS_SELOPT - Table for Selection Options
Data type: GLE_TAB_ADB_SELOPTOptional: No
Call by Reference: Yes
EXCEPTIONS details
CHARTS_OF_ACCOUNT_DIFFERENT -
Data type:Optional: No
Call by Reference: Yes
COMPANY_CODE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
COMPANY_CODE_INITIAL -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GLE_ADB_CHECK_SOURCE_SELOPT 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_it_sourcetrange | TYPE RSDS_TRANGE, " | |||
| lv_ev_chart_of_accounts | TYPE T001-KTOPL, " | |||
| lv_charts_of_account_different | TYPE T001, " | |||
| lv_et_bukrs | TYPE GLE_TAB_ADB_BUKRS, " | |||
| lv_iv_check_chart_acc | TYPE GLE_DTE_ADB_BOOLEAN, " 'X' | |||
| lv_company_code_not_found | TYPE GLE_DTE_ADB_BOOLEAN, " | |||
| lv_et_bukrs_selopt | TYPE GLE_TAB_ADB_SELOPT, " | |||
| lv_i_fieldname_compc | TYPE GLE_DTE_ADB_GUSL_FIELD, " | |||
| lv_company_code_initial | TYPE GLE_DTE_ADB_GUSL_FIELD. " |
|   CALL FUNCTION 'GLE_ADB_CHECK_SOURCE_SELOPT' " |
| EXPORTING | ||
| IT_SOURCETRANGE | = lv_it_sourcetrange | |
| IV_CHECK_CHART_ACC | = lv_iv_check_chart_acc | |
| I_FIELDNAME_COMPC | = lv_i_fieldname_compc | |
| IMPORTING | ||
| EV_CHART_OF_ACCOUNTS | = lv_ev_chart_of_accounts | |
| ET_BUKRS | = lv_et_bukrs | |
| ET_BUKRS_SELOPT | = lv_et_bukrs_selopt | |
| EXCEPTIONS | ||
| CHARTS_OF_ACCOUNT_DIFFERENT = 1 | ||
| COMPANY_CODE_NOT_FOUND = 2 | ||
| COMPANY_CODE_INITIAL = 3 | ||
| . " GLE_ADB_CHECK_SOURCE_SELOPT | ||
ABAP code using 7.40 inline data declarations to call FM GLE_ADB_CHECK_SOURCE_SELOPT
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 KTOPL FROM T001 INTO @DATA(ld_ev_chart_of_accounts). | ||||
| DATA(ld_iv_check_chart_acc) | = 'X'. | |||
Search for further information about these or an SAP related objects