SAP Reports / Programs

BTC_TEST_JOB_ABORT SAP ABAP Report - Test Program for Job Termination







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


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


INCLUDES used within this REPORT BTC_TEST_JOB_ABORT

INCLUDE LBTCHDEF.
INCLUDE TSKHINCL.


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 * 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.



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