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

SAPMSSY2 SAP ABAP dialog Program - ABAP Job Control, ABAP Job Runtime Environment







SAPMSSY2 is a standard Module pool for a dialog screen ABAP Program 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 SAPMSSY2 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

SBTA - Test background processing


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


Text pool values


Title: ABAP Job Control, ABAP Job Runtime Environment
Text Symbol: 001 = Tab: BTCCTL, Op: UPDATE
Text Symbol: 002 = Tab: BTCCTL, Op: INSERT
Text Symbol: 003 = Table: TBTCS
Text Symbol: 004 = Table: TBTCO
Text Symbol: 005 = Tab: TBTCI, Op: UPDATE
Text Symbol: 006 = Tab: TBTCP, Op: INSERT
Text Symbol: 007 = Tab: TBTCI, Op: SELECT
Text Symbol: 008 = Time
Text Symbol: 009 = Event
Text Symbol: 010 = Tab: BTCEVTJOB, Op: SELECT
Text Symbol: 011 = Tab: BTCEVTJOB, Op: UPDATE
Text Symbol: 012 = Operation modes
Text Symbol: 013 = Server has been deactivated
Text Symbol: 014 = No background processing on this server
Text Symbol: UNT = Jobs


INCLUDES used within this REPORT SAPMSSY2

INCLUDE LBTCHDEF.
INCLUDE RSBTCA2C.
INCLUDE RSADMKEY.
INCLUDE MSSY2MON.


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:

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = cal_indicator date = cal_date factory_calendar_id = cal_id IMPORTING date = cal_date factorydate = cal_fdate workingday_indicator = cal_workday * ajk + : find out what exception comes back EXCEPTIONS calendar_buffer_not_loadable = 1 correct_option_invalid = 2 date_after_range = 3 date_before_range = 4 date_invalid = 5 factory_calendar_not_found = 6 OTHERS = 99.

RSLG_WRITE_SYSLOG_ENTRY CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' " note 1534735 EXPORTING data_word1 = sav_subrc data_word2 = cal_id data_word3 = jobkey sl_message_area = 'EJ' sl_message_subid = 'I' EXCEPTIONS OTHERS = 99.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = cal_indicator date = cal_date factory_calendar_id = cal_id IMPORTING date = cal_date factorydate = cal_fdate workingday_indicator = cal_workday EXCEPTIONS calendar_buffer_not_loadable = 1 correct_option_invalid = 2 date_after_range = 3 date_before_range = 4 date_invalid = 5 factory_calendar_not_found = 6 OTHERS = 99.

RSLG_WRITE_SYSLOG_ENTRY CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' " note 1534735 EXPORTING data_word1 = sav_subrc data_word2 = cal_id data_word3 = jobkey sl_message_area = 'EJ' sl_message_subid = 'I' EXCEPTIONS OTHERS = 99.

FACTORYDATE_CONVERT_TO_DATE CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE' EXPORTING factorydate = cal_fdate factory_calendar_id = cal_id IMPORTING date = cal_date EXCEPTIONS calendar_buffer_not_loadable = 1 factorydate_after_range = 2 factorydate_before_range = 3 factorydate_invalid = 4 factory_calendar_id_missing = 5 factory_calendar_not_found = 6 OTHERS = 99.

RSLG_WRITE_SYSLOG_ENTRY CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' " note 1534735 EXPORTING data_word1 = sav_subrc data_word2 = cal_id data_word3 = jobkey sl_message_area = 'EJ' sl_message_subid = 'I' EXCEPTIONS OTHERS = 99.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = cal_indicator date = cal_date factory_calendar_id = cal_id IMPORTING date = cal_date factorydate = cal_fdate workingday_indicator = cal_workday EXCEPTIONS calendar_buffer_not_loadable = 1 correct_option_invalid = 2 date_after_range = 3 date_before_range = 4 date_invalid = 5 factory_calendar_not_found = 6 OTHERS = 99.

RSLG_WRITE_SYSLOG_ENTRY CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' " note 1534735 EXPORTING data_word1 = sav_subrc data_word2 = cal_id data_word3 = jobkey sl_message_area = 'EJ' sl_message_subid = 'I' EXCEPTIONS OTHERS = 99.

