SAP Reports / Programs | Basis Components | Use Subcomponents | Background Processing(BC-CCM-BTC) SAP BC

BTC_SEND_REMAINING_SPOOLLISTS SAP ABAP Report - Auxiliary Report for Sending Spool Lists







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


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 BTC_SEND_REMAINING_SPOOLLISTS. "Basic submit
SUBMIT BTC_SEND_REMAINING_SPOOLLISTS AND RETURN. "Return to original report after report execution complete
SUBMIT BTC_SEND_REMAINING_SPOOLLISTS 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: 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.


INCLUDES used within this REPORT BTC_SEND_REMAINING_SPOOLLISTS

INCLUDE LBTCHDEF.


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:

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.



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