SAP Reports / Programs

BTCAUX05 SAP ABAP Report - Select Jobs for Spool Requests







BTCAUX05 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 BTCAUX05 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 BTCAUX05. "Basic submit
SUBMIT BTCAUX05 AND RETURN. "Return to original report after report execution complete
SUBMIT BTCAUX05 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: ALL = For all spool requests
Selection Text: SING = For selected spool requests
Selection Text: S_RQCLIE = Client
Selection Text: S_RQCRED = Created On
Selection Text: S_RQTITL = Title
Selection Text: L_RQDEST = D .
Selection Text: S_RQ0NAM = D .
Selection Text: S_RQ1NAM = D .
Selection Text: S_RQ2NAM = D .
Selection Text: S_RQIDEN = D .
Selection Text: S_RQOWNE = D .
Title: Select Jobs for Spool Requests
Text Symbol: 001 = Display Generating Jobs
Text Symbol: 002 = Selecting jobs...


INCLUDES used within this REPORT BTCAUX05

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:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Selecting Jobs...'(002). "#EC TEXT_DIFF

RSPO_L_RSELECT_SPOOLREQS CALL FUNCTION 'RSPO_L_RSELECT_SPOOLREQS' EXPORTING rqnone = 'X' rqproc = 'X' rqsucc = 'X' rqerr = 'X' * ACCESS = ' ' * PROTO = ' ' * NONEX_DEV = ' ' * IMPORTING * RQ_NO_ACCESS = * RQ_ACCESS = TABLES s_rqiden = s_rqiden s_rqclie = s_rqclie s_rq0nam = s_rq0nam s_rq1nam = s_rq1nam s_rq2nam = s_rq2nam s_rqowne = s_rqowne * S_RQ1DIS = * S_RQ2DIS = * S_RQFIN = * S_RQCOPI = * S_RQPRIO = * S_RQPAPE = * S_RQPJRE = s_rqtitl = s_rqtitl * S_RQRECE = * S_RQDIVI = * S_RQAUTH = * S_RQTLAN = * S_RQTNUM = s_rqcred = s_rqcred * S_RQDELD = s_rqdestl = l_rqdest * S_RQPAGE = * S_RQSAPT = * S_RQUNXT = * S_RQADESL = * S_RQSYST = result_tsp01 = requests EXCEPTIONS error = 1 OTHERS = 2 .

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = my_program i_callback_user_command = 'USER_COMMAND' * i_structure_name = i_grid_title = grid_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 = jobs EXCEPTIONS program_error = 1 OTHERS = 2.

RSPO_RID_SPOOLREQ_LIST CALL FUNCTION 'RSPO_RID_SPOOLREQ_LIST' EXPORTING id_list = idtab * SUMMARY = ' ' EXCEPTIONS error = 1 OTHERS = 2.

BP_JOB_READ CALL FUNCTION 'BP_JOB_READ' EXPORTING job_read_jobcount = single_job-jobcount job_read_jobname = single_job-jobname job_read_opcode = btc_read_jobhead_only IMPORTING job_read_jobhead = jobhead EXCEPTIONS invalid_opcode = 1 job_doesnt_exist = 2 job_doesnt_have_steps = 3 OTHERS = 4.

BP_JOB_MANAGEMENT CALL FUNCTION 'BP_JOB_MANAGEMENT' EXPORTING jobselect_dialog = btc_no joblist_opcode = btc_joblist_edit * JOBSEL_PARAM_INPUT = * LIST_TITLE = TABLES joblist = disp_jobs EXCEPTIONS unknown_selection_error = 1 invalid_opcode = 2 invalid_dialog_type = 3 refresh_list_required = 4 empty_list = 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 BTCAUX05 or its description.