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: 

set fixed key column position

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

Hi,

plz follow this link,mat solve ur problem

thanks & regards.

0 Kudos

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)

0 Kudos

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.

0 Kudos

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)

have a look to this blog:

Here we bypass the restrictions of the SALV model to enable the editable functionnality... guess you could work similarily for your issue...

Kr,

Manu.