SAP Reports / Programs

CNV_MBT_PACKAGE_LOAD SAP ABAP Report - Load or Blend Packages in PCL







CNV_MBT_PACKAGE_LOAD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The package load program helps to combine packages from source client to the destination client( current client )...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter CNV_MBT_PACKAGE_LOAD 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

CNV_MBT_LOAD - Load/blend package


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_PACKAGE_LOAD. "Basic submit
SUBMIT CNV_MBT_PACKAGE_LOAD AND RETURN. "Return to original report after report execution complete
SUBMIT CNV_MBT_PACKAGE_LOAD 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: SO_PACK = Source Package
Selection Text: P_SPROJ = Sub Project
Selection Text: P_SCRIO = Scenario
Selection Text: P_SCLI = Source Client
Selection Text: P_PROJ = Project
Selection Text: P_PRCTYP = Process Type
Selection Text: P_PACKT = Package description
Selection Text: P_NPACK = New Package
Title: Load or Blend Packages in PCL
Text Symbol: 026 = Load Procedure in progress
Text Symbol: 025 = Namespace Problem
Text Symbol: 024 = Continue ?
Text Symbol: 023 = : chosen in SAP system.
Text Symbol: 022 = : chosen in cutomer system.
Text Symbol: 021 = no
Text Symbol: 020 = from package
Text Symbol: 019 = Log display
Text Symbol: 018 = View log of package creation ?
Text Symbol: 017 = line number :
Text Symbol: 016 = was not loaded properly!!
Text Symbol: 015 = records inserted
Text Symbol: 014 = is a duplicate
Text Symbol: 013 = records inserted
Text Symbol: 012 = Table
Text Symbol: 011 = Create Subproject
Text Symbol: 010 = Do you want to create this sub-project?
Text Symbol: 009 = Create Project
Text Symbol: 008 = Do you want to create a new project ?
Text Symbol: 003 = CNV_MBT
Text Symbol: 002 = Standard Package
Text Symbol: 001 = Load Program with Generic Logic


INCLUDES used within this REPORT CNV_MBT_PACKAGE_LOAD

INCLUDE CNV_MBT_PACKAGE_LOAD_TOP.


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_ADM_PROJECT_CHECK CALL FUNCTION 'CNV_MBT_ADM_PROJECT_CHECK' EXPORTING project = p_proj IMPORTING no_exist = gv_proj_flag EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-008 textline2 = p_proj titel = text-009 IMPORTING answer = gv_new_proj EXCEPTIONS OTHERS = 1.

POPUP_CONTINUE_YES_NO * CALL FUNCTION 'POPUP_CONTINUE_YES_NO' * EXPORTING * TEXTLINE1 = GV_POP_DESCR1 * TEXTLINE2 = GV_POP_DESCR2 * TITEL = TEXT-025 * IMPORTING * ANSWER = GV_CHANGE * EXCEPTIONS * OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = gv_pop_descr1 textline2 = gv_pop_descr2 titel = text-025 * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING answer = gv_change EXCEPTIONS OTHERS = 1.

POPUP_CONTINUE_YES_NO * CALL FUNCTION 'POPUP_CONTINUE_YES_NO' * EXPORTING * TEXTLINE1 = GV_POP_DESCR1 * TEXTLINE2 = GV_POP_DESCR2 * TITEL = TEXT-025 * IMPORTING * ANSWER = GV_CHANGE * EXCEPTIONS * OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = gv_pop_descr1 textline2 = gv_pop_descr2 titel = text-025 * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING answer = gv_change EXCEPTIONS OTHERS = 1.

CNV_MBT_ADM_PROJECT_CREATE CALL FUNCTION 'CNV_MBT_ADM_PROJECT_CREATE' EXPORTING project = p_proj EXCEPTIONS project_already_exists = 1 initial_project = 2 OTHERS = 3.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'CNV_MBT_PACKAGE_LOAD' dynumb = '1000' TABLES dynpfields = ys_dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 stepl_not_found = 10 OTHERS = 11.

