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

COFOMKMD SAP ABAP INCLUDE - documentation and ABAP source code







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


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

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:

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.



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