WD ALV make rows read only
I have a ALV table for display in WD and based on some condtions i need to make particular rows alone read only mode, Kindly suggest your solutions.
Ramakrishnappa Gangappa replied
If you want to make only cells of certain rows as READ_ONLY, then it can be achieved as below
- Create as many required context attributes for making cells read only, like read_cell_1, read_cell_2, etc of type WDY_BOOLEAN
- Bind these context attributes to respective cells while configuring alv i.e. using method set_read_only_fieldname( ) to all columns
- While populating data to alv, set the value 'X' to these read only attributes of required cells
- Binding the context attribute property READ_ONLY