SAP MCW_AA_GET_QUERY_DATA Function Module for NOTRANSL: MCW AA: Query remote im BW ausführen









MCW_AA_GET_QUERY_DATA is a standard mcw aa get query data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: MCW AA: Query remote im BW ausführen 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 mcw aa get query data FM, simply by entering the name MCW_AA_GET_QUERY_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: MCW_AA_BWACCESS
Program Name: SAPLMCW_AA_BWACCESS
Main Program: SAPLMCW_AA_BWACCESS
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MCW_AA_GET_QUERY_DATA 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 'MCW_AA_GET_QUERY_DATA'"NOTRANSL: MCW AA: Query remote im BW ausführen
EXPORTING
I_AA_APP = "Analytical Application
I_AA_METH = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_FLG_GENERIC_OUTPUT = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
* TI_VARSEL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TE_RESULT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TE_RESULT_FIELDS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TE_RESULT_GENERIC = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TE_RETURN = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
APPLICATION_INVALID = 1 QUERY_INVALID = 2 QUERY_NO_DATA = 3 QUERY_NOT_CONSISTENT = 4 RESULT_FIX_FORMAT_NOT_POSSIBLE = 5 BW_CALL_INTERNAL_ERROR = 6 VARIABLE_NOT_DEFINED = 7 NO_METHOD_FOUND_FOR_APPL = 8 NO_QUERY_FOUND_FOR_METHOD = 9
.



IMPORTING Parameters details for MCW_AA_GET_QUERY_DATA

I_AA_APP - Analytical Application

Data type: TMCW_AA_APP-AA_APP
Optional: No
Call by Reference: No ( called with pass by value option)

I_AA_METH - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: TMCW_AA_METH-AA_METH
Optional: No
Call by Reference: No ( called with pass by value option)

I_FLG_GENERIC_OUTPUT - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: RAAL-JA
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MCW_AA_GET_QUERY_DATA

TI_VARSEL - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCW_AA_VARSEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

TE_RESULT - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCW_AA_RESULT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TE_RESULT_FIELDS - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCW_AA_RESULT_FIELDS
Optional: Yes
Call by Reference: No ( called with pass by value option)

TE_RESULT_GENERIC - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCW_AA_RESULT_GEN
Optional: Yes
Call by Reference: No ( called with pass by value option)

TE_RETURN - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: MCW_AA_MESSAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

APPLICATION_INVALID - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

QUERY_INVALID - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

QUERY_NO_DATA - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

QUERY_NOT_CONSISTENT - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RESULT_FIX_FORMAT_NOT_POSSIBLE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BW_CALL_INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

VARIABLE_NOT_DEFINED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_METHOD_FOUND_FOR_APPL -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_QUERY_FOUND_FOR_METHOD -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MCW_AA_GET_QUERY_DATA 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_aa_app  TYPE TMCW_AA_APP-AA_APP, "   
lt_ti_varsel  TYPE STANDARD TABLE OF MCW_AA_VARSEL, "   
lv_application_invalid  TYPE MCW_AA_VARSEL, "   
lv_i_aa_meth  TYPE TMCW_AA_METH-AA_METH, "   
lt_te_result  TYPE STANDARD TABLE OF MCW_AA_RESULT, "   
lv_query_invalid  TYPE MCW_AA_RESULT, "   
lv_query_no_data  TYPE MCW_AA_RESULT, "   
lt_te_result_fields  TYPE STANDARD TABLE OF MCW_AA_RESULT_FIELDS, "   
lv_i_flg_generic_output  TYPE RAAL-JA, "   
lt_te_result_generic  TYPE STANDARD TABLE OF MCW_AA_RESULT_GEN, "   
lv_query_not_consistent  TYPE MCW_AA_RESULT_GEN, "   
lt_te_return  TYPE STANDARD TABLE OF MCW_AA_MESSAGE, "   
lv_result_fix_format_not_possible  TYPE MCW_AA_MESSAGE, "   
lv_bw_call_internal_error  TYPE MCW_AA_MESSAGE, "   
lv_variable_not_defined  TYPE MCW_AA_MESSAGE, "   
lv_no_method_found_for_appl  TYPE MCW_AA_MESSAGE, "   
lv_no_query_found_for_method  TYPE MCW_AA_MESSAGE. "   

  CALL FUNCTION 'MCW_AA_GET_QUERY_DATA'  "NOTRANSL: MCW AA: Query remote im BW ausführen
    EXPORTING
         I_AA_APP = lv_i_aa_app
         I_AA_METH = lv_i_aa_meth
         I_FLG_GENERIC_OUTPUT = lv_i_flg_generic_output
    TABLES
         TI_VARSEL = lt_ti_varsel
         TE_RESULT = lt_te_result
         TE_RESULT_FIELDS = lt_te_result_fields
         TE_RESULT_GENERIC = lt_te_result_generic
         TE_RETURN = lt_te_return
    EXCEPTIONS
        APPLICATION_INVALID = 1
        QUERY_INVALID = 2
        QUERY_NO_DATA = 3
        QUERY_NOT_CONSISTENT = 4
        RESULT_FIX_FORMAT_NOT_POSSIBLE = 5
        BW_CALL_INTERNAL_ERROR = 6
        VARIABLE_NOT_DEFINED = 7
        NO_METHOD_FOUND_FOR_APPL = 8
        NO_QUERY_FOUND_FOR_METHOD = 9
. " MCW_AA_GET_QUERY_DATA




ABAP code using 7.40 inline data declarations to call FM MCW_AA_GET_QUERY_DATA

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 AA_APP FROM TMCW_AA_APP INTO @DATA(ld_i_aa_app).
 
 
 
"SELECT single AA_METH FROM TMCW_AA_METH INTO @DATA(ld_i_aa_meth).
 
 
 
 
 
"SELECT single JA FROM RAAL INTO @DATA(ld_i_flg_generic_output).
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!