SAP Reports / Programs | Enterprise Controlling | Profit Center Accounting(EC-PCA) SAP EC

RCOPCA08 SAP ABAP Report - Profit Center: Plan Line Items







RCOPCA08 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Plan Line Item Report The documentation can be found in the SAP Library under AC -> Enterprise Controlling -> Profit Center Accounting -> Information System -> Standard Reports -> Line Item Reports...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RCOPCA08 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

KE5Y - Profit Center: Plan Line Items


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 RCOPCA08. "Basic submit
SUBMIT RCOPCA08 AND RETURN. "Return to original report after report execution complete
SUBMIT RCOPCA08 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: ACTIV = Activity
Selection Text: BUKRS = Company Code
Selection Text: DOCCT = Document Category
Selection Text: DOCNR = Document Number
Selection Text: DRCRK = Debits/Credits 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_VARI1 = 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 = Plan Version
Selection Text: RYEAR = Fiscal Year
Selection Text: STAGR = Statistical Key Figure
Selection Text: WERKS = Plant
Title: Profit Center: Plan Line Items
Text Symbol: T45 = Asset Trans. Type
Text Symbol: T44 = Asset Trans. Type
Text Symbol: T43 = Trns.Typ
Text Symbol: T30 = Ref. Activity
Text Symbol: T29 = Ref. Activity
Text Symbol: T28 = RefAc
Text Symbol: T27 = Year of Ref. Doc.
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: T10 = Period
Text Symbol: T09 = Ref. Doc. Line
Text Symbol: W01 = PrCtr LC
Text Symbol: W02 = PrCtr LC
Text Symbol: W03 = Profit Center Local Currency
Text Symbol: W04 = Curr.
Text Symbol: W05 = Curr. Key of PrCtr LC
Text Symbol: W06 = Curr. Key of PrCtr LC
Text Symbol: W07 = Local Cur.
Text Symbol: W08 = Local Currency
Text Symbol: W09 = Amount in Local Crcy
Text Symbol: W10 = CoCd curr.
Text Symbol: W11 = Curr. Key of CoCd Curr.
Text Symbol: W12 = Curr. Key of CoCd Curr.
Text Symbol: W13 = Trns.cur.
Text Symbol: W14 = Trans. Currency
Text Symbol: W15 = Amount in Trans. Currency
Text Symbol: W16 = TC
Text Symbol: W17 = Currency key
Text Symbol: W18 = Curr. Key Trans. Cur.
Text Symbol: N06 = Transaction Currency
Text Symbol: N05 = Company Code Currency
Text Symbol: N03 = PrCtr Local Currency
Text Symbol: N02 = Controlling
Text Symbol: N01 = Reference Document
Text Symbol: N00 = Document
Text Symbol: M13 = Account Text
Text Symbol: M12 = Account Text
Text Symbol: M11 = Acct Text
Text Symbol: M02 = Read Account Texts
Text Symbol: M01 = Data Records Read
Text Symbol: M00 = Quantity
Text Symbol: H18 = Unit of Measure
Text Symbol: H17 = Transaction Currency
Text Symbol: H16 = Account
Text Symbol: H15 = Sender Profit Center
Text Symbol: H14 = Profit Center





Text Symbol: H13 = Plan Version
Text Symbol: H12 = Fiscal Year
Text Symbol: H11 = Company Code
Text Symbol: H10 = Controlling Area
Text Symbol: H06 = Plan Version
Text Symbol: H05 = Fiscal Year
Text Symbol: H03 = Company Code
Text Symbol: H02 = Controlling Area
Text Symbol: H01 = Ledger
Text Symbol: E01 = Settings
Text Symbol: B03 = Receiver CoCde
Text Symbol: B02 = CoCde
Text Symbol: B01 = CoCd
Text Symbol: T08 = Document Line
Text Symbol: T07 = Row
Text Symbol: T06 = Ref.Doc.No.
Text Symbol: T05 = Ref. Document
Text Symbol: T04 = Ref.Doc.
Text Symbol: T03 = Ref.Doc.Cat.
Text Symbol: T02 = Document Cat.
Text Symbol: T01 = Type
Text Symbol: S06 = Document Reversed
Text Symbol: S05 = Reversal
Text Symbol: S04 = Cancellation
Text Symbol: S03 = Document is Reversal Doc.
Text Symbol: S02 = Reversal Document
Text Symbol: S01 = ReverseDoc
Text Symbol: P80 = Display Master Data
Text Symbol: P70 = Display Original Document
Text Symbol: P60 = Display Period Breakdown
Text Symbol: P50 = Display Line Items
Text Symbol: P40 = Authorization Checks
Text Symbol: P30 = Sort Line Items
Text Symbol: P20 = Filtering Data
Text Symbol: P13 = Data Source
Text Symbol: P12 = Read in Archive
Text Symbol: P10 = Select Line Items
Text Symbol: N12 = Statistical Key Figures
Text Symbol: N11 = Assets/Invest./Real Est.



