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.
Select /BIC/Z0201ORH from /BIC/PZ0201BUDH
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.