SAP Reports / Programs

RKCORRH1 SAP ABAP Report - Standard Hierarchy Adjustment - Master Data







RKCORRH1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program makes the following checks on the master data (cost centers, business processes, or profit centers) in the standard hierarchy...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RKCORRH1 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 RKCORRH1. "Basic submit
SUBMIT RKCORRH1 AND RETURN. "Return to original report after report execution complete
SUBMIT RKCORRH1 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: TESTRUN = D Test Run
Selection Text: KOKRS = D Controlling Area
Title: Standard Hierarchy Adjustment - Master Data
Text Symbol: 009 = Well Completions
Text Symbol: 008 = Measurement Points
Text Symbol: 007 = Delivery Networks
Text Symbol: 006 = Group created by master data comparison
Text Symbol: 005 = Interval
Text Symbol: 004 = Business Processes
Text Symbol: 003 = Profit Centers
Text Symbol: 002 = Cost Centers
Text Symbol: 001 = Standard Hierarchy For


INCLUDES used within this REPORT RKCORRH1

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:

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs IMPORTING e_tka01 = g_tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.

G_SET_DEQUEUE CALL FUNCTION 'G_SET_DEQUEUE' EXPORTING setid = gd_gener.

KEO_STDHIER_COMPLETE_CHECK CALL FUNCTION 'KEO_STDHIER_COMPLETE_CHECK' EXPORTING co_area = p_tka01-kokrs setclass = ld_class IMPORTING hierarchy_already_complete = ld_flag et_nodes = pt_nodes et_corr_values = pt_corr dummy_node = pd_dummy EXCEPTIONS error_read_co_area = 1 error_encrypt = 2 error_hierarchy_read = 3 set_error = 4 date_error = 5 interval_missing_no_adjust = 6 OTHERS = 99.

G_SET_PROTECT_HIERARCHY CALL FUNCTION 'G_SET_PROTECT_HIERARCHY' EXPORTING setname = ls_node-setid EXCEPTIONS set_in_standard_hierarchy = 1 OTHERS = 2.

G_SET_GENERATE CALL FUNCTION 'G_SET_GENERATE' EXPORTING set_header = ls_header TABLES set_lines_basic = lt_basic set_lines_single = lt_single.

RS_TEXTPOOL_READ CALL FUNCTION 'RS_TEXTPOOL_READ' EXPORTING objectname = program action = space tables tpool = t EXCEPTIONS OTHERS = 0.

G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' EXPORTING setnr = p_setid IMPORTING set_header = ps_header TABLES set_lines_basic = pt_basic set_lines_single = pt_single EXCEPTIONS no_authority = 1 set_is_broken = 2 set_not_found = 3 OTHERS = 4.

G_SET_GENERATE CALL FUNCTION 'G_SET_GENERATE' EXPORTING set_header = ls_header TABLES set_lines_basic = lt_basic set_lines_single = lt_single.

K_STDHIER_BADI_CALL * CALL FUNCTION 'K_STDHIER_BADI_CALL' * EXPORTING * setclass = p_class * IMPORTING * std_setid = ld_setid.

G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING * setid = ld_setid "del note 1159578 setid = ld_expid "ins note 1159578 IMPORTING shortname = p_name.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = p_class shortname = ld_short kokrs = p_tka01-kokrs IMPORTING setid = ld_setid EXCEPTIONS no_co_area_specified = 1 illegal_setclass = 2 OTHERS = 3.

G_SET_ENQUEUE CALL FUNCTION 'G_SET_ENQUEUE' EXPORTING setid = gd_gener EXCEPTIONS foreign_lock = 1 OTHERS = 2.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING SETNAME = ld_setid IMPORTING INFO = ls_sinfo EXCEPTIONS SET_NOT_FOUND = 1 ILLEGAL_FIELD_REPLACEMENT = 2 OTHERS = 3.

G_SET_AUTHORITY_CHECK call function 'G_SET_AUTHORITY_CHECK' EXPORTING actvt = ld_act authgr = ls_sinfo-authgr EXCEPTIONS no_authority = 1.

G_SET_TREE_IMPORT CALL FUNCTION 'G_SET_TREE_IMPORT' EXPORTING no_descriptions = 'X' no_rw_info = 'X' setid = ls_corr-group no_table_buffering = 'X' TABLES set_hierarchy = lt_sets EXCEPTIONS set_not_found = 1 illegal_field_replacement = 2 illegal_table_replacement = 3 OTHERS = 9.



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