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

RKE_KENC_EXEC_CHGRUN SAP ABAP Report - CO-PA Realignments: Execute Realignments







RKE_KENC_EXEC_CHGRUN 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 RKE_KENC_EXEC_CHGRUN 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 RKE_KENC_EXEC_CHGRUN. "Basic submit
SUBMIT RKE_KENC_EXEC_CHGRUN AND RETURN. "Return to original report after report execution complete
SUBMIT RKE_KENC_EXEC_CHGRUN 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_TEST = Test mode
Selection Text: G_PKGSIZ = Package size for segment table
Selection Text: G_MAXMEM = Maximum Memory Usage
Selection Text: G_ERKRS = Operating Concern
Selection Text: G_CHGRUN = Realignment run
Title: CO-PA Realignments: Execute Realignments
Text Symbol: 036 = Lines I032 through I035 belong together!
Text Symbol: 037 = Profitability segment
Text Symbol: 038 = No errors occurred during derivation.
Text Symbol: 039 = Error message
Text Symbol: 040 = Flow trace
Text Symbol: 050 = Information
Text Symbol: 051 = (Original message not available)
Text Symbol: 052 = Realignment run
Text Symbol: 053 = Operating concern
Text Symbol: 054 = Test run
Text Symbol: 055 = Update Run
Text Symbol: 057 = Start date
Text Symbol: 058 = Start time
Text Symbol: 059 = Finish date
Text Symbol: 060 = Finish Time
Text Symbol: 070 = --- Lines I071-I075 belong together! ---
Text Symbol: 071 = The following characteristics were changed in some
Text Symbol: 072 = profitability segments by the realignment. Summarization levels
Text Symbol: 073 = and report data are therefore inconsistent and need to be
Text Symbol: 074 = built again. However, these objects are not automatically invalid
Text Symbol: 075 = due to a customer modification!
Text Symbol: 079 = --- Lines I071-I075 belong together! ---
Text Symbol: 035 = of the specified profitability segment(s).
Text Symbol: 001 = Number of realignment steps
Text Symbol: 002 = Number of derivations
Text Symbol: 003 = processed realignment steps canceled
Text Symbol: 004 = Total stopped time (ms)
Text Symbol: 005 = Derivations canceled
Text Symbol: 006 = Runtime for derivation (ms)
Text Symbol: 007 = Number of profitability segments read
Text Symbol: 008 = Number of profitability segments changed
Text Symbol: 009 = Number of profitability segments selected





Text Symbol: 010 = Statistic record
Text Symbol: 011 = Error during derivation
Text Symbol: 012 = Runtime (maximum measurable interval: about 30 minutes)
Text Symbol: 013 = Profitability Segments
Text Symbol: 014 = Characteristic derivation
Text Symbol: 015 = Number of Profitability Segments Changed to HANA
Text Symbol: 020 = Changed characteristics
Text Symbol: 021 = --- the following 4 lines I022-I025 belong together ! ---
Text Symbol: 022 = The following characteristics were changed in some
Text Symbol: 023 = profitability segments by the realignment. Summarization levels
Text Symbol: 024 = and report data are therefore invalid and need to be
Text Symbol: 025 = built again.
Text Symbol: 026 = --- End of related lines (I022-I025) ---
Text Symbol: 028 = The realignment did not change any characteristic values.
Text Symbol: 030 = Error messages for derivation
Text Symbol: 031 = --- The following 4 lines I032-I035 belong together ---
Text Symbol: 032 = The following error messages were output during derivation of
Text Symbol: 033 = characteristic values (max. 1000 calls). Use the test
Text Symbol: 034 = monitor for realignments to analyze the errors on the basis


INCLUDES used within this REPORT RKE_KENC_EXEC_CHGRUN

INCLUDE RKE_KENC_OPTIONS.
INCLUDE RKE_KENC_SCHEDMAN_INTERFACE .


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_NC_EXEC_GET_TKENC5_LFDNR CALL FUNCTION 'RKE_NC_EXEC_GET_TKENC5_LFDNR' EXPORTING i_erkrs = g_erkrs i_chgrun = g_chgrun IMPORTING e_lfdnr = g_s_tkenc5-lfdnr.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

RKE_NC_EXEC_CHGRUN_IS_CRITICAL CALL FUNCTION 'RKE_NC_EXEC_CHGRUN_IS_CRITICAL' EXPORTING i_erkrs = g_erkrs i_chgrun = g_chgrun IMPORTING e_is_critical = g_is_critical.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

RKE_SUMMARIZATION_DATA_INVALID CALL FUNCTION 'RKE_SUMMARIZATION_DATA_INVALID' EXPORTING applclass = g_applclass subclass = g_subclass tabname = g_tabname_ce1 TABLES crits_modified = g_th_invsum_tab[] EXCEPTIONS OTHERS = 1.

RKE_SUMMARIZATION_DATA_INVALID CALL FUNCTION 'RKE_SUMMARIZATION_DATA_INVALID' EXPORTING applclass = g_applclass subclass = g_subclass tabname = g_tabname_ce0 TABLES crits_modified = g_th_invsum_tab[] EXCEPTIONS OTHERS = 1.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

MESSAGE_PREPARE CALL FUNCTION 'MESSAGE_PREPARE' EXPORTING language = sy-langu msg_id = msgid msg_no = msgno msg_var1 = msgv1 msg_var2 = msgv2 msg_var3 = msgv3 msg_var4 = msgv4 IMPORTING msg_text = c EXCEPTIONS function_not_completed = 1 message_not_found = 2 OTHERS = 3.






RKE_NC_EXEC_READ_CHGRUN CALL FUNCTION 'RKE_NC_EXEC_READ_CHGRUN' EXPORTING i_erkrs = i_erkrs i_chgrun = i_chgrun.

RKE_NC_EXEC_GENERATE_RKEVRK45 CALL FUNCTION 'RKE_NC_EXEC_GENERATE_RKEVRK45' EXPORTING i_erkrs = i_erkrs i_chgrun = i_chgrun IMPORTING e_programm = g_prog45.

RKE_NC_EXEC_SET_REPORT_NAME47 CALL FUNCTION 'RKE_NC_EXEC_SET_REPORT_NAME47' EXPORTING i_erkrs = i_erkrs IMPORTING e_programm = g_prog47.

RKE_NC_EXEC_CHGRUN_TO_WHERE CALL FUNCTION 'RKE_NC_EXEC_CHGRUN_TO_WHERE' EXPORTING i_erkrs = i_erkrs i_chgrun = i_chgrun IMPORTING e_t_where = x_t_where EXCEPTIONS failed = 1 OTHERS = 2.

ENQUEUE_EKCND CALL FUNCTION 'ENQUEUE_EKCND' EXPORTING mode_tkenc1 = enqmode mandt = sy-mandt erkrs = g_erkrs chgrun = g_chgrun x_erkrs = ' ' x_chgrun = ' ' _scope = '3' _wait = 'X' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ENQUEUE_EKCNC CALL FUNCTION 'ENQUEUE_EKCNC' EXPORTING mode_tkenc6 = enqmode mandt = sy-mandt erkrs = g_erkrs chgrun = g_chgrun x_erkrs = ' ' x_chgrun = ' ' _scope = '3' _wait = 'X' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.



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