SAP Reports / Programs | Controlling | Product Cost Controlling | Alternative Valuation Run(CO-PC-ACT-AVR) SAP CO

CKMLAVR_BUILD_SPLIT SAP ABAP INCLUDE - CKMLAVRBUILDSPLIT







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

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:

CKML_RUN_PERIOD_GET CALL FUNCTION 'CKML_RUN_PERIOD_GET' EXPORTING i_run_id = run_id IMPORTING es_runperiod = lw_runperiod.

MLCCS_READ_CUSTOMIZING CALL FUNCTION 'MLCCS_READ_CUSTOMIZING' EXPORTING i_bwkey = ls_runarea-bwkey EXCEPTIONS mlccs_not_active = 1 OTHERS = 2.

GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING bwkey = ls_runarea-bwkey TABLES t_curtp_for_va = lt_curtp.

T001K_SINGLE_READ CALL FUNCTION 'T001K_SINGLE_READ' EXPORTING bwkey = ls_runarea-bwkey IMPORTING wt001k = f_t001k.

T001_SINGLE_READ CALL FUNCTION 'T001_SINGLE_READ' EXPORTING bukrs = f_t001k-bukrs IMPORTING wt001 = f_t001.

CKML_F_DETERMINE_NEXT_PERIOD CALL FUNCTION 'CKML_F_DETERMINE_NEXT_PERIOD' EXPORTING current_period = ld_poper current_year = ld_bdatj f_periv = f_t001-periv IMPORTING next_period_period = ld_poper next_period_year = ld_bdatj.

MLCCS_GET_LAYOUT CALL FUNCTION 'MLCCS_GET_LAYOUT' EXPORTING i_bwkey = ls_runarea-bwkey i_bdatj = wa_select_basis-bdatj i_poper = wa_select_basis-poper i_untper = source_untper i_curtp = ls_cty-curtp IMPORTING ef_ckmlkev = lf_ckmlkev EXCEPTIONS OTHERS = 1.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'CKMLAVR' msgno = '112' msgty = 'E'.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'CKMLAVR' msgno = '112' msgty = 'E'.

MLCCS_READ_PR CALL FUNCTION 'MLCCS_READ_PR' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-from_gjahr i_poper_1 = is_runarea-from_poper * i_bdatj_2 = is_runarea-gjahr * i_poper_2 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = ld_source-untper IMPORTING et_prkeko = lt_prkeko_help et_prkeph = lt_prkeph_help TABLES it_kalnr = ns ir_prtyp = gr_prtyp_mat EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ CALL FUNCTION 'MLCCS_READ' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-from_gjahr i_poper_1 = is_runarea-from_poper * i_bdatj_2 = is_runarea-gjahr * i_poper_2 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = ld_source-untper IMPORTING et_keph = lt_keph_help TABLES it_kalnr = ns ir_categ = gr_categ ir_mlcct = gr_mlcct EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ_PR CALL FUNCTION 'MLCCS_READ_PR' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-gjahr i_poper_1 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = ld_source-untper IMPORTING et_prkeko = lt_prkeko_help et_prkeph = lt_prkeph_help TABLES it_kalnr = ns ir_prtyp = gr_prtyp_mat EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ CALL FUNCTION 'MLCCS_READ' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-gjahr i_poper_1 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = ld_source-untper IMPORTING et_keph = lt_keph_help TABLES it_kalnr = ns ir_categ = gr_categ ir_mlcct = gr_mlcct EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ CALL FUNCTION 'MLCCS_READ' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-from_gjahr i_poper_1 = is_runarea-from_poper i_untper = ld_source-untper IMPORTING et_keph = lt_keph_help TABLES it_kalnr = ns ir_categ = gr_categ_ab " AB ir_mlcct = gr_mlcct_ab " M N EXCEPTIONS no_data_found = 0 input_data_inconsistent = 0 OTHERS = 0.

