Skip to Content
Former Member
Apr 04, 2011 at 10:26 AM

Customer Exit variable on Hierarchy Node


Hello Experts

I am in the process of creating a Customer Exit variable on a Hierarchy node. This will be populated at run time based on the value of a Characteristic variable.

The Hierarchy is activated and included in the roes of the report. I would like the end result to be exactly the same as it would if I had manually entered a variable in Hierarchy node variable

I have written exits before for Characteristic variables, however, I am unable to get this to work for Hierarchy Node variables. Please find below the code I have prepared so far. I follow the approach of creating a seperate executable program for each Customer Exit variable. This Program will be called by the Exit.

DATA: l_s_range TYPE rrrangesid.

DATA:l_s_var_range TYPE rrrangeexit.

FIELD-SYMBOLS : <fs_var_range> TYPE rrrangeexit.

IF i_step = 2.

READ TABLE i_t_var_range

ASSIGNING <fs_var_range>

WITH KEY vnam = 'ZMO_WBS_LVL2'. " Characteristic variable

IF sy-subrc = 0.

l_s_range-low = <fs_var_range>-low.

  • l_s_range-high = '0HIER_NODE'.*

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

APPEND l_s_range TO e_t_range.



I would be obliged if anyone can help me understand what is being overlooked. The Query is presently returning "No Applicable data found"

Thanks in advance


Zubin Kurian