SAP Reports / Programs | Controlling(CO) SAP CO

FCOM_TOTALS_ENHANCE SAP ABAP Report - CO Totals Records (COSS & COSP): Add Redundant Fields







FCOM_TOTALS_ENHANCE 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 FCOM_TOTALS_ENHANCE 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 FCOM_TOTALS_ENHANCE. "Basic submit
SUBMIT FCOM_TOTALS_ENHANCE AND RETURN. "Return to original report after report execution complete
SUBMIT FCOM_TOTALS_ENHANCE 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: ERR_ONLY = Only Display Incorrect Records
Selection Text: P_COSP = Totals Records: Primary Costs
Selection Text: P_COSS = Totals Records:Secondary Costs
Selection Text: P_TEST = Test Run
Selection Text: P_KOKRS = D .
Selection Text: S_GJAHR = D .
Selection Text: S_OBJNR = D .
Title: CO Totals Records (COSS & COSP): Add Redundant Fields
Text Symbol: 001 = Totals Records To Be Updated
Text Symbol: 002 = Options
Text Symbol: 102 = Error: TKA01 not found
Text Symbol: 103 = Error when reading master data
Text Symbol: O01 = Records Read
Text Symbol: O02 = Records for which company code has been set
Text Symbol: O03 = Incorrect Records
Text Symbol: RUN = Update Run:Changed Totals Records
Text Symbol: TST = Test Run: Totals Records To Be Changed


INCLUDES used within this REPORT FCOM_TOTALS_ENHANCE

INCLUDE FCOM_TOTALS_ENHANCETOP.


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:

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = ld_percentage text = ld_text.

SD_BUFFER_TABLES_REFRESH CALL FUNCTION 'SD_BUFFER_TABLES_REFRESH'.

K_ORDER_REFRESH_BUFFER CALL FUNCTION 'K_ORDER_REFRESH_BUFFER'.

DB_COMMIT call function 'DB_COMMIT'.

SD_BUFFER_TABLES_REFRESH CALL FUNCTION 'SD_BUFFER_TABLES_REFRESH'.

K_ORDER_REFRESH_BUFFER CALL FUNCTION 'K_ORDER_REFRESH_BUFFER'.

DB_COMMIT call function 'DB_COMMIT'.

K_OBJECTS_MASTER_READ call function 'K_OBJECTS_MASTER_READ' tables coiob_tab = lt_coiob i_periods = lt_periods exceptions others = 01.

K_SUBKEY_INTERPRET call function 'K_SUBKEY_INTERPRET' exporting co_hrkft = id_hrkft importing merkmale = ls_merkmale exceptions others = 1.

REUSE_ALV_FIELDCATALOG_MERGE call function 'REUSE_ALV_FIELDCATALOG_MERGE' exporting i_program_name = 'FCOM_TOTALS_ENHANCE' i_internal_tabname = 'GS_RESULT' changing ct_fieldcat = st_fieldcat.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' exporting *! i_interface_check = off *! i_buffer_active = off i_callback_program = gc_program i_callback_pf_status_set = c_status_set *! i_callback_user_command = 'ALV_USER_COMMAND' i_grid_title = ld_title_grid is_layout = ls_layout it_fieldcat = st_fieldcat it_excluding = lt_exclude *! it_sort = i_save = 'A' *! is_variant = ls_variant *! is_print = ls_print *! it_events = gt_events *! it_event_exit = gt_event_exit tables t_outtab = gt_cosx_result "827571 exceptions others = 0.

K_KOKRS_READ call function 'K_KOKRS_READ' exporting kokrs = id_kokrs importing e_tka01 = ss_tka01 exceptions others = 1.

FIRST_AND_LAST_DAY_IN_YEAR_GET call function 'FIRST_AND_LAST_DAY_IN_YEAR_GET' exporting i_gjahr = id_year i_periv = is_tka01-lmona importing e_first_day = cd_first_day e_last_day = cd_last_day exceptions others = 0.



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