SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost by Period(CO-PC-OBJ-PER) SAP CO

MKOSAI11 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

KK_F_PKOSA_LIST call function 'KK_F_PKOSA_LIST' exporting i_matnr = pkosa-matnr i_werks = pkosa-werks i_procnr = gs_process-proc_kalnr i_no_loevm = ld_no_loevm "note781286 importing e_aufnr = pkosa-aufnr exceptions pkosa_not_found = 1 none_picked = 2 others = 3.

READ_T003O call function 'READ_T003O' exporting i_auart = pkosa-auart importing e_t003o = t003o exceptions not_found = 1.

KK_F_PKOSA_GENERATE call function 'KK_F_PKOSA_GENERATE' exporting pkosa_imp = pkosa rueck_rele = 'X' "P30K031089 Leistungsrückmeldung exceptions " generell auart_not_ok = 01 gsber_not_ok = 02 matnr_not_ok = 03.

KE_PROFIT_CENTER_FROM_MARC call function 'KE_PROFIT_CENTER_FROM_MARC' exporting matnr = pkosa-matnr werks = pkosa-werks importing prctr = pkosa-prctr exceptions not_found = 1 others = 2.

K_CHECK_ZSCHL call function 'K_CHECK_ZSCHL' exporting i_zschl = pkosa-zschl exceptions zschl_not_valid = 1 others = 2.

KKA_PRF_ABGRSCHL_SETZE_LOESCHE call function 'KKA_PRF_ABGRSCHL_SETZE_LOESCHE' exporting abgr_schluessel_alt = coas-abgsl abgr_schluessel_neu = pkosa-abgsl erloes_objekt = mkauf-erloese objnr = coas-objnr.

KK_F_PKOSA_FILL call function 'KK_F_PKOSA_FILL' exporting pkosanr_imp = pkosa-aufnr importing pkosa_exp = pkosa.

KK_F_T437S_READ call function 'KK_F_T437S_READ' exporting imp_mat = pkosa-matnr imp_wrk = pkosa-werks importing exp_t437s = h_t437s.

KAUF_ORDER_READ call function 'KAUF_ORDER_READ' exporting i_aufnr = pkosa-aufnr i_autyp_erl = pkosa-autyp i_enqueued = 'X' importing e_afko = afko e_afpo = afpo e_coas = coas e_kauf = kauf.

MARA_SINGLE_READ * call function 'MARA_SINGLE_READ' * exporting * KZRFB = ' ' * MAXTZ = 0 * matnr = pkosa-matnr * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' * importing * wmara = gs_mara * exceptions * lock_on_material = 1 * lock_system_error = 2 * wrong_call = 3 * not_found = 4 * others = 5.

CKML_ORD_CONN_MOD_BUFFER_INIT call function 'CKML_ORD_CONN_MOD_BUFFER_INIT'.

STATUS_BUFFER_REFRESH call function 'STATUS_BUFFER_REFRESH'.

CKML_ORD_CONN_MOD_BUFFER_INIT * call function 'CKML_ORD_CONN_MOD_BUFFER_INIT'.

CKML_PROCESS_CONNECT call function 'CKML_PROCESS_CONNECT' exporting i_modus = '1' " P45K058297 if_prod_ord_data = gs_prod_ord_data importing e_process = pkosa-procnr * E_PKOSA = exceptions no_changes_allowed = 1 pkosa_exists = 2 no_pkosa_found = 3 other_pkosa_found = 4 multiple_pkosa_found = 5 others = 6.

CKML_MGV_PROCALTN_TEXT_MODIFY call function 'CKML_MGV_PROCALTN_TEXT_MODIFY' exporting i_kalnr = pkosa-procnr i_language = sy-langu i_manu_name = ckmlmv001t-ktext.

KK_F_PKOSA_INSERT call function 'KK_F_PKOSA_INSERT' exporting commit_imp = space "P9CK074169 no_message_imp = 'X' importing pkosanr_exp = pkosa-aufnr objnr_exp = coas-objnr exceptions insert_not_ok = 1 no_settlement_rule = 2.

RM_CREATE_REPPOINT_FOR_PKOSA call function 'RM_CREATE_REPPOINT_FOR_PKOSA' exporting i_pkosa = pkosa i_procparam = procparam i_date = sy-datlo.

CKML_PROCESS_CONNECT call function 'CKML_PROCESS_CONNECT' " P45K058297 exporting " P45K058297 i_modus = '2' " P45K058297 if_prod_ord_data = gs_prod_ord_data" 58297 exceptions " P45K058297 others = 1. " P45K058297

KK_F_PKOSA_UPDATE





call function 'KK_F_PKOSA_UPDATE' exporting pkosa_imp = pkosa dont_enqueue = 'X' no_commit = 'X'. "P9CK084650

KAUF_ORDER_ACTIVITY call function 'KAUF_ORDER_ACTIVITY' exporting i_coas = coas i_kauf = kauf i_vrgng = vrgng_loeschkennz_setzen i_check = 'X' i_dialog = 'X' importing e_coas = coas e_kauf = kauf exceptions others = 0.

CKMO_SET_ERASE_MARK_PKOSA_DEL call function 'CKMO_SET_ERASE_MARK_PKOSA_DEL' exporting i_pkosa = coas-aufnr I_SET = true I_ERASE = false.

KK_F_PKOSA_FIND_TO_MATERIAL_SA call function 'KK_F_PKOSA_FIND_TO_MATERIAL_SA' exporting matnr_imp = pkosa-matnr werks_imp = pkosa-werks verid_imp = pkosa-verid tables vkks0_exp = vkks0_tab exceptions none_found = 1 wrong_input = 2 none_picked = 3 others = 4.

RM_KOKRS_TO_PLANT_FIND call function 'RM_KOKRS_TO_PLANT_FIND' exporting werks = neu_werks importing e_kokrs = neu_pa_kokrs.

RM_KOKRS_TO_PLANT_FIND call function 'RM_KOKRS_TO_PLANT_FIND' exporting werks = neu_pa_werks importing e_kokrs = neu_pa_kokrs.

K_KKB_SE_REPORT_CALL call function 'K_KKB_SE_REPORT_CALL' exporting batch = ' ' choice_j = 'X' choice_k = 'X' choice_p = 'X' kokrs = neu_pa_kokrs matnr = neu_pa_matnr prodk = neu_pa_prodk saufn = neu_pa_safnr stday = '19000101' verid = neu_pa_verid werks = neu_pa_werks tables globals = kkb2_tab.

KK_KALKVAR_CHECK_PER_AUFTYP call function 'KK_KALKVAR_CHECK_PER_AUFTYP' exporting planistkz = 'P' auftragstyp = pkosa-autyp kalkvar = pkosa-klvarp exceptions invalid_autyp = 1 invalid_kalkvar = 2 others = 3.

KK_KALKVAR_CHECK_PER_AUFTYP call function 'KK_KALKVAR_CHECK_PER_AUFTYP' exporting planistkz = 'I' auftragstyp = pkosa-autyp kalkvar = pkosa-klvari exceptions invalid_autyp = 1 invalid_kalkvar = 2 others = 3.



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