SAP Reports / Programs | Logistics - General | Retail Information System (RIS)(LO-RIS) SAP LO

MCW_AA_BWACCESS_TEST SAP ABAP Report - Example Program for Using MCW_AA_GET_QUERY_DATA







MCW_AA_BWACCESS_TEST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter MCW_AA_BWACCESS_TEST into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MCW_AA_TEST - Test Remote Execution of Queries


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT MCW_AA_BWACCESS_TEST. "Basic submit
SUBMIT MCW_AA_BWACCESS_TEST AND RETURN. "Return to original report after report execution complete
SUBMIT MCW_AA_BWACCESS_TEST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Example Program for Using MCW_AA_GET_QUERY_DATA
Text Symbol: 001 = Run test for
Text Symbol: 002 = Analytical Appl.
Text Symbol: 003 = Method to Execute
Text Symbol: 004 = Generic Result Return
Text Symbol: 005 = Result Return in Fixed Format
Text Symbol: 006 = Addit. options
Text Symbol: 007 = Start Selection in BW
Text Symbol: 008 = Interpreted Result
Text Symbol: 009 = Show the Result


INCLUDES used within this REPORT MCW_AA_BWACCESS_TEST

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 30 TEXT = TEXT-009.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_STRUCTURE_NAME = 'MCW_AA_RESULT_GEN' IS_LAYOUT = GS_LAYOUT * IT_FIELDCAT = GT_FIELDCAT[] * I_SCREEN_START_COLUMN = 0 "Use coordinates for * I_SCREEN_START_LINE = 0 "display as dialog box * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER TABLES T_OUTTAB = GT_OUTTAB_gen EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_STRUCTURE_NAME = 'MCW_AA_RESULT' IS_LAYOUT = GS_LAYOUT * IT_FIELDCAT = GT_FIELDCAT[] * I_SCREEN_START_COLUMN = 0 "Use coordinates for * I_SCREEN_START_LINE = 0 "display as dialog box * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER TABLES T_OUTTAB = GT_OUTTAB EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 30 TEXT = TEXT-007.

MCW_AA_GET_QUERY_DATA CALL FUNCTION 'MCW_AA_GET_QUERY_DATA' EXPORTING I_AA_APP = sd_meth-aa_app I_AA_METH = sd_meth-aa_meth I_FLG_GENERIC_OUTPUT = rb_gene TABLES * TI_VARSEL = gt_varsel TE_RESULT = gt_result TE_RESULT_FIELDS = gt_result_fields TE_RESULT_GENERIC = gt_result_gen * 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 OTHERS = 7 .

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 60 TEXT = TEXT-008.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING TABNAME = 'MCW_AA_RESULT_GEN' * FIELDNAME = ' ' LANGU = SY-LANGU * LFIELDNAME = ' ' * ALL_TYPES = ' ' * IMPORTING * X030L_WA = * DDOBJTYPE = * DFIES_WA = * LINES_DESCR = TABLES DFIES_TAB = ls_fields * FIXED_VALUES = EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING TABNAME = 'MCW_AA_RESULT' * FIELDNAME = ' ' LANGU = SY-LANGU * LFIELDNAME = ' ' * ALL_TYPES = ' ' * IMPORTING * X030L_WA = * DDOBJTYPE = * DFIES_WA = * LINES_DESCR = TABLES DFIES_TAB = ls_fields * FIXED_VALUES = EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name MCW_AA_BWACCESS_TEST or its description.