cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a specific field read only on a runtime condition in Web Dynpro ABAP ALV Report Program.

Former Member
0 Kudos

Hi Friends

In my requirement I got one change that based on one condition a specific field needs to be read only or write protected. I am new to webdynpro.Can any one help me?

Thanks

Gopal

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi.

1) just declare one attribute field1 type as WDY_BOOLEAN.

2 Bind the field1 in readonly place in the input field.

3)in the on action write the set_attribute .

lv_read = 'abap_true'.

lo_el_context->set_attribute(

       name =  `field1`

       value = lv_read ).

try this ..

regards

jayaprakash T

jitin_kharbanda
Participant
0 Kudos

suppose ur column name is A,

create another atribute in your ALV node as A_READ_ONLY

now, when u are creating your ALV,

mention A_READ_ONLY as read only field name as

lr_text_box->set_read_only_fieldname( 'A_READ_ONLY' ).

set attribute A_READ_ONLY as 'X' if u want it as read only,blank if u want it as editable and bind your data table to ALV node


former_member184578
Active Contributor
0 Kudos