cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable view buttons on some condition-webdynpro abap

Former Member
0 Kudos

Hi ALL,

i have a two buttons in my view ......initially one button must be enable,depending on some condition i want to disable one button on the same view .........in which i am displaying my alv data ........(in the same view).

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

check the properties with property name Visible.

Take one attribute with name as visibile and Type ( WDUI_VISIBILITY-Data Type for "visible" Properties)

then bind this attribute with property visible.

then in run time according to the condition pass value '01'-for no visibility and '02' for visible.

Hope this helps you.

Regards,

sarath

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

you can bind the context attribute of type WDY_BOOLEAN with the associated button .

as a eg suppose that attribute name is CA_FREEZE , then in whatever method you have to disable that button , u can use set attribute

like this

// set single attribute

lo_el_context->set_attribute(

EXPORTING

name = `CA_FREEZE`

value = ' ' ).

\

this would diable the button

hope this would serve the purpose

Former Member
0 Kudos

got solved