cancel
Showing results for 
Search instead for 
Did you mean: 

How can we hide the Select-options in web dynpro abap based on conditions.

Former Member
0 Kudos

Hi Experts,

How can we hide the Select-options in web dynpro abap based on conditions .

conditions which are coming from frist screen.

Thanks in advance

Prakhar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prakar,

What ever phani kumar saiud is right u need to create a Attribute of WDUI_VISBILITY type and bind that Attribute to View container in which u have created for Select-options and based on conditions u can set the Visibility.

This will work fine.

Regards

Madhukiran m.

Former Member
0 Kudos

Hi Madhu,

I have done the same thing bind the UI element with attribute WDUI_VISIBILITY but I am getting error 'Could not find attribute - Shipping' . Where 'Shipping' is an UI of type 'viewcontainerUIElement' type element..

For more details of my problem please refer - http://scn.sap.com/thread/3302549

Is it that we can't hide Select-Options?

Thanks and Regards.

Rajender

Former Member
0 Kudos

Hi,

I am not sure whether you can hide the select option or not. I havent tried it before. If you are finding difficulty in hiding the select option why dont you try to remove the field at runtime using REMOVE_SELECTION_SCREEN_ITEM method of select option interface If_wd_select_options.Hope it may work.

Best regards,

Arun Krishnamoorthy

Former Member
0 Kudos

Hi Prakhar,

You can add a attribute in the context for visibility and bid it to the View Container you are using for the Select -Options and fill the value for that variable basded on your condition.