Skip to Content

Unselect initial cell in ALV OO

Apr 26, 2017 at 07:43 AM


avatar image

Hi all,

I have an ALV with some colored cells.

The first time you display the ALV the first row is selected so you cannot see the colors.

I want to display the ALV wihtout any cell selected.

I've tried using method SET_SELECTED_CELLS with an empty table but doesnt work.

I've seen there is a method SELECTIONS_CLEAR, but is protected. So I changed the class CL_GUI_ALV_GRID by the class /irm/cl_gui_alv_grid where is public. But nothing, the first cell is always seleted the first time.

I've tried also using ls_layout-NO_ROWMARK = 'X'. but nothing...

I dont want any cell selected. Do you know how can I do it?

Thanks in advance.

12.jpg (28.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Apr 26, 2017 at 10:09 AM

So where do you want to set the focus?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Nowhere... but I think it's impossible, isn't it?

The purpose of this is to paint an input field in my screen with colors, its impossible to do it in screen painter, so my idea was to create a tiny ALV with only one cell, but if this cell is selected at the beginning then...

I think I'm going to do it with an HTML container...