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

CKMLAVR_COMPARE_MLCD SAP ABAP Report - Program CKMLAVR_COMPARE_MLCD







CKMLAVR_COMPARE_MLCD 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 CKMLAVR_COMPARE_MLCD into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

CKMLAVRPERD - Display period values


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_COMPARE_MLCD. "Basic submit
SUBMIT CKMLAVR_COMPARE_MLCD AND RETURN. "Return to original report after report execution complete
SUBMIT CKMLAVR_COMPARE_MLCD VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: BWTART = D Valuation Type
Selection Text: P_BUKRS = D Company Code
Selection Text: P_CUMPER = Alternative Valuation Run
Selection Text: P_GJAHR = D Fiscal Year
Selection Text: P_MATNR = D Material
Selection Text: P_POPER = D Posting Period
Selection Text: P_POSNR = D Item (SD)
Selection Text: P_PSPNR = D WBS Element
Selection Text: P_RUNTYP = D Costing Run
Selection Text: P_VBELN = D Sales Document
Selection Text: P_WERKS = D Plant
Selection Text: SO_YEAR = D Fiscal Year
Title: Program CKMLAVR_COMPARE_MLCD
Text Symbol: 510 = The Control was not Generated
Text Symbol: 500 = Flush Error
Text Symbol: 203 = Display AVR
Text Symbol: 202 = Close View
Text Symbol: 201 = Display BOM
Text Symbol: 101 = Alternative Valuation Run
Text Symbol: 100 = Period Results Per Procurement Alternative
Text Symbol: 050 = Procurement Alternative
Text Symbol: 003 = Period
Text Symbol: 002 = Cumulation


INCLUDES used within this REPORT CKMLAVR_COMPARE_MLCD

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:

CKM8N_ML_DATA_DISPLAY CALL FUNCTION 'CKM8N_ML_DATA_DISPLAY' EXPORTING i_matnr = gd_matnr i_bwkey = gd_bwkey i_bwtar = gd_bwtar i_vbeln = gd_vbeln i_posnr = gd_posnr i_pspnr = gd_pspnr i_bdatj = ls_outtab-bdatj i_poper = ls_outtab-poper i_curtp = gd_curtp i_run_id = ld_runid IMPORTING e_exit = ld_exit.

CKM8N_ML_DATA_DISPLAY CALL FUNCTION 'CKM8N_ML_DATA_DISPLAY' EXPORTING i_matnr = gd_matnr i_bwkey = gd_bwkey i_bwtar = gd_bwtar i_vbeln = gd_vbeln i_posnr = gd_posnr i_pspnr = gd_pspnr i_bdatj = ls_outtab-bdatj i_poper = ls_outtab-poper i_curtp = gd_curtp i_run_id = ld_runid IMPORTING e_exit = ld_exit.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid txt2 = sy-subrc txt1 = 'Error in Flush'(500).

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid txt2 = sy-subrc txt1 = 'Error in Flush'(500).

TCURM_SINGLE_READ CALL FUNCTION 'TCURM_SINGLE_READ' IMPORTING wtcurm = tcurm EXCEPTIONS not_found = 1 valuation_level_initial = 2 valuation_level_wrong = 3 OTHERS = 4.

GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING bwkey = gd_bwkey 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 = gd_bwkey I_CVTYP = t_curtp-curtp * I_ACTVT = '03' IMPORTING E_XAUTH = h_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 .

CKML_RUN_PERIOD_GET CALL FUNCTION 'CKML_RUN_PERIOD_GET' EXPORTING i_run_type = p_runtyp i_last_day = p_runday i_poper = p_poper i_gjahr = p_gjahr i_appl = p_appl IMPORTING es_runperiod = gs_rundata EXCEPTIONS run_not_existent = 1 OTHERS = 2.

MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING matnr = p_matnr spras = sy-langu IMPORTING wmakt = makt EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.

T001W_SINGLE_READ CALL FUNCTION 'T001W_SINGLE_READ' EXPORTING t001w_werks = p_werks IMPORTING wt001w = t001w EXCEPTIONS not_found = 1 OTHERS = 2.

T001_SINGLE_READ CALL FUNCTION 'T001_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = p_bukrs IMPORTING wt001 = t001 EXCEPTIONS not_found = 1 wrong_call = 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 CKMLAVR_COMPARE_MLCD or its description.