K_REMOVE_DOUBLES_FROM_STD_HIER 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 K_REMOVE_DOUBLES_FROM_STD_HIER into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: KOKRS = D Controlling Area
Title: Multiple Groups in Standard Hierarchies
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs IMPORTING e_tka01 = gs_tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.
G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING setname = gd_inpok EXCEPTIONS OTHERS = 99.
G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = ld_class shortname = ld_hier kokrs = ps_tka01-kokrs IMPORTING setid = p_setid EXCEPTIONS OTHERS = 99.
G_SET_TREE_IMPORT CALL FUNCTION 'G_SET_TREE_IMPORT' EXPORTING no_descriptions = 'X' no_rw_info = 'X' setid = p_setid TABLES set_hierarchy = lt_sethier EXCEPTIONS OTHERS = 99.
G_SET_TREE_ADD_POINTERS CALL FUNCTION 'G_SET_TREE_ADD_POINTERS' TABLES set_hierarchy = lt_sethier set_hier_ptr = lt_setptr EXCEPTIONS OTHERS = 2.
G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING setname = pd_setid IMPORTING info = gs_info EXCEPTIONS OTHERS = 0.
G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = gs_tphg-hgh IMPORTING shortname = gd_short.
G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = gs_tphg-top IMPORTING shortname = gd_short.
G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = ls_result-setid IMPORTING shortname = gd_short.
G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' EXPORTING setnr = ls_tphg-hgh IMPORTING set_header = ls_header TABLES set_lines_basic = lt_basic set_lines_single = lt_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 EXCEPTIONS OTHERS = 99.
G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = ls_tphg-top IMPORTING shortname = ld_shdwn.
G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = ls_tphg-hgh IMPORTING shortname = ld_shhgh.
G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = gs_hier-setid IMPORTING shortname = gd_short.
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = p_tab lfieldname = p_fld IMPORTING dfies_wa = ls_dfies EXCEPTIONS OTHERS = 0.
RS_CUA_GET_FUNCTIONS CALL FUNCTION 'RS_CUA_GET_FUNCTIONS' EXPORTING program = ld_prog TABLES function_list = lt_func EXCEPTIONS OTHERS = 99.
G_SET_OR_GROUP_AUTHORITY CALL FUNCTION 'G_SET_OR_GROUP_AUTHORITY' EXPORTING i_setid = p_setid i_actvt = '02' EXCEPTIONS no_authority = 1 OTHERS = 2.
G_SET_ENQUEUE_WITH_FATHERS CALL FUNCTION 'G_SET_ENQUEUE_WITH_FATHERS' EXPORTING setid = p_setid EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
CALL FUNCTION 'G_SET_DEQUEUE_WITH_FATHERS' EXPORTING setid = p_setid.
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 K_REMOVE_DOUBLES_FROM_STD_HIER or its description.
K_REMOVE_DOUBLES_FROM_STD_HIER - Multiple Groups in Standard Hierarchies K_REMOVE_DOUBLES_FROM_STD_HIER - Multiple Groups in Standard Hierarchies K_QUEUE_MASTER_CONTROL_GET_F01 - KQUEUEMASTERCONTROLGETF01 K_PLAN_WAIT_FOR_DEBUGGING_CTRLFT - KPLANWAITFORDEBUGGINGCTRLFT K_KKB_KKBCS_ORDER_REPORT======FT - KKKBKKBCSORDERREPORT======FT K_KKB_CO_OBJECT_TO_KKBC=======FT - KKKBCOOBJECTTOKKBC=======FT