RCOPCA02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Actual Line Item Report 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 RCOPCA02 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
KE5Z - Profit Center: Actual Line Items
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 (G/L)
Selection Text: BUKRS = Company Code
Selection Text: DOCCT = Document Category
Selection Text: DOCNR = Document Number
Selection Text: DRCRK = Debit/Credit Indicator
Selection Text: KOKRS = Controlling Area
Selection Text: POPER = Posting Period
Selection Text: PPRCTR = Partner Profit Center
Selection Text: PRCTR = Profit Center
Selection Text: P_VARI = Display Variant
Selection Text: RACCT = Account
Selection Text: REFDOCCT = Reference Document Category
Selection Text: REFDOCNR = Reference Document Number
Selection Text: REPMATNR = Representative Material
Selection Text: RFAREA = Functional Area
Selection Text: RHOART = Origin Object Type
Selection Text: RRCTY = Record Type
Selection Text: RSCOPE = Object Class
Selection Text: RTCUR = Transaction Currency
Selection Text: RUNIT = Unit of Measure
Selection Text: RVERS = Version
Selection Text: RYEAR = Fiscal Year
Selection Text: STAGR = Statistical Key Figure
Selection Text: WERKS = Plant
Title: Profit Center: Actual Line Items
Text Symbol: T29 = Ref. Activity
Text Symbol: T28 = RefAc
Text Symbol: T27 = Reference Fiscal Year
Text Symbol: T26 = Ref. Year
Text Symbol: T25 = RefYr
Text Symbol: T24 = Real Estate Name
Text Symbol: T23 = RealEstate
Text Symbol: T22 = RealEs
Text Symbol: T21 = Real Estate Key
Text Symbol: T20 = Key
Text Symbol: T19 = Key
Text Symbol: T18 = Curr. Key Trans. Curr.
Text Symbol: T17 = Curr. Key Trans. Curr.
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 = bukrs-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.
KARL_DATA_INPUT_INIT CALL FUNCTION 'KARL_DATA_INPUT_INIT' EXPORTING i_report = lc_report i_reporttype = lc_reporttype IMPORTING e_xusedb = read_db e_xusear = read_ar e_archobj = arc_obj e_infosys = read_as TABLES t_arch_sel = lr_files.
RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING p_status = 'SELSCREEN' p_program = 'RCOPCA02' TABLES p_exclude = lt_excluding.
RSTI_APPL_STACK_POP CALL FUNCTION 'RSTI_APPL_STACK_POP' IMPORTING i_rec = a_rec EXCEPTIONS appl_stack_not_initialized = 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.
KARL_DATA_INPUT_SELECT CALL FUNCTION 'KARL_DATA_INPUT_SELECT' EXPORTING i_db_and_arc = lc_set i_infosys_possible = lc_set i_object_fixed = 'V' i_documentation = 'KARL_DATA_INPUT_SEL_KE5YZ' i_report = lc_report i_reporttype = lc_reporttype TABLES t_objects = lt_arch_obj t_arch_sel = lr_files CHANGING c_xusedb = read_db c_xusear = read_ar c_archobj = arc_obj c_infosys = read_as.
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 1.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Einzelposten selektieren'(p10).
DB_DO_NOT_USE_CLIENT_INDEX CALL FUNCTION 'DB_DO_NOT_USE_CLIENT_INDEX' EXPORTING value = sy-mandt TABLES mandttab = rclnt.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text2. " ... Datensätze gelesen
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Lesen im Archiv'(p12).
EC_PCA_SELECT_FROM_ARCHIVE CALL FUNCTION 'EC_PCA_SELECT_FROM_ARCHIVE' EXPORTING i_selections = lt_selections[] i_files_sequential_read = lr_files[] IMPORTING e_glpca = lt_glpca_archiv[] EXCEPTIONS no_infostruc_found = 1.
K_RACCT_SINGLE_CHECK CALL FUNCTION 'K_RACCT_SINGLE_CHECK' "note 0310592 EXPORTING i_kokrs =
-kokrs i_racct = -racct i_spras = sy-langu i_textflag = 'X' IMPORTING e_rpcak = ls_rpcak EXCEPTIONS not_valid = 1 OTHERS = 2.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Einzelposten sortieren'(p30).
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 =
-kokrs rldnr = -rldnr IMPORTING currency = ksl_curr.
G_CURRENCY_FROM_CT_GET CALL FUNCTION 'G_CURRENCY_FROM_CT_GET' EXPORTING bukrs =
-rbukrs ct = '10' IMPORTING currency = hsl_curr.
REMD_IMKEY_TO_EMPGE CALL FUNCTION 'REMD_IMKEY_TO_EMPGE' EXPORTING i_imkey =
-imkey i_dabrz = -dabrz * I_length = 20 IMPORTING e_empge = -empge e_konty = -konty EXCEPTIONS not_found = 1.
REMD_IMKEY_TO_EMPGE * call function 'REMD_IMKEY_TO_EMPGE' * exporting * i_imkey = i_glpca-imkey * i_dabrz = i_glpca-dabrz ** i_length = 20 * importing * e_empge = i_glpca-empge * e_konty = i_glpca-konty.
CONVERSION_EXIT_ABPSN_INPUT CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT' EXPORTING input =
-psppp IMPORTING output = -psppp.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Einzelposten ausgeben'(p50).
K_KKB_LIST_DISPLAY * call function 'K_KKB_LIST_DISPLAY' * exporting * i_callback_program = 'RCOPCA02' * i_callback_user_command = 'USR_CMD' * i_callback_top_of_page = 'TOP_OF_PAGE' ** I_CALLBACK_END_OF_PAGE = ** I_CALLBACK_END_OF_LIST = * i_callback_pf_status_set = 'SET_PF_STATUS' ** I_CALLBACK_LAYOUT_SAVE = ** I_CALLBACK_FIELDCAT_SAVE = * i_tabname = 'I_GLPCA' * is_layout = t_layout * it_fieldcat = t_fieldcat ** I_FCTYPE = 'R' ** IT_EXCLUDING = * it_special_groups = t_spec_groups ** IT_SORT = ** IS_SEL_HIDE = ** I_SCREEN_START_COLUMN = 0 ** I_SCREEN_START_LINE = 0 ** I_SCREEN_END_COLUMN = 0 ** I_SCREEN_END_LINE = 0 * tables * t_outtab = i_glpca * exceptions * others = 1.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' * CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = 'RCOPCA02' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USR_CMD' i_structure_name = 'I_GLPCA' is_layout = t_layout it_fieldcat = t_fieldcat * IT_EXCLUDING = it_special_groups = t_spec_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 = * 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 = i_glpca EXCEPTIONS program_error = 1 OTHERS = 2.
K_PCA_RESP_AUTHORITY_CHECK CALL FUNCTION 'K_PCA_RESP_AUTHORITY_CHECK' EXPORTING i_kokrs =
-kokrs i_prctr = -rprctr i_kstar = -racct i_vorgn = 'REPP' i_actvt = '28' 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 =
-rldnr rvers = -rvers rrcty = -rrcty EXCEPTIONS no_authorisation = 1 OTHERS = 2. NAMETAB_GET CALL FUNCTION 'NAMETAB_GET' EXPORTING only = 'T' tabname = 'RPCA2' TABLES nametab = nametab.
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.
READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' EXPORTING i_arbgb = 'KM' i_dtype = 'W' i_msgnr = '194' IMPORTING e_msgty = msgtyp.
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.
OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING OWN_LOGICAL_SYSTEM = l_own_logical_system EXCEPTIONS OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1 OTHERS = 2 .
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Anzeige Originalbeleg'(p60).
PCA_ACTUAL_DOCUMENT_SHOW CALL FUNCTION 'PCA_ACTUAL_DOCUMENT_SHOW' EXPORTING i_bukrs = i_glpca-rbukrs i_year = i_glpca-ryear i_docty = i_glpca-docty i_docnr_from = i_glpca-docnr * I_DOCNR_TO = i_activ = i_glpca-activ i_type = help_type i_xusedb = read_db i_xusear = read_ar i_archobj = arc_obj i_infosys = read_as TABLES t_arch_sel = lr_files EXCEPTIONS not_found = 1 missing_parameter = 2 form_error = 3 OTHERS = 4 .
G_DISPLAY_ORIGINAL_DOCUMENT CALL FUNCTION 'G_DISPLAY_ORIGINAL_DOCUMENT' EXPORTING i_glu1 = glu1 i_sl_documents = ' ' EXCEPTIONS no_document = 1 sl_document = 2 OTHERS = 3.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Anzeige Profit-Center-Beleg'(p70).
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Anzeige RW-Beleg'(p90).
AC_DOCUMENT_RECORD CALL FUNCTION 'AC_DOCUMENT_RECORD' EXPORTING i_awtyp = i_glpca-awtyp i_awref = i_glpca-refdocnr i_aworg = i_glpca-aworg * i_awsys = i_glpca-awsys i_awsys = l_awsys "note 1616138 * I_AWTYP_INCL = ' ' * I_AWTYP_EXCL = ' ' i_bukrs = i_glpca-rbukrs * X_DIALOG = 'X' * TABLES * T_DOCUMENTS = EXCEPTIONS OTHERS = 1.
DRB_SHOW CALL FUNCTION 'DRB_SHOW' EXPORTING i_borident = lw_borident.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Anzeige Stammdaten'(p80).
K_RACCT_DISPLAY CALL FUNCTION 'K_RACCT_DISPLAY' EXPORTING i_racct = i_glpca-racct i_kokrs = i_glpca-kokrs EXCEPTIONS not_found = 1 OTHERS = 2.
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = i_glpca-kokrs IMPORTING e_tka01 = tka01.
REMD_SHOW_MASTER_DATA CALL FUNCTION 'REMD_SHOW_MASTER_DATA' EXPORTING i_imkey = i_glpca-imkey EXCEPTIONS unknown_type = 1 object_key_inconsistent = 2 OTHERS = 3.
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 = 0.
RSTI_REPORT_FIELDS_FIND CALL FUNCTION 'RSTI_REPORT_FIELDS_FIND' EXPORTING e_repid = 'RCOPCA02' e_type = 'R' TABLES it_fields = lt_fieldr.
RSTI_SELECTION_TRANSFORMATION CALL FUNCTION 'RSTI_SELECTION_TRANSFORMATION' TABLES it_fieldr = lt_fieldr it_selr = lt_selr.
G_SET_TREE_IMPORT CALL FUNCTION 'G_SET_TREE_IMPORT' EXPORTING setid = ld_setid TABLES set_values = lt_setvalues.
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 RCOPCA02 or its description.