SAP Reports / Programs

RS_DBG_TABLE_TO_EXCEL SAP ABAP Report - Write Excel File







RS_DBG_TABLE_TO_EXCEL 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 RS_DBG_TABLE_TO_EXCEL 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

DBG_TABLE_TO_EXCEL - ABAP Debugger: Table as Excel File


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


Text pool values


Title: Write Excel File
Text Symbol: 001 = Save Internal Table as:
Text Symbol: 002 = Errors Occurred. SY-SUBRC =
Text Symbol: 003 = Internal Table
Text Symbol: 004 = Row
Text Symbol: 005 = Name
Text Symbol: 006 = Type
Text Symbol: 007 = Bound, Allocated Memory
Text Symbol: 008 = Bound, Used Memory
Text Symbol: 009 = Referenced, Allocated Memory
Text Symbol: 010 = Referenced, Used Memory
Text Symbol: 015 = Memory Usage Ranking List
Text Symbol: 016 = Save Memory Usage Ranking List As


INCLUDES used within this REPORT RS_DBG_TABLE_TO_EXCEL

INCLUDE TSKHINCL.


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:

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = filename_frontend_fullpath TABLES data_tab = table EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22.

TABLE_DECOMPRESS CALL FUNCTION 'TABLE_DECOMPRESS' "#EC * TABLES in = l_table_compressed out = l_table_fixed.



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