SAP Reports / Programs

CP_REF_TSK_MASS_CHANGE SAP ABAP Report - Mass Change: Reference Operation Set Reference







CP_REF_TSK_MASS_CHANGE 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 CP_REF_TSK_MASS_CHANGE 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

CA95N - Mass Change:Ref.OperationSet Ref.


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 CP_REF_TSK_MASS_CHANGE. "Basic submit
SUBMIT CP_REF_TSK_MASS_CHANGE AND RETURN. "Return to original report after report execution complete
SUBMIT CP_REF_TSK_MASS_CHANGE 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: PN_VINTV = D Operation increment
Selection Text: PN_VPLAL = D Group Counter
Selection Text: PN_VPLNR = D Group
Selection Text: P_AENNR = D Change Number
Selection Text: P_DATUB = D Valid To
Selection Text: P_DATUV = D Valid From
Selection Text: P_DELETE = Delete Multiple Entries
Selection Text: P_MMATNR = D Material
Selection Text: P_MWERKS = D Plant
Selection Text: P_PLNAL = D Group Counter
Selection Text: P_PLNNR = D Group
Selection Text: P_PLNTY = D Task List Type
Selection Text: P_STATU = D Task List Status
Selection Text: P_STTAG = D Date
Selection Text: P_VAGRP = D Planner Group
Selection Text: P_VERWE = D Usage
Selection Text: P_VPLAL = D Group Counter
Selection Text: P_VPLNR = D Group
Selection Text: P_WERKS = D Plant
Title: Mass Change: Reference Operation Set Reference
Text Symbol: 300 = Edit with...
Text Symbol: 080 = Enter New Ref.OperationSet
Text Symbol: 070 = Other Materials for Selected Set
Text Symbol: 060 = Change Statuses for Selected Set
Text Symbol: 035 = PlntOp
Text Symbol: 010 = Validity
Text Symbol: 011 = Rout
Text Symbol: 012 = Material
Text Symbol: 013 = Selection Period
Text Symbol: 014 = Valid From
Text Symbol: 015 = to
Text Symbol: 016 = Old Ref. Op. Set
Text Symbol: 017 = New Ref. Op. Set
Text Symbol: 018 = Action Parameter
Text Symbol: 019 = Background Processing
Text Symbol: 020 = Save Changes Even If Errors Occur
Text Symbol: 021 = Other TLs
Text Symbol: 022 = Dis. TL





Text Symbol: 023 = Other Materials
Text Symbol: 024 = DisMat
Text Symbol: 025 = Mass Delete Ref.Op.Set Reference
Text Symbol: 026 = All selected references will be deleted!
Text Symbol: 027 = Are You Sure?
Text Symbol: 028 = Exit Program
Text Symbol: 029 = Some data records were changed
Text Symbol: 030 = Do you want to save it?
Text Symbol: 031 = Data will be lost
Text Symbol: 032 = Plant in TskLtHd
Text Symbol: 033 = PlntTLH
Text Symbol: 034 = Plant in Operation


INCLUDES used within this REPORT CP_REF_TSK_MASS_CHANGE

INCLUDE FC27DATE.


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:

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'OPR_CLASS_DATA' CHANGING ct_fieldcat = ct_fieldcat.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'OPR_CLASS_DATA' CHANGING ct_fieldcat = ct_fieldcat.

CP_CL_S_OPR_PROVIDE CALL FUNCTION 'CP_CL_S_OPR_PROVIDE' TABLES e_opr_class_data = lt_opr_data.

CP_CL_S_OPR_PROVIDE CALL FUNCTION 'CP_CL_S_OPR_PROVIDE' EXPORTING i_date_from = ls_opr_data-datuv i_date_to = ls_opr_data-datub i_plnty = ls_opr_data-vplty i_plnnr = ls_opr_data-vplnr i_plnal = ls_opr_data-vplal TABLES e_opr_class_data = lt_ref_data EXCEPTIONS wrong_key = 1 OTHERS = 2.

CP_CL_S_TSK_PROVIDE CALL FUNCTION 'CP_CL_S_TSK_PROVIDE' EXPORTING i_plnty = ls_opr_data-plnty i_plnnr = ls_opr_data-plnnr i_plnal = ls_opr_data-plnal i_date_from = ls_opr_data-datuv i_date_to = ls_opr_data-datub TABLES e_tsk_class_data = lt_tsk_data EXCEPTIONS wrong_key = 1 OTHERS = 2.

CZ_CL_S_MTK_PROVIDE CALL FUNCTION 'CZ_CL_S_MTK_PROVIDE' EXPORTING i_plnty = ls_opr_data-plnty i_plnnr = ls_opr_data-plnnr i_plnal = ls_opr_data-plnal TABLES e_mtk_class_data = lt_mtk_data EXCEPTIONS wrong_key = 1 OTHERS = 2.