CNV_MBT_ADM_SUBPROJECT_CHECK CALL FUNCTION 'CNV_MBT_ADM_SUBPROJECT_CHECK' EXPORTING subproject = p_sproj project = p_proj IMPORTING no_exist = gv_sproj_flag EXCEPTIONS wrong_project = 1 wrong_client = 2 OTHERS = 3.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-010 textline2 = p_sproj titel = text-011 IMPORTING answer = gv_new_sproj EXCEPTIONS OTHERS = 1.

POPUP_CONTINUE_YES_NO * CALL FUNCTION 'POPUP_CONTINUE_YES_NO' * EXPORTING * TEXTLINE1 = GV_POP_DESCR1 * TEXTLINE2 = GV_POP_DESCR2 * TITEL = SPACE * IMPORTING * ANSWER = GV_CHANGE * EXCEPTIONS * OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = gv_pop_descr1 textline2 = gv_pop_descr2 titel = space * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING answer = gv_change EXCEPTIONS OTHERS = 1.

POPUP_CONTINUE_YES_NO * CALL FUNCTION 'POPUP_CONTINUE_YES_NO' * EXPORTING * TEXTLINE1 = GV_POP_DESCR1 * TEXTLINE2 = GV_POP_DESCR2 * TITEL = SPACE * IMPORTING * ANSWER = GV_CHANGE * EXCEPTIONS * OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = gv_pop_descr1 textline2 = gv_pop_descr2 titel = space * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING answer = gv_change EXCEPTIONS OTHERS = 1.

CNV_MBT_ADM_SUBPROJECT_CREATE CALL FUNCTION 'CNV_MBT_ADM_SUBPROJECT_CREATE' EXPORTING subproject = p_sproj project = p_proj EXCEPTIONS subproject_already_exist = 1 project_doesnot_exist = 2 initial_subproject = 3 OTHERS = 4.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'CNV_MBT_PACKAGE_LOAD' dynumb = '1000' TABLES dynpfields = ys_dynpfields.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'CNV_MBT_PACKAGE_LOAD' dynumb = '1000' TABLES dynpfields = ys_dynpfields.

CNV_MBT_ADM_NEXT_PACKAGE_NR CALL FUNCTION 'CNV_MBT_ADM_NEXT_PACKAGE_NR' IMPORTING packid = p_npack EXCEPTIONS limit_reached = 1 incorrect_number_range = 2 OTHERS = 3.

CNV_MBT_ADM_PACKAGE_EXIST





CALL FUNCTION 'CNV_MBT_ADM_PACKAGE_EXIST' EXPORTING mandt = sy-mandt packid = p_npack IMPORTING no_exist = gv_pack_no_exist EXCEPTIONS OTHERS = 1.

CNV_MBT_L_PROTOCOL_INIT CALL FUNCTION 'CNV_MBT_L_PROTOCOL_INIT' EXPORTING packid = p_npack phase = space activity_id = gc_activity IMPORTING lognumber = gs_load_state-lognumber EXCEPTIONS OTHERS = 1.

CNV_MBT_L_PROTOCOL_MESSAGE CALL FUNCTION 'CNV_MBT_L_PROTOCOL_MESSAGE' EXPORTING msgty = 'I' msgid = 'CNV_MBT' msgno = '056' msgv1 = p_npack msgv2 = gs_date msgv3 = gs_time msgv4 = sy-uname level = '2' probclass = '2' EXCEPTIONS OTHERS = 1.

CNV_MBT_L_PROTOCOL_MESSAGE CALL FUNCTION 'CNV_MBT_L_PROTOCOL_MESSAGE' EXPORTING msgty = 'I' msgid = 'CNV_MBT' msgno = '057' msgv1 = p_npack msgv2 = gs_date msgv3 = gs_time msgv4 = gs_log_state level = '2' probclass = '2' EXCEPTIONS OTHERS = 1.

