Skip to Content
Former Member
Jun 01, 2005 at 06:58 AM

Hotspot for selective cells in ALV


Hi Guys,

The requirement is something like this.

I have an ALV Grid where one of the columns is a checkbox. In my program, I'm making only a few of these checkboxes editable (using LVC_T_STYL). All the other columns are non-editable.

Now, I want an event to be triggered as soon as a user checks or unchecks the checkbox. Since I cannot assign a function code to this checkbox like in the case of a table-control, I have made this checkbox column a Hotspot.

The problem is that the hotspot appears even for those checkboxes which are disabled for input. The reason is that the HOTSPOT is a feature specified in the Field-Catalog and is supposed to be applicable for the entire column.

Is there a way that I can make the hotspot appear only when the checkbox is editable?

Or can you think of some other equally elegant (if not better) way of handling this scenario?


Anand Mandalika.

P.S. I would also be glad to know how the fields STYLE2, STYLE3 and STYLE4 of the LVC_S_STYL are used.