CP_OV_OPR_SCREEN_PROCESS CALL FUNCTION 'CP_OV_OPR_SCREEN_PROCESS' EXPORTING i_date_from = ls_oprlist-datuv i_date_to = ls_oprlist-datub i_plnty = ls_oprlist-plnty i_plnnr = ls_oprlist-plnnr i_plnal = ls_oprlist-plnal i_plnfl = ls_oprlist-plnfl i_plnkn = ls_oprlist-plnkn i_ident_ref = ls_oprlist-ident_ref i_ident = ls_oprlist-ident i_vornr = ls_oprlist-vornr i_flg_sub_opr_display = 'X' EXCEPTIONS wrong_key = 1 OTHERS = 2.

CP_CL_S_TSK_PROVIDE CALL FUNCTION 'CP_CL_S_TSK_PROVIDE' EXPORTING i_plnty = ls_oprlist-plnty i_plnnr = ls_oprlist-plnnr i_plnal = ls_oprlist-plnal TABLES e_tsk_class_data = lt_tsk_data EXCEPTIONS wrong_key = 1 OTHERS = 2.

CZ_CL_S_MTK_PROVIDE CALL FUNCTION 'CZ_CL_S_MTK_PROVIDE' EXPORTING i_plnty = ls_oprlist-plnty i_plnnr = ls_oprlist-plnnr i_plnal = ls_oprlist-plnal TABLES e_mtk_class_data = lt_mtk_data * EXCEPTIONS * WRONG_KEY = 1 * OTHERS = 2 .

CP_MC_APPL_LOG_EXISTENCE_CHECK CALL FUNCTION 'CP_MC_APPL_LOG_EXISTENCE_CHECK' IMPORTING e_flg_log_entries_available = flg_log_entries_available.

CP_MC_APPL_LOG_DISPLAY CALL FUNCTION 'CP_MC_APPL_LOG_DISPLAY' EXCEPTIONS no_messages_available = 1.

CP_MC_OPR_SET CALL FUNCTION 'CP_MC_OPR_SET' EXPORTING i_mandt = sy-mandt i_plnty = ls_opr_data-plnty i_plnnr = ls_opr_data-plnnr i_plnal = ls_opr_data-plnal i_plnfl = ls_opr_data-plnfl i_plnkn = ls_opr_data-plnkn i_ident = ls_opr_data-ident i_vornr = ls_opr_data-vornr i_ltxa1 = ls_opr_data-ltxa1.






CP_CC_S_DELETE_BY_OPR CALL FUNCTION 'CP_CC_S_DELETE_BY_OPR' EXPORTING i_ecn_s = g_selection-aennr i_key_date_s = i_keydate i_opr_ident = ls_opr_ident * IMPORTING * E_OPR_LOCK = * E_ECM_DATA_ERROR_TYPE = EXCEPTIONS no_authority = 1 no_valid_operation = 2 operation_not_locked = 3 path_incomplete = 4 ecm_data_not_suitable = 5 operation_is_branch_operation = 6 OTHERS = 7 .

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_CC_S_CREATE_REF_BY_OPR CALL FUNCTION 'CP_CC_S_CREATE_REF_BY_OPR' EXPORTING i_ecn_s = g_selection-aennr i_key_date_s = i_keydate i_flg_opr_check = 'X' i_plnty = ls_opr_data-plnty i_plnnr = ls_opr_data-plnnr i_plnal = ls_opr_data-plnal i_plnfl = ls_opr_data-plnfl i_ident = ls_opr_data-ident i_vornr = ls_opr_data-vornr i_vplnr = ls_opr_data-vplnr i_vplal = ls_opr_data-vplal i_ktsch = ls_opr_data-ktsch i_ltxa1 = ls_opr_data-ltxa1 CHANGING c_vintv = ls_opr_data-vintv EXCEPTIONS operation_not_consistent = 1 no_authority = 2 operation_not_locked = 3 ident_already_exists = 4 wrong_ident_type = 5 no_valid_sequence = 6 wrong_operation_number = 7 path_incomplete = 8 ecm_data_not_suitable = 9 wrong_task_type = 10 reloading_not_allowed = 11 OTHERS = 12.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_CC_S_CREATE_WC_REF_BY_OPR CALL FUNCTION 'CP_CC_S_CREATE_WC_REF_BY_OPR' EXPORTING i_ecn_s = g_selection-aennr i_key_date_s = i_keydate i_flg_opr_check = 'X' i_opr_class_data = ls_opr_data * IMPORTING * E_IDENT = * E_PLNKN = * E_ZAEHL = EXCEPTIONS operation_not_consistent = 1 no_authority = 2 operation_not_locked = 3 ident_already_exists = 4 wrong_ident_type = 5 no_valid_sequence = 6 wrong_operation_number = 7 path_incomplete = 8 ecm_data_not_suitable = 9 wrong_task_type = 10 reloading_not_allowed = 11 OTHERS = 12 .

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CC_CHANGE_NUMBER_CHECK CALL FUNCTION 'CC_CHANGE_NUMBER_CHECK' EXPORTING eccin = l_ccin IMPORTING adatuv = e_keydate EXCEPTIONS OTHERS = 18.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_MC_APPL_LOG_MSG_PROVIDE CALL FUNCTION 'CP_MC_APPL_LOG_MSG_PROVIDE' EXPORTING i_errors_only = 'X' TABLES e_return = lt_return EXCEPTIONS no_messages_available = 1 OTHERS = 2.

