cancel
Showing results for 
Search instead for 
Did you mean: 

REUSE_ALV_GRID_DISPLAY

Former Member
0 Kudos

Hi friends

I have to use REUSE_ALV_GRID_DISPLAY FM to display data. Can i Set_Focus on the list after FM Call; i mean, the cursor over the first element of the list -standar is on the prompt-?

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Pedro,

You can use mehtod -- set_current_cell_via_id

Use --

Set the cursor on a specific cell in the grid control. The grid control scrolls to the position specified if the cell is not visible.

Features --

CALL METHOD <ref.var.to CL_GUI_ALV_GRID>->set_current_cell_via_id

EXPORTING

IS_ROW_ID = <structure of type LVC_S_ROW>

IS_COLUMN_ID = <structure of type LVC_S_COL>.

Parameter Meaning--

IS_ROW_ID Structure with line index

IS_COLUMN_ID Structure with column field names

The method set_focus sets focus on a control, not on any particular position in the grid. So will not be of much help in this case.

Regards,

Aniket

Message was edited by: Aniket Kute

Former Member
0 Kudos

Hi,

The method set_focus sets focus on a control, not on any particular position in the grid. So will not be of much help in this case.

Regards,

Aniket

Former Member
0 Kudos

Hi,

You no need to use the Set_Focus for it. By default it will be focused on first element.

regards

-Rakesh

Former Member
0 Kudos

hi,

By default that will be set <b>you need not</b> explicitly set set_focus.

Regards,

Santosh

former_member188685
Active Contributor
0 Kudos

HI,

By default the cursor will be on first row first column, so why do you want explict set_focus. it will on first row , first column. if it OO ALV then you can use SET_FOCUS, here you don't need that. check it.

Regards

vijay