CNV_MBT_L_PROTOCOL_WRITE_DB CALL FUNCTION 'CNV_MBT_L_PROTOCOL_WRITE_DB' EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = 'View log of package creation ?'(018) * TEXTLINE2 = ' ' titel = 'Log display'(019) * START_COLUMN = 25 * START_ROW = 6 cancel_display = ' ' IMPORTING answer = gv_ans EXCEPTIONS OTHERS = 1.

APPL_LOG_DISPLAY_INTERN CALL FUNCTION 'APPL_LOG_DISPLAY_INTERN' EXPORTING object = 'CAGTFBS' subobject = 'SLOMBT' external_number_display_length = 100 EXCEPTIONS object_not_found = 1 subobject_not_found = 2 OTHERS = 3.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = 'PACKID' reduced_status_only = 'X' IMPORTING select_value = lv_selectvalue TABLES fields = lt_fields full_table = yt_pack EXCEPTIONS full_table_empty = 1 no_tablestructure_given = 2 no_tablefields_in_dictionary = 3 more_then_one_selectfield = 4 no_selectfield = 5 OTHERS = 6.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = 'SUBPROJECT' reduced_status_only = space IMPORTING select_value = ls_selectvalue TABLES fields = lt_fields full_table = lt_sproj EXCEPTIONS full_table_empty = 1 no_tablestructure_given = 2 no_tablefields_in_dictionary = 3 more_then_one_selectfield = 4 no_selectfield = 5 OTHERS = 6.

CNV_MBT_STATE_PHASES_GET CALL FUNCTION 'CNV_MBT_STATE_PHASES_GET' EXPORTING packid = p_npack TABLES t_phases = gt_cnvmbtphases EXCEPTIONS OTHERS = 1.

CNV_MBT_PACK_PROC_TREE_MERGE * call function 'CNV_MBT_PACK_PROC_TREE_MERGE' * exporting * client = p_scli * packid = p_npack * tables * gt_cnvmbtimg_new = yt_cnvmbtimg * exceptions * others = 1.

CNV_MBT_PROCESS_TREE_MERGE_46 CALL FUNCTION 'CNV_MBT_PROCESS_TREE_MERGE_46' EXPORTING packid = so_pack-low client = p_scli cust_pckid = p_npack TABLES et_cnvmbtimg = yt_cnvmbtimg.

CNV_MBT_PACK_PROC_TREE_CHECK CALL FUNCTION 'CNV_MBT_PACK_PROC_TREE_CHECK' EXPORTING im_packid = p_npack im_display = 'X' IMPORTING ex_error = gv_error TABLES et_errors = lt_message EXCEPTIONS OTHERS = 1.

CNV_MBT_STATE_PHASES_GET CALL FUNCTION 'CNV_MBT_STATE_PHASES_GET' EXPORTING packid = p_npack TABLES t_phases = lt_phase EXCEPTIONS OTHERS = 1.

CNV_MBT_ADM_ACTIVE_MODIFY CALL FUNCTION 'CNV_MBT_ADM_ACTIVE_MODIFY' EXPORTING subproject = p_sproj packid = p_npack phase = ls_phase-phase EXCEPTIONS subproject_doesnot_exist = 1 OTHERS = 2.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = ys_cnvmbtspeztab-tabname IMPORTING x030l_wa = ls_x030_wa TABLES dfies_tab = lt_dfies EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

CNV_MBT_SCHEME_INSTANTIATE CALL FUNCTION 'CNV_MBT_SCHEME_INSTANTIATE' EXPORTING calling_program = sy-cprog scheme_program = 'CNV_MBT_SPZ_SCHEM' scheme_name = 'MAIN' TABLES result_tab = lt_source EXCEPTIONS schemeprog_not_found = 1 scheme_not_found = 2 scheme_syntax_error = 3 generate_error = 4 forced_linesplit = 5 table_not_exists = 6 OTHERS = 7.