CP_MC_OPEN CALL FUNCTION 'CP_MC_OPEN' EXPORTING i_message_handler = 'A'.

CP_MC_CLOSE CALL FUNCTION 'CP_MC_CLOSE'.

CP_CL_S_OPR_PROVIDE CALL FUNCTION 'CP_CL_S_OPR_PROVIDE' EXPORTING i_date_from = l_datuv i_date_to = l_datub i_plnty = ls_oprlist-plnty i_plnnr = ls_oprlist-plnnr i_plnal = ls_oprlist-plnal i_plnfl = ls_oprlist-plnfl i_plnkn = ls_oprlist-plnkn TABLES e_opr_class_data = lt_opr_data EXCEPTIONS wrong_key = 1 OTHERS = 2.

CP_MC_OPR_SET CALL FUNCTION 'CP_MC_OPR_SET' EXPORTING i_mandt = sy-mandt i_plnty = ls_oprlist-plnty i_plnnr = ls_oprlist-plnnr i_plnal = ls_oprlist-plnal i_plnfl = ls_oprlist-plnfl i_plnkn = ls_oprlist-plnkn i_vornr = ls_oprlist-vornr i_ltxa1 = ls_oprlist-ltxa1.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_MC_OPR_SET CALL FUNCTION 'CP_MC_OPR_SET' EXPORTING i_mandt = sy-mandt i_plnty = ls_oprlist-plnty i_plnnr = ls_oprlist-plnnr i_plnal = ls_oprlist-plnal i_plnfl = ls_oprlist-plnfl i_plnkn = ls_oprlist-plnkn i_vornr = ls_oprlist-vornr i_ltxa1 = ls_oprlist-ltxa1.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_CC_S_RELOAD_BY_OPR CALL FUNCTION 'CP_CC_S_RELOAD_BY_OPR' EXPORTING i_flg_set_lock = 'X' IMPORTING e_opr_lock = lt_opr_lock CHANGING c_opr_ident = lt_opr_ident EXCEPTIONS reloading_not_allowed = 1 OTHERS = 2.

CP_MC_OPEN



CALL FUNCTION 'CP_MC_OPEN' EXPORTING i_message_handler = 'A' i_keep_protocoll = 'X' i_save_protocoll = 'X'.

CP_MC_OPR_SET CALL FUNCTION 'CP_MC_OPR_SET' EXPORTING i_mandt = sy-mandt i_plnty = ls_opr_lock-plnty i_plnnr = ls_opr_lock-plnnr i_plnal = ls_opr_lock-plnal i_plnfl = ls_opr_lock-plnfl i_plnkn = ls_opr_lock-plnkn i_vornr = '' i_ltxa1 = ls_opr_lock-ltxa1.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_CC_S_SAVE_INFO_PROVIDE CALL FUNCTION 'CP_CC_S_SAVE_INFO_PROVIDE' EXCEPTIONS data_to_save = 1 OTHERS = 2.

CP_MC_CLOSE CALL FUNCTION 'CP_MC_CLOSE'.

CP_MC_OPR_SET CALL FUNCTION 'CP_MC_OPR_SET' EXPORTING i_mandt = sy-mandt i_plnty = ls_opr_data-plnty i_plnnr = ls_opr_data-plnnr i_plnal = ls_opr_data-plnal i_plnfl = ls_opr_data-plnfl i_plnkn = ls_opr_data-plnkn i_ident = ls_opr_data-ident i_vornr = ls_opr_data-vornr i_ltxa1 = ls_opr_data-ltxa1.

CP_CC_S_DELETE_BY_OPR CALL FUNCTION 'CP_CC_S_DELETE_BY_OPR' EXPORTING i_ecn_s = g_selection-aennr i_key_date_s = i_keydate i_opr_ident = ls_opr_ident EXCEPTIONS no_authority = 1 no_valid_operation = 2 operation_not_locked = 3 path_incomplete = 4 ecm_data_not_suitable = 5 operation_is_branch_operation = 6 OTHERS = 7.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT'.

