Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Dynamically enable/disable row selection in CL_GUI_ALV_GRID

$
0
0

Hi Experts,

 

I have developed a report using CL_GUI_ALV_GRID. I was able to define all events required to enable Row Selection and is also able to retrieve the rows which are selected by user on screen using GET_SELECTED_ROWS method.

 

But now I want to disable few rows from selection. e.g. suppose my report contain 10 records and depending on some value in some column of report I want to disable selection of rows at position 1,4,5,6.

 

I went through many posts in SDN but did not get satisfactory answers. One workaround can be defining Check-Box to each row and then disable the input for some required rows using LVC_T_STYLE table and method MC_STYLE_DISABLED.

 

But, please let me know if there is any standard solution available for this.

 

Thanks.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>