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

RCOPCA55 SAP ABAP Report - EC-PCA: Copy Cost Center Groups







RCOPCA55 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 RCOPCA55 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

2KEU - Copy Cost Center Hierarchy


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 RCOPCA55. "Basic submit
SUBMIT RCOPCA55 AND RETURN. "Return to original report after report execution complete
SUBMIT RCOPCA55 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: P_STD = Copy standard hierarchy
Selection Text: SETNAME = Cost center group
Selection Text: UPD = Update run
Title: EC-PCA: Copy Cost Center Groups


INCLUDES used within this REPORT RCOPCA55

INCLUDE PCACONS3.


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:

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' "RDI_SETS_4.0

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' "RDI_SETS_4.0

G_SET_AVAILABLE * call function 'G_SET_AVAILABLE' "RDI_SETS_4.0

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING * GJAHR = '0000' KOKRS = KOKRS IMPORTING E_TKA01 = TKA01.

G_SET_TREE_SEARCH * call function 'G_SET_TREE_SEARCH' "RDI_SET_4.0

K_KHINR_CHECK CALL FUNCTION 'K_KHINR_CHECK' "RDI_SET_4.0

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' "RDI_SETS_4.0

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' "RDI_SETS_4.0

G_SET_AVAILABLE * call function 'G_SET_AVAILABLE' "RDI_SETS_4.0

G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' EXPORTING * class = '0H' "RDI_SETS_4.0

G_SET_TREE_DELETE CALL FUNCTION 'G_SET_TREE_DELETE' EXPORTING * class = '0H' "RDI_SETS_4.0

K_COPY_HIERARCHY_BY_CLASS CALL FUNCTION 'K_COPY_HIERARCHY_BY_CLASS' EXPORTING E_SETID = SET_ID_KOSTL E_COPY_CLASS = GSETC_PROFITCENTER_SETCLASS EXCEPTIONS COPY_NOT_POSSIBLE = 1 OTHERS = 2.

G_SET_TREE_IMPORT CALL FUNCTION 'G_SET_TREE_IMPORT' EXPORTING setid = set_id_kostl TABLES set_hierarchy = lt_hier set_values = lt_val EXCEPTIONS OTHERS = 5.

G_SET_TREE_REPLACE_NAMES CALL FUNCTION 'G_SET_TREE_REPLACE_NAMES' EXPORTING i_new_setclass = gsetc_profitcenter_setclass TABLES t_sethier = lt_hier EXCEPTIONS OTHERS = 5.

G_SET_TREE_PREPARE_GENERATION CALL FUNCTION 'G_SET_TREE_PREPARE_GENERATION' EXPORTING i_keep_rw_info = 'X' TABLES it_sethier = lt_hier it_setvalues = lt_val EXCEPTIONS OTHERS = 4.

G_SET_TREE_GENERATE CALL FUNCTION 'G_SET_TREE_GENERATE' TABLES set_hierarchy = lt_hier set_values = lt_val EXCEPTIONS OTHERS = 99.

G_SET_TREE_PURGE CALL FUNCTION 'G_SET_TREE_PURGE' EXPORTING * class = '0H' "RDI_SETS_4.0

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING DISPLAY = ' ' * I_KOKRS = ' ' POPUP = '1' IMPORTING E_KOKRS = KOKRS.

G_SET_DECRYPT_SETID





CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = setid_k IMPORTING kokrs = kokrs.

K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING FIELD_NAME = 'KOSTL' CRUSER = '*' SEARCHFLD = SEARCHFLD SEARCHFLD_INPUT = ' ' TABLE = 'CCSS' "RDI_SETS_4.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 RCOPCA55 or its description.