10-25-2011 8:20 AM
Hi together,
I am using class CL_SALV_TABLE for displaying ALV outputs.
I´ve defined several key-columns (method 'set_key') and use method 'set_key_fixation' .
Since 'set_key_fixation' apparently only works when (at least) one key column is beeing display
as the first column (position 1 of the ALV output table) I want to freeze the postion of the key column
(...so that you can´t remove the column or move the column to another position)
Any idea?
Thanks vor any help
10-25-2011 9:34 AM
10-25-2011 10:06 AM
Hi,
Thanks so far.
The link does not really solve my problem.
I want to make sure that the key columns can not be removed or moved to another position.
Even If you use method 'SET_KEY_PRESENCE_REQUIRED' you will still be able to change position
(...and thus to 'abrogate' column fixation)
10-25-2011 10:33 AM
Hi,
try use this method:
CL_SALV_WD_COLUMN->SET_FIXED_POSITION
or
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/3e0cc8347d3ef0e10000000a421937/content.htm
hope this helps u
thanks & regards.
10-25-2011 1:56 PM
Hi,
This is probably another issue with SALV class... You could still grab a cl_gui_alv_grid object from your salv adapter and play with methods from this class (e.g. SET_FIXED_COLS)
Here we bypass the restrictions of the SALV model to enable the editable functionnality... guess you could work similarily for your issue...
Kr,
Manu.