RIWP_QUERY_EXPORT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Exports the query results to a file using SAP audit format...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RIWP_QUERY_EXPORT into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
IWP_QUERY_EXPORT - Export Query Results
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.
Selection Text: P_XTEXT = D .
Selection Text: P_XFILE = D .
Selection Text: P_XDIRS = D .
Selection Text: P_WPEXT = D .
Selection Text: P_VARNT = Variant
Selection Text: P_QUERY = BW Query
Selection Text: P_OVERWR = D .
Selection Text: P_HEADER = D .
Selection Text: P_FRMT3 = SAP Audit Format
Selection Text: P_FRMT2 = Columns with Fixed Length
Selection Text: P_FRMT1 = D .
Selection Text: P_BW_SYS = D .
Title: Export the Results of a Query
Text Symbol: SRC = Source
Text Symbol: R43 = SAP Audit Format
Text Symbol: R42 = Columns with Fixed Length
Text Symbol: R41 = Columns Separated by Semicolon
Text Symbol: R31 = Overwrite File
Text Symbol: P31 = Insert Header Row
Text Symbol: EXP = Options for Export in File
Text Symbol: 002 = Export Query in SAP Audit format
Text Symbol: 001 = Data from BI Query
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'BW_SYS' value_org = 'S' TABLES value_tab = value_tab return_tab = l_t_return_tab EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = l_sy_repid dynumb = sy-dynnr translate_to_upper = ' ' TABLES dynpfields = l_t_dynprofields.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = l_sy_repid dynumb = sy-dynnr translate_to_upper = ' ' TABLES dynpfields = l_t_dynprofields.
BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log EXCEPTIONS OTHERS = 1.
BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = ls_msg * I_LOG_HANDLE = EXCEPTIONS log_not_found = 0 OTHERS = 1.
BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXCEPTIONS OTHERS = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RIWP_QUERY_EXPORT - Export the Results of a Query RIWP_QUERY_EXPORT - Export the Results of a Query RIWP_MIGRATE_REUSE - Migrates InfoObject Reuse Customizing from Audit Area to template RIWP_MIGRATE_REUSE - Migrates InfoObject Reuse Customizing from Audit Area to template RIWP_LR_CREATE_FILE - Creation of the file for local reporting RIWP_LR_CREATE_FILE - Creation of the file for local reporting