SAP Reports / Programs | Controlling | Product Cost Controlling | Actual Costing/Material Ledger(CO-PC-ACT) SAP CO

CKML_RUN_CREATE SAP ABAP Report - Obsolete from Release 4.6A







CKML_RUN_CREATE 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 CKML_RUN_CREATE 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 CKML_RUN_CREATE. "Basic submit
SUBMIT CKML_RUN_CREATE AND RETURN. "Return to original report after report execution complete
SUBMIT CKML_RUN_CREATE 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 Application
Selection Text: P_GJAHR = D Fiscal year
Selection Text: P_POPER = D Posting period
Selection Text: P_RUNDAY = D Last Day of Period
Selection Text: P_RUNTYP = D Costing run
Title: Obsolete from Release 4.6A
Text Symbol: 021 = The selected costing run profile does not exist
Text Symbol: 022 = Do you want to create the profile?
Text Symbol: 023 = Costing run profile does not exist
Text Symbol: 030 = Period / Fiscal year not unique!


INCLUDES used within this REPORT CKML_RUN_CREATE

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:

RS_SUBMIT_INFO CALL FUNCTION 'RS_SUBMIT_INFO' IMPORTING p_submit_info = f_submit_info.

CKML_RUN_VALUATION_LEVEL_GET CALL FUNCTION 'CKML_RUN_VALUATION_LEVEL_GET' * EXPORTING * I_KZRFB = IMPORTING e_bwkrs_cus = g_bwkrs_cus * EXCEPTIONS * not_found = 1 * valuation_level_initial = 2 * valuation_level_wrong = 3 * OTHERS = 4 .

CKML_RUN_SHIFTED_GJAHR_DETECT CALL FUNCTION 'CKML_RUN_SHIFTED_GJAHR_DETECT' IMPORTING e_xshifted = g_xshifted.

CKML_RUN_TYPE_GET CALL FUNCTION 'CKML_RUN_TYPE_GET' EXPORTING i_run_type = p_runtyp IMPORTING es_ckmlruntype = f_run_type * e_ktext = run_type_ktext EXCEPTIONS run_type_not_existent = 1 * OTHERS = 2 .

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING defaultoption = 'N' diagnosetext1 = text-021"Profil nicht vorhanden * DIAGNOSETEXT2 = ' ' * DIAGNOSETEXT3 = ' ' textline1 = text-022" Anlegen? * TEXTLINE2 = ' ' titel = text-023"Titel, Profil nicht vorh * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING answer = answer .

CKML_RUN_TYPE_GET CALL FUNCTION 'CKML_RUN_TYPE_GET' EXPORTING i_run_type = p_runtyp IMPORTING es_ckmlruntype = f_run_type * e_ktext = run_type_ktext * EXCEPTIONS * run_type_not_existent = 1 * OTHERS = 2 .

CKML_RUN_PERIOD_GET CALL FUNCTION 'CKML_RUN_PERIOD_GET' EXPORTING * I_RUN_ID = ' ' 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 = f_runperiod EXCEPTIONS run_not_existent = 1 * OTHERS = 2 .

ENQUEUE_ECKML_RUN_CREATE CALL FUNCTION 'ENQUEUE_ECKML_RUN_CREATE' * EXPORTING * MODE_CKMLRUNPLANT = 'E' * MANDT = SY-MANDT * WERKS = * LAST_DAY = * APPL = * VERSION = * X_WERKS = ' ' * X_LAST_DAY = ' ' * X_APPL = ' ' * X_VERSION = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3 .

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = lf_org_data-bwkey * exceptions * bwkey_not_found = 1 * internal_error = 2 * aschema_not_found = 3 * OTHERS = 4 .

CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = lf_wwo.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = cp_last_day"#EC DOM_EQUAL * I_MONMIT = 00 i_periv = lf_wwo-periv IMPORTING e_buper = l_poper e_gjahr = l_gjahr * exceptions * input_false = 1 * t009_notfound = 2 * t009b_notfound = 3 * OTHERS = 4 .

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = l_gjahr * I_MONMIT = 00 i_periv = lf_wwo-periv i_poper = l_poper IMPORTING e_date = lh_date * exceptions * input_false = 1 * t009_notfound = 2 * t009b_notfound = 3 * OTHERS = 4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = l_gjahr * I_MONMIT = 00 i_periv = lf_wwo-periv i_poper = l_poper IMPORTING e_date = lh_date * exceptions * input_false = 1 * t009_notfound = 2 * t009b_notfound = 3 * OTHERS = 4.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = ' ' popup_title = text-030 * START_COLUMN = '5' * START_ROW = '5' IMPORTING returncode = ep_rcode TABLES fields = lt_fields * exceptions * error_in_fields = 1 * others = 2 .

CKML_RUN_ID_FOR_PLANT_GET CALL FUNCTION 'CKML_RUN_ID_FOR_PLANT_GET' EXPORTING i_werks = lf_werks_taken-werks i_appl = ckru0_co_appl_act i_version = '000' i_last_day = p_last_day IMPORTING es_runperiod = lf_runperiod * EXCEPTIONS * not_found = 1 * OTHERS = 2 .

CKML_RUN_SHIFTED_GJAHR_DETECT CALL FUNCTION 'CKML_RUN_SHIFTED_GJAHR_DETECT' EXPORTING i_xrefresh_buffer = 'X' IMPORTING e_xshifted = g_xshifted.

CKML_RUN_NEW_RUN_ID_CREATE CALL FUNCTION 'CKML_RUN_NEW_RUN_ID_CREATE' IMPORTING e_run_id = run_id.

DEQUEUE_ECKML_RUN_CREATE CALL FUNCTION 'DEQUEUE_ECKML_RUN_CREATE' * EXPORTING * MODE_CKMLRUNPLANT = 'E' * MANDT = SY-MANDT * WERKS = * LAST_DAY = * APPL = * VERSION = * X_WERKS = ' ' * X_LAST_DAY = ' ' * X_APPL = ' ' * X_VERSION = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .

DEQUEUE_ECKMLRUNPERIOD





* CALL FUNCTION 'DEQUEUE_ECKMLRUNPERIOD' ** EXPORTING ** MODE_CKMLRUNPERIOD = 'E' ** MANDT = SY-MANDT ** RUN_ID = ** X_RUN_ID = ' ' ** _SCOPE = '3' ** _SYNCHRON = ' ' ** _COLLECT = ' ' * .

RS_SET_SELSCREEN_STATUS * CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' * EXPORTING * P_STATUS = 'SELECTION_SCREEN' * P_PROGRAM = 'CKML_RUN_CREATE' * TABLES * P_EXCLUDE = LT_EXFCODE.



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