Skip to Content
author's profile photo Former Member
Former Member

Cursor in ALV container

My output screen is controlled in class , so I am not able to use the SET CURSOR FUNCTIONALITY , is there a method hat allows you to set the cursor position inside a ALV container . I want the cursor to remain at the edited field after every enter . Right now it runs to the very first cell after every enter.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 18, 2007 at 04:10 PM

    Hi,

    If output is too long

    then use SET_SCROLL_INFO_VIA_ID method first and use method

    SET_CURRENT_CELL_VIA_ID of CL_GUI_ALV_GRID class.

    Regards

    L Appana

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Like this -:)

        DATA: E_ROW TYPE I,
              E_VALUE TYPE C,
              E_COL TYPE I,
              ES_ROW_ID TYPE LVC_S_ROW,
              ES_COL_ID TYPE LVC_S_COL,
              ES_ROW_NO TYPE LVC_S_ROID.
      
        CALL METHOD GRID1->GET_CURRENT_CELL
        IMPORTING
        E_ROW = E_ROW
        E_VALUE = E_VALUE
        E_COL = E_COL
        ES_ROW_ID = ES_ROW_ID
        ES_COL_ID = ES_COL_ID
        ES_ROW_NO = ES_ROW_NO.
      
        ES_COL_ID = 'MENGE'.
      
        IF E_VALUE NE SPACE AND W_ERROR EQ SPACE.
          CALL METHOD GRID1->SET_CURRENT_CELL_VIA_ID
          EXPORTING
          IS_ROW_ID = ES_ROW_ID
          IS_COLUMN_ID = ES_COL_ID.
        ENDIF.
      

      Greetings,

      Blag.

  • Posted on Sep 18, 2007 at 03:59 PM

    Use the method SET_CURRENT_CELL_VIA_ID of the class CL_GUI_ALV_GRID to set the current cell.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.