cancel
Showing results for 
Search instead for 
Did you mean: 

Select from a fixed list

Former Member
0 Kudos

Hi,

Is it possible that for a query variable to show only few values for selection.

If I have Material Groups A, B, C .....Z.

When the user tries to select a material group it should show only values A, E, I, O, U.

The master data contains A to Z, and the infoprovider also contains A to Z. But when the user tries to pick the values he should see only A,E,I,O,U in the choosing list.

If it can be done through customer exit, how to do it, I_STEP and some fixed values...

Any help would be greatly appreciated.

Thanks,

Ace

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ace,

I think you can set it as an authorization variable. However, if you want to create a customer exit, you can put it in i_step = 1 since it needs to be called before the selection screen pops up. Hope this helps.

Juice

Answers (2)

Answers (2)

Former Member
0 Kudos

I think its answered, will still have to check it though.

Former Member
0 Kudos

It is not authorization related, the other values are just irrelavant. Also if I do I_step = 1, how can I give some values (AEIOU) they are not a range that I can give, they are multiple values?

Or is there anyway of doing it simpler on web?

Thanks,

Ace

Former Member
0 Kudos

Hi,

set your variable property to multiple single values...then in customer exit write it using loop statements..

ex.

populate some internal table with A,E,I,O and U.

loop at that internal table(itab).

l_s_range-low = itab-xxxx.

l_s_range-sign = 'I'

l_s_range-opt = 'EQ'

append l_s_range to E_t_range.

clear l_s_range.

end loop.

Message was edited by:

Sathya Priya