BTC_TEST_JOB_ABORT 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_TEST_JOB_ABORT 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: ADUMP = Generate ABAP Dump
Selection Text: AMESS = Display Termination Message
Selection Text: EMESS = Display Error Message
Selection Text: PROG = Terminate Program
Selection Text: STOP = Terminate Process (W/out Core)
Selection Text: WDUMP = Terminate Process (With Core)
Selection Text: WMESS = Display Warning Message
Selection Text: XMESS = Display X Message
Title: Test Program for Job Termination
INCLUDE LBTCHDEF.
INCLUDE TSKHINCL.
No SAP DATABASE tables are accessed within this REPORT code!
GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING * EVENTID = * EVENTPARM = * EXTERNAL_PROGRAM_ACTIVE = jobcount = jobcount jobname = jobname * STEPCOUNT = 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_read_jobhead_only * JOB_STEP_NUMBER = IMPORTING job_read_jobhead = jobhead * JOBLOG_ATTRIBUTES = * TABLES * JOB_READ_STEPLIST = * SPOOL_ATTRIBUTES = * CHANGING * RET = EXCEPTIONS invalid_opcode = 1 job_doesnt_exist = 2 job_doesnt_have_steps = 3 OTHERS = 4 .
BP_JOB_ABORT CALL FUNCTION 'BP_JOB_ABORT' EXPORTING jobcount = jobcount jobname = jobname EXCEPTIONS checking_of_job_has_failed = 1 job_abort_has_failed = 2 job_does_not_exist = 3 job_is_not_active = 4 no_abort_privilege_given = 5 OTHERS = 6.
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_TEST_JOB_ABORT - Test Program for Job Termination BTC_TEST_JOB_ABORT - Test Program for Job Termination BTC_SWITCH_LIST_GRID - Settings for Job Overview BTC_SWITCH_LIST_GRID - Settings for Job Overview BTC_SHOW_JOBS_WITHOUT_LOGS - Displays jobs for which logs could not be read BTC_SHOW_JOBS_WITHOUT_LOGS - Displays jobs for which logs could not be read