ML_MLCD_CREATE is a standard Executable ABAP Report 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 ML_MLCD_CREATE 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.
Selection Text: P_NOINDX = No Afterburner Index Table
Selection Text: P_BDATJ = D .
Selection Text: P_BUKRS = D .
Selection Text: P_BWTAR = D .
Selection Text: P_MATNR = D .
Selection Text: P_POPER = D .
Selection Text: P_POSNR = D .
Selection Text: P_PSPNR = D .
Selection Text: P_RECRE = D .
Selection Text: P_UNTPER = D .
Selection Text: P_VBELN = D .
Selection Text: P_WERKS = D .
Selection Text: S_BWTAR = D .
Selection Text: S_MATNR = D .
Selection Text: S_POSNR = D .
Selection Text: S_PSPNR = D .
Selection Text: S_VBELN = D .
Title: Create and Delete MLCD Summarization Records
INCLUDE LCKM0TOP_STATUS.
INCLUDE LCKMDTOP_VGART.
No SAP DATABASE tables are accessed within this REPORT code!
CKM8_F4_BWTAR CALL FUNCTION 'CKM8_F4_BWTAR' EXPORTING i_fnam_matnr = 'P_MATNR' i_fnam_bwkey = h_fnam i_fnam_vbeln = 'P_VBELN' i_fnam_posnr = 'P_POSNR' i_fnam_pspnr = 'P_PSPNR' i_retfield = 'BWTAR' i_dynpprog = h_repid i_dynpnr = '1000' i_dynprofield = 'CKMLHD-BWTAR' * I_STEPL = * I_WINDOW_TITLE = .
CKML_F_SET_PLANT CALL FUNCTION 'CKML_F_SET_PLANT' EXPORTING plant = p_werks EXCEPTIONS plant_not_found = 01 internal_error = 02.
CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = h_bwkey EXCEPTIONS bwkey_not_found = 1 internal_error = 2 aschema_not_found = 3 OTHERS = 4.
CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = cki_wwo_ml.
CKMS_BUFFER_REFRESH_COMPLETE CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.
CKMD_BUFFER_REFRESH CALL FUNCTION 'CKMD_BUFFER_REFRESH'.
CKMS_PERIOD_READ_WITH_ITAB CALL FUNCTION 'CKMS_PERIOD_READ_WITH_ITAB' EXPORTING * I_REFRESH_BUFFER = * I_READ_ONLY_BUFFER = ' ' * I_USE_BUFFER = 'X' * I_BUILD_SMBEW = i_bdatj_1 = p_bdatj i_poper_1 = p_poper * I_BDATJ_2 = * I_POPER_2 = * I_BDATJ_3 = * I_POPER_3 = * I_BETWEEN_1_AND_2 = i_untper = p_untper * I_CALL_BY_REPORTING = ' ' * I_NO_CHK_PERIODS_COMPLETE = ' ' TABLES t_kalnr = t_kalnr t_ckmlpp = t_ckmlpp t_ckmlcr = t_ckmlcr * T_MISS_CKMLPP = * T_MISS_CKMLCR = EXCEPTIONS no_data_found = 1 input_data_inconsistent = 2 buffer_inconsistent = 3 OTHERS = 4 .
ENQUEUE_EMMBEWE CALL FUNCTION 'ENQUEUE_EMMBEWE' EXPORTING mode_mbew = 'E' mandt = sy-mandt matnr = t_ckmlhd-matnr bwkey = t_ckmlhd-bwkey bwtar = t_ckmlhd-bwtar * X_MATNR = ' ' * X_BWKEY = ' ' * X_BWTAR = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3 .
CKMS_PERIOD_READ_WITH_ITAB CALL FUNCTION 'CKMS_PERIOD_READ_WITH_ITAB' EXPORTING * I_REFRESH_BUFFER = ' ' * I_READ_ONLY_BUFFER = ' ' * I_USE_BUFFER = 'X' * i_build_smbew = ' ' i_bdatj_1 = p_bdatj i_poper_1 = p_poper * I_BDATJ_2 = * I_POPER_2 = * I_BDATJ_3 = * I_POPER_3 = * I_BETWEEN_1_AND_2 = i_untper = p_untper * I_CALL_BY_REPORTING = ' ' * I_NO_CHK_PERIODS_COMPLETE = ' ' TABLES t_kalnr = t_kalnr_ms t_ckmlpp = t_ckmlpp_ms * T_CKMLCR = EXCEPTIONS no_data_found = 1 input_data_inconsistent = 2 buffer_inconsistent = 3 OTHERS = 4 .
CKMCD_MLCD_CREATE CALL FUNCTION 'CKMCD_MLCD_CREATE' EXPORTING * I_NOT_MLAST2 = ' ' * I_NOT_MLAST3 = ' ' i_only_kalnr = t_ckmlhd-kalnr i_only_bdatj = p_bdatj i_only_poper = p_poper TABLES it_mlhd = t_mlhd_dummy it_mlit = t_mlit it_mlpp = t_mlpp it_mlppf = t_mlppf it_mlcr = t_mlcr it_mlcrf = t_mlcrf et_mlcd = t_mlcd .
CKML_F_SET_APPLICATION CALL FUNCTION 'CKML_F_SET_APPLICATION' "SITML EXPORTING ABR_MULTI_LEVEL = 'X'.
CKML_F_SET_APPLICATION CALL FUNCTION 'CKML_F_SET_APPLICATION' "SITML EXPORTING REVAL_CONS = 'X'.
CKMCD_BUFFER_WRITE CALL FUNCTION 'CKMCD_BUFFER_WRITE' TABLES it_mlcd = t_mlcd_buffer.
CKMCD_MLCD_POST CALL FUNCTION 'CKMCD_MLCD_POST' EXPORTING i_no_update_task = s_no_upd i_no_status_down_for_ccs = 'X'.
CKML_RUN_RUN_ID_FOR_VA_GET CALL FUNCTION 'CKML_RUN_RUN_ID_FOR_VA_GET' EXPORTING I_BWKEY = t_ckmlhd-bwkey I_GJAHR = p_bdatj I_POPER = p_poper I_APPL = l_appl IMPORTING E_RUN_ID = l_runid EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.
CKMCD_MLCD_AFTERBURNER_MI CALL FUNCTION 'CKMCD_MLCD_AFTERBURNER_MI' EXPORTING i_bdatj = p_bdatj i_poper = p_poper i_untper = p_untper i_run_id = l_runid i_no_update_task = s_no_upd i_no_indx_use = p_noindx TABLES it_kalnr = t_kalnr.
CKMLWIP_BADI_GET_INSTANCE CALL FUNCTION 'CKMLWIP_BADI_GET_INSTANCE' IMPORTING e_badi_instance = h_badi_wip.
CKMCD_BUFFER_WRITE CALL FUNCTION 'CKMCD_BUFFER_WRITE' TABLES it_mlcd = t_mlcd_buffer.
CALL FUNCTION 'CKMCD_MLCD_POST' EXPORTING i_no_update_task = s_no_upd i_no_status_down_for_ccs = 'X'.
DEQUEUE_EMMBEWE CALL FUNCTION 'DEQUEUE_EMMBEWE' EXPORTING mode_mbew = 'E' mandt = sy-mandt matnr = t_ckmlhd-matnr bwkey = t_ckmlhd-bwkey bwtar = t_ckmlhd-bwtar * X_MATNR = ' ' * X_BWKEY = ' ' * X_BWTAR = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .
CKMH_F_SET_MSG_VARIABLE_MAT CALL FUNCTION 'CKMH_F_SET_MSG_VARIABLE_MAT' EXPORTING i_kalnr = p_kalnr * I_MATNR = * I_BWTAR = * I_BWKEY = * I_VBELN = * I_POSNR = * I_PSPNR = * I_LIFNR = IMPORTING e_variable_values = h_mat_values * E_VARIABLE_TEXTS = * E_VALUES_LONG = * EXCEPTIONS * MISSING_INPUT = 1 * INCONSISTENT_INPUT = 2 * INTERNAL_ERROR = 3 * OTHERS = 4 .
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 ML_MLCD_CREATE or its description.