SAP Reports / Programs

CNV_MBT_STATE_REFRESH SAP ABAP Report - mbt pcl state information refresh







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


Text pool values


Title: mbt pcl state information refresh
Text Symbol: 010 = Status information has been refreshed
Text Symbol: 011 = Status Refresh has detected ERRORS
Text Symbol: 012 = Active Phase contains ERRORS
Text Symbol: 100 = Transfering logs into Control system
Text Symbol: 101 = Updating status of activities


INCLUDES used within this REPORT CNV_MBT_STATE_REFRESH

INCLUDE CNV_MBT_SM_MACROS.


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:

CNV_MBT_PACK_ACTIVE_CHECK CALL FUNCTION 'CNV_MBT_PACK_ACTIVE_CHECK' EXPORTING packid = gd_packid IMPORTING phase = gd_phase * SUBPROJECT = * PROJECT = EXCEPTIONS packid_does_not_exist = 1 packid_is_not_active = 2 subproject_invalid_or_initial = 3 OTHERS = 4.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING destination = gd_current_destination EXCEPTIONS destination_not_open = 1 OTHERS = 2.

CNV_MBT_L_STATE_REFRESH CALL FUNCTION 'CNV_MBT_L_STATE_REFRESH' DESTINATION gd_current_destination EXPORTING FORCE_UPDATE_REMOTE = 'X' TABLES im_cnvmbtstate = gt_cnvmbtstate_dest EXCEPTIONS OTHERS = 1.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING destination = gd_current_destination EXCEPTIONS destination_not_open = 1 OTHERS = 2.

CNV_MBT_L_STATE_REFRESH CALL FUNCTION 'CNV_MBT_L_STATE_REFRESH' DESTINATION gd_current_destination EXPORTING FORCE_UPDATE_REMOTE = 'X' TABLES im_cnvmbtstate = gt_cnvmbtstate_dest EXCEPTIONS OTHERS = 1.

CNV_MBT_PC_ACTIVITY_START CALL FUNCTION 'CNV_MBT_PC_ACTIVITY_START' EXPORTING packid = gd_packid phase = gd_phase activity_id = gt_activity_info-sa_activity_id * AND_RETURN = 'X' * VARIANT = * LOG_EXECUTION = ' ' EXCEPTIONS transaction_does_not_exist = 1 program_does_not_exist = 2 no_authority = 3 scheduling_error = 4 variant_not_maintained = 5 destination_not_maint = 6 activity_log_error = 7 OTHERS = 8.

CNV_MBT_PROTOCOL_TRANSFER CALL FUNCTION 'CNV_MBT_PROTOCOL_TRANSFER' EXPORTING im_extnumber = gt_cnvmbtstate-protid im_lognumber = gt_cnvmbtstate-lognumber destination_id = gt_cnvmbtstate-destination im_scenario = ld_scenario im_sessionid = gt_cnvmbtstate-session_id IMPORTING ex_lognumber = gd_state_lognumber EXCEPTIONS no_log_found = 1 invalid_call = 2 connection_failure = 3 internal_error = 4 OTHERS = 5.

CNV_MBT_PROTOCOL_TRANSFER CALL FUNCTION 'CNV_MBT_PROTOCOL_TRANSFER' EXPORTING im_extnumber = gt_cnvmbtsubstate-protid im_lognumber = gt_cnvmbtsubstate-lognumber destination_id = gt_cnvmbtsubstate-destination im_scenario = ld_scenario IMPORTING ex_lognumber = gd_substate_lognumber EXCEPTIONS no_log_found = 1 invalid_call = 2 connection_failure = 3 internal_error = 4 OTHERS = 5.

DB_COMMIT CALL FUNCTION 'DB_COMMIT' .

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = p_perc text = ld_text EXCEPTIONS OTHERS = 1.

CNV_MBT_L_STATE_SESSION_INFO CALL FUNCTION 'CNV_MBT_L_STATE_SESSION_INFO' EXPORTING im_session_id = gt_cnvmbtstate-session_id activity_info = ' ' subactivity_info = 'X' * IMPORTING * EX_CNVMBTSTATE = TABLES * T_IN_SESSION_ID = * T_EX_CNVMBTSTATE = t_ex_cnvmbtsubstate = lt_cnvmbtsubstate .

CNV_MBT_PC_JOBS_GET CALL FUNCTION 'CNV_MBT_PC_JOBS_GET' EXPORTING packid = gd_packid phase = gd_phase * ACTIVITY_ID = * CRT_TIME_ID = gen_flag = 'X' * IMPORTING * S_EX_CNVMBTJOBS = TABLES t_ex_cnvmbtjobs = lt_cnvmbtjobs EXCEPTIONS no_data_found = 1 OTHERS = 2 .

CNV_MBT_STATE_GET CALL FUNCTION 'CNV_MBT_STATE_GET' EXPORTING packid = gd_packid phase = gd_phase activity_id = lt_cnvmbtjobs-activity_id * EXEC_NUM = * ALL_AS_TABLE = IMPORTING state_tec = ld_state_tec state_log = ld_state_log aborted = ld_aborted * LAST_EXEC_NUM = * TABLES * T_EX_CNVMBTSTATE = EXCEPTIONS entry_does_not_exist = 1 OTHERS = 2 .

BP_JOB_READ CALL FUNCTION 'BP_JOB_READ' EXPORTING job_read_jobcount = lv_net_state-jobcount job_read_jobname = lv_net_state-jobname job_read_opcode = lc_read_jobhead_only IMPORTING job_read_jobhead = lv_jobhead EXCEPTIONS invalid_opcode = 1 job_doesnt_exist = 2 job_doesnt_have_steps = 3 OTHERS = 4.

CNV_MBT_L_PROTOCOL_OPEN_NEW CALL FUNCTION 'CNV_MBT_L_PROTOCOL_OPEN_NEW' EXPORTING packid = lv_net_state-packid phase = lv_net_state-phase activity_id = lv_net_state-activity_id lognumber_old = lv_net_state-lognumber.

DD_DOMVALUE_TEXT_GET CALL FUNCTION 'DD_DOMVALUE_TEXT_GET' EXPORTING domname = 'CNV_MBT_STATE_LOG' value = lv_status IMPORTING dd07v_wa = lv_status_domain.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.



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