FACTORYDATE_CONVERT_TO_DATE CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE' EXPORTING factorydate = cal_fdate factory_calendar_id = cal_id IMPORTING date = cal_date EXCEPTIONS calendar_buffer_not_loadable = 1 factorydate_after_range = 2 factorydate_before_range = 3 factorydate_invalid = 4 factory_calendar_id_missing = 5 factory_calendar_not_found = 6 OTHERS = 99.

RSLG_WRITE_SYSLOG_ENTRY CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' " note 1534735 EXPORTING data_word1 = sav_subrc data_word2 = cal_id data_word3 = jobkey sl_message_area = 'EJ' sl_message_subid = 'I' EXCEPTIONS OTHERS = 99.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

RZL_STRG_READ_I CALL FUNCTION 'RZL_STRG_READ_I' EXPORTING name = 'TOTAL_BTCNO' IMPORTING value = total_btcwp EXCEPTIONS argument_error = 1 not_found = 2 send_error = 3 OTHERS = 4.

RSLG_WRITE_SYSLOG_ENTRY CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' EXPORTING data_word1 = tbtco-jobname data_word2 = tbtco-jobcount sl_message_area = resched_failed(2) sl_message_subid = resched_failed+2(1) EXCEPTIONS data_missing = 0 data_words_problem = 0 other_problem = 0 pre_params_problem = 0 OTHERS = 0.

RSLG_WRITE_SYSLOG_ENTRY CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' EXPORTING data_word1 = p_step-jobname data_word2 = p_step-jobcount data_word3 = p_step-stepcount sl_message_area = 'EJ' sl_message_subid = 'G' EXCEPTIONS OTHERS = 99.

RZL_STRG_READ_C CALL FUNCTION 'RZL_STRG_READ_C' EXPORTING name = class_a_wp_ident IMPORTING value = num_res_char EXCEPTIONS not_found = 4 OTHERS = 99.

ENQUEUE_ESTBTCO CALL FUNCTION 'ENQUEUE_ESTBTCO' EXPORTING jobname = jobname jobcount = jobcount _scope = '1' EXCEPTIONS foreign_lock = 4 system_failure = 8 OTHERS = 8.

DEQUEUE_ESTBTCO CALL FUNCTION 'DEQUEUE_ESTBTCO' EXPORTING jobname = jobname jobcount = jobcount _scope = '1' EXCEPTIONS OTHERS = 99.

ENQUEUE_ESBTCOMSET





CALL FUNCTION 'ENQUEUE_ESBTCOMSET' EXPORTING setname = set_name startdate = start_date starttime = start_time EXCEPTIONS foreign_lock = 4 system_failure = 8 OTHERS = 8.

DEQUEUE_ESBTCOMSET CALL FUNCTION 'DEQUEUE_ESBTCOMSET' EXPORTING setname = set_name startdate = start_date starttime = start_time EXCEPTIONS OTHERS = 99.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING external_program_active = curr_xpgflag jobcount = curr_jobcount jobname = curr_jobname stepcount = curr_stepcount EXCEPTIONS no_runtime_info = 1 OTHERS = 99.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = del_jobcount jobname = del_jobname EXCEPTIONS OTHERS = 4.

BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING jobname = del_jobname jobcount = del_jobcount * FORCEDMODE = FORCE EXCEPTIONS OTHERS = 4.

RZL_SWITCH_TO_BA CALL FUNCTION 'RZL_SWITCH_TO_BA' EXPORTING baname = opmode EXCEPTIONS argument_error = 4 OTHERS = 4.

OMS_GET_OPMODE_ON_DATE CALL FUNCTION 'OMS_GET_OPMODE_ON_DATE' EXPORTING date = except_end_date time = except_end_time IMPORTING opmode_name = opmode_name opmode_endtime = normal_mode_end_time EXCEPTIONS invalid_date = 1 invalid_time = 2 no_opmode_found = 3 OTHERS = 4.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING eventid = server_down eventparm = already_marked EXCEPTIONS no_runtime_info = 1 OTHERS = 2.

BP_AL_ABORTED_JOB_REP CALL FUNCTION 'BP_AL_ABORTED_JOB_REP' EXPORTING jobname = tbtco-jobname jobcount = tbtco-jobcount EXCEPTIONS OTHERS = 1.

TH_SERVER_LIST CALL FUNCTION 'TH_SERVER_LIST' EXPORTING services = batch TABLES list = msg_srv_list EXCEPTIONS OTHERS = 99.

