SAP Reports / Programs | Production Planning and Control | Basic Data | Routing(PP-BD-RTG) SAP PP

CP_OPR_ALLOC_FORM SAP ABAP INCLUDE - CPOPRALLOCFORM







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


INCLUDES used within this REPORT CP_OPR_ALLOC_FORM

No INCLUDES are used within this REPORT code!


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:

CP_RC_CTRL_DATA_PROVIDE CALL FUNCTION 'CP_RC_CTRL_DATA_PROVIDE' IMPORTING e_validity = validity e_context = context EXCEPTIONS OTHERS = 1.

CP_CL_S_TSK_SEQ_PROVIDE CALL FUNCTION 'CP_CL_S_TSK_SEQ_PROVIDE' EXPORTING i_date_from = validity-datuv i_date_to = validity-datub i_plnty = context-plnty i_plnnr = context-plnnr IMPORTING e_sequences = sequences.

CP_CL_S_OPR_ALLOCATION_PROVIDE CALL FUNCTION 'CP_CL_S_OPR_ALLOCATION_PROVIDE' EXPORTING i_date_from = validity-datuv i_date_to = validity-datub i_plnty = context-plnty i_plnnr = context-plnnr i_plnkn = g_opr_rep-plnkn IMPORTING e_opr_alloc_data = opr_alloc_data e_opr_alloc_data_inv = opr_alloc_del_data EXCEPTIONS wrong_key = 1.

CP_CC_S_SESSION_DATA_PROVIDE CALL FUNCTION 'CP_CC_S_SESSION_DATA_PROVIDE' IMPORTING e_workarea = workarea.

CP_RC_PARENT_NEXT_MARKED CALL FUNCTION 'CP_RC_PARENT_NEXT_MARKED'.

CP_RC_PARENT_PREV_MARKED CALL FUNCTION 'CP_RC_PARENT_PREV_MARKED'.

CP_RC_PARENT_FIRST_MARKED CALL FUNCTION 'CP_RC_PARENT_FIRST_MARKED'.

CP_RC_PARENT_LAST_MARKED CALL FUNCTION 'CP_RC_PARENT_LAST_MARKED'.

CP_RC_BROWSER_STATUS_UPDATE CALL FUNCTION 'CP_RC_BROWSER_STATUS_UPDATE'.

CP_RC_OPTIONS_SET CALL FUNCTION 'CP_RC_OPTIONS_SET'.

CP_SC_WORKAREA_DETAIL_PROCESS CALL FUNCTION 'CP_SC_WORKAREA_DETAIL_PROCESS' EXPORTING i_flg_external_call = const-flg_yes.

CP_SC_SEL_SHOW_SCREEN_PROVIDE CALL FUNCTION 'CP_SC_SEL_SHOW_SCREEN_PROVIDE'.

CP_RC_EFF_DATA_SET CALL FUNCTION 'CP_RC_EFF_DATA_SET' IMPORTING e_effectivity = effectivity EXCEPTIONS no_values_were_set = 1.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_OPEN CALL FUNCTION 'CP_MC_OPEN' EXPORTING i_message_handler = message_handler-appl_log i_save_protocoll = const-flg_yes.

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

CP_MC_CLOSE CALL FUNCTION 'CP_MC_CLOSE'.

CP_OV_OPR_LIST_OF_FAILED_LOCKS CALL FUNCTION 'CP_OV_OPR_LIST_OF_FAILED_LOCKS' * importing * e_flg_opr_relock = * E_OPR_IDENT = TABLES i_opr_unlocked = opr_unlock_tab.

CP_CC_S_ALLOCATE_BY_OPR





CALL FUNCTION 'CP_CC_S_ALLOCATE_BY_OPR' EXPORTING i_ecn_s = i_ecn i_key_date_s = i_key_date i_opr_ident = i_opr_ident i_flg_opr_check = const-flg_yes IMPORTING e_opr_lock = e_opr_unlock * E_ECM_DATA_ERROR_TYPE = EXCEPTIONS operation_not_consistent = 1 no_authority = 2 no_valid_sequence = 3 no_valid_operation = 4 operation_not_locked = 5 path_incomplete = 6 ecm_data_not_suitable = 7 wrong_operation_number = 8 allocation_already_exists = 9 operation_already_deleted = 10 com_allocations_not_consistent = 11.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_RC_EFF_DATA_SET CALL FUNCTION 'CP_RC_EFF_DATA_SET' IMPORTING e_effectivity = effectivity EXCEPTIONS no_values_were_set = 1.

