RSPO_OUTPUT_SPOOL_REQUESTS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report can be scheduled as the final step of a background job to output its spool requests...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RSPO_OUTPUT_SPOOL_REQUESTS into the relevant SAP transactions such as SE38 or SE80
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.
Title: Output Spool Requests of Your Own Background Jobs
Text Symbol: 001 = Spool request already output:
Text Symbol: 002 = Spool Request:
Text Symbol: 003 = Error
Text Symbol: 004 = Message
Text Symbol: 005 = Error Message
INCLUDE LBTCHDEF.
No SAP DATABASE tables are accessed within this REPORT code!
GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = jobcount jobname = jobname EXCEPTIONS no_runtime_info = 1 OTHERS = 2.
BP_JOB_READ CALL FUNCTION 'BP_JOB_READ' EXPORTING job_read_jobcount = jobcount job_read_jobname = jobname job_read_opcode = btc_xbp_all_jobdata * IMPORTING * JOB_READ_JOBHEAD = * JOBLOG_ATTRIBUTES = TABLES * JOB_READ_STEPLIST = spool_attributes = lt_spool * CHANGING * RET = EXCEPTIONS invalid_opcode = 1 job_doesnt_exist = 2 job_doesnt_have_steps = 3 OTHERS = 4 .
RSPO_CHECK_DESTINATION CALL FUNCTION 'RSPO_CHECK_DESTINATION' EXPORTING print_parameter = ls_print * BATCH_PRINT = ' ' * LOCAL_PRINT = ' ' * GRAPH_PRINT = ' ' * NO_DDIC_PARAMETERS = ' ' * AUTH_GRANTED = ' ' IMPORTING * RQARCHTYPE_TEXT = * RQDEST_TEXT = * RQPRIO_TEXT = * RQSAPTITLE_TEXT = * RQUNXTITLE_TEXT = * IS_FAX = is_frontend = is_frontend * IS_MAIL = * ALLOWED_FOR_BATCH = * ALLOWED_FOR_IMMEDIATE_PRINT = * DEVICETYPE = * IS_LOCKED = * LOCKED_TEXT = * ARCHIVE_DEVICE = EXCEPTIONS archive_dest_invalid = 1 archive_dest_not_found = 2 archive_dest_no_right = 3 dest_invalid = 4 dest_not_found = 5 dest_no_right = 6 batch_not_allowed = 7 local_print_not_possible = 8 print_no_right = 9 invalid_parameters = 10 OTHERS = 11.
RSPO_OUTPUT_SPOOL_REQUEST CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST' EXPORTING * COPIES = 0 * DEVICE = '*' * DIVISION = '*' * ENDPAGE = 0 * PRIO = 0 * RECEIVER = '*' * REQEST_TITLE = '*' spool_request_id = ls_spool-spoolid * STARTPAGE = 0 * TELELAN = '*' * TELENUM = '*' * POSNAME = * ACTTIME = * TABLES * ATTRIBUTES = EXCEPTIONS archive_dest_invalid = 1 archive_dest_not_found = 2 archive_dest_no_right = 3 cannot_archive = 4 change_archdest_no_right = 5 change_copies_no_right = 6 change_dest_no_right = 7 change_devtype_no_right = 8 change_prio_no_right = 9 change_telenum_no_right = 10 change_title_no_right = 11 dest_invalid = 12 dest_not_found = 13 dest_no_right = 14 internal_problem = 15 invalid_fax_attribute = 16 invalid_parameters = 17 non_owner_no_right = 18 no_layout = 19 no_spool_request = 20 out_again_no_right = 21 spooler_problem = 22 OTHERS = 23 .
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'REQUEST' * i_grid_title = sy-title is_layout = gs_layout it_fieldcat = gt_fieldcat[] it_excluding = gt_exclude[] * i_default = 'X' * i_save = 'A' is_print = alv_print TABLES t_outtab = requests EXCEPTIONS program_error = 1 OTHERS = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RSPO_OUTPUT_SPOOL_REQUESTS - Output Spool Requests of Your Own Background Jobs RSPO_OUTPUT_SPOOL_REQUESTS - Output Spool Requests of Your Own Background Jobs RSPO_OPTION - Display or Reset Spool Options RSPO_OPTION - Display or Reset Spool Options RSPO_MOVE_ADS_FILES - Moves ADS Print Data from GLOBAL_DIR to Subdirectories RSPO_MOVE_ADS_FILES - Moves ADS Print Data from GLOBAL_DIR to Subdirectories