Skip to Content

How to remove default cursor position in first cell of oo alv grid ?

Hi ,

    I have tried few methods to remove default cursor position in oo alv grid:  set_current_cell_via_id , set_focus , set_enable  and in layout I have passed no_rowmark = 'X' but still I didn't find any solution to remove the default cursor position in oo alv grid.

Thanks and regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 14, 2015 at 10:02 AM

    Hi,

    if you are using class CL_GUI_ALV_GRID or similar and call your ALV screen with CALL SCREEN nnnn, then you can try the following:

    Give a field name to the OK_CODE field on that screen, for example OKCOD.

    Use  SET CURSOR FIELD 'OKCOD'. in last PBO module.

    Please check if this works.

    Also you can try to use SET CURSOR col lin for a direct cursor position.

    Regards,

    Klaus

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 16, 2015 at 11:56 AM

    Hi,

    u can try : set_current_cell_via_id to  set cursor where u want.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi snehal ,

         I know set_current_cell_via_id will set cursor where ever I want, if I pass 0. Then also it will show cursor on 1st  cell of alv. I need is disable the cursor .

      Thanks,

      Vijay

  • Jan 16, 2015 at 12:08 PM

    Use of set_current_cell_via_id and set_focus should have allowed you to move the cursor where you want, so could you post relevant code or explain when and how you called those, did you forget to also call CL_GUI_CFW=>FLUSH?

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded