08-02-2005 11:12 AM
ALV GRID.
How can I make a cell(or an entire column) not available to be selected?
08-02-2005 11:41 AM
what do you mean by <b>not available to be selected?</b>
Raja
08-02-2005 11:30 AM
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
08-02-2005 11:41 AM
what do you mean by <b>not available to be selected?</b>
Raja
08-02-2005 11:42 AM
08-02-2005 11:50 AM
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.
08-02-2005 12:03 PM
I want a cell to be not selected when user clicks on it. I want to forbid ones to select the cell.
08-02-2005 12:15 PM
08-02-2005 12:46 PM
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
08-02-2005 1:58 PM
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