Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Grid: Cell not available for selection

Former Member
0 Kudos

ALV GRID.

How can I make a cell(or an entire column) not available to be selected?

1 ACCEPTED SOLUTION

athavanraja
Active Contributor
0 Kudos

what do you mean by <b>not available to be selected?</b>

Raja

8 REPLIES 8

Former Member
0 Kudos

Hi Mikola,

Please verify the Program BCALV_EDIT_03

For further more program you can see BCALV*

Hope this is helpful for you.

Thanks&Regads,

Ruthra.R

athavanraja
Active Contributor
0 Kudos

what do you mean by <b>not available to be selected?</b>

Raja

0 Kudos

I mean that a cell cannot be selected.

0 Kudos

Normally u dont do any cell wise operation. It is row wise right ? So what exactly do u mean by cell shouldnt be selected ?

Pls be clear with ur question.

0 Kudos

I want a cell to be not selected when user clicks on it. I want to forbid ones to select the cell.

0 Kudos

*

0 Kudos

I was able to forbid users to click on cells that has got null values by:

a) declare the column as hotspot when you are building the fieldcatalog (fieldcatalog-key = 'X')

b) inside the form "user_command", after reading the data inside the internal table, use something like:

if wa_it_alldata-accounting_doc_nbr ne space.

  • processing logic

endif.

wa_it_alldata would be the internal table and can be prefilled by something like:

  • read data table, using index of row user clicked on

READ TABLE it_alldata_f INTO

wa_it_alldata INDEX rs_selfield-tabindex.

A more extensive eg can be found at: http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm

Let us know if you still have the problem.

Rajib

0 Kudos

I've solved my problem in the similar way. It's allowed to select a cell but there is no reaction on this event.

Message was edited by: mikola