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

FCML_FILL_REPORTING_TABLES SAP ABAP Report - Fill Material Ledger Reporting Tables







FCML_FILL_REPORTING_TABLES 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 FCML_FILL_REPORTING_TABLES into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FCML_FILL - Fill ML Reporting Tables


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 FCML_FILL_REPORTING_TABLES. "Basic submit
SUBMIT FCML_FILL_REPORTING_TABLES AND RETURN. "Return to original report after report execution complete
SUBMIT FCML_FILL_REPORTING_TABLES 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: S_POPER = D .
Selection Text: S_MATNR = D .
Selection Text: S_BWKEY = D .
Selection Text: S_BUKRS = D .
Selection Text: S_BDATJ = D .
Selection Text: P_TEST = D .
Selection Text: P_RUNTP = D .
Selection Text: P_RPOPER = D .
Selection Text: P_RGJAHR = D .
Selection Text: P_LDAY = D .
Selection Text: P_FC_REP = FCML_REP
Selection Text: P_FC_MAT = FCML_MAT
Selection Text: P_FC_CCS = FCML_CCS_REP
Selection Text: P_FC_ALP = FCML_ALT, FCML_PROC
Selection Text: P_DELETE = D .
Selection Text: P_APPL = D .
Selection Text: HDB = Write to HDB
Selection Text: ERP = Write to ERP Database
Title: Fill Material Ledger Reporting Tables
Text Symbol: B05 = Processing Options
Text Symbol: B04 = Database
Text Symbol: B03 = Create entries in the following database tables:
Text Symbol: B02 = Free Selection
Text Symbol: B01 = Selection via Costing Run ( take plants from Costing Run )
Text Symbol: 521 = Start/Stop FCML_SYNCHRONIZE_DOC:
Text Symbol: 520 = Start Report FCML_SYNCHRONIZE_DOC
Text Symbol: 023 = Message Log for Report FCML_FILL_REPORTING_TABLES
Text Symbol: 022 = Schedule Manager of Run will display log, when Costing Run is specified
Text Symbol: 021 = DB Connection Name:
Text Symbol: 020 = ML Characteristics for Material
Text Symbol: 019 = Alternatives and Processes
Text Symbol: 018 = Testmode, no database update
Text Symbol: 016 = Entries for Consumption Alternatives created
Text Symbol: 013 = Error in Alternative DB Connection (HDB)
Text Symbol: 009 = Entries for Processes created
Text Symbol: 008 = Entries for Alternatives created
Text Symbol: 007 = no data found
Text Symbol: 005 = Entries already existing (no update)





Text Symbol: 004 = Entries have been updated
Text Symbol: 003 = Entries have been created
Text Symbol: 002 = Connection to Alternat. DB not possible
Text Symbol: 001 = Alternative DB Connection (HDB)


INCLUDES used within this REPORT FCML_FILL_REPORTING_TABLES

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:

HDB_STATUS_GET CALL FUNCTION 'HDB_STATUS_GET' EXPORTING i_application = mlacc_appl i_subapplication = mlacc_subappl-drilldown_reporting i_status_name = mlacc_status_name-use_new_rep_tabs * I_KEY_VALUE = ' ' IMPORTING e_current_status_value = lv_status_value.

RSD_CUBE_GET * CALL FUNCTION 'RSD_CUBE_GET' * EXPORTING * i_infocube = mlacc_vip_ccs_name * i_objvers = 'M' * EXCEPTIONS * infocube_not_found = 1.

HDB_TABLE_GET_INFO CALL FUNCTION 'HDB_TABLE_GET_INFO' EXPORTING i_tabname = 'FCML_MAT' i_application = mlacc_appl IMPORTING e_hdb_exist = lv_hdb_exist e_erp_identical = lv_erp_identical EXCEPTIONS dbcon_not_exist = 1 dbcon_no_use = 2 dbcon_error = 3 ddic_error = 4 hdb_error = 5 OTHERS = 6.

HDB_TABLE_GET_INFO CALL FUNCTION 'HDB_TABLE_GET_INFO' EXPORTING i_tabname = 'FCML_REP' i_application = mlacc_appl IMPORTING e_hdb_exist = lv_hdb_exist e_erp_identical = lv_erp_identical EXCEPTIONS dbcon_not_exist = 1 dbcon_no_use = 2 dbcon_error = 3 ddic_error = 4 hdb_error = 5 OTHERS = 6.