CP_CL_S_OPR_UNLOCK CALL FUNCTION 'CP_CL_S_OPR_UNLOCK'.

CP_MC_APPL_LOG_EXISTENCE_CHECK CALL FUNCTION 'CP_MC_APPL_LOG_EXISTENCE_CHECK' IMPORTING e_flg_log_entries_available = flg_log_entries_available.

CC_CHANGE_NUMBER_READ CALL FUNCTION 'CC_CHANGE_NUMBER_READ' EXPORTING eaennr = p_aennr IMPORTING adatuv = l_sttag EXCEPTIONS no_record_found = 1 OTHERS = 2.

CP_CC_S_TSK_EXISTENCE_CHECK CALL FUNCTION 'CP_CC_S_TSK_EXISTENCE_CHECK' EXPORTING i_plnty = g_selection-tsk_vplty i_plnnr = pn_vplnr i_plnal = pn_vplal EXCEPTIONS task_not_found = 1 OTHERS = 2.

RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING report = i_report variant = i_variant IMPORTING r_c = e_return EXCEPTIONS not_authorized = 1 no_report = 2 report_not_existent = 3 report_not_supplied = 4 OTHERS = 5.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'Y' textline1 = text-026 textline2 = text-027 titel = text-025 * START_COLUMN = 25 * START_ROW = 6 cancel_display = ' ' IMPORTING answer = l_answer .

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'Y' textline1 = text-029 textline2 = text-030 titel = text-028 * START_COLUMN = 25 * START_ROW = 6 cancel_display = 'X' IMPORTING answer = l_answer .

RS_VARIANT_CATALOG CALL FUNCTION 'RS_VARIANT_CATALOG' EXPORTING report = l_report IMPORTING sel_variant = sel_variant sel_variant_text = sel_variant_text EXCEPTIONS no_report = 1 report_not_existent = 2 report_not_supplied = 3 no_variants = 4 no_variant_selected = 5 variant_not_existent = 6 OTHERS = 7.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = l_report dynumb = l_dynnr TABLES dynpfields = p_dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 OTHERS = 8.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'Y' textline1 = text-029 textline2 = text-030 titel = text-031 * START_COLUMN = 25 * START_ROW = 6 cancel_display = 'X' IMPORTING answer = l_answer .

CP_MC_OPEN CALL FUNCTION 'CP_MC_OPEN' EXPORTING i_message_handler = 'C'.

CP_CC_S_REFRESH_DATA CALL FUNCTION 'CP_CC_S_REFRESH_DATA' EXCEPTIONS workarea_not_set = 1 OTHERS = 2.

FREE_SELECTIONS_EX_2_WHERE CALL FUNCTION 'FREE_SELECTIONS_EX_2_WHERE' EXPORTING expressions = lt_free_expr IMPORTING where_clauses = l_opr_selection-free_where EXCEPTIONS expression_not_supported = 1 OTHERS = 2.

CP_CC_S_LOAD_COMPLEX_BY_OPR CALL FUNCTION 'CP_CC_S_LOAD_COMPLEX_BY_OPR' EXPORTING i_class = 'P' i_classes_in_workarea = classes_in_workarea i_cpsc_mtk_sel = l_mtk_selection i_cpsc_tsk_sel = l_tsk_selection i_cpsc_opr_sel = l_opr_selection i_date_from = l_datuv i_date_to = l_datub EXCEPTIONS workarea_not_found = 1 class_wrong_type = 2 workarea_wrong_type = 3 class_in_workarea_inconsistent = 4 workarea_not_specified = 5 opr_not_found = 6 no_selection_criteria = 7 invalid_selection_period = 8 key_date_required_for_ecm = 9 OTHERS = 10.

RS_SUPPORT_SELECTIONS CALL FUNCTION 'RS_SUPPORT_SELECTIONS' EXPORTING report = i_report variant = i_variant EXCEPTIONS variant_not_existent = 1 variant_obsolete = 2 OTHERS = 3.

CP_CC_S_REFRESH_DATA CALL FUNCTION 'CP_CC_S_REFRESH_DATA' EXCEPTIONS workarea_not_set = 1 OTHERS = 2.

CP_CC_S_SAVE CALL FUNCTION 'CP_CC_S_SAVE'.

RS_CREATE_VARIANT CALL FUNCTION 'RS_CREATE_VARIANT' EXPORTING curr_report = i_report curr_variant = i_variant vari_desc = ls_desc TABLES vari_contents = lt_contents vari_text = lt_text EXCEPTIONS illegal_report_or_variant = 1 illegal_variantname = 2 not_authorized = 3 not_executed = 4 report_not_existent = 5 report_not_supplied = 6 variant_exists = 7 variant_locked = 8 OTHERS = 9.



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