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

CKMLAVR_EXPLANATION_TOOL_F01 SAP ABAP INCLUDE - CKMLAVREXPLANATIONTOOLF01







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

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:

GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING bwkey = p_bwkey * CALL_BY_INIT_PROG = ' ' * I_CUSTOMIZING = ' ' TABLES t_curtp_for_va = t_curtp EXCEPTIONS bwkey_not_found = 1 bwkey_not_active = 2 matled_not_found = 3 internal_error = 4 more_than_3_curtp = 5 OTHERS = 6.

TP_VALUATION_AUTHORITY CALL FUNCTION 'TP_VALUATION_AUTHORITY' EXPORTING I_BWKEY = p_bwkey I_CVTYP = t_curtp-curtp * I_ACTVT = '03' IMPORTING E_XAUTH = l_xauth EXCEPTIONS KOKRS_FINDING_ERROR = 1 VALUTYP_FINDING_ERROR = 2 INSUFFICIENT_INPUT_FOR_KOKRS = 3 INSUFFICIENT_INPUT_FOR_VALUTYP = 4 ACTIVITY_NOT_ALLOWED = 5 OTHERS = 6.

TP_VALUATION_AUTHORITY CALL FUNCTION 'TP_VALUATION_AUTHORITY' EXPORTING I_BWKEY = p_bwkey I_CVTYP = y_local_currency * I_ACTVT = '03' IMPORTING E_XAUTH = l_xauth EXCEPTIONS KOKRS_FINDING_ERROR = 1 VALUTYP_FINDING_ERROR = 2 INSUFFICIENT_INPUT_FOR_KOKRS = 3 INSUFFICIENT_INPUT_FOR_VALUTYP = 4 ACTIVITY_NOT_ALLOWED = 5 OTHERS = 6.

VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = y_curtp_dropdown values = t_curtp_dropdown * EXCEPTIONS * ID_ILLEGAL_NAME = 1 * OTHERS = 2 .

VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = 'CKML_S_DISPLAY-CKM3_VALUE' values = t_ckm3_value_dropdown.

DD_DD07V_GET CALL FUNCTION 'DD_DD07V_GET' EXPORTING domain_name = 'CK_MLSTAT' langu = sy-langu withtext = 'X' TABLES dd07v_tab = lt_dd07v EXCEPTIONS access_failure = 1 OTHERS = 2.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'CKMLAVR_EXPLANATION_TOOL' EXCEPTIONS function_not_exist = 1 OTHERS = 2.

CKMLAVR_EXPLANATION_TOOL CALL FUNCTION 'CKMLAVR_EXPLANATION_TOOL' EXPORTING is_runperiod = s_runperiod id_curtp = mlkey-curtp TABLES it_kalnr = t_kalnr CHANGING ct_mlavrscale_sorted = t_mlavrscale[] ct_mlavrscalekeph_sorted = t_mlavrscalekeph[] EXCEPTIONS no_entries_found = 1 OTHERS = 2.

DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = l_dfies-domname langu = sy-langu texts_only = 'X' TABLES dd07v_tab = l_t_dd07v EXCEPTIONS illegal_input = 1 OTHERS = 2.

CKML_MGV_PROCALTN_TEXT_READ CALL FUNCTION 'CKML_MGV_PROCALTN_TEXT_READ' EXPORTING * I_KALNR = i_language = sy-langu * I_EDIT_LENGTH = CHANGING ct_alproc_texts = lt_alproc_texts EXCEPTIONS OTHERS = 1.

CKM8_ML_DATA_DISPLAY CALL FUNCTION 'CKM8_ML_DATA_DISPLAY' EXPORTING i_matnr = ls_tree_data-matnr i_bwkey = ls_tree_data-bwkey i_bwtar = ls_tree_data-bwtar * i_vbeln = ls_tree_data-vbeln * i_posnr = ls_tree_data-posnr * i_pspnr = ls_tree_data-pspnr i_bdatj = ls_tree_data-bdatj i_poper = ls_tree_data-poper i_curtp = ls_tree_data-curtp * i_run_id = ls_tree_data-run_id IMPORTING e_exit = ls_exit.

