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

RKE_KENC_UNDO_CHGRUN SAP ABAP Report - CO-PA Realignments: Restore Segments to State Before Realignment Run







RKE_KENC_UNDO_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_UNDO_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_UNDO_CHGRUN. "Basic submit
SUBMIT RKE_KENC_UNDO_CHGRUN AND RETURN. "Return to original report after report execution complete
SUBMIT RKE_KENC_UNDO_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: Restore Segments to State Before Realignment Run
Text Symbol: 060 = Finish Time
Text Symbol: 059 = End date
Text Symbol: 058 = Start time
Text Symbol: 057 = Start date
Text Symbol: 055 = Restore
Text Symbol: 054 = Test run of restore
Text Symbol: 053 = Operating concern
Text Symbol: 052 = Realignment run
Text Symbol: 050 = Information
Text Symbol: 040 = Flow trace
Text Symbol: 030 = Error messages for derivation
Text Symbol: 020 = Changed characteristics
Text Symbol: 015 = Number of Profitability Segments Changed to HANA
Text Symbol: 013 = Profitability Segments
Text Symbol: 010 = Statistics Record
Text Symbol: 009 = Number of profitability segments selected
Text Symbol: 008 = Number of profitability segments changed
Text Symbol: 007 = Number of profitability segments read


INCLUDES used within this REPORT RKE_KENC_UNDO_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 EXCEPTIONS OTHERS = 1.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

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

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'.

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