CNV_MBT_RFC_INIT CALL FUNCTION 'CNV_MBT_RFC_INIT' EXPORTING packid = p_npack selected_targets = lv_selected_targets test = space force_names = 'X' TABLES t_ex_cnvmbtdest = lt_cnvmbtdest t_ip_cnvmbtprocdest = lt_cnvmbtprocdest EXCEPTIONS unknown_subproject = 1 OTHERS = 2.

CNV_MBT_PACK_HIERARCHY_GET CALL FUNCTION 'CNV_MBT_PACK_HIERARCHY_GET' EXPORTING client = p_scli packid = so_pack-low TABLES t_dep_packids = gt_packid EXCEPTIONS packid_not_existing = 2 OTHERS = 3.

CNV_MBT_ADM_ACTIVE_PACKID CALL FUNCTION 'CNV_MBT_ADM_ACTIVE_PACKID' EXPORTING subproject = p_sproj IMPORTING packid = gs_packid-packid EXCEPTIONS subproj_noexist_or_noactv_pack = 1 OTHERS = 2.




CNV_MBT_ADM_VERSION_GET CALL FUNCTION 'CNV_MBT_ADM_VERSION_GET' EXPORTING im_scenario = gv_scenario IMPORTING ex_version = lv_version EXCEPTIONS version_unknown = 1 OTHERS = 2.

CNV_MBT_ADM_PACKAGE_CREATE CALL FUNCTION 'CNV_MBT_ADM_PACKAGE_CREATE' EXPORTING packid = p_npack pack_descr = p_packt pack_type = 'P' scenario = gv_scenario version = lv_version subproject = p_sproj orig_pack = so_pack-low orig_client = p_scli context_id = p_guid TABLES t_packdp = gt_packdp EXCEPTIONS package_already_exists = 1 insert_error_text = 2 insert_error_dep = 3 enginge_error = 5 OTHERS = 4.

CNV_MBT_ADM_SET_TDMS_TYPE CALL FUNCTION 'CNV_MBT_ADM_SET_TDMS_TYPE' EXPORTING im_packid = p_npack im_type = p_prctyp EXCEPTIONS update_failed = 1 OTHERS = 2.

CNV_MBT_USR_INSERT_USER_PACK CALL FUNCTION 'CNV_MBT_USR_INSERT_USER_PACK' EXPORTING ip_packid = p_npack ip_user = sy-uname EXCEPTIONS nonexistent_user = 1 wrong_user_flag = 2 user_already_in_package = 3 nonexistent_package = 4 OTHERS = 5.

CNV_MBT_USR_COPY_USER_TABLES CALL FUNCTION 'CNV_MBT_USR_COPY_USER_TABLES' EXPORTING new_pack = p_npack * OLD_PACK = subproject = p_sproj IMPORTING destination_err = destination_err communication_err = communication_err system_err = system_err EXCEPTIONS no_pack_found = 1 no_insert_possible = 2 subproject_not_found = 3 no_packages = 4 only_one_pack = 5 not_same_subproject = 6 user_copy_not_set = 7 insert_failed = 8 OTHERS = 9 .

CNV_MBT_CR_PROCESS_RULES CALL FUNCTION 'CNV_MBT_CR_PROCESS_RULES' EXPORTING ip_checking_group = ld_checking_group TABLES pt_return = it_cr_return pt_cnvmbtcrval = it_vdb_crval "values 4 CR EXCEPTIONS missing_import_parameter = 1 check_group_not_found = 2 reading_values_failed = 3 reading_fumo_failed = 4 unknown_get_cg_error = 5 no_function_module_name = 6 number_of_check_param_wrong = 7 function_module_does_not_exist = 8 checking_rule_not_found = 9 OTHERS = 10.



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