SAP Reports / Programs | Controlling | Profitability Analysis(CO-PA) SAP CO

COPA_COPY_PLAN SAP ABAP Report - Copy CO-PA Plan Data Between Operating Concerns







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

KECC - Copy Transaction Data ( Plan )


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 COPA_COPY_PLAN. "Basic submit
SUBMIT COPA_COPY_PLAN AND RETURN. "Return to original report after report execution complete
SUBMIT COPA_COPY_PLAN 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: ST_VRGAR = D Transaction/Event Type
Selection Text: ST_PERIO = D Period/Year
Selection Text: P_VERSI = D Version Number
Selection Text: P_VERS2 = D Version Number
Selection Text: P_VDE = Read Summarization Level
Selection Text: P_VALTAR = Valuation
Selection Text: P_TEST = Test Run
Selection Text: P_TARGET = D Operating Concern
Selection Text: P_SUM = D Summarization Level
Selection Text: P_SOURCE = D Operating Concern
Selection Text: P_PLIKZ = D Plan/Actual Indicator
Selection Text: P_ORGTAR = Check Organization Structures
Selection Text: P_DERTAR = Derivation
Selection Text: P_DERSOU = Convert Characteristics
Selection Text: P_CHETAR = Check: Characteristic Values
Selection Text: P_CE3 = Read Totals Record ( CE3xxxx )
Selection Text: P_CE2 = Read Line Items ( CE2xxxx)
Title: Copy CO-PA Plan Data Between Operating Concerns
Text Symbol: 019 = Plan/Act. Indicator
Text Symbol: 018 = Read as Posted
Text Symbol: 017 = Read Line Items ( CE2 / CE1 )
Text Symbol: 016 = Maintain Char.Val. Conversion
Text Symbol: 015 = Profit Center Valuation View
Text Symbol: 014 = Legal Valuation View
Text Symbol: 013 = Valuation
Text Symbol: 012 = Check: Org. Units
Text Symbol: 011 = Char. Derivation
Text Symbol: 010 = Check: Char. Values
Text Symbol: 009 = Exit Identifier
Text Symbol: 008 = User Exit
Text Symbol: 007 = Control Parameters
Text Symbol: 006 = Copy to Operating Concern:
Text Symbol: 005 = Target Data
Text Symbol: 004 = Summarization Level
Text Symbol: 003 = Read Summarization Level
Text Symbol: 002 = Further Selections
Text Symbol: 001 = Source Data
Text Symbol: 020 = Version Number





INCLUDES used within this REPORT COPA_COPY_PLAN

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:

TR_SYS_PARAMS call function 'TR_SYS_PARAMS' importing systemtype = l_systemtype exceptions no_systemname = 1 no_systemtype = 2 others = 3.

RKE_CHECK_GENERATION call function 'RKE_CHECK_GENERATION' exporting erkrs = i_erkrs_from.

RKE_CHECK_GENERATION call function 'RKE_CHECK_GENERATION' exporting erkrs = i_erkrs_to.

RKE_VERSI_READ call function 'RKE_VERSI_READ' exporting i_erkrs = i_erkrs_from i_versi = xs_control-vers_fr importing es_tkevs = ls_tkevs exceptions versi_not_found = 1 others = 2.

RKE_VERSI_READ call function 'RKE_VERSI_READ' exporting
i_erkrs = i_erkrs_to i_versi = xs_control-vers_to importing es_tkevs = ls_tkevs exceptions versi_not_found = 1 others = 2.

RKE_VERSI_READ call function 'RKE_VERSI_READ' exporting i_erkrs = i_erkrs_to i_versi = xs_control-vers_to importing es_tkevs = ls_tkevs exceptions versi_not_found = 1 others = 2.

F4IF_FIELD_VALUE_REQUEST call function 'F4IF_FIELD_VALUE_REQUEST' exporting tabname = 'TKETRLF' fieldname = 'TRCATNR' dynpprog = sy-repid dynpnr = '1000' dynprofield = 'PTRCATNR-LOW' callback_program = sy-repid callback_form = 'SHRINK' selection_screen = 'X' tables return_tab = lt_return exceptions field_not_found = 1 no_help_for_field = 2 inconsistent_help = 3 no_values_found = 4 others = 5.

