cancel
Showing results for 
Search instead for 
Did you mean: 

ALV-GRID: SET_SELECTED_ROWS doesn't work in Edit-Mode

Former Member
0 Kudos

Dear ABAP's,

I want to mark some lines in an ALV-Grid-Control. To do that I use the method SET_SELECTED_MODE( ). Usually it works. But if I call the method SET_READY_FOR_INPUT( ) to switch to the edit-mode before, it doesn't work any more.

I tried out all possible values for the attribute SEL_MODE of the ALV-Layout-Structure.

Thanks a lot,

Heiko

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188685
Active Contributor
0 Kudos

hi,

recently i worked on it, it is working fine.

what are you doing exactly..

regards

vijay

Former Member
0 Kudos

Hi Vijay,

i want to mark just one row. To do this i use the method SET_SELECTED_ROWS by passing the internal table IT_ROW_NO with just one entry to the method. My expectation is that the row is marked. But everything else is happening. The passed row is not marked. Anyhow the cursor is placed in the given row. I i switch the grid to the display mode it works.

grx,

heiko

former_member188685
Active Contributor
0 Kudos

are you changing the total grid to change mode or only few fields..

but i used it for few fields(edit mode) it is working.

even in your case it should work...

we are on R3 4.7 version.

vijay

Message was edited by: Vijay Babu Dudla

Former Member
0 Kudos

I used the edit mode only for a few fields. The next curiosity is, if i mark some rows manually, and try to get the marked rows by the method GET_SELECTED_MODE it doesn't work too. All method which handles the rowmark seemed to work just in the display-mode. i worked on a web application server version 6.2

regards,

heiko

weltspion
Participant
0 Kudos

Hi Heiko,

did you fix your problem?

I am working on a similar problem, where get_selected_rows works fine (when selecting the rows manually), and set_selected_rows the other way around does not effect anything (even when sending refresh_table_display, cl_gui_cfw=>flush and all that stuff).

Do you have an idea or did you work out the problem meanwhile?

Regards,

Torsten.