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

Line selected in a table control


I'm using the command GET CURSOR LINE line to get the line I selected in a table control. The number of visible rows is 4. This command gets me the correct row I selected only upto the 4th line but after that, for the 5th row, the row selected is returned as '4'.

How can I get the correct row that I've selected on the table control?

Please advise.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 28, 2008 at 03:37 PM

    You should use the std mechanism of selecting the line in table control.

    1. You need to have one character field for the selection in your internal table

    2. Assign this field in your table control property:

    Check the checkbox "w/SelColumn" and give this character field name in the adjacent field

    Save and activate.

    Now, when you select the row, the corresponding "Character" field will have the value "X".


    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Christine Evans

      Hi Christine,

      Thanks very much for the reply. It did work for me. I found the solution at this site that was posted by Franklin Mendez on April 15th, 2008

      clear lv_line.

      GET CURSOR LINE lv_line.

      lv_line = lv_line + tc_prod_rl_ind-top_line - 1.




      Edited by: Alvaro Tejada Galindo on Apr 28, 2008 12:39 PM

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.