on 04-27-2006 11:39 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You no need to use the Set_Focus for it. By default it will be focused on first element.
regards
-Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.