I have a requirement to insert a default hierarchy variable based on the sy-uname running a query. The user should also have the ability to change this value if required.
I have created a hierarchy variable:
Type = Hierarchy Node
Processing By: Manual Input/Default Value
Reference Characteristic = Profit_ctr
Several Single Values
Variable is Ready for Input
In CMOD I have a case statement for i_step.
when 1, I want it to execute my code to determine the profit centre of the user.
However when I add a break-point, it stops at another variable I have created (a date variable - interval/mandatory) no problem, but doesn't stop for my hierarchy variable.
Is it not possible to set a default value for hierarchies?
I'd be very grateful if anyone can explain how I can do this. I need the values to be pre-populated in the selection box.
Alternatively if it is not possible as standard, where the code breaks for the date variable at step1, is there another way I can add my hierarchy variable row into itab i_t_var_range?
We are running BW7.4 SP6