SAP Reports / Programs | Cross-Application Components | General Application Functions | Technical Application Support(CA-GTF-TS) SAP CA

CNV_20308_IO SAP ABAP INCLUDE - Datei Ein- und Ausgabe







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


INCLUDES used within this REPORT CNV_20308_IO

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:

TMP_GUI_BROWSE_FOR_FOLDER CALL FUNCTION 'TMP_GUI_BROWSE_FOR_FOLDER' EXPORTING window_title = lv_text IMPORTING selected_folder = pv_folder EXCEPTIONS cntl_error = 1 OTHERS = 2.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = pv_folder query = 'DE' " directory exists IMPORTING return = lv_folder_exists EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING query = 'OS' " operating system IMPORTING return = lv_operating_system EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_UPLOAD CALL FUNCTION 'WS_UPLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = pt_data EXCEPTIONS conversion_error = 1 file_open_error = 2 file_read_error = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_DOWNLOAD CALL FUNCTION 'WS_DOWNLOAD' EXPORTING filename = lv_filename filetype = 'ASC' TABLES data_tab = lt_code EXCEPTIONS file_open_error = 1 file_write_error = 2 invalid_filesize = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_UPLOAD CALL FUNCTION 'WS_UPLOAD' EXPORTING filename = lv_filename filetype = 'ASC' TABLES data_tab = pt_coding EXCEPTIONS conversion_error = 1 file_open_error = 2 file_read_error = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_DOWNLOAD CALL FUNCTION 'WS_DOWNLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = gt_20308_files EXCEPTIONS file_open_error = 1 file_write_error = 2 invalid_filesize = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_UPLOAD CALL FUNCTION 'WS_UPLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = pt_filelist EXCEPTIONS conversion_error = 1 file_open_error = 2 file_read_error = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_DOWNLOAD CALL FUNCTION 'WS_DOWNLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = gt_20308_fields EXCEPTIONS file_open_error = 1 file_write_error = 2 invalid_filesize = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_UPLOAD CALL FUNCTION 'WS_UPLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = pt_fields EXCEPTIONS conversion_error = 1 file_open_error = 2 file_read_error = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_DOWNLOAD CALL FUNCTION 'WS_DOWNLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = gt_20308_fldcat EXCEPTIONS file_open_error = 1 file_write_error = 2 invalid_filesize = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_UPLOAD CALL FUNCTION 'WS_UPLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = pt_fldcat EXCEPTIONS conversion_error = 1 file_open_error = 2 file_read_error = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_DOWNLOAD CALL FUNCTION 'WS_DOWNLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = gt_20308_cond EXCEPTIONS file_open_error = 1 file_write_error = 2 invalid_filesize = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.

WS_UPLOAD CALL FUNCTION 'WS_UPLOAD' EXPORTING filename = lv_filename filetype = 'DAT' TABLES data_tab = pt_cond EXCEPTIONS conversion_error = 1 file_open_error = 2 file_read_error = 3 invalid_type = 4 no_batch = 5 unknown_error = 6 invalid_table_width = 7 gui_refuse_filetransfer = 8 customer_error = 9 OTHERS = 10.



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