SAP UJQ_RUN_CELL_QUERY Function Module for BPC: Run cell query on BW by MDX
UJQ_RUN_CELL_QUERY is a standard ujq run cell 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 BPC: Run cell query on BW by MDX 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 ujq run cell query FM, simply by entering the name UJQ_RUN_CELL_QUERY into the relevant SAP transaction such as SE37 or SE38.
Function Group: UJQ_QUERY_ENGINE
Program Name: SAPLUJQ_QUERY_ENGINE
Main Program: SAPLUJQ_QUERY_ENGINE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function UJQ_RUN_CELL_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 'UJQ_RUN_CELL_QUERY'"BPC: Run cell query on BW by MDX.
EXPORTING
I_APPSET_ID = "BPC: AppSet ID
I_APPL_ID = "BPC: Application ID
IT_DIM = "BPC: Dimension List
IT_CELL = "BPC: Dimemsion with dimension members for SQE query
* IT_SLICER = "BPC: Dimemsion with dimension members for SQE query
* I_KEY_DATE = "Current Date of Application Server
IMPORTING
ET_DATA = "
ET_MESSAGE = "BPC: Messages
E_STATS_GUID = "BPC: Statistics Session
EXCEPTIONS
CX_UJQ_EXCEPTION = 1
IMPORTING Parameters details for UJQ_RUN_CELL_QUERY
I_APPSET_ID - BPC: AppSet ID
Data type: UJ_APPSET_IDOptional: No
Call by Reference: Yes
I_APPL_ID - BPC: Application ID
Data type: UJ_APPL_IDOptional: No
Call by Reference: Yes
IT_DIM - BPC: Dimension List
Data type: UJA_T_DIM_LISTOptional: No
Call by Reference: Yes
IT_CELL - BPC: Dimemsion with dimension members for SQE query
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
IT_SLICER - BPC: Dimemsion with dimension members for SQE query
Data type: UJQ_T_QUERY_DIMOptional: Yes
Call by Reference: Yes
I_KEY_DATE - Current Date of Application Server
Data type: SY-DATUMOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for UJQ_RUN_CELL_QUERY
ET_DATA -
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
ET_MESSAGE - BPC: Messages
Data type: UJ0_T_MESSAGEOptional: No
Call by Reference: Yes
E_STATS_GUID - BPC: Statistics Session
Data type: UJ_STAT_SESSIONOptional: No
Call by Reference: Yes
EXCEPTIONS details
CX_UJQ_EXCEPTION - CPM BPC Exception: Shared Query Engine
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for UJQ_RUN_CELL_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: | ||||
| lv_et_data | TYPE STANDARD TABLE, " | |||
| lv_i_appset_id | TYPE UJ_APPSET_ID, " | |||
| lv_cx_ujq_exception | TYPE UJ_APPSET_ID, " | |||
| lv_i_appl_id | TYPE UJ_APPL_ID, " | |||
| lv_et_message | TYPE UJ0_T_MESSAGE, " | |||
| lv_it_dim | TYPE UJA_T_DIM_LIST, " | |||
| lv_e_stats_guid | TYPE UJ_STAT_SESSION, " | |||
| lv_it_cell | TYPE STANDARD TABLE, " | |||
| lv_it_slicer | TYPE UJQ_T_QUERY_DIM, " | |||
| lv_i_key_date | TYPE SY-DATUM. " |
|   CALL FUNCTION 'UJQ_RUN_CELL_QUERY' "BPC: Run cell query on BW by MDX |
| EXPORTING | ||
| I_APPSET_ID | = lv_i_appset_id | |
| I_APPL_ID | = lv_i_appl_id | |
| IT_DIM | = lv_it_dim | |
| IT_CELL | = lv_it_cell | |
| IT_SLICER | = lv_it_slicer | |
| I_KEY_DATE | = lv_i_key_date | |
| IMPORTING | ||
| ET_DATA | = lv_et_data | |
| ET_MESSAGE | = lv_et_message | |
| E_STATS_GUID | = lv_e_stats_guid | |
| EXCEPTIONS | ||
| CX_UJQ_EXCEPTION = 1 | ||
| . " UJQ_RUN_CELL_QUERY | ||
ABAP code using 7.40 inline data declarations to call FM UJQ_RUN_CELL_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 DATUM FROM SY INTO @DATA(ld_i_key_date). | ||||
Search for further information about these or an SAP related objects