BTC_SEND_REMAINING_SPOOLLISTS 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 BTC_SEND_REMAINING_SPOOLLISTS 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.
Selection Text: EXCL_STP = Entry in the format 1, 2, 4...
Title: Auxiliary Report for Sending Spool Lists
Text Symbol: 001 = Steps for which spool lists are NOT to be sent:
Text Symbol: 002 = must be the last step of the job.
INCLUDE LBTCHDEF.
No SAP DATABASE tables are accessed within this REPORT code!
GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = my_count jobname = my_name stepcount = current_stepcount EXCEPTIONS no_runtime_info = 1 OTHERS = 2.
BP_JOB_READ CALL FUNCTION 'BP_JOB_READ' EXPORTING job_read_jobcount = my_count job_read_jobname = my_name job_read_opcode = btc_xbp_all_jobdata IMPORTING job_read_jobhead = my_jobhead TABLES spool_attributes = spoollists job_read_steplist = lt_step EXCEPTIONS invalid_opcode = 1 job_doesnt_exist = 2 job_doesnt_have_steps = 3 OTHERS = 4.
RSPO_OPTION_GET CALL FUNCTION 'RSPO_OPTION_GET' EXPORTING name = btc_firstline IMPORTING int_value = first_line.
RSPO_OPTION_GET CALL FUNCTION 'RSPO_OPTION_GET' EXPORTING name = btc_lastline IMPORTING int_value = last_line.
RSPO_SPOOLJOB_TO_OFFICE CALL FUNCTION 'RSPO_SPOOLJOB_TO_OFFICE' EXPORTING rqident = spoollist-spoolid first_line = first_line last_line = last_line receiver = receiver mail_title = mail_title sender_address = sender_name EXCEPTIONS no_such_job = 1 job_contains_no_data = 2 selection_empty = 3 no_permission = 4 can_not_access = 5 read_error = 6 could_not_send = 7 type_no_match = 8 not_possible = 9 OTHERS = 10.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
BTC_SEND_REMAINING_SPOOLLISTS - Auxiliary Report for Sending Spool Lists BTC_SEND_REMAINING_SPOOLLISTS - Auxiliary Report for Sending Spool Lists BTC_SAPXPG_SNC - Maintain the SNC Options for sapxpg BTC_SAPXPG_SNC - Maintain the SNC Options for sapxpg BTC_OPTIONS_SET - Set Options for Background Processing BTC_OPTIONS_SET - Set Options for Background Processing