COFOMKMD 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 COFOMKMD into the relevant SAP transactions such as SE38 or SE80
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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'IBAPI_Z_GET_BAPI_FLAG' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
IBAPI_Z_GET_BAPI_FLAG CALL FUNCTION 'IBAPI_Z_GET_BAPI_FLAG' EXCEPTIONS bapi_active = 1 bapi_not_active = 2 OTHERS = 3.
CO_MK_CHECK_SOURCE_OF_SUPPLY CALL FUNCTION 'CO_MK_CHECK_SOURCE_OF_SUPPLY' EXPORTING resbd_imp = resbd resbd_sav_imp = *resbd autyp_imp = caufvd-autyp IMPORTING resbd_exp = resbd EXCEPTIONS error_message = 1.
CO_MK_CHECK_SOURCE_OF_SUPPLY CALL FUNCTION 'CO_MK_CHECK_SOURCE_OF_SUPPLY' EXPORTING resbd_imp = resbd autyp_imp = caufvd-autyp IMPORTING resbd_exp = resbd.
CO_ZF_ACCOUNT_FIND CALL FUNCTION 'CO_ZF_ACCOUNT_FIND' EXPORTING knttp_imp = resbd-knttp matnr_imp = resbd-matnr shkzg_imp = resbd-shkzg werks_imp = resbd-werks matkl_imp = resbd-matkl IMPORTING saknr_exp = lv_saknr EXCEPTIONS OTHERS = 1.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' * Die Warengruppe wurde geƤndert textline1 = text-tk1 * Soll das Sachkonto neu ermittelt werden? textline2 = text-tk2 * Sachkontenfindung titel = text-tk3 cancel_display = ' ' IMPORTING answer = lv_answer.
CO_ZF_ACCOUNT_FIND CALL FUNCTION 'CO_ZF_ACCOUNT_FIND' EXPORTING knttp_imp = resbd-knttp matnr_imp = resbd-matnr shkzg_imp = resbd-shkzg werks_imp = resbd-werks matkl_imp = resbd-matkl IMPORTING saknr_exp = resbd_imp-saknr EXCEPTIONS OTHERS = 1.
CO_ZF_ACCOUNT_FIND CALL FUNCTION 'CO_ZF_ACCOUNT_FIND' EXPORTING knttp_imp = resbd-knttp matnr_imp = resbd-matnr shkzg_imp = resbd-shkzg werks_imp = resbd-werks matkl_imp = resbd-matkl IMPORTING saknr_exp = resbd-saknr EXCEPTIONS OTHERS = 1.
RM_ACCOUNT_CHECK CALL FUNCTION 'RM_ACCOUNT_CHECK' EXPORTING chkdat = caufvd-aufld i_bukrs = t001k-bukrs i_sakto = resbd-saknr EXCEPTIONS not_valid = 01.
READ_SACHKONTO CALL FUNCTION 'READ_SACHKONTO' EXPORTING buchungskreis = t001k-bukrs sachkonto = resbd-saknr EXCEPTIONS sachkonto_not_found = 01.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'IBAPI_Z_GET_BAPI_FLAG' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
IBAPI_Z_GET_BAPI_FLAG CALL FUNCTION 'IBAPI_Z_GET_BAPI_FLAG' EXCEPTIONS bapi_active = 1 bapi_not_active = 2 OTHERS = 3.
CO_ZF_MAT_INFORECORD_READ CALL FUNCTION 'CO_ZF_MAT_INFORECORD_READ' EXPORTING resbd_imp = resbd copy_quantity = copy_quantity klvarp_imp = caufvd-klvarp IMPORTING resbd_exp = resbd esokz_exp = esokz_tmp EXCEPTIONS not_found = 01.
CO_TA_T023_READ CALL FUNCTION 'CO_TA_T023_READ' EXPORTING matkl = resbd-matkl IMPORTING t023_wa = t023 EXCEPTIONS not_found = 01.
CO_TA_T024_READ CALL FUNCTION 'CO_TA_T024_READ' EXPORTING ekgrp = resbd-ekgrp IMPORTING t024_wa = t024 EXCEPTIONS not_found = 01.
CO_ZF_EXT_DEMAND_DECISION CALL FUNCTION 'CO_ZF_EXT_DEMAND_DECISION' CHANGING component = p_resbd.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
COFOMKMD - documentation and ABAP source code COFCODOCWRI - Failure Cost Document: Write Program COFCODOCWRI - Failure Cost Document: Write Program COFCODOCDEL - Failure Cost Document: Delete Program COFCODOCDEL - Failure Cost Document: Delete Program CODRINC_PDF - Include in print operation : EXPORT of files