CKM8_ML_DATA_DISPLAY CALL FUNCTION 'CKM8_ML_DATA_DISPLAY' EXPORTING i_matnr = ld_matnr i_bwkey = ld_bwkey i_bwtar = ld_bwtar * i_vbeln = ls_tree_data-vbeln * i_posnr = ls_tree_data-posnr * i_pspnr = ls_tree_data-pspnr i_bdatj = ls_tree_data-bdatj i_poper = ls_tree_data-poper i_curtp = ls_tree_data-curtp * i_run_id = ls_tree_data-run_id IMPORTING e_exit = ls_exit.

CKM8_ML_DATA_DISPLAY CALL FUNCTION 'CKM8_ML_DATA_DISPLAY' EXPORTING i_matnr = ls_tree_data-matnr i_bwkey = ls_tree_data-bwkey i_bwtar = ls_tree_data-bwtar * i_vbeln = ls_tree_data-vbeln * i_posnr = ls_tree_data-posnr * i_pspnr = ls_tree_data-pspnr i_bdatj = ls_tree_data-bdatj i_poper = ls_tree_data-poper i_curtp = ls_tree_data-curtp * i_run_id = ls_tree_data-run_id IMPORTING e_exit = ls_exit.

CKM8_ML_DATA_DISPLAY CALL FUNCTION 'CKM8_ML_DATA_DISPLAY' EXPORTING i_matnr = ls_tree_data-matnr i_bwkey = ls_tree_data-bwkey i_bwtar = ls_tree_data-bwtar * i_vbeln = ls_tree_data-vbeln * i_posnr = ls_tree_data-posnr * i_pspnr = ls_tree_data-pspnr i_bdatj = ls_tree_data-bdatj i_poper = ls_tree_data-poper i_curtp = ls_tree_data-curtp i_run_id = ls_tree_data-run_id IMPORTING e_exit = ls_exit.

MLCCS_READ_CUSTOMIZING CALL FUNCTION 'MLCCS_READ_CUSTOMIZING' EXPORTING i_bwkey = i_bwkey IMPORTING ef_mlccs_customizing = gf_mlccs_cu EXCEPTIONS mlccs_not_active = 1 OTHERS = 2.

MLCCS_GET_LAYOUT CALL FUNCTION 'MLCCS_GET_LAYOUT' EXPORTING i_bwkey = i_bwkey i_bdatj = p_lgja "mlkey-bdatj i_poper = p_lpop "mlkey-poper i_untper = s_runperiod-untper i_curtp = mlkey-curtp IMPORTING ef_ckmlkev = gs_ckmlkev EXCEPTIONS error_occurred = 1 OTHERS = 2.

DD_DD07V_GET CALL FUNCTION 'DD_DD07V_GET' EXPORTING domain_name = 'MLCCS_D_SEL_KEART' langu = sy-langu withtext = 'X' TABLES dd07v_tab = lt_dd07v EXCEPTIONS access_failure = 1 OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING * DDIC_STRUCTURE = ' ' retfield = 'KEART' * PVALKEY = ' ' dynpprog = gd_report_name dynpnr = '0043' dynprofield = 'MLCCS_S_DOC-SEL_KEART' value_org = 'S' TABLES value_tab = t_keart_f4 EXCEPTIONS OTHERS = 1.

MLCCS_GET_LAYOUT





CALL FUNCTION 'MLCCS_GET_LAYOUT' EXPORTING i_bwkey = i_bwkey i_bdatj = i_bdatj i_poper = i_poper i_curtp = i_curtp i_untper = i_untper IMPORTING ef_ckmlkev = lf_ckmlkev EXCEPTIONS error_occurred = 1 OTHERS = 2.

CK_F_TCKH4_HIERARCHY_READING CALL FUNCTION 'CK_F_TCKH4_HIERARCHY_READING' EXPORTING p_elehk = l_elehk f_tckh8_standard = lf_tckh8_standard TABLES t_tckh1 = gt_ccs_tckh1 t_tckh3 = gt_ccs_tckh3.



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