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

COPA_KEPM_SHOW SAP ABAP Report - Display Planning Levels, Packages







COPA_KEPM_SHOW 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_KEPM_SHOW 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 COPA_KEPM_SHOW. "Basic submit
SUBMIT COPA_KEPM_SHOW AND RETURN. "Return to original report after report execution complete
SUBMIT COPA_KEPM_SHOW 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: G_PATYPE = Type of Profitability Analysis
Selection Text: G_ERKRS = D .
Title: Display Planning Levels, Packages
Text Symbol: 001 = Period Frm
Text Symbol: 002 = Period From
Text Symbol: 003 = Period To
Text Symbol: 004 = Period To
Text Symbol: 005 = Op. Concern
Text Symbol: 006 = Selections


INCLUDES used within this REPORT COPA_KEPM_SHOW

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:

RKE_FILL_FIELD_TABLE CALL FUNCTION 'RKE_FILL_FIELD_TABLE' EXPORTING erkrs = g_erkrs pa_type = g_patype * tabname = g_tkeppllevc_tabname IMPORTING subrc = g_l_subrc TABLES fieldtab = gt_fields EXCEPTIONS ledger_not_def = 1 ledger_not_found = 2 table_not_found = 3 OTHERS = 4.

REUSE_ALV_GRID_DISPLAY_LVC CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING * I_INTERFACE_CHECK = 'X' * I_BYPASSING_BUFFER = 'X' * I_BUFFER_ACTIVE = 'X' i_callback_program = g_repid is_layout_lvc = gs_layout it_fieldcat_lvc = gt_fieldcat it_sort_lvc = gt_sort * it_event_exit = gt_event_exit I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS' I_CALLBACK_USER_COMMAND = 'USER_COMMAND' TABLEs t_outtab = EXCEPTIONS program_error = 1 OTHERS = 2.

RKE_READ_ERKRS call FUNCTION 'RKE_READ_ERKRS' exPORTING I_ERKRS = i_erkrs imPORTING E_TKEBB = l_tkebb E_SUBRC = e_subrc.

RKE_VARIABLE_POPUP call function 'RKE_VARIABLE_POPUP' exporting I_APPLCLASS = 'KE' I_SUBCLASS = '02' I_TABNAME = G_TKEPPLLEVC_TABNAME I_MODE = 'DISP' I_FNAM = i_fieldname I_VARNAM = l_varnam.

G_CONVERT_INPUT call function 'G_CONVERT_INPUT' exPORTING CONVERTED_LENGTH = ls_fieldcat_conv-leng CONVEXIT = ls_fieldcat_conv-convexit DATATYPE = ls_fieldcat_conv-datatype INPUT_LENGTH = ls_fieldcat_conv-outputlen INPUT_VALUE = i_value * LENGTH = ? imPORTING CONVERTED_VALUE = ls_tkepplvar-valuefr EXCEPTIONS DATE_DOES_NOT_EXIST = 1 DATE_FORMAT_UNRECOGNIZED = 2 ILLEGAL_LENGTH = 3 INPUT_IS_NOT_NUMERIC = 4 CONVERSION_FAILURE = 5 others = 6.

RKD_SHORT_TEXT_SINGLE call function 'RKD_SHORT_TEXT_SINGLE' exporting applclass = 'KE' criteria = i_fieldname characteristic = ls_tkepplvar-valuefr importing CHARACTERISTIC_TEXT_L = ls_text exceptions CRITERIA_NOT_FOUND = 1 KEY_NOT_FOUND = 2 TABLE_NOT_FOUND = 3 TKEBF_ENTRY_NOT_FOUND = 4 EMPTY_APPLCLASS = 5 WRONG_MODE = 6 NO_ESCAPE_SYMBOL_ALLOWED = 7 others = 8.

COMPLEX_SELECTIONS_DIALOG call function 'COMPLEX_SELECTIONS_DIALOG' exporting just_display = 'X' TAB_AND_FIELD = ls_RSTABFIELD tables range = lt_ranges exceptions NO_RANGE_TAB = 1 CANCELLED = 2 INTERNAL_ERROR = 3 INVALID_FIELDNAME = 4 others = 5.

G_CONVERT_OUTPUT CALL FUNCTION 'G_CONVERT_OUTPUT' EXPORTING CONVEXIT = is_fieldcat_conv-CONVEXIT datatype = is_fieldcat_conv-datatype length_to_convert = is_fieldcat_conv-leng output_length = is_fieldcat_conv-outputlen value_to_convert = i_value IMPORTING output_value = e_value EXCEPTIONS illegal_length = 1 OTHERS = 2.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = i_tabname CHANGING ct_fieldcat = et_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

RKE_FILL_FIELD_TABLE * aus der Ausgabe von CALL FUNCTION 'RKE_FILL_FIELD_TABLE' * genommen * * weitere Feldkatalog-Eintraege werden spaeter im Programm * gemaess Bedarf eingefuegt DATA: lt_fieldcat TYPE lvc_t_fcat, ls_fieldcat TYPE lvc_s_fcat, l_i type i.



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