SAP Reports / Programs | Production Planning and Control | Production Orders(PP-SFC) SAP PP

COOCMPF05 SAP ABAP INCLUDE - KEY_CHECK_OK







COOCMPF05 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 COOCMPF05 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 COOCMPF05. "Basic submit
SUBMIT COOCMPF05 AND RETURN. "Return to original report after report execution complete
SUBMIT COOCMPF05 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 COOCMPF05

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:

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting defaultoption = con_no textline1 = text-re1 titel = text-rej importing answer = l_answer.

STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING CHECK_ONLY = YX OBJNR = L_OBJNR_CUR VRGNG = VERAENDERN EXCEPTIONS ACTIVITY_NOT_ALLOWED = 1 OBJECT_NOT_FOUND = 2.

STATUS_CHECK call function 'STATUS_CHECK' exporting objnr = l_objnr_cur STATUS = STK_GEL "GLFT exceptions object_not_found = 1 status_not_active = 2 others = 3.

CO_OCM_BT_AUFT_DATA_GET CALL FUNCTION 'CO_OCM_BT_AUFT_DATA_GET' EXPORTING I_AUFNR = L_AUFNR_CUR IMPORTING ET_AUFT = LT_AUFT_DATA.

STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING CHECK_ONLY = YX OBJNR = L_OBJNR_TOP VRGNG = FAUF_WA EXCEPTIONS ACTIVITY_NOT_ALLOWED = 1 OBJECT_NOT_FOUND = 2.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' exporting input = lt_imseg-erfmg matnr = lt_imseg-matnr meinh = lt_imseg-erfme meins = lt_imseg-meins werks = lt_imseg-werks importing output = lt_imseg-erfmg exceptions conversion_not_found = 1 input_invalid = 2 material_not_found = 3 meinh_not_found = 4 meins_missing = 5 no_meinh = 6 output_invalid = 7 overflow = 8.

MB_CREATE_GOODS_MOVEMENT call function 'MB_CREATE_GOODS_MOVEMENT' exporting ctcod = 'COGI' imkpf = ls_imkpf XALLP = ' ' "post even if not all items are ok XALLR = YX "do complete reset importing emkpf = ls_emkpf tables emseg = lt_emseg imseg = lt_imseg.

MB_POST_GOODS_MOVEMENT call function 'MB_POST_GOODS_MOVEMENT' importing emkpf = ls_emkpf.

CO_FW_DATA_RESET CALL FUNCTION 'CO_FW_DATA_RESET'.

CO_FW_AFFW_INSERT call function 'CO_FW_AFFW_INSERT' exporting flg_no_dialog = yx tables affw_tab = lt_affw.

CO_OCB_DATA_RESET CALL FUNCTION 'CO_OCB_DATA_RESET'.

CO_OCB_COMPRES_PRE_READ CALL FUNCTION 'CO_OCB_COMPRES_PRE_READ' EXPORTING COMPNUM_IMP = LT_COMPNUM-COMPNUM FLG_READ_CMP = YX.

CO_OCB_GET_COMPRES_FROM_BT CALL FUNCTION 'CO_OCB_GET_COMPRES_FROM_BT' EXPORTING COMPNUM_IMP = LT_COMPNUM-COMPNUM TABLES COMPCMP_TAB_EXP = LT_COMPCMPD_TMP.

CO_OCB_UPDATE_COMPRES_MULTI CALL FUNCTION 'CO_OCB_UPDATE_COMPRES_MULTI' TABLES COMPCMPD_TAB = LT_COMPCMPD.

CO_ZF_DATA_RESET_COMPLETE CALL FUNCTION 'CO_ZF_DATA_RESET_COMPLETE'.

CO_ZF_ORDER_READ CALL FUNCTION 'CO_ZF_ORDER_READ' EXPORTING FLG_DIALOG = ' ' FLG_ENQUEUE = YX OBJECTS_IMP = LS_OBJECTS TABLES AUFNR_TAB_IMP = LT_ORD_PRE.

CO_BT_CAUFV_READ_WITH_KEY CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_KEY' EXPORTING AUFNR_ACT = L_AUFNR_CUR IMPORTING CAUFVD_EXP = LS_CAUFVD_CUR.

CO_BT_RESB_READ_WITH_KEY CALL FUNCTION 'CO_BT_RESB_READ_WITH_KEY' EXPORTING RSNUM_IMP = -RSNUM RSPOS_IMP = -RSPOS RSART_IMP = -RSART FLG_RESBD = ' ' IMPORTING RESBD_EXP = LS_RESBD.

CO_BT_RESB_UPDATE





CALL FUNCTION 'CO_BT_RESB_UPDATE' EXPORTING RESB_NEW = LS_RESBD TABIX_OLD = LS_RESBD-INDBT FLG_OCM = YX.

CO_BT_RESB_DELETE CALL FUNCTION 'CO_BT_RESB_DELETE' EXPORTING INDEX = LS_RESBD-INDBT.

