SAP ESH_DB_OVERVIEW Function Module for ES Dashboard: Overview Data
ESH_DB_OVERVIEW is a standard esh db overview SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ES Dashboard: Overview Data 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 esh db overview FM, simply by entering the name ESH_DB_OVERVIEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: ESH_DB_DASHBOARD
Program Name: SAPLESH_DB_DASHBOARD
Main Program: SAPLESH_DB_DASHBOARD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ESH_DB_OVERVIEW 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 'ESH_DB_OVERVIEW'"ES Dashboard: Overview Data.
EXPORTING
* IV_DIAGNOSIS_LIST_ALL = "List all checks, not only findings
* IV_KPI_GET_ALL = 'X' "Get all available KPIs
* IV_KPI_GET_DETAILS = "Get detail data for requested KPIs
* IT_KPI_SELECTION = "List of requested KPIs
* IV_KPI_TIME_RANGE = 'LAST_30_DAYS' "CL_ESH_QL_ANALYSIS=>GC_DATE_RANGE_*
IMPORTING
EV_STATUS = "ES Dashboard: Application Status
EV_REMOTE_SEARCH_ROLE = "System Usage
ET_SEARCH_TERMS = "Freestyle Terms (up to char128)
ET_UIS = "Search Service
ET_KPI = "ES KPIs: KPI Results
ET_DIAGNOSIS = "Table with BAPI Return Information
ES_RELEASE_DATA = "ES Dashboard: Release Data
ES_CONNECTION_DATA = "ES Dashboard: Connection Data
ES_IMPORT_STATUS_DATA = "ES Dashboard: Import Status Data
ES_CONNECTOR_DATA = "ES Dashboard: Connector Data
EV_RUNTIME_LOAD_STATUS = "ES Dashboard: Status Runtime Load
EV_ANONYMIZED_LOGGING = "ESH: Is Anonymized Query Logging ON in Personalized Search
ES_PS_POLICY_DATA = "ES Dashboard: Personalized Search Policy Data
IMPORTING Parameters details for ESH_DB_OVERVIEW
IV_DIAGNOSIS_LIST_ALL - List all checks, not only findings
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_KPI_GET_ALL - Get all available KPIs
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_KPI_GET_DETAILS - Get detail data for requested KPIs
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_KPI_SELECTION - List of requested KPIs
Data type: ESH_T_DB_KPI_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_KPI_TIME_RANGE - CL_ESH_QL_ANALYSIS=>GC_DATE_RANGE_*
Data type: STRINGDefault: 'LAST_30_DAYS'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ESH_DB_OVERVIEW
EV_STATUS - ES Dashboard: Application Status
Data type: ESH_E_DB_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
EV_REMOTE_SEARCH_ROLE - System Usage
Data type: ESH_E_ADM_SYSTEM_USAGEOptional: No
Call by Reference: No ( called with pass by value option)
ET_SEARCH_TERMS - Freestyle Terms (up to char128)
Data type: ESH_T_QM_FREESTYLE_TERMSOptional: No
Call by Reference: No ( called with pass by value option)
ET_UIS - Search Service
Data type: ESH_T_QM_SEARCH_SERVICEOptional: No
Call by Reference: No ( called with pass by value option)
ET_KPI - ES KPIs: KPI Results
Data type: ESH_T_DB_KPI_RESULTOptional: No
Call by Reference: No ( called with pass by value option)
ET_DIAGNOSIS - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: No ( called with pass by value option)
ES_RELEASE_DATA - ES Dashboard: Release Data
Data type: ESH_S_DB_RELEASE_DATAOptional: No
Call by Reference: No ( called with pass by value option)
ES_CONNECTION_DATA - ES Dashboard: Connection Data
Data type: ESH_S_DB_CONNECTION_DATAOptional: No
Call by Reference: No ( called with pass by value option)
ES_IMPORT_STATUS_DATA - ES Dashboard: Import Status Data
Data type: ESH_S_DB_IMPORT_STATUS_DATAOptional: No
Call by Reference: No ( called with pass by value option)
ES_CONNECTOR_DATA - ES Dashboard: Connector Data
Data type: ESH_S_DB_CONNECTOR_DATAOptional: No
Call by Reference: No ( called with pass by value option)
EV_RUNTIME_LOAD_STATUS - ES Dashboard: Status Runtime Load
Data type: ESH_E_DB_RTL_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
EV_ANONYMIZED_LOGGING - ESH: Is Anonymized Query Logging ON in Personalized Search
Data type: ESH_E_CU_PS_QL_ANONYMOptional: No
Call by Reference: No ( called with pass by value option)
ES_PS_POLICY_DATA - ES Dashboard: Personalized Search Policy Data
Data type: ESH_S_DB_PS_POLICY_DATAOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ESH_DB_OVERVIEW 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_ev_status | TYPE ESH_E_DB_STATUS, " | |||
| lv_iv_diagnosis_list_all | TYPE XFELD, " | |||
| lv_ev_remote_search_role | TYPE ESH_E_ADM_SYSTEM_USAGE, " | |||
| lv_et_search_terms | TYPE ESH_T_QM_FREESTYLE_TERMS, " | |||
| lv_et_uis | TYPE ESH_T_QM_SEARCH_SERVICE, " | |||
| lv_et_kpi | TYPE ESH_T_DB_KPI_RESULT, " | |||
| lv_et_diagnosis | TYPE BAPIRETTAB, " | |||
| lv_iv_kpi_get_all | TYPE XFELD, " 'X' | |||
| lv_es_release_data | TYPE ESH_S_DB_RELEASE_DATA, " | |||
| lv_iv_kpi_get_details | TYPE XFELD, " | |||
| lv_it_kpi_selection | TYPE ESH_T_DB_KPI_ID, " | |||
| lv_es_connection_data | TYPE ESH_S_DB_CONNECTION_DATA, " | |||
| lv_iv_kpi_time_range | TYPE STRING, " 'LAST_30_DAYS' | |||
| lv_es_import_status_data | TYPE ESH_S_DB_IMPORT_STATUS_DATA, " | |||
| lv_es_connector_data | TYPE ESH_S_DB_CONNECTOR_DATA, " | |||
| lv_ev_runtime_load_status | TYPE ESH_E_DB_RTL_STATUS, " | |||
| lv_ev_anonymized_logging | TYPE ESH_E_CU_PS_QL_ANONYM, " | |||
| lv_es_ps_policy_data | TYPE ESH_S_DB_PS_POLICY_DATA. " |
|   CALL FUNCTION 'ESH_DB_OVERVIEW' "ES Dashboard: Overview Data |
| EXPORTING | ||
| IV_DIAGNOSIS_LIST_ALL | = lv_iv_diagnosis_list_all | |
| IV_KPI_GET_ALL | = lv_iv_kpi_get_all | |
| IV_KPI_GET_DETAILS | = lv_iv_kpi_get_details | |
| IT_KPI_SELECTION | = lv_it_kpi_selection | |
| IV_KPI_TIME_RANGE | = lv_iv_kpi_time_range | |
| IMPORTING | ||
| EV_STATUS | = lv_ev_status | |
| EV_REMOTE_SEARCH_ROLE | = lv_ev_remote_search_role | |
| ET_SEARCH_TERMS | = lv_et_search_terms | |
| ET_UIS | = lv_et_uis | |
| ET_KPI | = lv_et_kpi | |
| ET_DIAGNOSIS | = lv_et_diagnosis | |
| ES_RELEASE_DATA | = lv_es_release_data | |
| ES_CONNECTION_DATA | = lv_es_connection_data | |
| ES_IMPORT_STATUS_DATA | = lv_es_import_status_data | |
| ES_CONNECTOR_DATA | = lv_es_connector_data | |
| EV_RUNTIME_LOAD_STATUS | = lv_ev_runtime_load_status | |
| EV_ANONYMIZED_LOGGING | = lv_ev_anonymized_logging | |
| ES_PS_POLICY_DATA | = lv_es_ps_policy_data | |
| . " ESH_DB_OVERVIEW | ||
ABAP code using 7.40 inline data declarations to call FM ESH_DB_OVERVIEW
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.| DATA(ld_iv_kpi_get_all) | = 'X'. | |||
| DATA(ld_iv_kpi_time_range) | = 'LAST_30_DAYS'. | |||
Search for further information about these or an SAP related objects