CP_RC_DELETION_CONFIRM CALL FUNCTION 'CP_RC_DELETION_CONFIRM' EXCEPTIONS no_deletion = 1.

CP_MC_OPEN CALL FUNCTION 'CP_MC_OPEN' EXPORTING i_message_handler = message_handler-appl_log i_save_protocoll = const-flg_yes.

CP_CL_S_OPR_LOAD_CHECK CALL FUNCTION 'CP_CL_S_OPR_LOAD_CHECK' EXPORTING i_date_from = effectivity-sttag i_date_to = effectivity-sttag i_plnty = wa_opr_ident_tab-plnty i_plnnr = wa_opr_ident_tab-plnnr i_plnal = wa_opr_ident_tab-plnal i_plnfl = wa_opr_ident_tab-plnfl i_plnkn = wa_opr_ident_tab-plnkn IMPORTING e_flg_opr_exists = flg_opr_exists EXCEPTIONS wrong_key = 1 OTHERS = 2.

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

CP_CC_S_DELETE_BY_OPR CALL FUNCTION 'CP_CC_S_DELETE_BY_OPR' EXPORTING i_ecn_s = effectivity-aennr i_key_date_s = effectivity-sttag i_opr_ident = wa_opr_ident_tab IMPORTING e_opr_lock = g_opr_unlocked 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' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.




CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_CLOSE CALL FUNCTION 'CP_MC_CLOSE'.

CP_OV_OPR_LIST_OF_FAILED_LOCKS CALL FUNCTION 'CP_OV_OPR_LIST_OF_FAILED_LOCKS' IMPORTING e_flg_opr_relock = flg_opr_relock TABLES i_opr_unlocked = g_opr_unlocked.

CP_RC_EFF_DATA_SET CALL FUNCTION 'CP_RC_EFF_DATA_SET' IMPORTING e_effectivity = effectivity EXCEPTIONS no_values_were_set = 1.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_OPEN CALL FUNCTION 'CP_MC_OPEN' EXPORTING i_message_handler = message_handler-appl_log i_save_protocoll = const-flg_yes.

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

CP_CL_P_OPR_REALLOCATE CALL FUNCTION 'CP_CL_P_OPR_REALLOCATE' EXPORTING i_ecn_s = effectivity-aennr i_key_date_s = effectivity-sttag i_opr_ident = opr_ident i_flg_opr_check = 'X' EXCEPTIONS operation_not_consistent = 1 no_authority = 2 no_valid_sequence = 3 no_valid_operation = 4 allocation_already_exists = 5 operation_already_deleted = 6 operation_not_locked = 7 path_incomplete = 8 ecm_data_not_suitable = 9 wrong_operation_number = 10 wrong_operation_type = 11 com_allocations_not_consistent = 12 ecn_missing = 13 reallocation_not_possible = 14 OTHERS = 15.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_CLOSE CALL FUNCTION 'CP_MC_CLOSE'.

CP_OV_OPR_LIST_OF_FAILED_LOCKS CALL FUNCTION 'CP_OV_OPR_LIST_OF_FAILED_LOCKS' TABLES i_opr_unlocked = opr_unlock_tab.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_RC_DATA_LOAD CALL FUNCTION 'CP_RC_DATA_LOAD' EXPORTING i_context = context i_flg_screen_dark_processing = g_flg_screen_dark_processing i_actype = g_actype EXCEPTIONS OTHERS = 1.

CP_CL_S_TSK_PROVIDE CALL FUNCTION 'CP_CL_S_TSK_PROVIDE' EXPORTING i_date_from = i_key_date i_date_to = i_key_date i_plnty = i_plnty i_plnnr = i_plnnr i_plnal = i_plnal TABLES e_tsk_class_data = tsk_data.

CP_CL_S_TSK_PROVIDE CALL FUNCTION 'CP_CL_S_TSK_PROVIDE' EXPORTING i_date_from = i_key_date i_date_to = date-max_grg i_plnty = i_plnty i_plnnr = i_plnnr i_plnal = i_plnal TABLES e_tsk_class_data = tsk_data.



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