Skip to Content
0
Former Member
Jul 21, 2005 at 05:18 PM

Selecting from time dependant hierachy using variable exit

15 Views

Hi

I have built a master data table which is maintained to identify which cost and profit center hierarchy nodes a user can access. All is fine until i use the method to access the organisation plan hierachy (ORGEH) where my user exit code cant find an entry. There are two differances that I can see; 1 the hierachy nodes are numeric and the hierachy is time dependant. I think it is the time dependancy at issue but I dont know how to select.

any ideas?

code below;

WHEN 'ZN_OUEX'.

CLEAR L_S_RANGE.

Select /BIC/Z0201ORH from /BIC/PZ0201BUDH

into L_S_RANGE-LOW

where /BIC/Z0201BUDH = SY-UNAME.

L_S_RANGE-HIGH = '0HIER_NODE'.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'EQ'.

APPEND L_S_RANGE TO E_T_RANGE.

endselect.

thanks