RCOPCA10 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Display Totals Records The documentation can be found in the SAP Library, under
If you would like to execute this report or see the full code listing simply enter RCOPCA10 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
2KEE - Profit Center: Totals Records
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.
Selection Text: ACTIV = Activity
Selection Text: HRKFT = Origin group
Selection Text: KOKRS = Controlling area
Selection Text: POPER = Posting period
Selection Text: P_VARI = Display variant
Selection Text: RACCT = Account
Selection Text: RASSC = Company ID of trading partner
Selection Text: RBUKRS = Company code
Selection Text: REPMATNR = Representative material
Selection Text: RFAREA = Functional area
Selection Text: RHOART = Origin object type
Selection Text: RPRCTR = Profit center
Selection Text: RRCTY = Record type
Selection Text: RSCOPE = Object class
Selection Text: RVERS = Version
Selection Text: RYEAR = Fiscal year
Selection Text: SPRCTR = Partner profit center
Selection Text: STAGR = Statistical key figure
Selection Text: VERSA = Results analysis version
Selection Text: WERKS = Plant
Title: Totals Record Display: EC-PCA
Text Symbol: W17 = Currency key
Text Symbol: W16 = TC
Text Symbol: W15 = Amount in trans. currency
Text Symbol: E01 = Settings
Text Symbol: H01 = Ledger
Text Symbol: H02 = Controlling area
Text Symbol: H05 = Fiscal year
Text Symbol: M00 = Qty
Text Symbol: M01 = Quantity
Text Symbol: P10 = Select summary records
Text Symbol: P40 = Authorization checks
Text Symbol: P60 = Display period breakdown
Text Symbol: S01 = Data records read
Text Symbol: T01 = Cat.
Text Symbol: T10 = Period
Text Symbol: W01 = PCA currency
Text Symbol: W02 = PrCtr currency
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING i_bukrs = rbukrs-low IMPORTING e_kokrs = kokrs-low EXCEPTIONS no_kokrs_found = 1 OTHERS = 2.
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' "get fiscal year variant EXPORTING kokrs = kokrs-low IMPORTING e_tka01 = tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.
G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING date = sy-datlo variant = tka01-lmona IMPORTING period = poper-low year = ryear-low EXCEPTIONS ledger_not_assigned_to_company = 1 period_not_defined = 2 variant_not_defined = 3 OTHERS = 4.
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.
REUSE_ALV_VARIANT_EXISTENCE * call function 'REUSE_ALV_VARIANT_EXISTENCE' * exporting * i_save = g_save * changing * cs_variant = gx_variant * exceptions * not_found = 1.
K_RACCT_VALUE_REQUEST * call function 'K_RACCT_VALUE_REQUEST' "RD "4.6a
K_RACCT_VALUE_REQUEST * call function 'K_RACCT_VALUE_REQUEST' "RD "4.6a
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs-low EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.
ECPCA_RPMAX_VALUE_REQUEST CALL FUNCTION 'ECPCA_RPMAX_VALUE_REQUEST' "RD "4.6a
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs-low EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.
ECPCA_RPMAX_VALUE_REQUEST CALL FUNCTION 'ECPCA_RPMAX_VALUE_REQUEST' "RD "4.6a
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs-low EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Summensätze selektieren'(p10).
DB_DO_NOT_USE_CLIENT_INDEX CALL FUNCTION 'DB_DO_NOT_USE_CLIENT_INDEX' EXPORTING value = sy-mandt TABLES mandttab = rclnt.
ECPCA_GET_BLOCK_SIZE CALL FUNCTION 'ECPCA_GET_BLOCK_SIZE' IMPORTING e_block_size = block_size.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text2. " ... Datensätze gelesen
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text2. " ... Datensätze gelesen
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Berechtigungsprüfungen'(p40).
G_CURRENCY_FROM_CT_GET CALL FUNCTION 'G_CURRENCY_FROM_CT_GET' EXPORTING ct = '90' kokrs = it_glpct-kokrs rldnr = it_glpct-rldnr IMPORTING currency = ksl_curr.
G_CURRENCY_FROM_CT_GET CALL FUNCTION 'G_CURRENCY_FROM_CT_GET' EXPORTING bukrs = it_glpct-rbukrs ct = '10' IMPORTING currency = hsl_curr.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = g_repid * I_CALLBACK_PF_STATUS_SET = ' ' i_callback_user_command = 'USR_CMD' i_structure_name = 'it_glpct' is_layout = t_layout it_fieldcat = t_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = g_save is_variant = g_variant it_events = t_events * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = it_glpct EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_variant i_save = g_save * it_default_fieldcat = IMPORTING e_exit = g_exit es_variant = gx_variant EXCEPTIONS not_found = 2.
DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = g_repid dynumb = '1000' TABLES dynpfields = lt_dynpread.
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Anzeige Periodenaufriss'(p60).
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = g_repid i_callback_pf_status_set = 'SET_PF_STATUS_2' i_callback_user_command = 'USR_CMD' i_structure_name = 'T_PERIODS' is_layout = t_layout2 it_fieldcat = t_fieldcat2 * IT_EXCLUDING = * it_special_groups = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = i_default = 'X' * i_save = g_save2 * is_variant = g_variant2 * it_events = t_events2 * IT_EVENT_EXIT = * IS_PRINT = i_screen_start_column = 1 i_screen_start_line = 1 i_screen_end_column = 75 i_screen_end_line = 17 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = t_periods EXCEPTIONS program_error = 1 OTHERS = 2.
K_PCA_RESP_AUTHORITY_CHECK CALL FUNCTION 'K_PCA_RESP_AUTHORITY_CHECK' EXPORTING i_kokrs = it_glpct-kokrs i_prctr = it_glpct-rprctr i_kstar = it_glpct-racct i_vorgn ='REPP' i_actvt ='27' i_auth = auth i_no_dialog_message = 'X' EXCEPTIONS no_authority = 1 data_missing = 2 OTHERS = 3.
PCA_G_GLTP_AUTH_CHECK CALL FUNCTION 'PCA_G_GLTP_AUTH_CHECK' EXPORTING rldnr = it_glpct-rldnr rvers = it_glpct-rvers rrcty = it_glpct-rrcty EXCEPTIONS no_authorisation = 1 OTHERS = 2.
K_KKB_TOP_OF_PAGE_HEADER * call function 'K_KKB_TOP_OF_PAGE_HEADER' * exporting * it_header = t_listheader[] * exceptions * others = 1.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = t_listheader[] EXCEPTIONS OTHERS = 1.
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 RCOPCA10 or its description.