Home » Tables » How To Use K_Hierarchy_Tables_Read

How To Use K_Hierarchy_Tables_Read

Hi Gurus I am trying to retive the parent /child relationship from CX17 trx.

I need to extract FS item data with all Parent /child (level details).

I have set ID details but bit confused while selecting the data from SET LEAF and SET NODE table.

I a, The ABAP code below is a full code listing to execute function module K_HIERARCHY_TABLES_READ including all data declarations.

The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front.

, 22/02/2010 Hierarchy Tables.

Description.

RSHIEDIR.

Hierarchy Directory, Header Information.

RSHIEDIRT.

Hierarchy directory texts /BI*/H Hierarchy structure table, Hi, I am currently working on 46c and need to create a dropdown that will allow the users to select a profit center group.

Since there does not seem to be std functionality that does this i will code my own, but I can only seem to trace the table CEPC which is the nodes.

Does anyone know anything more about the hierarchy?

Regards, Eugene vd Merwe.

, 10 rows SAP ABAP Function Module K_GROUP_REMOTE_READ (Read a CO hierarchy) – SAP #, k_hierarchy_tables_read SAP ABAP Function Module K_HIERARCHY_TABLES_READ (Einlesen der Hierarchietabellen fr die Gruppenpflege) Nederlands (Dutch) English Franais (French) Deutsch (German) Italiano (Italian) # (Japanese) # (Korean) Polski (Polish) Portugus (Portuguese) (Russian) (Simplified.

, (Please use Hierarchy Name # where you want to retrieve information) Suppose we want to retrieve the hierarchy leaves information for node XXXX56.

>> We created a program in se38 t-code.

>> If we run the program, the below i/p screen will appear for user input.

We have to provide Hierarchy name and Node Name.

>> The output will be below.

, I am using K_HIERARCHY_TABLES_READ to get the profit centers for a given profit center group.

I have the following declarations for the parameters of this FM: TYPE-POOLS: gseth.

Declarations for Profit Center Group DATA: g_pcgrp TYPE rgsbs-class, g_setid TYPE rgsbs-setnr, g_info TYPE grphinfo,, 23/07/2008 Some reports may need to use Profit Center or Cost Center hierarchy defined in the SAP Master Data.

Rather than define a table to provide the same information, you could use function module provided by SAP.

Lets say that we have Cost Center hierarchy like below and we want to #, SAP ABAP Function Module K_HIERARCHY_TABLES_READ (Einlesen der Hierarchietabellen fr die Gruppenpflege) is using.

Class (1) Data Element (13) Table/Structure Field (153) Function Module (2) Message Number (1) Class Method (1) Table (24) how to use k_hierarchy_tables_read