SAP Reports / Programs

RSPO_TEST_CREATE_SPOOL SAP ABAP Report - Create Composed or Binary Spool Request







RSPO_TEST_CREATE_SPOOL 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 RSPO_TEST_CREATE_SPOOL 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 RSPO_TEST_CREATE_SPOOL. "Basic submit
SUBMIT RSPO_TEST_CREATE_SPOOL AND RETURN. "Return to original report after report execution complete
SUBMIT RSPO_TEST_CREATE_SPOOL 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: BIN = Create Binary Spool Request
Selection Text: COMP = Combine with OTF Request
Selection Text: DEST = D .
Title: Create Composed or Binary Spool Request


INCLUDES used within this REPORT RSPO_TEST_CREATE_SPOOL

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:

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = name filetype = 'BIN' IMPORTING filelength = bin_filesize TABLES data_tab = raw_buffer EXCEPTIONS file_open_error = 2 file_read_error = 3 invalid_type = 4 no_batch = 5 OTHERS = 6.

RSPO_SR_OPEN CALL FUNCTION 'RSPO_SR_OPEN' EXPORTING dest = p_dest layout = 'G_RAW' * name = sponame suffix1 = 'BIN' suffix2 = sy-uname immediate_print = ' ' auto_delete = ' ' doctype = 'BIN' IMPORTING handle = bin_spoolhandle spoolid = p_bin_id EXCEPTIONS OTHERS = 1.

RSPO_SR_TABLE_WRITE_BINARY CALL FUNCTION 'RSPO_SR_TABLE_WRITE_BINARY' EXPORTING handle = bin_spoolhandle * CODEPAGE = total = bin_filesize TABLES lines = raw_buffer EXCEPTIONS handle_not_valid = 1.

RSPO_SR_CLOSE CALL FUNCTION 'RSPO_SR_CLOSE' EXPORTING handle = bin_spoolhandle final = 'X' EXCEPTIONS handle_not_valid = 1 operation_failed = 2.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING * CLIENT = SY-MANDT id = 'ST' language = 'E' name = 'I18N_PRINT_TEST_SC_EN' object = 'TEXT' IMPORTING header = header TABLES lines = lines EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

PRINT_TEXT CALL FUNCTION 'PRINT_TEXT' EXPORTING * APPLICATION = 'TX' * ARCHIVE_INDEX = ' ' * ARCHIVE_PARAMS = ' ' * DEVICE = 'PRINTER' dialog = space header = header options = form_pripars IMPORTING * NEW_ARCHIVE_PARAMS = result = result TABLES lines = lines * OTFDATA = EXCEPTIONS canceled = 1 device = 2 form = 3 options = 4 unclosed = 5 unknown = 6 format = 7 textformat = 8 communication = 9 bad_pageformat_for_print = 10 OTHERS = 11.

RSPO_SR_OPEN CALL FUNCTION 'RSPO_SR_OPEN' EXPORTING dest = p_dest * LDEST = * LAYOUT = name = 'COMP' * SUFFIX1 = * SUFFIX2 = * COPIES = * PRIO = * IMMEDIATE_PRINT = * AUTO_DELETE = * TITLELINE = * RECEIVER = * DIVISION = * AUTHORITY = * POSNAME = * ACTTIME = * LIFETIME = '8' * APPEND = * COVERPAGE = * CODEPAGE = doctype = 'COMP' * ARCHMODE = * ARCHPARAMS = * TELELAND = * TELENUM = * TELENUME = * SPONUMIV = ' ' * USESPOOLID = * PRINTOPTIONS = * PRINTTICKET = ' ' IMPORTING handle = comp_handle spoolid = comp_id * TABLES * ATTRIBUTES = EXCEPTIONS device_missing = 1 name_twice = 2 no_such_device = 3 operation_failed = 4 OTHERS = 5.

RSPO_SR_ADD_PARTS CALL FUNCTION 'RSPO_SR_ADD_PARTS' EXPORTING handle = comp_handle auto_toc = abap_true * IMPORTING * PAGECOUNT = TABLES parts = lt_parts EXCEPTIONS handle_not_valid = 1 no_comp_job = 2 incomplete = 3 no_such_part = 4 job_not_final = 5 illegal_device_type = 6 no_permission = 7 no_such_device = 8 OTHERS = 9.

RSPO_SR_CLOSE CALL FUNCTION 'RSPO_SR_CLOSE' EXPORTING handle = comp_handle * PAGES = final = 'X' EXCEPTIONS handle_not_valid = 1 operation_failed = 2 OTHERS = 3.



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