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

MLCCS_STARTUPF04 SAP ABAP INCLUDE - MLCCSSTARTUPF04







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

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:

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = ckru0_co_msg_aplid_run object_id = ckru0_co_msg_objid_run no_other_initialize = 'X' EXCEPTIONS OTHERS = 01.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'C+' msgno = '114' msgty = 'W'.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'CKMLLA' msgno = '002' msgty = 'W'.

CKML_F_POSTING_PERIODS_GET CALL FUNCTION 'CKML_F_POSTING_PERIODS_GET' EXPORTING bwkey = &t_t001k-bwkey TABLES t_periode = lt_periods.

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = &t_t001k-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 = cki_wwo_ml.

ENQUEUE_EMMBEWE CALL FUNCTION 'ENQUEUE_EMMBEWE' EXPORTING bwkey = &t_t001k-bwkey EXCEPTIONS foreign_lock = 1 system_failure = 2 error_message = 3 OTHERS = 4.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE'.

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = lf_object object_id = ckru0_co_msg_objid_run EXCEPTIONS OTHERS = 0.

DEQUEUE_EMMBEWE CALL FUNCTION 'DEQUEUE_EMMBEWE' EXPORTING bwkey = &t_t001k-bwkey.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

CKML_LA_BUFFER_CLEAR CALL FUNCTION 'CKML_LA_BUFFER_CLEAR'.

CKML_LA_HEADER_READ CALL FUNCTION 'CKML_LA_HEADER_READ' EXPORTING i_refresh_buffer = ' ' TABLES it_kalnr = &t_kalnr EXCEPTIONS no_key_specified = 1 header_not_found_kalnr = 2 no_data_found = 3 no_header_created = 4 OTHERS = 5.

CKML_LA_HEADER_READ CALL FUNCTION 'CKML_LA_HEADER_READ' EXPORTING i_refresh_buffer = ' ' i_kalnr = ls_kalnr-kalnr IMPORTING ef_ckmllahd = lf_ckmllahd EXCEPTIONS no_key_specified = 1 header_not_found_kalnr = 2 no_data_found = 3 no_header_created = 4 OTHERS = 5.

CKML_LA_PERIOD_READ CALL FUNCTION 'CKML_LA_PERIOD_READ' EXPORTING i_check_st_val_rel = space i_kalnr = &f_ckmllahd-kalnr i_bdatj = &bdatj i_poper = &poper i_untper = '000' TABLES et_ckmllacr = lt_ckmllacr EXCEPTIONS interface_error = 1 no_period_data_found = 2 no_split_data_found = 3 internal_error = 4 OTHERS = 5.

CKML_MGV_SET_PERIOD CALL FUNCTION 'CKML_MGV_SET_PERIOD' EXPORTING i_bwkey = &f_t001k-bwkey i_perio = &poper i_gjahr = &bdatj IMPORTING e_datum = lh_datum EXCEPTIONS wrong_call = 1 plant_not_found = 2 bwkey_not_found = 3 period_not_found = 4 OTHERS = 5.

CKML_LA_SET_DATE CALL FUNCTION 'CKML_LA_SET_DATE' EXPORTING i_date = lh_datum.

CKML_LA_GET_ACTIVITY_PRICES CALL FUNCTION 'CKML_LA_GET_ACTIVITY_PRICES' EXPORTING i_kalnr = &f_ckmllahd-kalnr i_objnr = &f_ckmllahd-objnr i_bwkey = &f_t001k-bwkey i_poper = &poper i_bdatj = &bdatj i_untper = '000' i_components = 'X' IMPORTING et_prkeko = lt_ckmlprkeko et_prkeph = lt_ckmlprkeph TABLES et_ckmllacr = lt_ckmllacr_new EXCEPTIONS input_error_tka09 = 1 could_not_convert = 2 split_not_active = 3 error_getting_price = 4 price_not_needed = 5 argument_error = 6 error_reading_versn = 7 OTHERS = 8.

MLCCS_STOCKRELEVANT_VALUE_GET





CALL FUNCTION 'MLCCS_STOCKRELEVANT_VALUE_GET' EXPORTING cf_keph = ls_ckmlprkeph i_destin_curtp = ls_ckmlprkeph-curtp i_bwkey = &f_t001k-bwkey i_bdatj = ls_ckmlprkeph-bdatj i_poper = ls_ckmlprkeph-poper i_keart = ls_ckmlprkeph-keart IMPORTING stockrelevant_value = lh_source_value.

MLCCS_SCALE_UPDOWN CALL FUNCTION 'MLCCS_SCALE_UPDOWN' EXPORTING i_source_value = lh_source_value i_destin_value = lh_destin_value i_destin_curtp = ls_ckmllacr-curtp i_bwkey = &f_t001k-bwkey i_bdatj = ls_ckmllacr-bdatj i_poper = ls_ckmllacr-poper i_keart = ls_ckmlprkeph-keart i_kkzst = ls_ckmlprkeph-kkzst CHANGING cf_keph = ls_ckmlprkeph EXCEPTIONS cf_keph_is_initial = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

MLCCS_READ_CUSTOMIZING CALL FUNCTION 'MLCCS_READ_CUSTOMIZING' EXPORTING i_bwkey = &f_t001k-bwkey IMPORTING ef_mlccs_customizing = lf_customizing EXCEPTIONS mlccs_not_active = 1 OTHERS = 2.

MLCCS_GET_LAYOUT CALL FUNCTION 'MLCCS_GET_LAYOUT' EXPORTING i_bwkey = &f_t001k-bwkey i_bdatj = &f_ckmllacr-bdatj i_poper = &f_ckmllacr-poper i_untper = &f_ckmllacr-untper i_curtp = &f_ckmllacr-curtp IMPORTING ef_ckmlkev = lf_ckmlkev EXCEPTIONS error_occurred = 1 OTHERS = 2.

CKML_LA_GET_DATE CALL FUNCTION 'CKML_LA_GET_DATE' IMPORTING e_date = lh_datum.

CKML_LA_CCS_GET_COST_COMPONENT CALL FUNCTION 'CKML_LA_CCS_GET_COST_COMPONENT' EXPORTING i_objnr = &f_ckmllahd-objnr i_date = lh_datum i_bwkey = &f_t001k-bwkey i_curtp = &f_ckmllacr-curtp IMPORTING e_kostart = lh_kstar EXCEPTIONS OTHERS = 2.

MLCCS_KSTAR_TO_KSTEL CALL FUNCTION 'MLCCS_KSTAR_TO_KSTEL' EXPORTING i_elehk = lf_ckmlkev-elehk i_kstar = lh_kstar i_bukrs = &f_t001k-bukrs i_wtgbtr = lh_togbtr i_wtfbtr = lh_tofbtr CHANGING f_costcomp = ls_ckmlprkeph EXCEPTIONS kstel_not_found = 1 internal_error = 2 wrong_input = 3 OTHERS = 4.

MLCCS_KSTAR_TO_KSTEL CALL FUNCTION 'MLCCS_KSTAR_TO_KSTEL' EXPORTING i_elehk = lf_ckmlkev-elehkns i_kstar = lh_kstar i_bukrs = &f_t001k-bukrs i_wtgbtr = lh_togbtr i_wtfbtr = lh_tofbtr CHANGING f_costcomp = ls_ckmlprkeph EXCEPTIONS kstel_not_found = 1 internal_error = 2 wrong_input = 3 OTHERS = 4.



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