SAP GET_CORRELATION_IC_QUERY Function Module for Correlation Between Queries and InfoCubes in a BW System
GET_CORRELATION_IC_QUERY is a standard get correlation ic query SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Correlation Between Queries and InfoCubes in a BW System 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 get correlation ic query FM, simply by entering the name GET_CORRELATION_IC_QUERY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SAPWL_BWMODULES
Program Name: SAPLSAPWL_BWMODULES
Main Program: SAPLSAPWL_BWMODULES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GET_CORRELATION_IC_QUERY 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 'GET_CORRELATION_IC_QUERY'"Correlation Between Queries and InfoCubes in a BW System.
IMPORTING
EX_TAB_EXIST = "Flag for Whether Table Exists in Database
TABLES
IM_TAB_CORR = "BW Workload: Statistics per Query (as in RSDDSTATUSAGEQUERY)
EX_TAB_CORR = "BW Workload: Correlation InfoCube - Query
EXCEPTIONS
NO_BW_SYSTEM = 1
EXPORTING Parameters details for GET_CORRELATION_IC_QUERY
EX_TAB_EXIST - Flag for Whether Table Exists in Database
Data type: WLBWTYPE_COPY-TABEXISTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GET_CORRELATION_IC_QUERY
IM_TAB_CORR - BW Workload: Statistics per Query (as in RSDDSTATUSAGEQUERY)
Data type: WLBWUSGQRY_COPYOptional: No
Call by Reference: Yes
EX_TAB_CORR - BW Workload: Correlation InfoCube - Query
Data type: WLBWCORR_COPYOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_BW_SYSTEM - Not a BW System
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GET_CORRELATION_IC_QUERY 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: | ||||
| lt_im_tab_corr | TYPE STANDARD TABLE OF WLBWUSGQRY_COPY, " | |||
| lv_ex_tab_exist | TYPE WLBWTYPE_COPY-TABEXIST, " | |||
| lv_no_bw_system | TYPE WLBWTYPE_COPY, " | |||
| lt_ex_tab_corr | TYPE STANDARD TABLE OF WLBWCORR_COPY. " |
|   CALL FUNCTION 'GET_CORRELATION_IC_QUERY' "Correlation Between Queries and InfoCubes in a BW System |
| IMPORTING | ||
| EX_TAB_EXIST | = lv_ex_tab_exist | |
| TABLES | ||
| IM_TAB_CORR | = lt_im_tab_corr | |
| EX_TAB_CORR | = lt_ex_tab_corr | |
| EXCEPTIONS | ||
| NO_BW_SYSTEM = 1 | ||
| . " GET_CORRELATION_IC_QUERY | ||
ABAP code using 7.40 inline data declarations to call FM GET_CORRELATION_IC_QUERY
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 TABEXIST FROM WLBWTYPE_COPY INTO @DATA(ld_ex_tab_exist). | ||||
Search for further information about these or an SAP related objects