Application Development and Automation 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: 
Read only

ALV grid.

Former Member
0 Likes
877

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

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
Read only

Former Member
0 Likes
840

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

Read only

Former Member
0 Likes
840

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.

Read only

0 Likes
840

hello,

i am unable to locate SET CURSOR in FM

can you help me?

Read only

Former Member
0 Likes
840

why do you need such a thing?

Read only

Former Member
0 Likes
840

hi,

In , REUSE_ALV_GRID_DISPLAY, Fm

SET CURSOR on field = 'COL NAME'.

With Regards,

S.Barani

Read only

Former Member
0 Likes
840

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