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

CKMLBB_RUN_BASIC SAP ABAP INCLUDE - CKMLBBRUNBASIC







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

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:

CKML_RUN_VALAREAS_GET CALL FUNCTION 'CKML_RUN_VALAREAS_GET' EXPORTING i_run_id = s_run_period_data-run_id i_run_type = p_runtyp i_last_day = p_runday IMPORTING et_valareas = lt_bwkey_info[].

K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' EXPORTING par_dialg = 'X' "Dialog wird geführt par_jname = l_jobname "Jobname par_print = 'X' "Druckparameter angebbar par_rname = l_repid "#EC DOM_EQUAL "Reportname für den Submit par_sdmsg = 'X' "Nachricht ausgeben par_abend = 'X' TABLES tab_selpa = lt_selektionen.

CKML_RUN_PERIOD_GET CALL FUNCTION 'CKML_RUN_PERIOD_GET' EXPORTING i_run_id = s_run_period_data-run_id i_run_type = p_runtyp i_last_day = p_runday IMPORTING es_runperiod = s_run_period_data.

ENQUEUE_ECKML_INDX_RUN CALL FUNCTION 'ENQUEUE_ECKML_INDX_RUN' EXPORTING mode_ckml_s_indx_run = 'E' run_id = s_run_period_data-run_id appl = 'RN' _scope = '1'.

ENQUEUE_ECKMLRUNPERIOD CALL FUNCTION 'ENQUEUE_ECKMLRUNPERIOD' EXPORTING * MODE_CKMLRUNPERIOD = 'E' * MANDT = SY-MANDT run_id = s_run_period_data-run_id * X_RUN_ID = ' ' _scope = '1' "Sperre bleibt im ONLINE!! * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING * APPEND_SAME_MSG = ' ' arbgb = 'CKMLMV' msgnr = '170' msgty = 'E' msgv1 = g_msgvar "Benutzer, der sperrt * msgv2 = sy-msgv2 * msgv3 = sy-msgv3 * msgv4 = sy-msgv4 msg_on_screen = 'X' * OBJECT_DEPENDENT = ' ' EXCEPTIONS mesage_type_not_valid = 1 no_sy_message = 2 OTHERS = 3.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING * APPEND_SAME_MESSAGE = ' ' * MSGID = SY-MSGID * MSGNO = SY-MSGNO * MSGTY = SY-MSGTY * MSGV1 = SY-MSGV1 * MSGV2 = SY-MSGV2 * MSGV3 = SY-MSGV3 * MSGV4 = SY-MSGV4 msg_on_screen = 'X' * OBJECT_DEPENDENT = ' ' EXCEPTIONS OTHERS = 1.

CKML_RUN_PEP_RECORD_OPEN * CALL FUNCTION 'CKML_RUN_PEP_RECORD_OPEN' * EXPORTING * i_function = ckru0_pepfunction-ml02 * i_activity = ckru0_pepaction-n16 * i_repid = h_repid "#EC DOM_EQUAL * i_tcode = h_tcode * i_test = p_test * i_run_type = p_runtyp * i_last_day = p_runday * i_run_id = s_run_period_data-run_id.

CKML_SCHEDMAN_RECORD_OPEN CALL FUNCTION 'CKML_SCHEDMAN_RECORD_OPEN' EXPORTING i_function = 'ML18' i_activity = ckru0_pepaction-n16 i_scma_witem = ls_witem i_repid = h_repid "#EC DOM_EQUAL * I_TCODE = SY-TCODE * I_TEST = ' ' i_run_id = s_run_period_data-run_id .

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING * ABORT_MSGTY = 'A' aplid = ckru0_co_msg_aplid_run * MSG_ON_SCREEN = ' ' object_id = ckru0_co_msg_objid_run * OCS_ACTIV = ' ' * REFRESH_OLD_LOG = 'X' * SMSG_INITIALIZE = ' ' * NO_OTHER_INITIALIZE = ' ' * NO_DISPLAY_ON_ABORT = ' ' * IMPORTING * INITIALIZE_NOT_ALLOWED = * SMSG_IDENTIFICATION = EXCEPTIONS message_type_not_valid = 1 unknown_aplid = 2 unknown_object_id = 3 OTHERS = 4.

CKMLBB0_AGGREGATE CALL FUNCTION 'CKMLBB0_AGGREGATE' EXPORTING i_run_id = s_run_period_data-run_id IMPORTING et_statistics = lt_stat e_mats_all = mats_all e_periods_all = periods_all EXCEPTIONS error_message = 1.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = sy-msgid msgno = sy-msgno msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'CKMLBB' msgnr = '497' msgty = 'I' msgv1 = ls_stat-bwkey msgv2 = ls_stat-materials EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'CKMLBB' msgnr = '498' msgty = 'I' msgv1 = mats_all EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'CKMLBB' msgnr = '499' msgty = 'I' msgv1 = periods_all EXCEPTIONS OTHERS = 0.

CM_F_STORE CALL FUNCTION 'CM_F_STORE' EXPORTING aplid = ckru0_co_msg_aplid_run * IN_UPDATE_TASK = 'X' * I_CMF_NR = 0 IMPORTING e_cmf_nr = g_cmf_nr.

CKML_RUN_PEP_RECORD_CLOSE * CALL FUNCTION 'CKML_RUN_PEP_RECORD_CLOSE' * EXPORTING * i_aplstat = g_aplstat ** I_OBJECTS = * i_aplid = ckru0_co_msg_aplid_run * i_object_id = ckru0_co_msg_objid_run * i_nr = g_cmf_nr.

CKML_SCHEDMAN_RECORD_CLOSE CALL FUNCTION 'CKML_SCHEDMAN_RECORD_CLOSE' EXPORTING * I_OBJECTS = i_aplication_status = g_aplstat i_prot_number = g_cmf_nr i_scma_event = ls_scma_event.

DEQUEUE_ECKMLRUNPERIOD





CALL FUNCTION 'DEQUEUE_ECKMLRUNPERIOD' EXPORTING * MODE_CKMLRUNPERIOD = 'E' * MANDT = SY-MANDT run_id = s_run_period_data-run_id * X_RUN_ID = ' ' _scope = '1'.

DEQUEUE_ECKML_INDX_RUN CALL FUNCTION 'DEQUEUE_ECKML_INDX_RUN' EXPORTING mode_ckml_s_indx_run = 'E' run_id = s_run_period_data-run_id appl = 'RN' _scope = '1'.

TCURM_SINGLE_READ CALL FUNCTION 'TCURM_SINGLE_READ' * EXPORTING * KZRFB = ' ' IMPORTING wtcurm = lf_tcurm.



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