cancel
Showing results for 
Search instead for 
Did you mean: 

How to read profit center standard hierarchy Remote

Marcel_Wahl
Advisor
Advisor
0 Kudos

Dear all,

Could anybody please tell me how to read the standard hierachy of profit centers

using RFC module(s) for a certain controlling area?

I found lots of classes and modules in the standard dialogs but nothing remote enabled :-(.

Thanks in advance,

Marcel

Accepted Solutions (1)

Accepted Solutions (1)

Marcel_Wahl
Advisor
Advisor
0 Kudos

Hi Eli,

thats great thank you.

But the module needs the root nodes to start.

Do you know how to find those too?

br,

Marcel

iklovski
Active Contributor
0 Kudos

Hi Marcel,

The standard hierarchy name is stored in TKA01 table (PHINR field).

Regards,

Eli

Answers (5)

Answers (5)

Marcel_Wahl
Advisor
Advisor
0 Kudos

Hi Eli,

now i understood and it works.

This has been a very unusual way to flatten hierarchies..

Thank you

Marcel_Wahl
Advisor
Advisor
0 Kudos

Hi Eli,

the BAPI group get detail provides the following returns

GROUPNAME Profit center group name

HIERLEVEL Hiearchy level

VALCOUNT Number of assigned leafs

DESCRIPT Group name

As well as some values.

But this does not include any relational data between the groups/nodes.

br,

Marcel

iklovski
Active Contributor
0 Kudos

Hi Marcel,

It's due to the order of appearance; let's say you have the following:

Group1

Group11

Group111

Group112

Group12

Then, the table will show

Group1 0

Group11 1

Group111 2

Group112 2

Group12 1

So, the connection is defined: you know that Group 111 is assigned to Group11, because it's level is 2 and the first group above it with level 1 is Group11. The same is with values by the order of appearance as you know for each group the quantity of the values.

Regards,

Eli

Marcel_Wahl
Advisor
Advisor
0 Kudos

Hi Eli,

thanks for the fast answer

I need to cvompletyl rebuild the hierarchy in a dialog in a CRM system.

For this i need the relations between the tree nodes to correctly display and drill down

into the table / tree.

The standard API only returns the leaf/nodes names with the hierarchy depth.

Without the relations i cannot tell which leafs or sub nodes relate to whcih root/parent node.

Could you advise how to read this? If possible with standard BAPIS or RFC modules

Thanks & br,

iklovski
Active Contributor
0 Kudos

Hi Marcel,

Normally, the BAPI I gave you provides the hierarchy links, does not it? It gives the node name, the hierarchy level, etc.

Regards,

Eli

Marcel_Wahl
Advisor
Advisor
0 Kudos

Dear all,

Eli has already helped me to understand and the standard hierarchy elements for profit center groups.

Anyway tthe stadnard modules do not supply any information about the node relations.

I need to display the relations in an other SAP system.

Could anybody please help or advise?

Thansk & br,

Marcel

iklovski
Active Contributor
0 Kudos

Hi Marcel,

I did not understand completely your last question... What information exactly do you want to see? Anyway, all the nodes relations for SAP groups are stored in SETNODE, SETLEAF tables.

Regards,

Eli

iklovski
Active Contributor
0 Kudos

Hi Marcel,

You can use BAPI BAPI_PROFITCENTERGRP_GETDETAIL.

Regards,

Eli