cancel
Showing results for 
Search instead for 
Did you mean: 

Read only in select options webdynpro abap

Former Member
0 Kudos

Hi Experts,

I have 2 radio buttons and 10 select options fields,If i select 1st radio button then first 1 to 5 select options fields should be read only (abap_false) and 5 to 10 fileds should be read only (abap_true ) in the same way if i select 2nd radio button the 5 to10 fields should be read only (abap_false)  and 1 to 5 fields should be read only (abap_true ).

Please provided me Required information.

Thanks & Regards.

Krishna.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Bind each radio button to a variable (v_rb1, & v_rb2). Then, link the read_only property of the first set of fields to v_rb1 and link the same property of the second set of fields to v_rb2.

Abhinav_Sharma
Contributor
0 Kudos

Hi Krishna,

You can use ADD_SELECTION_FIELD method in the interface IF_WD_SELECT_OPTIONS. One of the parameter of the method is I_READ_ONLY, which you can set to make the field editable or read-only. This method you will call initial based on the initial value of radio button.

Now, on action of Radio button, you can use UPD_SELECTION_FIELD of the same interface and then set the I_READ_ONLY.

Hope this will help you. Thanks!

Regards

Abhinav Sharma

Former Member
0 Kudos

Hi Abhinav,

I used the sam logical that which u have give but its not working.Can you Brief me regarding this.

Waiting for Reply.

Thanks & Regards.

Krishna.