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

BTCAUX09 SAP ABAP Report - Identify Jobs with Deleted Users







BTCAUX09 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 BTCAUX09 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 BTCAUX09. "Basic submit
SUBMIT BTCAUX09 AND RETURN. "Return to original report after report execution complete
SUBMIT BTCAUX09 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: SHOW = Display only
Selection Text: RESET = Cancel Scheduled Job
Selection Text: RELEASED = Released
Selection Text: PLANNED = Scheduled
Selection Text: LOCKED = Locked
Selection Text: DELETED = Deleted
Selection Text: DELETE = Delete
Selection Text: ABORTED = Terminated
Title: Identify Jobs with Deleted Users
Text Symbol: 014 = Job desch.
Text Symbol: 013 = Job descheduled
Text Symbol: 012 = Job deleted
Text Symbol: 011 = Job deleted
Text Symbol: 010 = Status of Step Users
Text Symbol: 009 = Action to Execute
Text Symbol: 008 = Status of the Jobs to Be Investigated
Text Symbol: 007 = Terminated
Text Symbol: 006 = Scheduled
Text Symbol: 005 = Released
Text Symbol: 004 = Locked
Text Symbol: 003 = User locked
Text Symbol: 002 = Deleted
Text Symbol: 001 = User deleted


INCLUDES used within this REPORT BTCAUX09

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:

USER_EXISTS CALL FUNCTION 'USER_EXISTS' EXPORTING bname = user client = wa_tbtco-authckman new_export_style = 'X' IMPORTING * LOCKED = lockstate = lockstate EXCEPTIONS user_dont_exist = 1 user_exists = 2 OTHERS = 3.

BP_DESCHEDULE_JOB CALL FUNCTION 'BP_DESCHEDULE_JOB' EXPORTING jobname = ls_job-jobname jobcount = ls_job-jobcount EXCEPTIONS cant_read_jobdata = 1 no_action = 2 OTHERS = 3.

BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING jobcount = ls_job-jobcount jobname = ls_job-jobname forcedmode = 'X' * COMMITMODE = 'X' EXCEPTIONS cant_delete_event_entry = 1 cant_delete_job = 2 cant_delete_joblog = 3 cant_delete_steps = 4 cant_delete_time_entry = 5 cant_derelease_successor = 6 cant_enq_predecessor = 7 cant_enq_successor = 8 cant_enq_tbtco_entry = 9 cant_update_predecessor = 10 cant_update_successor = 11 commit_failed = 12 jobcount_missing = 13 jobname_missing = 14 job_does_not_exist = 15 job_is_already_running = 16 no_delete_authority = 17 OTHERS = 18.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' i_callback_program = my_report * I_CALLBACK_PF_STATUS_SET = ' ' i_callback_user_command = callback * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * I_STRUCTURE_NAME = * I_BACKGROUND_ID = ' ' * I_GRID_TITLE = * I_GRID_SETTINGS = is_layout = gs_layout it_fieldcat = gt_fieldcat[] it_excluding = gt_exclude[] * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * IR_SALV_FULLSCREEN_ADAPTER = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = lt_job EXCEPTIONS program_error = 1 OTHERS = 2 .

BP_JOB_MANAGEMENT CALL FUNCTION 'BP_JOB_MANAGEMENT' EXPORTING jobselect_dialog = btc_no joblist_opcode = btc_joblist_edit * JOBSEL_PARAM_INPUT = list_title = sy-title * EXTERNAL_REFRESH = TABLES joblist = i_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 BTCAUX09 or its description.