SAP Reports / Programs | SAP Business Information Warehouse | Business Explorer | OLAP Technology(BW-BEX-OT) SAP BW

WRITEQUERY SAP ABAP Report - BW - output test







WRITEQUERY 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 WRITEQUERY into the relevant SAP transactions such as SE38 or SE80


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 WRITEQUERY. "Basic submit
SUBMIT WRITEQUERY AND RETURN. "Return to original report after report execution complete
SUBMIT WRITEQUERY VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: BW - output test
Text Symbol: 001 = Additional information:
Text Symbol: 002 = Free chars:
Text Symbol: 003 = Structures:
Text Symbol: 004 = Name
Text Symbol: 005 = Hierarchy Name
Text Symbol: 006 = Attributes:
Text Symbol: 007 = InfoObject
Text Symbol: 008 = Attribute
Text Symbol: 009 = Hidden
Text Symbol: 010 = Text
Text Symbol: 011 = Messages:
Text Symbol: 020 = Text symbols:
Text Symbol: 021 = Description
Text Symbol: 022 = Value
Text Symbol: 030 = Filter:
Text Symbol: 031 = Select Query


INCLUDES used within this REPORT WRITEQUERY

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:

RSZ_COMPONENT_TREE_GET CALL FUNCTION 'RSZ_COMPONENT_TREE_GET' EXPORTING i_title = 'Query auswählen'(031) IMPORTING e_genuniid = genuniid EXCEPTIONS OTHERS = 1.

RRI_REPDIR_READ CALL FUNCTION 'RRI_REPDIR_READ' CHANGING c_s_repkey = g_s_repkey EXCEPTIONS entry_not_found = 1.

RSAH_LAUNCH_EXCEL CALL FUNCTION 'RSAH_LAUNCH_EXCEL' EXPORTING i_genuniid = g_s_repkey-genuniid EXCEPTIONS OTHERS = 1.

RRX_SESSION_INITIALIZE CALL FUNCTION 'RRX_SESSION_INITIALIZE' TABLES c_t_prptys = g_t_prptys EXCEPTIONS OTHERS = 1.

RRX_REPORT_OPEN CALL FUNCTION 'RRX_REPORT_OPEN' EXPORTING i_genuniid = g_s_repkey-genuniid IMPORTING e_handle = g_handle EXCEPTIONS open_failed = 1 invalid_genuniid = 2 msg_init_failed = 3 inherited_error = 4 x_message = 5 OTHERS = 6.

RS_EXCEPTION_MSG_DIALOG CALL FUNCTION 'RS_EXCEPTION_MSG_DIALOG' EXPORTING i_r_exception = g_r_e i_msgty = 'E'.

RRX_GRID_CONTEXT_MENU_GET CALL FUNCTION 'RRX_GRID_CONTEXT_MENU_GET' EXPORTING i_handle = g_handle TABLES i_t_ranges = g_t_ranges e_t_menu = g_t_menu EXCEPTIONS inherited_error = 1 no_processing = 2 x_message = 3 OTHERS = 4.

RS_EXCEPTION_MSG_DIALOG CALL FUNCTION 'RS_EXCEPTION_MSG_DIALOG' EXPORTING i_r_exception = g_r_e i_msgty = 'E'.

RS_EXCEPTION_MSG_DIALOG CALL FUNCTION 'RS_EXCEPTION_MSG_DIALOG' EXPORTING i_r_exception = g_r_e i_msgty = 'E'.

RRI_QUERY_DEBUGFLAGS_GET CALL FUNCTION 'RRI_QUERY_DEBUGFLAGS_GET' IMPORTING e_s_debugflags = g_s_debugflags.

RSDDK_STA_TIMING_SHOW CALL FUNCTION 'RSDDK_STA_TIMING_SHOW'.

RSR_DECRYPT_OUTPUT_HTML CALL FUNCTION 'RSR_DECRYPT_OUTPUT_HTML'.

RRX_REPORT_CLOSE CALL FUNCTION 'RRX_REPORT_CLOSE' EXPORTING i_handle = g_handle EXCEPTIONS close_failed = 1 x_message = 2 OTHERS = 3.

RRX_GRID_CMD_PROCESS CALL FUNCTION 'RRX_GRID_CMD_PROCESS' EXPORTING i_handle = g_handle i_cmdid = g_cmdid i_iobjnm = g_iobjnm IMPORTING e_max_x = g_x e_max_y = g_y TABLES i_t_ranges = g_t_ranges e_t_dim = g_t_dim e_t_mem = g_t_mem e_t_cel = g_t_cel c_t_prptys = g_t_prptys e_t_atr = g_t_atr e_t_grid = g_t_grid e_t_ranges = g_t_ranges e_t_con = g_t_con e_t_fac = g_t_fac e_t_var = g_t_var EXCEPTIONS inherited_error = 1 no_record_found = 2 terminated_by_user = 3 no_processing = 4 no_change = 5 dbcl_nosupport = 6 no_authorization = 7 x_message = 8 screen_canceled = 9 launch_url = 10 OTHERS = 11.

RRX_GRID_CMD_PROCESS * CALL FUNCTION 'RRX_GRID_CMD_PROCESS' * EXPORTING * i_handle = g_handle * i_cmdid = 'PING' * TABLES * e_t_dim = g_t_dim * e_t_mem = g_t_mem * e_t_cel = g_t_cel * e_t_atr = g_t_atr * c_t_prptys = g_t_prptys * e_t_grid = g_t_grid * e_t_ranges = g_t_ranges * e_t_con = g_t_con * e_t_fac = g_t_fac * EXCEPTIONS * OTHERS = 0.