HDB_TABLE_GET_INFO CALL FUNCTION 'HDB_TABLE_GET_INFO' EXPORTING i_tabname = 'FCML_PROC' i_application = mlacc_appl IMPORTING e_hdb_exist = lv_hdb_exist e_erp_identical = lv_erp_identical EXCEPTIONS dbcon_not_exist = 1 dbcon_no_use = 2 dbcon_error = 3 ddic_error = 4 hdb_error = 5 OTHERS = 6.

HDB_TABLE_GET_INFO CALL FUNCTION 'HDB_TABLE_GET_INFO' EXPORTING i_tabname = 'FCML_ALT' i_application = mlacc_appl IMPORTING e_hdb_exist = lv_hdb_exist e_erp_identical = lv_erp_identical EXCEPTIONS dbcon_not_exist = 1 dbcon_no_use = 2 dbcon_error = 3 ddic_error = 4 hdb_error = 5 OTHERS = 6.

HDB_TABLE_GET_INFO CALL FUNCTION 'HDB_TABLE_GET_INFO' EXPORTING i_tabname = 'FCML_CCS_REP' i_application = mlacc_appl IMPORTING e_hdb_exist = lv_hdb_exist e_erp_identical = lv_erp_identical EXCEPTIONS dbcon_not_exist = 1 dbcon_no_use = 2 dbcon_error = 3 ddic_error = 4 hdb_error = 5 OTHERS = 6.

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

CKML_SCHEDMAN_RECORD_OPEN CALL FUNCTION 'CKML_SCHEDMAN_RECORD_OPEN' EXPORTING i_function = 'ML20' i_activity = '16' " perform i_scma_witem = ls_witem i_repid = lv_prog_name * I_TCODE = 'CKMLCUM' i_test = p_test i_run_id = lv_run_id.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'FCMLACC' msgnr = '069' msgty = 'I'. "'Testmode, no database update'(018).

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'FCMLACC' msgnr = '070' msgty = 'W'. " No connection to HANA Database

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'FCMLACC' msgnr = '071' msgty = 'I' msgv1 = lv_dbcon. "Database Connection

CM_F_STORE CALL FUNCTION 'CM_F_STORE' EXPORTING aplid = 'ACT' * IN_UPDATE_TASK = 'X' * I_CMF_NR = 0 IMPORTING e_cmf_nr = lv_cmf_nr.

CKML_SCHEDMAN_RECORD_CLOSE CALL FUNCTION 'CKML_SCHEDMAN_RECORD_CLOSE' EXPORTING * I_OBJECTS = i_aplication_status = '0' i_prot_number = lv_cmf_nr i_scma_event = ls_scma_event.

CM_F_DISPLAY_LOG CALL FUNCTION 'CM_F_DISPLAY_LOG' EXPORTING grid_display = 'X' alv_variant = '1SAP00' "ckru0_co_msg_alv_variant EXCEPTIONS OTHERS = 0.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING headline = lv_headline alv_variant = '1SAP00' EXCEPTIONS OTHERS = 0.






HDB_DBCON_GET_APPL CALL FUNCTION 'HDB_DBCON_GET_APPL' EXPORTING i_application = mlacc_appl i_subapplication = mlacc_subappl-drilldown_reporting * I_KEY_VALUE = ' ' * I_CHECK_CONNECTION = 'X' it_required_table = lt_required_table * IT_PARAMETER = * I_UNAME = SY-UNAME IMPORTING e_dbcon_name = cv_dbcon * ET_MESSAGE = EXCEPTIONS dbcon_not_exist = 1 dbcon_no_use = 2 dbcon_error = 3 OTHERS = 4.

HDB_DBCON_GET_APPL CALL FUNCTION 'HDB_DBCON_GET_APPL' EXPORTING i_application = mlacc_appl i_subapplication = mlacc_subappl-virtual_info_provider * I_KEY_VALUE = ' ' * I_CHECK_CONNECTION = 'X' * IT_REQUIRED_TABLE = * IT_PARAMETER = * I_UNAME = SY-UNAME IMPORTING e_dbcon_name = cv_dbcon * ET_MESSAGE = EXCEPTIONS dbcon_not_exist = 1 dbcon_no_use = 2 dbcon_error = 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 FCML_FILL_REPORTING_TABLES or its description.