ENQUEUE_EBTCRMTCLN CALL FUNCTION 'ENQUEUE_EBTCRMTCLN' EXPORTING btcserver = excl_lock_server _scope = '1' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_EBTCRMTCLN CALL FUNCTION 'DEQUEUE_EBTCRMTCLN' EXPORTING btcserver = excl_lock_server.

DEQUEUE_ESTBTCO CALL FUNCTION 'DEQUEUE_ESTBTCO' EXPORTING jobname = jobname jobcount = jcnt _scope = '1' EXCEPTIONS OTHERS = 99.

BP_NEW_FUNC_CHECK CALL FUNCTION 'BP_NEW_FUNC_CHECK' EXPORTING interception_action = 'r' IMPORTING interception = int_value EXCEPTIONS wrong_action = 1 no_authority = 2 OTHERS = 3.

BP_JOBCONTEXT_ADD CALL FUNCTION 'BP_JOBCONTEXT_ADD' EXPORTING jobname = wa_exec_jobs-jobname jobcount = wa_exec_jobs-jobcount TABLES jobcontexts = jobcontext EXCEPTIONS empty_contexts_table = 1 empty_contexttypes_table = 2 missing_jobname_or_jobcount = 3 incomplete_context = 4 invalid_context_type = 5 job_for_context_not_found = 6 unknown_job_error = 7 duplicate_context_record = 8 job_locking_error = 9 OTHERS = 10.

BP_NEW_FUNC_CHECK CALL FUNCTION 'BP_NEW_FUNC_CHECK' EXPORTING interception_action = 'r' IMPORTING interception = int_value EXCEPTIONS wrong_action = 1 no_authority = 2 OTHERS = 3.

BP_JOBCONTEXT_ADD CALL FUNCTION 'BP_JOBCONTEXT_ADD' EXPORTING jobname = wa_exec_jobs-jobname jobcount = wa_exec_jobs-jobcount TABLES jobcontexts = jobcontext EXCEPTIONS empty_contexts_table = 1 empty_contexttypes_table = 2 missing_jobname_or_jobcount = 3 incomplete_context = 4 invalid_context_type = 5 job_for_context_not_found = 6 unknown_job_error = 7 duplicate_context_record = 8 job_locking_error = 9 OTHERS = 10.

LOAD_PRINT_PARAMETERS CALL FUNCTION 'LOAD_PRINT_PARAMETERS' EXPORTING key = old_priparkey IMPORTING key_found = found EXCEPTIONS error_occured = 1 OTHERS = 2.

RSLG_WRITE_SYSLOG_ENTRY CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' EXPORTING data_word1 = step_params-jobname data_word2 = step_params-jobcount data_word3 = step_params-stepcount sl_message_area = 'EJ' sl_message_subid = 'F' EXCEPTIONS OTHERS = 99.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING in_parameters = new_in_priparams mode = 'BATCH' no_dialog = 'X' IMPORTING out_parameters = new_out_priparams valid = v EXCEPTIONS archive_info_not_found = 1 invalid_print_params = 2 invalid_archive_params = 3 OTHERS = 4.




STORE_PRINT_PARAMETERS CALL FUNCTION 'STORE_PRINT_PARAMETERS' EXPORTING in_parameters = new_out_priparams applikation = 'B' user = step_params-authcknam priprog = priprog IMPORTING key = new_priparkey EXCEPTIONS error_occured = 1 OTHERS = 2.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = evt_history_wa-eventguid.

TH_SERVER_LIST CALL FUNCTION 'TH_SERVER_LIST' EXPORTING services = batch_service TABLES list = servers EXCEPTIONS no_server_list = 1 OTHERS = 2.

ENQUEUE_ESTBTCO CALL FUNCTION 'ENQUEUE_ESTBTCO' EXPORTING jobname = jobname jobcount = jobcount _wait = 'X' _scope = '1' EXCEPTIONS foreign_lock = 4 system_failure = 8 OTHERS = 8.

TH_SERVER_LIST CALL FUNCTION 'TH_SERVER_LIST' EXPORTING services = all_service active_server = 0 TABLES list = all_servers EXCEPTIONS no_server_list = 1 OTHERS = 2.

BP_EPP_READ_FROM_DB_AND_SET CALL FUNCTION 'BP_EPP_READ_FROM_DB_AND_SET' EXPORTING i_jobname = p_jobname i_jobcount = p_jobcount EXCEPTIONS job_not_found_in_db = 1 error_setting_epp = 2 OTHERS = 3.



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