cancel
Showing results for 
Search instead for 
Did you mean: 

WD ALV make rows read only

vinodkumar_thangavel
Participant
0 Kudos

Hi Friends,

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.

Regards,

Vinodkumar.

Accepted Solutions (1)

Accepted Solutions (1)

Gowtham
Contributor
0 Kudos
vinodkumar_thangavel
Participant
0 Kudos

Hi ,

Thanks for your response but i need only to make cells readonly based on Row wise and not column .

Regards,

Vinodkumar.

ramakrishnappa
Active Contributor
0 Kudos

Hi Vinodkumar,

If you want to make only cells of certain rows as READ_ONLY, then it can be achieved as below

Option1:

  • 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

Option2:

  • Binding the context attribute property READ_ONLY

Refer:

Regards,

Rama

vinodkumar_thangavel
Participant
0 Kudos

Hi Rama,

Thanks for the input it works fine.

Regards,

Vinodkumar.

Answers (1)

Answers (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Vinod,

Please check the following snippet wiki, which will help you.

How to edit conditionally row of a ALV table in Web Dynpro for ABAP - Web Dynpro ABAP - SCN Wiki

Regards,

Harsha