Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV grid.

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

hello,

i am unable to locate SET CURSOR in FM

can you help me?

Former Member
0 Kudos

why do you need such a thing?

Former Member
0 Kudos

hi,

In , REUSE_ALV_GRID_DISPLAY, Fm

SET CURSOR on field = 'COL NAME'.

With Regards,

S.Barani

Former Member
0 Kudos

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