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

CKMLAVR_SIM SAP ABAP Report - Progran CKMLAVR_SIM







CKMLAVR_SIM 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_SIM 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_SIM. "Basic submit
SUBMIT CKMLAVR_SIM AND RETURN. "Return to original report after report execution complete
SUBMIT CKMLAVR_SIM 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: P_APPL = Application
Selection Text: P_BTCHRQ = Background Processing
Selection Text: P_GJAHR = Fiscal Year
Selection Text: P_POPER = Posting Period
Selection Text: P_RUNDAY = Last Day of Period
Selection Text: P_RUNTYP = Costing Run
Selection Text: P_SIZE = Package
Selection Text: P_STORE = Save Log
Selection Text: P_TEST = Test Run
Title: Progran CKMLAVR_SIM
Text Symbol: 001 = Processing Opts
Text Symbol: 002 = CKMLAVR_SIM
Text Symbol: 100 = Material
Text Symbol: 200 = Curr. Type/Valuation


INCLUDES used within this REPORT CKMLAVR_SIM

INCLUDE RCKMLMV_RUN_BASIC_LIST_SCREEN.
INCLUDE CKML_RUN_SELSCREEN_PERIOD_EXT.


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_type = id_runtyp i_last_day = cd_runday i_poper = cd_poper i_gjahr = cd_gjahr i_appl = id_appl IMPORTING es_runperiod = es_runperiod.

CKML_RUN_VALAREAS_GET * call function 'CKML_RUN_VALAREAS_GET' * exporting * i_run_type = p_runtyp * i_last_day = p_runday * i_appl = 'CUM' * importing * et_valareas = gt_valuation_areas.

ENQUEUE_ECKMLRUNPERIOD CALL FUNCTION 'ENQUEUE_ECKMLRUNPERIOD' EXPORTING mode_ckmlrunperiod = 'E' mandt = sy-mandt run_id = ls_runperiod-run_id * X_RUN_ID = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1.

K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' EXPORTING par_dialg = 'X' par_jname = l_jobname par_print = 'X' par_rname = l_repid "#EC DOM_EQUAL par_sdmsg = 'X' par_abend = 'X' TABLES tab_selpa = lt_selektionen.

CKML_SCHEDMAN_RECORD_OPEN CALL FUNCTION 'CKML_SCHEDMAN_RECORD_OPEN' EXPORTING i_function = 'ML14' i_activity = '16' i_repid = 'CKMLAVR_SIM' i_run_id = is_runperiod-run_id.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = 'ACT' object_id = 'ACT'.

CKMLAVR_CALL_BADI_SIMLUATIONS CALL FUNCTION 'CKMLAVR_CALL_BADI_SIMLUATIONS' EXPORTING id_runid = is_runperiod-run_id id_test = id_test id_paketumfang = id_size is_ckmlhd = ls_ckmlhd id_curtp = id_curtp IMPORTING ed_badi_instance = ed_badi.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING append_same_message = 'X' msgid = 'CKMLAVR' msgno = '899' msgty = 'I' msgv1 = ld_message.

CKML_SCHEDMAN_RECORD_CLOSE CALL FUNCTION 'CKML_SCHEDMAN_RECORD_CLOSE' EXPORTING i_objects = ld_overall_objects i_aplication_status = ld_appl_status i_prot_number = ld_protnr.

CM_F_STORE CALL FUNCTION 'CM_F_STORE' EXPORTING aplid = 'ACT ' in_update_task = 'X' IMPORTING e_cmf_nr = ed_protnr.



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