cancel
Showing results for 
Search instead for 
Did you mean: 

Customer Exit (i_step = 1) for hierarchy variable

Former Member
0 Kudos

All,

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:

     General Tab:

     Type = Hierarchy Node

     Processing By: Manual Input/Default Value

     Reference Characteristic = Profit_ctr

     Details:

     Several Single Values

     Mandatory

     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

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

sander_vanwilligen
Active Contributor
0 Kudos

Hi Angela,

The problem is that the variable is configured as: Processing By: Manual Input/Default Value.

It should be: Processing By: Customer Exit.

Best regards,

Sander