cancel
Showing results for 
Search instead for 
Did you mean: 

Need to display a field in disable in a table with editable rows in table

Former Member
0 Kudos

Hi all,

I am new webdynpro abap application. I have created a table ( Not ALV table ) with 5 editable rows.

In this I want 2 row 4 field should be in read_only property and in 3 row the same field i.e 4 field should be in edit mode.

How can it be possible. Please send me your replies. It is valuable for me.

Example:- read_only property or any other method

O O O O O

O O O X O

O O O O O

O O O O O

O O O O O

thanks & regards,

Chandra sekhar.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

HI,

Try this approach:

1) In the node which you are binding to the table create one more attribute as "Variant" type char1.

2) In your table column,create 2 cell variants. Right click on first cell variant and insert a input field.Give the variant KEY as 'INPUT'.

3) Right click on second cell variant and insert a textview.Give the variant KEY as "TEXT".

4) Bind both input field and text view to your attribute in the node.

5) bind the new attribute i.e."VARIANT" to the "selectcellvariant " property of the your table column.

6) now in the code based on the condition populate VARIANT as INPUT if you need input field and TEXT if you need text view.

Former Member
0 Kudos

Hi,

You can use cell variant for your requirement, below link will help you:

http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants

Regards,

Amit

sahai
Contributor
0 Kudos

hi,

u can use cell variant for that particular column.

Regards,

Sahai.S

former_member199125
Active Contributor
0 Kudos

you have to use wdy_boolean attribute and bind it to corresponding column attribute (read_only property ).

While binding table ( add one more column for boolean attribute ).

.., in that try like this.

if it is second row

then set the boolean attribute to abap_false

hope u understand the logic.

Regards

Srinivas

Former Member
0 Kudos

Hello Sanasrinivasa,

Kindly brief me the logic how to do it.

I didn't understand this logic how to do.

thanks & regards,

Chandra sekhar.

Former Member
0 Kudos

Hi Chandra,

Can you please explain what requirement is expecting 2nd row cell as editable , So that it can give a clear picture of your problem.