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

Set Cursor in ALV Grid

Hi

Is there any way of setting cursor in ALV grid when using Function Module .

When user selects many no of rows and clicks some button ,

I have to set the cursor in a particular cell where data is wrongly entered.

How to set the cursor?

Edited by: PonVignesh Ayyadurai on Dec 22, 2008 8:29 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 04:31 AM

    Use method set_current_cell_via_id of CL_GUI_ALV_GRID . Check code below.

    DATA : wl_is_row_id TYPE lvc_s_row,

    wl_is_column_id TYPE lvc_s_col,

    wl_is_row_no TYPE lvc_s_roid.

    wl_is_row_id = p_wl_lines.

    wl_is_row_no-row_id = p_wl_lines.

    CALL METHOD w_grid->refresh_table_display

    EXPORTING

    i_soft_refresh = 'X'.

    CALL METHOD w_grid->set_current_cell_via_id

    EXPORTING

    is_row_id = wl_is_row_id

    is_column_id = wl_is_column_id

    is_row_no = wl_is_row_no.

    Hope this helps...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 03:05 PM

    Hi,

    Please check this following link will help you to find your answer

    http://help.sap.com/saphelp_nw04/helpdata/en/0a/b55327d30911d2b467006094192fe3/content.htm

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 04:21 AM

    Hi,

    That works with classes.

    I am using Function module 'REUSE_ALV_GRID_DISPLAY'.

    Will the 'GET_SELECTED_...' in 'CL_GUI_ALV_GRID' work for function module?

    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.