Text Symbol: N10 = Logistics / Sales & Dist
Text Symbol: N09 = Financial Accounting
Text Symbol: N08 = Profit Center / Account
Text Symbol: N07 = Quantity


INCLUDES used within this REPORT RCOPCA08

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:

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 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_save1 CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save1 CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 1.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save2 CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.

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 = 'RCOPCA08' TABLES p_exclude = lt_excluding.

RSTI_APPL_STACK_POP CALL FUNCTION 'RSTI_APPL_STACK_POP' "oder Recherche? 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.

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_glpcp = lt_glpcp_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.

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).

REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY * CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = g_repid i_callback_pf_status_set = 'SET_PF_STATUS_1' i_callback_user_command = 'USR_CMD' i_structure_name = 'I_GLPCP' is_layout = s_layout1 it_fieldcat = t_fieldcat1 * IT_EXCLUDING = it_special_groups = t_spec_groups * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = i_default = 'X' i_save = g_save1 is_variant = g_variant1 it_events = t_events1 * 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_glpcp 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' "Reporting i_actvt = '28' "Line items 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 = 'RPCA8' TABLES nametab = nametab.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_variant1 i_save = g_save1 * 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_save1 CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save2 CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save1 CHANGING cs_variant = gx_variant.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save2 CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 1.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Anzeige Periodenaufriss'(p60).

K_KKB_LIST_DISPLAY * call function 'K_KKB_LIST_DISPLAY' * exporting * i_callback_program = 'RCOPCA08' * i_callback_user_command = 'USR_CMD' * i_callback_top_of_page = 'TOP_OF_PAGE2' ** I_CALLBACK_END_OF_PAGE = ** I_CALLBACK_END_OF_LIST = * i_callback_pf_status_set = 'SET_PF_STATUS_2' ** I_CALLBACK_LAYOUT_SAVE = ** I_CALLBACK_FIELDCAT_SAVE = * i_tabname = 'T_PERIODS' * is_layout = s_layout2 * it_fieldcat = t_fieldcat2 ** I_FCTYPE = 'R' ** IT_EXCLUDING = ############################ ** IT_SPECIAL_GROUPS = ** IT_SORT = ** IS_SEL_HIDE = * i_screen_start_column = 1 * i_screen_start_line = 1 * i_screen_end_column = 75 * i_screen_end_line = 27 * tables * t_outtab = t_periods * exceptions * others = 1.

REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY * CALL FUNCTION 'REUSE_ALV_LIST_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_2' "note 634407 i_structure_name = 'T_PERIODS' is_layout = s_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 = 27 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = t_periods EXCEPTIONS program_error = 1 OTHERS = 2.

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_glpcp-racct i_kokrs = i_glpcp-kokrs EXCEPTIONS not_found = 1 OTHERS = 2.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = i_glpcp-kokrs IMPORTING e_tka01 = tka01.

REMD_SHOW_MASTER_DATA CALL FUNCTION 'REMD_SHOW_MASTER_DATA' EXPORTING i_imkey = i_glpcp-imkey EXCEPTIONS unknown_type = 1 object_key_inconsistent = 2 OTHERS = 3.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Anzeige Originalbeleg'(p70).

K_KKB_TOP_OF_PAGE_HEADER * call function 'K_KKB_TOP_OF_PAGE_HEADER' * exporting * it_header = t_listheader1[] * exceptions * others = 1.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = t_listheader1[] EXCEPTIONS OTHERS = 1.

K_KKB_TOP_OF_PAGE_HEADER * call function 'K_KKB_TOP_OF_PAGE_HEADER' * exporting * it_header = t_listheader2[] * exceptions * others = 1.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = t_listheader2[] EXCEPTIONS OTHERS = 1.

RSTI_REPORT_FIELDS_FIND CALL FUNCTION 'RSTI_REPORT_FIELDS_FIND' EXPORTING e_repid = 'RCOPCA08' 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 RCOPCA08 or its description.