08-22-2007 11:15 AM
hi experts,
i have grid output 10 columns.
when i execute my report i can see curser always in First column postion.
i want the curser always on second column by default.
can you help on this.
thanks
Shyam
08-22-2007 11:19 AM
hi
SET CURSOR - List make f1 help on it. hope it will help
regards
ravish
<b>plz dont forget to reward points if helpful</b>
Message was edited by:
Ravish Goyal
08-22-2007 11:24 AM
hi,
in the grid control u use i.e. RESUE_ALV_GRID_DISPLAY there will be a field called
SET CURSOR on field = 'give required column name'. then at output the cursor is automatically displayed at that columns first record.
if helpful reward some points.
with regards,
Suresh Aluri.
08-22-2007 11:55 AM
08-22-2007 11:24 AM
08-22-2007 11:29 AM
hi,
In , REUSE_ALV_GRID_DISPLAY, Fm
SET CURSOR on field = 'COL NAME'.
With Regards,
S.Barani
08-22-2007 11:30 AM
HI,
U can do this in OOALV
Use method set_current_cell_via_id
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.
CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->set_current_cell_via_id
EXPORTING
IS_ROW_ID = <structure of type LVC_S_ROW > ( obsolete )
IS_COLUMN_ID = <structure of type LVC_S_COL >
IS_ROW_NO = <structure of type LVC_S_ROID >.
Parameter Meaning
IS_COLUMN_ID Structure with column field names
IS_ROW_NO Structure with row index
reward if helpful
regards,
Sankar