RSBBS_RECEIVER_GET CALL FUNCTION 'RSBBS_RECEIVER_GET' EXPORTING i_compuid = g_s_repkey-compuid i_infocube = g_s_repkey-infocube IMPORTING e_ts_rec_tree = l_ts_rec_tree.

RRX_MESSAGES_GET CALL FUNCTION 'RRX_MESSAGES_GET' TABLES e_t_mesg = l_t_mesg EXCEPTIONS OTHERS = 0.

RZI_0_COMPONENT_GET_ALL CALL FUNCTION 'RZI_0_COMPONENT_GET_ALL' EXPORTING i_component_uid = l_s_repkey-compuid i_timestmp = 0 i_check_mode = rs_c_false IMPORTING e_tx_form = l_tx_form e_tx_var = l_tx_var e_tx_fst = l_tx_fst e_tx_fst_ckf = l_tx_fst_ckf e_t_elttxt = l_t_elttxt e_t_changes = l_t_changes e_t_dkf = l_t_dkf e_s_query_prop = l_s_query_prop e_s_dim_prop = l_s_dim_prop EXCEPTIONS element_not_found = 1 OTHERS = 2.

RRX_SELECTION_TO_TEXT





** CALL FUNCTION 'RRX_SELECTION_TO_TEXT' ** EXPORTING ** i_eltuid = -eltuid ** i_max_length = 60 ** TABLES ** i_t_fac = g_t_fac ** e_t_returntexts = l_t_texts.

VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = 'G_IOBJNM' values = l_t_iobjnm EXCEPTIONS OTHERS = 0.

VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = 'G_ELTUID1' values = l_t_eltuid1 EXCEPTIONS OTHERS = 0.

VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = 'G_ELTUID2' values = l_t_eltuid2 EXCEPTIONS OTHERS = 0.

RRX_CELL_INFO_GET CALL FUNCTION 'RRX_CELL_INFO_GET' EXPORTING i_handle = g_handle i_row = g_row i_column = g_col IMPORTING e_kid = e_kid e_tsx_seldr = e_tsx_seldr EXCEPTIONS x_message = 1 invalid_cell = 2 invalid_handle = 3.

RSD_CHA_FILTER_GET CALL FUNCTION 'RSD_CHA_FILTER_GET' EXPORTING i_handle = g_handle i_chanm = g_iobjnm i_f4_mode = rsdm_c_f4_query i_with_auth = rs_c_true IMPORTING e_t_chavt = l_t_chavt e_prsnt1 = l_prsnt1 EXCEPTIONS unknown_chanm = 1 illegal_input = 2 invalid_handle = 3 x_message = 4 OTHERS = 5.

RSS_SYSTEM_GET_UNIQUE_ID CALL FUNCTION 'RSS_SYSTEM_GET_UNIQUE_ID' IMPORTING e_uni_idc25 = l_s_con-eltuid.

RRX_GRID_GET CALL FUNCTION 'RRX_GRID_GET' EXPORTING i_handle = g_handle IMPORTING e_max_x = g_x e_max_y = g_y TABLES c_t_con = g_t_con c_t_fac = g_t_fac c_t_dim = g_t_dim c_t_atr = g_t_atr c_t_mem = g_t_mem c_t_cel = g_t_cel i_t_prptys = g_t_prptys e_t_grid = g_t_grid e_t_ranges = g_t_ranges c_t_hry_types = g_t_hry_types e_t_var = g_t_var EXCEPTIONS inherited_error = 1 no_processing = 2 x_message = 3 screen_canceled = 4 OTHERS = 5.

RRX_JUMP CALL FUNCTION 'RRX_JUMP' EXPORTING i_handle_sender = g_handle i_bbs_receiver = g_bbs_receiver IMPORTING e_handle = g_handle2 e_max_x = g_x e_max_y = g_y e_genuniid = l_genuniid TABLES i_t_ranges = g_t_ranges c_t_con = g_t_con c_t_fac = g_t_fac c_t_dim = g_t_dim c_t_atr = g_t_atr c_t_mem = g_t_mem c_t_cel = g_t_cel c_t_prptys = g_t_prptys e_t_grid = g_t_grid e_t_ranges = g_t_ranges c_t_hry_types = g_t_hry_types e_t_var = g_t_var EXCEPTIONS OTHERS = 1.

RRI_REPDIR_READ CALL FUNCTION 'RRI_REPDIR_READ' CHANGING c_s_repkey = g_s_repkey EXCEPTIONS OTHERS = 0.

RSD_CHA_FILTER_GET CALL FUNCTION 'RSD_CHA_FILTER_GET' EXPORTING i_handle = g_handle i_infocube = g_s_repkey-infocube i_chanm = g_iobjnm i_f4_mode = rsdm_c_f4_query IMPORTING e_t_hierkey = l_t_hierkey EXCEPTIONS OTHERS = 1.

RSDM_F4_HIER_NODE CALL FUNCTION 'RSDM_F4_HIER_NODE' EXPORTING i_infocube = g_s_repkey-infocube i_chanm = g_iobjnm i_hienm = l_s_hierkey-hienm i_version = l_s_hierkey-version i_date = l_s_hierkey-dateto i_handle = g_handle i_f4mode = rsdm_c_f4_query IMPORTING e_s_nodet = l_s_nodet EXCEPTIONS OTHERS = 1.

RRSV_GLOBAL_SETTINGS_GET CALL FUNCTION 'RRSV_GLOBAL_SETTINGS_GET' IMPORTING e_s_global_settings = l_s_global_settings.



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 WRITEQUERY or its description.