RKD_TR_LEVEL_READ call function 'RKD_TR_LEVEL_READ' exporting applclass = 'KE' subclass = '01' tabname = l_tabname trcatnr = i_trcatnr s_form_name = c_form_name_vde s_program_name = l_program_name * READ_DIRTY = 'X' importing no_record_found = l_no_records * TIMESTMP = tables selection_table = lt_sel_vde exceptions catalog_not_found = 1 trcatnr_not_found = 2 request_invalid = 3 trcatnr_not_active = 4 foreign_lock = 5 others = 6 .

RKE_DATA_READ_CALLBACK call function 'RKE_DATA_READ_CALLBACK' exporting i_erkrs = i_erkrs_from i_pa_type = '1' i_read_mode = i_read_mode i_t_sel = it_sel i_t_sf = lt_fld * I_DB_AGGREGATION = 'X' * I_SUMM_LEVEL_LOCK = 'X' i_program_name = l_program_name i_form_name = c_form_name * I_CALLER_APPL = * I_CALLER_DETAIL = * I_IGNORE_VALUTYP = importing e_info = l_info exceptions parameter_invalid = 1 internal_error = 2 no_sum_level_found = 3 sum_level_foreign_lock = 4 others = 5.

RKD_TR_LEVEL_FIND call function 'RKD_TR_LEVEL_FIND' exporting applclass = 'KE' subclass = '01' tabname = l_tabname * IMPORTING * TRCATNR = * SUM_LEVELS = tables selection_table = it_sel_vde et_levels = lt_entries * EXCEPTIONS * CATALOG_NOT_FOUND = 1 * REQUEST_INVALID = 2 * REQUEST_NOT_POSSIBLE = 3 * OTHERS = 4 .

RKE_FILL_FIELD_TABLE call function 'RKE_FILL_FIELD_TABLE' exporting erkrs = i_erkrs tables fieldtab = lt_fieldtab
exceptions ledger_not_def = 1 ledger_not_found = 2 table_not_found = 3 others = 4.

RKE_FILL_SCREEN_FIELDTABLE call function 'RKE_FILL_SCREEN_FIELDTABLE' exporting erg_rech_ber = rkb1x-erkrs modus = 'B' applclass = 'KE' tabname1 = l_tabname epos = 'X' i_rkb1x = rkb1x tables fdeptable = dep_tab fieldtable = dummy_tab exceptions entry_not_found = 01.

RKE_SEND_SELECTION_SCREEN call function 'RKE_SEND_SELECTION_SCREEN' exporting detail = ' ' display_modus = '1' einf_mehrf = 'N' start_column = 6 start_row = 4 text_length = 40 window_length = 12 window_title = ' ' window_width = 50 tables sel_table = lt_send_tab exceptions abnormal_leave = 01 criteria_not_found = 02.

RKE_CHARACTERISTIC_SELECTION call function 'RKE_CHARACTERISTIC_SELECTION' exporting display_modus = '1' initial_value = ' ' more = 'X' parameter = ' ' row_modus = '2' set = ' ' sort = ' ' start_column = 6 start_row = 4 window_length = 20 window_title = ' ' window_width = 83 tables char_table = char_tab dep_table = h_cec06_tab "H50967 exceptions abnormal_leave = 01 criteria_not_found = 02.

RKE_FILL_FIELD_TABLE call function 'RKE_FILL_FIELD_TABLE' exporting erkrs = i_erkrs tables fieldtab = lt_fieldtab exceptions ledger_not_def = 1 ledger_not_found = 2 table_not_found = 3 others = 4.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = l_repid dynumb = '1000' tables dynpfields = dynpfields exceptions invalid_abapworkarea = 01 invalid_dynprofield = 02 invalid_dynproname = 03 invalid_dynpronummer = 04 invalid_request = 05 no_fielddescription = 06
undefind_error = 07.



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