CO_ZF_DATA_RESET_COMPLETE CALL FUNCTION 'CO_ZF_DATA_RESET_COMPLETE'.

CO_ZF_ORDER_READ call function 'CO_ZF_ORDER_READ' exporting flg_dialog = ' ' flg_enqueue = yx objects_imp = ls_objects tables aufnr_tab_imp = lt_ord_pre.

CO_BT_CAUFV_READ_WITH_KEY CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_KEY' EXPORTING AUFNR_ACT = L_AUFNR_CUR IMPORTING CAUFVD_EXP = LS_CAUFVD_CUR.

CO_DB_GET_LOWER_TREE_MC CALL FUNCTION 'CO_DB_GET_LOWER_TREE_MC' tables I_LEAD_AUFNR_TAB = LT_AUFNR I_SUB_AUFNR_TAB = LT_SUB_AUFNR E_SUB_AUFNR_TAB = LT_ORD_PRE.

CO_ZF_ORDER_LOCK_MULTI call function 'CO_ZF_ORDER_LOCK_MULTI' exporting lock_mode = con_mode_lock explode_prodnet = con_subnet tables enqueue_tab = lt_ordtyp_pre not_locked = lt_ord_locked.

CO_ZF_ORDER_READ call function 'CO_ZF_ORDER_READ' exporting flg_dialog = ' ' objects_imp = ls_objects tables aufnr_tab_imp = lt_ord_pre.

CO_BT_CAUFV_READ_WITH_KEY call function 'CO_BT_CAUFV_READ_WITH_KEY' exporting aufnr_act = lt_ord_pre-aufnr no_dialog_info = yx importing CAUFVD_EXP = LS_CAUFVD AFPOD_EXP = LS_AFPOD.

STATUS_CHANGE_INTERN CALL FUNCTION 'STATUS_CHANGE_INTERN' EXPORTING OBJNR = LS_CAUFVD-OBJNR TABLES STATUS = LT_STAT.

CO_BT_CAUFV_UPD call function 'CO_BT_CAUFV_UPD' exporting CAUFVD_UPD = LS_CAUFVD FLG_OCM = YX.

CO_BI_AFPO_UPD CALL FUNCTION 'CO_BI_AFPO_UPD' EXPORTING AFPOWA = LS_AFPOD.

CO_BT_RESB_READ_WITH_KEY call function 'CO_BT_RESB_READ_WITH_KEY' exporting rsnum_imp = -rsnum rspos_imp = -rspos rsart_imp = -rsart flg_resbd = ' ' importing resbd_exp = ls_resbd.

CO_BT_RESB_UPDATE call function 'CO_BT_RESB_UPDATE' exporting resb_new = ls_resbd tabix_old = ls_resbd-indbt flg_ocm = yx.

CO_BT_RESB_DELETE call function 'CO_BT_RESB_DELETE' exporting index = ls_resbd-indbt flg_del = l_del_physical DONT_DEL_LOWER_TREE = yx.

CO_OCB_DATA_RESET call function 'CO_OCB_DATA_RESET'.

CO_OCB_COMPRES_PRE_READ call function 'CO_OCB_COMPRES_PRE_READ' exporting compnum_imp = lt_compnum-compnum flg_read_cmp = yx.

CO_OCB_GET_COMPRES_FROM_BT CALL FUNCTION 'CO_OCB_GET_COMPRES_FROM_BT' EXPORTING COMPNUM_IMP = LT_COMPNUM-COMPNUM TABLES COMPCMP_TAB_EXP = LT_COMPCMPD_TMP.

CO_OCB_UPDATE_COMPRES_MULTI CALL FUNCTION 'CO_OCB_UPDATE_COMPRES_MULTI' TABLES COMPCMPD_TAB = LT_COMPCMPD.

CO_ZV_ORDER_POST call function 'CO_ZV_ORDER_POST' exporting commit_flag = ' ' ext_flg = yx TRANS_TYP = 'V' no_gui_message = 'X' no_dialog = 'X'.




CO_ZF_ORDER_LOCK_MULTI CALL FUNCTION 'CO_ZF_ORDER_LOCK_MULTI' EXPORTING LOCK_MODE = CON_MODE_UNLOCK EXPLODE_PRODNET = CON_SUBNET TABLES ENQUEUE_TAB = LT_ORDTYP_PRE NOT_LOCKED = LT_ORD_LOCKED.

DEQUEUE_ESAFFW CALL FUNCTION 'DEQUEUE_ESAFFW' EXPORTING WEBLNR = CON_DUMMY_WEBLNR WEBLPOS = CON_YMAXPOS _COLLECT = YX.

DEQUEUE_ESCORUPROC CALL FUNCTION 'DEQUEUE_ESCORUPROC' EXPORTING PRZID = CON_PRZID_WAUS _COLLECT = YX.

FLUSH_ENQUEUE CALL FUNCTION 'FLUSH_ENQUEUE'.



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