SAP Reports / Programs

RSSOUPDL SAP ABAP Report - Copying EXT Files to a Central Local Directory







RSSOUPDL 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 RSSOUPDL 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 RSSOUPDL. "Basic submit
SUBMIT RSSOUPDL AND RETURN. "Return to original report after report execution complete
SUBMIT RSSOUPDL 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: DPATH_P = Local target path
Selection Text: EDATE_P = End of period
Selection Text: FILEXT_P = File extension
Selection Text: SDATE_P = Beginning of period
Title: Copying EXT Files to a Central Local Directory
Text Symbol: 001 = Yes
Text Symbol: 002 = No
Text Symbol: 003 = Import files
Text Symbol: 010 = Import files from local directory?
Text Symbol: 101 = Error determining file name; SY_SUBRC:
Text Symbol: 102 = Error during export; SY_SUBRC:
Text Symbol: 103 = Document:
Text Symbol: 104 = Files exported:
Text Symbol: 105 = Error during import; SY_SUBRC:
Text Symbol: 106 = Error reading document:_______________-
Text Symbol: 107 = Error changing document:
Text Symbol: 108 = Files imported:________--
Text Symbol: 109 = Local directory does not exist


INCLUDES used within this REPORT RSSOUPDL

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:

WS_QUERY *CALL FUNCTION 'WS_QUERY' * EXPORTING * FILENAME = DPATH_P * QUERY = 'DE' * IMPORTING * RETURN = RTCODE_G * EXCEPTIONS * INV_QUERY = 1 * NO_BATCH = 2 * FRONTEND_ERROR = 3 * OTHERS = 4.

WS_QUERY * CALL FUNCTION 'WS_QUERY' * EXPORTING * filename = datfilename_g * query = 'FE' * IMPORTING * return = rtcode_g * EXCEPTIONS * inv_query = 1 * no_batch = 2 * frontend_error = 3 * OTHERS = 4.

WS_QUERY * CALL FUNCTION 'WS_QUERY' * EXPORTING * filename = bakfilename_g * query = 'FE' * IMPORTING * return = rtcode_g * EXCEPTIONS * inv_query = 1 * no_batch = 2 * frontend_error = 3 * OTHERS = 4.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' "DELETE 331024 * EXPORTING * BIN_FILESIZE = SOOD_TAB-OBJLEN * FILENAME = BAKFILENAME_G * FILETYPE = 'BIN' * MODE = ' ' * TABLES * DATA_TAB = OBJCONT_TAB * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2 * INVALID_FILESIZE = 3 * INVALID_TABLE_WIDTH = 4 * INVALID_TYPE = 5 * NO_BATCH = 6 * UNKNOWN_ERROR = 7 * OTHERS = 8.

SO_OBJECT_DOWNLOAD CALL FUNCTION 'SO_OBJECT_DOWNLOAD' "INSERT 331024 EXPORTING BIN_FILESIZE = bin_filesize * DEFAULT_FILENAME = ' ' FILETYPE = 'BIN' PATH_AND_FILE = BAKFILENAME_G EXTCT = SOOD_TAB-EXTCT NO_DIALOG = 'X' * IMPORTING * FILELENGTH = * F_CANCELLED = * ACT_FILETYPE = * ACT_FILENAME = TABLES OBJCONT = OBJCONT_TAB EXCEPTIONS * FILE_WRITE_ERROR = 1 * INVALID_TYPE = 2 * X_ERROR = 3 * KPRO_ERROR = 4 OTHERS = 5 .

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * bin_filesize = reftabsize_g * filename = datfilename_g * filetype = 'ASC' * mode = ' ' * TABLES * data_tab = reference_tab * EXCEPTIONS * file_open_error = 1 * file_write_error = 2 * invalid_filesize = 3 * invalid_table_width = 4 * invalid_type = 5 * no_batch = 6 * unknown_error = 7 * OTHERS = 8.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = TEXT-003 TEXT_QUESTION = TEXT-010 TEXT_BUTTON_1 = 'Ja'(001) TEXT_BUTTON_2 = 'Nein'(002) IMPORTING ANSWER = ANSWER_G EXCEPTIONS TEXT_NOT_FOUND = 1 OTHERS = 2.

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING * filename = datfilename_g * filetype = 'ASC' * TABLES * data_tab = reference_tab * EXCEPTIONS * conversion_error = 1 * file_open_error = 2 * file_read_error = 3 * invalid_table_width = 4 * invalid_type = 5 * no_batch = 6 * unknown_error = 7 * OTHERS = 8.

WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' "DELETE 331024 * EXPORTING * FILENAME = REFERENCE_TAB-FILENAME * FILETYPE = 'BIN' * IMPORTING * FILELENGTH = SOOD-OBJLEN * TABLES * DATA_TAB = OBJCONT_TAB * EXCEPTIONS * CONVERSION_ERROR = 1 * FILE_OPEN_ERROR = 2 * FILE_READ_ERROR = 3 * INVALID_TABLE_WIDTH = 4 * INVALID_TYPE = 5 * NO_BATCH = 6 * UNKNOWN_ERROR = 7 * OTHERS = 8.

SO_OBJECT_UPLOAD CALL FUNCTION 'SO_OBJECT_UPLOAD' "INSERT 331024 EXPORTING * filetype = 'BIN' filetype = l_filetype PATH_AND_FILE = REFERENCE_TAB-FILENAME NO_DIALOG = 'X' IMPORTING FILELENGTH = bin_filesize F_CANCELLED = f_cancelled * ACT_FILETYPE = act_filetype = l_act_filetype * ACT_FILENAME = * ACT_OBJTYPE = FILE_PUT_TO_KPRO = file_put_to_kpro TABLES OBJCONT = OBJCONT_TAB EXCEPTIONS * FILE_READ_ERROR = 1 * INVALID_TYPE = 2 * X_ERROR = 3 * OBJECT_TYPE_NOT_ALLOWED = 4 * KPRO_INSERT_ERROR = 5 OTHERS = 6 .



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