MLCCS_READ_PR CALL FUNCTION 'MLCCS_READ_PR' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-from_gjahr i_poper_1 = is_runarea-from_poper i_bdatj_2 = is_runarea-gjahr i_poper_2 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = source_untper IMPORTING et_prkeko = lt_prkeko et_prkeph = lt_prkeph TABLES it_kalnr = ns * IR_KEART = ir_prtyp = gr_prtyp_mat * IR_KKZST = * IR_PATNR = * IR_DIPA = * IR_CURTP = EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ CALL FUNCTION 'MLCCS_READ' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-from_gjahr i_poper_1 = is_runarea-from_poper i_bdatj_2 = is_runarea-gjahr i_poper_2 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = source_untper IMPORTING et_keph = lt_keph TABLES it_kalnr = ns ir_categ = gr_categ * IR_PTYP = * IR_BVALT = * IR_KEART = ir_mlcct = gr_mlcct * IR_KKZST = * IR_PATNR = * IR_DIPA = * IR_CURTP = EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ * CALL FUNCTION 'MLCCS_READ' * EXPORTING * i_refresh_buffer = 'X' * i_bdatj_1 = is_runarea-gjahr * i_poper_1 = is_runarea-poper * i_untper = target_untper * IMPORTING * et_keph = lt_cumkeph * TABLES * it_kalnr = ns * ir_categ = gr_categ "AB, ZU, VP, VN ** IR_PTYP = ** IR_BVALT = ** IR_KEART = * ir_mlcct = gr_mlcct "E F ** IR_KKZST = ** IR_PATNR = ** IR_DIPA = ** IR_CURTP = * EXCEPTIONS * no_data_found = 0 * OTHERS = 0.

MLCCS_READ CALL FUNCTION 'MLCCS_READ' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-from_gjahr i_poper_1 = is_runarea-from_poper i_untper = source_untper IMPORTING et_keph = lt_keph_tmp TABLES it_kalnr = ns ir_categ = gr_categ_ab " AB ir_mlcct = gr_mlcct_ab " M N EXCEPTIONS no_data_found = 0 input_data_inconsistent = 0 OTHERS = 0.

MLCCS_READ_PR





CALL FUNCTION 'MLCCS_READ_PR' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = prev_run_area-gjahr i_poper_1 = prev_run_area-poper i_untper = prev_run-untper i_no_buffer_synchronize = ' ' IMPORTING et_prkeko = prev_prkeko et_prkeph = prev_prkeph TABLES it_kalnr = ns EXCEPTIONS no_data_found = 0 input_data_inconsistent = 0 OTHERS = 0.

MLCCS_READ CALL FUNCTION 'MLCCS_READ' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = prev_run_area-gjahr i_poper_1 = prev_run_area-poper i_untper = prev_run-untper i_no_buffer_synchronize = ' ' IMPORTING et_keph = prev_keph TABLES it_kalnr = ns ir_categ = gr_categ_eb EXCEPTIONS no_data_found = 0 input_data_inconsistent = 0 OTHERS = 0.

MLCCS_SCALE_UPDOWN * CALL FUNCTION 'MLCCS_SCALE_UPDOWN' * EXPORTING * i_source_value = stockvalue * i_destin_value = wa_ccs_spread-diff * i_destin_curtp = wa_ccs_spread-s_curtp * i_bwkey = wa_ccs_spread-s_bwkey * i_bdatj = wa_ccs_spread-s_bdatj * i_poper = wa_ccs_spread-s_poper * i_keart = keart * i_kkzst = kkzst * CHANGING * cf_keph = scale.

MLCCS_STOCKRELEVANT_VALUE_GET ** CALL FUNCTION 'MLCCS_STOCKRELEVANT_VALUE_GET' ** EXPORTING ** cf_keph = act_price_ccs ** i_destin_curtp = wa_doc-curtp ** i_bwkey = is_runarea-bwkey ** i_bdatj = bdatj ** i_poper = poper ** i_keart = keart ** IMPORTING ** stockrelevant_value = act_value.

MLCCS_READ_PR CALL FUNCTION 'MLCCS_READ_PR' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-from_gjahr i_poper_1 = is_runarea-from_poper * i_bdatj_2 = is_runarea-gjahr * i_poper_2 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = ld_source-untper i_no_buffer_synchronize = 'X' i_use_buffer = ld_use_buffer IMPORTING et_prkeko = lt_prkeko et_prkeph = lt_prkeph TABLES it_lakalnr = temp_ns ir_prtyp = lr_prtyp EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ_PR CALL FUNCTION 'MLCCS_READ_PR' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-gjahr i_poper_1 = is_runarea-poper * i_bdatj_2 = is_runarea-gjahr * i_poper_2 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = ld_source-untper i_no_buffer_synchronize = 'X' i_use_buffer = ld_use_buffer IMPORTING et_prkeko = lt_prkeko_second et_prkeph = lt_prkeph_second TABLES it_lakalnr = temp_ns ir_prtyp = lr_prtyp EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ_PR CALL FUNCTION 'MLCCS_READ_PR' EXPORTING i_refresh_buffer = 'X' i_bdatj_1 = is_runarea-from_gjahr i_poper_1 = is_runarea-from_poper i_bdatj_2 = is_runarea-gjahr i_poper_2 = is_runarea-poper i_between_1_and_2 = 'X' i_untper = source_untper i_no_buffer_synchronize = 'X' i_use_buffer = ld_use_buffer IMPORTING et_prkeko = lt_prkeko et_prkeph = lt_prkeph TABLES it_lakalnr = temp_ns ir_prtyp = lr_prtyp EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_READ_CUSTOMIZING * CALL FUNCTION 'MLCCS_READ_CUSTOMIZING' * EXPORTING * i_bwkey = is_runarea-bwkey * IMPORTING * ef_mlccs_customizing = ccs_cust * EXCEPTIONS * mlccs_not_active = 1 * OTHERS = 2.

