SAP Reports / Programs | Basis Components | Use Subcomponents | Monitoring(BC-CCM-MON) SAP BC

BTSCHFUNC SAP ABAP Report - Scheduling batch jobs for PerfDB collection and reorg







BTSCHFUNC 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 BTSCHFUNC 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 BTSCHFUNC. "Basic submit
SUBMIT BTSCHFUNC AND RETURN. "Return to original report after report execution complete
SUBMIT BTSCHFUNC VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Scheduling the Jobs for the Central Performance History
Text Symbol: 026 = CPH Jobs
Text Symbol: 025 = This job is not required and can probably be deleted
Text Symbol: 024 = Job for Automatic Report Creation:
Text Symbol: 023 = Days
Text Symbol: 022 = Day
Text Symbol: 021 = The Central Performance History has not been activated
Text Symbol: 020 = User Name:
Text Symbol: 019 = Weeks
Text Symbol: 018 = Week
Text Symbol: 017 = Hours
Text Symbol: 016 = Hour
Text Symbol: 015 = Minutes
Text Symbol: 014 = Minute
Text Symbol: 013 = No periodic job execution. This job is only executed once.
Text Symbol: 012 = Repetition Period:
Text Symbol: 011 = This job is not required and is therefore not executed.
Text Symbol: 010 = This job is required, but could not be created.
Text Symbol: 009 = This job is not required, but could not be deleted.
Text Symbol: 008 = Next Execution:
Text Symbol: 007 = JobName:
Text Symbol: 006 = Could not delete at least one unnecessary job
Text Symbol: 005 = At least one required job could not be scheduled.
Text Symbol: 004 = Warning! Errors occurred during the automatic configuration of the jobs.
Text Symbol: 003 = Job for Collecting Hourly Values:
Text Symbol: 002 = Job for Collecting Quarter Hourly Values:
Text Symbol: 001 = Job for Collecting Minute Values:
Text Symbol: 000 = Reorganization of the Central Performance History


INCLUDES used within this REPORT BTSCHFUNC

INCLUDE RSALPFDB.
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:

SALP_CHECK_CREATE_BATCH_JOB CALL FUNCTION 'SALP_CHECK_CREATE_BATCH_JOB' IMPORTING REORG_JOB = reorg_st MIN_COLL_JOB = min_st QTR_COLL_JOB = qtr_st HR_COLL_JOB = hr_st EXCEPTIONS START_ERROR = 1 STOP_ERROR = 2 START_STOP_ERROR = 3 CPH_NOT_ACTIVE = 5 OTHERS = 4 .

BP_JOB_SELECT CALL FUNCTION 'BP_JOB_SELECT' EXPORTING jobselect_dialog = 'N' JOBSEL_PARAM_IN = btc * ENDDATE = ' ' * ENDTIME = ' ' * IMPORTING * JOBSEL_PARAM_OUT = btco tables jobselect_joblist = tbtc * JOBNAME_EXT_SEL = * USERNAME_EXT_SEL = EXCEPTIONS INVALID_DIALOG_TYPE = 1 JOBNAME_MISSING = 2 NO_JOBS_FOUND = 3 SELECTION_CANCELED = 4 USERNAME_MISSING = 5 OTHERS = 6 .

BP_JOB_SELECT CALL FUNCTION 'BP_JOB_SELECT' EXPORTING jobselect_dialog = 'N' JOBSEL_PARAM_IN = btc * ENDDATE = ' ' * ENDTIME = ' ' * IMPORTING * JOBSEL_PARAM_OUT = btco tables jobselect_joblist = tbtc * JOBNAME_EXT_SEL = * USERNAME_EXT_SEL = EXCEPTIONS INVALID_DIALOG_TYPE = 1 JOBNAME_MISSING = 2 NO_JOBS_FOUND = 3 SELECTION_CANCELED = 4 USERNAME_MISSING = 5 OTHERS = 6 .

BP_JOB_SELECT CALL FUNCTION 'BP_JOB_SELECT' EXPORTING jobselect_dialog = 'N' JOBSEL_PARAM_IN = btc * ENDDATE = ' ' * ENDTIME = ' ' * IMPORTING * JOBSEL_PARAM_OUT = btco tables jobselect_joblist = tbtc * JOBNAME_EXT_SEL = * USERNAME_EXT_SEL = EXCEPTIONS INVALID_DIALOG_TYPE = 1 JOBNAME_MISSING = 2 NO_JOBS_FOUND = 3 SELECTION_CANCELED = 4 USERNAME_MISSING = 5 OTHERS = 6 .

BP_JOB_SELECT CALL FUNCTION 'BP_JOB_SELECT' EXPORTING jobselect_dialog = 'N' JOBSEL_PARAM_IN = btc * ENDDATE = ' ' * ENDTIME = ' ' * IMPORTING * JOBSEL_PARAM_OUT = btco tables jobselect_joblist = tbtc * JOBNAME_EXT_SEL = * USERNAME_EXT_SEL = EXCEPTIONS INVALID_DIALOG_TYPE = 1 JOBNAME_MISSING = 2 NO_JOBS_FOUND = 3 SELECTION_CANCELED = 4 USERNAME_MISSING = 5 OTHERS = 6 .

SALP_UI_REPORT_BATCH_JOB CALL FUNCTION 'SALP_UI_REPORT_BATCH_JOB' EXPORTING TODO = todo * SERVER = '' * USERNAME = '' * START_DATE = '00000000' * START_TIME = '192700' * CALENDAR_ID = '' IMPORTING STATUS = repstatus CURR_SERVER = repserver * F_CALENDAR = .

BP_JOB_SELECT CALL FUNCTION 'BP_JOB_SELECT' EXPORTING jobselect_dialog = 'N' JOBSEL_PARAM_IN = btc * ENDDATE = ' ' * ENDTIME = ' ' * IMPORTING * JOBSEL_PARAM_OUT = btco tables jobselect_joblist = tbtc * JOBNAME_EXT_SEL = * USERNAME_EXT_SEL = EXCEPTIONS INVALID_DIALOG_TYPE = 1 JOBNAME_MISSING = 2 NO_JOBS_FOUND = 3 SELECTION_CANCELED = 4 USERNAME_MISSING = 5 OTHERS = 6 .

BP_JOB_SELECT CALL FUNCTION 'BP_JOB_SELECT' EXPORTING jobselect_dialog = 'N' JOBSEL_PARAM_IN = btc * ENDDATE = ' ' * ENDTIME = ' ' * IMPORTING * JOBSEL_PARAM_OUT = btco tables jobselect_joblist = tbtc * JOBNAME_EXT_SEL = * USERNAME_EXT_SEL = EXCEPTIONS INVALID_DIALOG_TYPE = 1 JOBNAME_MISSING = 2 NO_JOBS_FOUND = 3 SELECTION_CANCELED = 4 USERNAME_MISSING = 5 OTHERS = 6 .

BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING jobcount = tbtc-jobcount jobname = tbtc-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 .

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING LANGUAGE = SY-LANGU popup_title = tit * START_COLUMN = 10 * START_ROW = 3 text_object = to_name "edit text in se61 (textclass='text in dialog')! HELP_MODAL = 'X' * IMPORTING * CANCELLED = EXCEPTIONS TEXT_NOT_FOUND = 1 OTHERS = 2 .

SALP_SCHEDULE_BTCH_PFDB * caLL FUNCTION 'SALP_SCHEDULE_BTCH_PFDB' * EXPORTING * IN_JN = jn * IN_STEP_TBL1 = step_tbl1 * in_prdhrs = prdhrs * in_prdwks = prdwks * .



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