Skip to Content
avatar image
Former Member

ALV grid.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Aug 22, 2007 at 10: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 10: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 10:24 AM

    why do you need such a thing?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 10:29 AM

    hi,

    In , REUSE_ALV_GRID_DISPLAY, Fm

    SET CURSOR on field = 'COL NAME'.

    With Regards,

    S.Barani

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 10: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

      Add comment
      10|10000 characters needed characters exceeded