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

RCOPCA60_2 SAP ABAP Report - Collective Processing of Assignment of Company Codes to Profit Centers







RCOPCA60_2 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 RCOPCA60_2 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 RCOPCA60_2. "Basic submit
SUBMIT RCOPCA60_2 AND RETURN. "Return to original report after report execution complete
SUBMIT RCOPCA60_2 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_ASSIGN = Assign Company Codes
Selection Text: P_DISPLY = Display Assignments
Selection Text: P_UNASSI = Remove Assignment
Selection Text: SO_BUKRS = Company Code
Selection Text: SO_PRCTR = Profit Center
Selection Text: P_GROUP = D .
Selection Text: P_KOKRS = D .
Selection Text: P_TEST = D .
Title: Collective Processing of Assignment of Company Codes to Profit Centers
Text Symbol: 001 = Collective Processing Log
Text Symbol: 002 = (Test Run)
Text Symbol: 004 = Selection Conditions
Text Symbol: 005 = Assignments


INCLUDES used within this REPORT RCOPCA60_2

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:

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = gs_log IMPORTING e_log_handle = gd_log_handle EXCEPTIONS OTHERS = 1.

PROFITCENTER_CHANGE CALL FUNCTION 'PROFITCENTER_CHANGE' EXPORTING prctr_data = gs_prctr_data prctr_datax = gs_prctr_datax "empty no_ccodes_check = p_no_ccc complete = 'X' inactive_version = 'X' testrun = gs_testrun IMPORTING return = gs_bapiret2 TABLES companycode_joint_venture = gt_prct1_bukrs companycode_joint_venturex = gt_prct1_bukrsx.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gd_log_handle i_s_msg = gs_msg EXCEPTIONS OTHERS = 1.

BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING e_s_display_profile = gs_display_profile EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = gs_display_profile EXCEPTIONS OTHERS = 1.

PROFITCENTER_SELECT CALL FUNCTION 'PROFITCENTER_SELECT' EXPORTING profit_ctr = t_prctr-prctr co_area = i_kokrs inactive_version = 'X' with_text = space * TEXT_LANGUAGE = SY-LANGU TABLES * ET_PRCT2 = et_cepc_bukrs = lt_cepc_bukrs * ET_CEPCT = EXCEPTIONS invalid_input = 1 OTHERS = 2.

PROFITCENTER_SELECT CALL FUNCTION 'PROFITCENTER_SELECT' EXPORTING profit_ctr = t_prctr-prctr co_area = i_kokrs inactive_version = space with_text = space * TEXT_LANGUAGE = SY-LANGU TABLES * ET_PRCT2 = et_cepc_bukrs = lt_cepc_bukrs * ET_CEPCT = EXCEPTIONS invalid_input = 1 OTHERS = 2.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_tabname_header = g_tabname_header i_tabname_item = g_tabname_item * i_structure_name_header = 'CEPC-PRCTR' * i_structure_name_item = 'PCA_BUKRS_WITH_TEXT' is_keyinfo = ls_keyinfo it_fieldcat = lt_fieldcat is_layout = ls_layout * I_SCREEN_START_COLUMN = 0 "Use coordinates for * I_SCREEN_START_LINE = 0 "display as dialog box * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * e_exit_caused_by_caller = g_exit_caused_by_caller * es_exit_caused_by_user = gs_exit_caused_by_user TABLES t_outtab_header = lt_outtab_header t_outtab_item = lt_outtab_item EXCEPTIONS program_error = 1 OTHERS = 2.

K_GROUP_REMOTE_READ CALL FUNCTION 'K_GROUP_REMOTE_READ' EXPORTING setclass = '0106' co_area = p_kokrs * CHRT_ACCTS = groupname = ld_groupname * LANGUAGE = * IMPORTING * RETURN = TABLES et_sethier = lt_sethier et_setval = lt_setval.

K_PCA_RESP_AUTHORITY_CHECK CALL FUNCTION 'K_PCA_RESP_AUTHORITY_CHECK' EXPORTING i_kokrs = p_kokrs i_prctr = ls_prctr-prctr i_vorgn = 'STDT' "Master Data i_actvt = '03' i_no_dialog_message = 'X' "note 447948 EXCEPTIONS no_authority = 1 data_missing = 2 OTHERS = 3.



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