‎2021 May 23 5:12 PM
I have an ALV report that displays data and allows the user to select a line and perform an action. Within the report is an exception column to highlight the outcome of the action, currently the column is defined as a hotspot . If the action fails, I highlight the line with a colour and generate an error log to allow the user to view what occurred and any suggested remediation. The column hotspot and line colouring works fine no issues there. However I don't want to set the whole column as a hotspot I only want the entries that fail to contain a hotspot. I have attempted to enable the individual hotspots by adding a field of type salv_t_int4_column (cell field) in my output and nominated this field in the ALV setup using the set_cell_type_column method. In my check for failure method I update the ''cell field' with the if_salv_c_cell_type=>HOTSPOT value and exception column and performed the usual refresh but the hotspot option does not take effect. The line colouring takes effect but no hotspot, i've checked the content of the cell field column and the hotspot values are there. I have tried a FULL refresh but still no joy. Is it possible to enable the style options after the initial display?
‎2021 May 24 8:35 AM
‎2021 May 24 9:35 AM
‎2021 May 24 9:35 AM
It's impossible to apply any style on an "exception" column, whatever you do it at the very first display or after refreshing.
Instead of defining the column of type "exception", I could successfully replace it as a normal text column (of 4 characters or more) with style button or hotspot, and this text contained a value like "@08@" which is rendered as green traffic light. It also works in refresh mode.
Here are the possible values:
‎2021 May 24 9:41 AM
An interesting one eh? Something 'so simple' as it were, thanks for your input much appreciated. Thought I was going mad 😉