cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict Drop Down values .

Former Member
0 Kudos

Hi All ,

I am modifying SRM screens which is a Dynpro screen .

I have a requirement that on a certain condition some values of the drop down should be removed .

i.e if there are 5 values , i need to show only 3 values if a particular condition is met .

Can somebody guide me on how to go about this ?

Regards,

Ambar Patil

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ambar,

in ur drop down by key, u need to APPEND value TO set, depending on the particular condition, accordingly.


  DATA:  value TYPE wdy_key_value,
               set TYPE wdy_key_value_table.
// now check ur condition here and append accordingly.
IF condition1.
APPEND value TO set.
ENDIF.

regards,

Amit

Former Member
0 Kudos

Hi Amit ,

I think the values are appended through Standard programs . Some configuration needs to be done in SPRO and the values come in drop down .

What I need to do is just remove the required values on a particular condition .

Is it like I can remove it in the WDDOINIT of that particular screen ?

Regards,

Ambar

Former Member
0 Kudos

hi,

yes .. based on ur particular condition, u can remove the values in WDDOINIT.

regards,

Amit

Former Member
0 Kudos

Generally the drop down values are populated in the WDDOINIT method .

Can we do this :

Whenever the onclick event happens for a drop down , we define an action and in the action handler we get all the values bound to the drop down , remove the required values and then Re bind the rest of the values ?

Regards,

Ambar