cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with hierarchy variable

Former Member
0 Kudos

Hi,

I used the abap function module UPF_VARIABLE_USER_EXIT_HIER as a emplate from SAP to create my own function module, in order to feed a variable with a hierarchy node.

It works fine. When I navigate within the planning level and the planning package, I can request for the values of my variable and I am satisfied as I get the exact values posted below the hierarchy node (that I can check and maintain in transaction RSH1).

However, if I try to display or change the plan data by executing a layout, the variable is then empty. I do not see anymore the values that I got previously. And I get the message 'The conditions were adapted'.

Any idea ???

Many thanks,

Laurent

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Laurent,

How are you trying to utilise the varibele in your layout? and what config setting have you made in the layout to reference the hierarchy?

You probably should not be using any of the hierachy options in the first page of the layout config, but only selecting the hierarchy totalling option in the last screen of layout config.

Former Member
0 Kudos

Hi Andrew,

Thanks for your message.

I am not using the concept of hierarchy to change the output in the layout. I am just using the hierarchy to group together some values.

Here is exactly what I do : I need to split the cost elements, depending on the company code. I do have a hierarchy, with a first common text node 'Cost Elements'. Under that node, I have two others nodes, one for 'Company 1000', another one for 'Company 2000'. Under each sub-node, I grouped my cost elements, below the right company.

In my level, I want to find the good cost elements. I have the company code derived from another characteristic ( from 0PROJECT Project Number, because this is a BPS application for Project Management Office). The project indicates me the company it belongs to. Then, with the help of the variable exit, I can determine which node must be used when entering the plan data.

When I check the values of the variable found help to the exit at the planning level or the package level, I get the good list of the cost elements. But when I execute the layout, the same variable is suddenly empty ... The cost elements are a part of the columns in the layout, not header.

Thanks

Laurent

Former Member
0 Kudos

Finally, I got it.

The line

l_hie_nodes_wa-hiever = is_hie_key-hiever.

had been changed to

l_hie_nodes_wa-hiever = 'A'.

What is strange, is that I could get the values within the level and packages, but not within the layout.

Thanks Andrew,

Regards

Former Member
0 Kudos

to close the topic ...

Answers (0)