MLCCS_GET_LAYOUT * CALL FUNCTION 'MLCCS_GET_LAYOUT' * EXPORTING * i_bwkey = is_runarea-bwkey * i_bdatj = is_runarea-gjahr * i_poper = is_runarea-poper * i_untper = source_untper * i_curtp = ls_cty-curtp * IMPORTING * ef_ckmlkev = lf_ckmlkev * EXCEPTIONS * error_occurred = 1 * OTHERS = 2.

MLCCS_STOCKRELEVANT_VALUE_GET * CALL FUNCTION 'MLCCS_STOCKRELEVANT_VALUE_GET' * EXPORTING * cf_keph = diff_ccs * i_destin_curtp = ls_cty-curtp * i_bwkey = is_runarea-bwkey * i_bdatj = wa_select_basis-bdatj * i_poper = wa_select_basis-poper * i_keart = keart * IMPORTING * stockrelevant_value = stockvalue.

MLCCS_SCALE_UPDOWN * CALL FUNCTION 'MLCCS_SCALE_UPDOWN' * EXPORTING * i_source_value = stockvalue * i_destin_value = wa_ccs_spread-diff * i_destin_curtp = wa_ccs_spread-s_curtp * i_bwkey = wa_ccs_spread-s_bwkey * i_bdatj = wa_ccs_spread-s_bdatj * i_poper = wa_ccs_spread-s_poper * i_keart = keart * i_kkzst = space * CHANGING * cf_keph = scale.

MLCCS_READ_PR CALL FUNCTION 'MLCCS_READ_PR' EXPORTING i_refresh_buffer = 'X' i_untper = source_untper IMPORTING et_prkeko = lt_prkeko et_prkeph = lt_prkeph TABLES it_kalnr = lt_kalnr * IR_KEART = ir_prtyp = gr_prtyp_mat * IR_KKZST = * IR_PATNR = * IR_DIPA = * IR_CURTP = EXCEPTIONS no_data_found = 1 OTHERS = 2.

MLCCS_STOCKRELEVANT_VALUE_GET CALL FUNCTION 'MLCCS_STOCKRELEVANT_VALUE_GET' EXPORTING cf_keph = cs_calc_ccs i_destin_curtp = is_keph_sum-curtp i_bwkey = is_runarea-bwkey i_bdatj = is_keph_sum-bdatj i_poper = is_keph_sum-poper i_keart = is_keph_sum-keart i_untper = is_keph_sum-untper IMPORTING stockrelevant_value = ld_source_value.

T001K_SINGLE_READ CALL FUNCTION 'T001K_SINGLE_READ' EXPORTING bwkey = ls_hd-bwkey IMPORTING wt001k = ls_t001k.

MLCCS_GET_LAYOUT CALL FUNCTION 'MLCCS_GET_LAYOUT' EXPORTING i_bwkey = ls_hd-bwkey i_bdatj = is_keph_sum-bdatj i_poper = is_keph_sum-poper i_untper = '000' i_curtp = is_keph_sum-curtp IMPORTING ef_ckmlkev = ls_kev EXCEPTIONS OTHERS = 1.

MLCCS_KSTAR_TO_KSTEL CALL FUNCTION 'MLCCS_KSTAR_TO_KSTEL' EXPORTING i_elehk = ld_elehk i_kstar = ld_kstar i_hrkft = ld_hrkft i_bukrs = ls_t001k-bukrs i_wtgbtr = ld_remainder CHANGING f_costcomp = ls_simple_ccs.



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