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

CKMLAVR_ITERATE_ACTUAL_PRICES SAP ABAP Report - Cumulation: Actual Price Calculation







CKMLAVR_ITERATE_ACTUAL_PRICES 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_ITERATE_ACTUAL_PRICES 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_ITERATE_ACTUAL_PRICES. "Basic submit
SUBMIT CKMLAVR_ITERATE_ACTUAL_PRICES AND RETURN. "Return to original report after report execution complete
SUBMIT CKMLAVR_ITERATE_ACTUAL_PRICES 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 = D .
Selection Text: P_BATCH = D .
Selection Text: P_GJAHR = D .
Selection Text: P_KOSTL = D .
Selection Text: P_KSTAL = D .
Selection Text: P_KSTGR = D .
Selection Text: P_KSTNO = D .
Selection Text: P_POPER = D .
Selection Text: P_PRZAL = D .
Selection Text: P_PRZGR = D .
Selection Text: P_PRZNO = D .
Selection Text: P_PRZNR = D .
Selection Text: P_RUNDAY = D .
Selection Text: P_RUNTYP = D .
Selection Text: P_STORE = D .
Title: Cumulation: Actual Price Calculation
Text Symbol: 001 = AVR: Actual Price Calculation
Text Symbol: 002 = Cost Centers
Text Symbol: 003 = Business Processes


INCLUDES used within this REPORT CKMLAVR_ITERATE_ACTUAL_PRICES

INCLUDE RKASMAWF.
INCLUDE SCHEDMAN_EVENTS.
INCLUDE: ML_ALLOW_CLOSING_RUN_SCREEN.


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:

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

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 = ls_rundata EXCEPTIONS run_not_existent = 1 OTHERS = 2.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE'.

CKML_RUN_VALAREAS_GET CALL FUNCTION 'CKML_RUN_VALAREAS_GET' EXPORTING i_run_id = ld_runid IMPORTING et_valareas = lt_valareas EXCEPTIONS run_not_existent = 1 OTHERS = 2.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE'.

CKML_SCHEDMAN_RECORD_OPEN CALL FUNCTION 'CKML_SCHEDMAN_RECORD_OPEN' EXPORTING i_function = ckru0_sm_function-iteration i_activity = ckru0_co_activity-perform I_SCMA_WITEM = ls_witem i_repid = my_repid * I_TCODE = 'CKMLCUM' * I_TEST = ' ' i_run_id = ld_runid.

T001K_SINGLE_READ CALL FUNCTION 'T001K_SINGLE_READ' EXPORTING bwkey = wa_valareas-bwkey IMPORTING wt001k = wa_t001k EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3.

BAPI_CONTROLLINGAREA_FIND CALL FUNCTION 'BAPI_CONTROLLINGAREA_FIND' EXPORTING companycodeid = wa_t001k-bukrs IMPORTING controllingareaid = ld_kokrs return = return.

K_VERSN_VALUATION CALL FUNCTION 'K_VERSN_VALUATION' EXPORTING i_kokrs = ld_kokrs IMPORTING e_basic_valuation = ld_bas_val TABLES t_tka09_v = lt_tka09_v EXCEPTIONS no_basic_version = 1 wrong_customizing = 2 valuation_profile_not_active = 3 OTHERS = 4.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE'.

BAPI_CONTROLLINGAREA_GETPERIOD CALL FUNCTION 'BAPI_CONTROLLINGAREA_GETPERIOD' EXPORTING controllingareaid = ld_kokrs posting_date = ls_rundata-first_day IMPORTING fiscal_year = ld_fromgjahr fiscal_period = ld_conv_pop return = return2.

BAPI_CONTROLLINGAREA_GETPERIOD CALL FUNCTION 'BAPI_CONTROLLINGAREA_GETPERIOD' EXPORTING controllingareaid = ld_kokrs posting_date = ls_rundata-last_day IMPORTING fiscal_year = ld_togjahr fiscal_period = ld_conv_pop return = return2.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'KI' msgno = '705' msgty = 'I'.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'KV' msgno = '604' msgty = 'I'.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'KI' msgno = '704' msgty = 'I'.

K_PLANNED_PRICE_CALC_RUN CALL FUNCTION 'K_PLANNED_PRICE_CALC_RUN' EXPORTING i_rkspi = ls_rkspi i_rknma_d = ls_rknma i_handle = ld_log_id EXCEPTIONS error_occurs = 1 OTHERS = 2.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXPORTING i_reset_identification = 'X'.

MESSAGES_INITIALIZE





CALL FUNCTION 'MESSAGES_INITIALIZE' IMPORTING e_identification = ld_identification.

MESSAGES_DB_LOAD CALL FUNCTION 'MESSAGES_DB_LOAD' EXPORTING i_identification = ld_identification i_log_handle = ld_log_handle EXCEPTIONS OTHERS = 8.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = wa_mesg-arbgb msgno = ld_msg_conv msgty = wa_mesg-msgty msgv1 = wa_mesg-msgv1 msgv2 = wa_mesg-msgv2 msgv3 = wa_mesg-msgv3 msgv4 = wa_mesg-msgv4.

CM_F_INFO CALL FUNCTION 'CM_F_INFO' EXPORTING all = 'X' aplid = 'ACT' IMPORTING msg_counter_pro = ld_count.

CKML_SCHEDMAN_RECORD_CLOSE CALL FUNCTION 'CKML_SCHEDMAN_RECORD_CLOSE' EXPORTING * i_objects = overall_objects i_aplication_status = appl_status i_prot_number = ld_protocol i_scma_event = ls_scma_event. "#EC ARGCHECKED

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

K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING FIELD_NAME = 'KOSTL ' IMPORTING SET_NAME = rknma_d-set_kostl SET_TITLE = rknma_d-settext_k EXCEPTIONS NO_SET_PICKED = 1.

K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING FIELD_NAME = 'PRZNR ' IMPORTING SET_NAME = rknma_d-set_prznr SET_TITLE = rknma_d-settext_p EXCEPTIONS NO_SET_PICKED = 1.



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