Same as setting web alv color, the system also need the " read/edit" property. the result like this picture
the cell(4,4) and cell(5,5) is read only and others are editable.
there are also two ways to do this.
- set the read/edit property directly.
when you do the columns loop, you can set the property .but it's
difficult to set each cell's property,so I advice the next method.
2. set the read/edit property column name.
build the read/editp property column for each column
---------------------code---------------------------------
CONCATENATE 'READONLY' LNAME INTO is_fieldcat-fieldname.
APPEND is_fieldcat TO gt_fieldcatalog.
" you may need to do the loop.
-----------------------------------------------------------
in web alv, we aften use inputfield to fill the cell and let end user to edit.
so we use the method of the inputfield to do this matter.
LR_INPUT_FIELD->set_read_only_fieldname( value = RO_FIELDNAME ).
when you process the data ,you can fill the value of this read/edit property cell. ABAP_TRUE OR ABAP_FALSE.
after binding this special data table to the web alv,which contains the read/edit property column ,
you will see the result like picture above.
阅读(858) | 评论(0) | 转发(0) |