SAP Reports / Programs

CNVC_SCWB_UPLOAD_FILE SAP ABAP Report - Upload - download & open file







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


Text pool values


Selection Text: P_DEL = Delete cluster
Selection Text: P_DOWN = Download file
Selection Text: P_EXEC = Execute downloaded file
Selection Text: P_NAME = File name in DB
Selection Text: P_PATH = Upload path and file
Selection Text: P_PATH1 = Download path
Selection Text: P_TEST = Test mode
Title: Upload - download & open file
Text Symbol: T01 = File uploaded
Text Symbol: T02 = Test mode on - nothing will be done
Text Symbol: T03 = Choose a directory where you want save the "user guide" file
Text Symbol: T04 = Browse to the file you want to upload
Text Symbol: T05 = File downloaded
Text Symbol: T06 = 0 length of file - something went wrong !!!
Text Symbol: T07 = You did not choose a file -> leaving
Text Symbol: T08 = You did not choose a directory -> leaving
Text Symbol: T09 = GUI_UPLOAD error
Text Symbol: T10 = Import into itab from cluster error
Text Symbol: T11 = Select of file length result with 0 - error
Text Symbol: T12 = GUI_DOWNLOAD error
Text Symbol: T13 = Error executing the local file


INCLUDES used within this REPORT CNVC_SCWB_UPLOAD_FILE

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:

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING TITEL = ' ' TXT1 = text-t03 TXT2 = ' ' * TXT3 = ' ' * TXT4 = ' ' .

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING TITEL = ' ' TXT1 = text-t04 TXT2 = ' ' * TXT3 = ' ' * TXT4 = ' ' .

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filetype = 'BIN' filename = gv_fileandpath IMPORTING filelength = gs_file1-filelength TABLES data_tab = gt_file EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING bin_filesize = gs_file1-filelength filename = lv_filename1 filetype = 'BIN' IMPORTING filelength = gv_fileleng TABLES data_tab = gt_file 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.



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