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

CP_CLASS_FORM SAP ABAP INCLUDE - Subroutines for all object classes from task list and BOM







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


Text pool values


Title: Subroutines for all object classes from task list and BOM


INCLUDES used within this REPORT CP_CLASS_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_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_MC_MESSAGE_COLLECT * CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' * EXCEPTIONS * message_not_collected = 1 * OTHERS = 2.

ECM_PROC_CHECK CALL FUNCTION 'ECM_PROC_CHECK' IMPORTING effectivity_chk = ecm_chk.

ECM_PROC_FLAT_STRUCTURE CALL FUNCTION 'ECM_PROC_FLAT_STRUCTURE' EXPORTING datuv = ecm_date "n_jk ranking = const-flg_yes TABLES liste_aennr = ecm_tab.

CP_CL_S_SEQ_PROVIDE CALL FUNCTION 'CP_CL_S_SEQ_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 i_plnfl = i_plnfl TABLES e_seq_class_data = seq_data.

ECM_PROC_CHECK CALL FUNCTION 'ECM_PROC_CHECK' IMPORTING effectivity_chk = ecm_chk.

ECM_PROC_FLAT_STRUCTURE CALL FUNCTION 'ECM_PROC_FLAT_STRUCTURE' EXPORTING datuv = ecm_date "n_792023 ranking = const-flg_yes TABLES liste_aennr = ecm_tab.

CP_CL_S_OPR_PROVIDE CALL FUNCTION 'CP_CL_S_OPR_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 i_plnfl = i_plnfl i_plnkn = i_plnkn TABLES e_opr_class_data = opr_data.

ECM_PROC_FLAT_STRUCTURE CALL FUNCTION 'ECM_PROC_FLAT_STRUCTURE' EXPORTING datuv = i_key_date ranking = const-flg_yes TABLES liste_aennr = ecm_tab.

CP_CL_S_SUB_OPR_PROVIDE CALL FUNCTION 'CP_CL_S_SUB_OPR_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 i_plnfl = i_plnfl i_sumnr = i_sumnr i_plnkn = i_plnkn TABLES c_opr_class_data = sub_opr_data.

ECM_PROC_FLAT_STRUCTURE CALL FUNCTION 'ECM_PROC_FLAT_STRUCTURE' EXPORTING datuv = i_key_date ranking = const-flg_yes TABLES liste_aennr = ecm_tab.

CP_AU_CHANGE_RULE_CHK CALL FUNCTION 'CP_AU_CHANGE_RULE_CHK' EXPORTING plkod_imp = plkod aennr_imp = i_ecn sttag_imp = i_key_date flg_message_imp = const-flg_yes EXCEPTIONS change_rule_1_not_fulfilled = 1 change_rule_2_not_fulfilled = 2 change_rule_3_not_fulfilled = 3 OTHERS = 4.

CP_CC_S_ECM_INFO_PROVIDE CALL FUNCTION 'CP_CC_S_ECM_INFO_PROVIDE' IMPORTING e_flg_ecm_evaluation = flg_ecm_evaluation.

CP_CL_P_TSK_AUTHORITY_CHECK CALL FUNCTION 'CP_CL_P_TSK_AUTHORITY_CHECK' EXPORTING i_key_date = key_date i_plnty = i_plnty i_plnnr = i_plnnr i_plnal = i_plnal i_activity = authority-show EXCEPTIONS no_valid_task = 1 no_authority = 2 no_authority_for_material = 3 OTHERS = 4.

CP_CC_S_SESSION_DATA_PROVIDE CALL FUNCTION 'CP_CC_S_SESSION_DATA_PROVIDE' IMPORTING e_date_from = key_date.

CP_CL_P_TSK_AUTHORITY_CHECK CALL FUNCTION 'CP_CL_P_TSK_AUTHORITY_CHECK' EXPORTING i_key_date = key_date i_plnty = i_plnty i_plnnr = i_plnnr i_plnal = i_plnal i_activity = authority-show EXCEPTIONS no_valid_task = 1 no_authority = 2 no_authority_for_material = 3 OTHERS = 4.

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.

DDIF_NAMETAB_GET





CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = i_structure_name TABLES dfies_tab = l_dfies_tab EXCEPTIONS not_found = 1 OTHERS = 2 .

CP_CL_P_OPR_ALLOCATION_PROVIDE CALL FUNCTION 'CP_CL_P_OPR_ALLOCATION_PROVIDE' EXPORTING i_plnty = i_plnty i_plnnr = i_plnnr i_plnkn = i_plnkn IMPORTING e_opr_ident = opr_alloc_data EXCEPTIONS wrong_key = 1.

CP_CL_P_TSK_AUTHORITY_CHECK CALL FUNCTION 'CP_CL_P_TSK_AUTHORITY_CHECK' EXPORTING i_key_date = i_date_from i_ecn = i_ecn i_plnty = -plnty i_plnnr = -plnnr i_plnal = -plnal i_activity = authority-change EXCEPTIONS no_valid_task = 1 no_authority = 2.

CP_CL_S_SEQ_ID_PROVIDE CALL FUNCTION 'CP_CL_S_SEQ_ID_PROVIDE' EXPORTING i_plnty = i_plnty i_plnnr = i_plnnr IMPORTING e_seq_ident = e_seq_ident EXCEPTIONS wrong_key = 1 OTHERS = 2.

CP_SC_SEQ_LOAD_BY_TGR CALL FUNCTION 'CP_SC_SEQ_LOAD_BY_TGR' EXPORTING i_plnty = i_plnty i_plnnr = i_plnnr IMPORTING e_seq_ident = seq_ident.

CP_CC_S_SESSION_DATA_PROVIDE CALL FUNCTION 'CP_CC_S_SESSION_DATA_PROVIDE' IMPORTING e_workarea = workarea.

CP_CL_S_OPR_ALLOCATION_PROVIDE CALL FUNCTION 'CP_CL_S_OPR_ALLOCATION_PROVIDE' EXPORTING i_plnty = i_plnty i_plnnr = i_plnnr i_plnkn = i_plnkn IMPORTING e_opr_alloc_data = opr_alloc_data EXCEPTIONS wrong_key = 1.

CP_SC_PLAS_LOAD_BY_TGR CALL FUNCTION 'CP_SC_PLAS_LOAD_BY_TGR' EXPORTING i_plnty = i_plnty i_plnnr = i_plnnr i_plnkn = i_plnkn IMPORTING e_seq_ident = seq_ident.



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