Skip to Content

Cursor possition in table control

Hi all,

Is there any way to get cursor position in table control.Suppose if am in fourth or fifth column in table control when i presses enter from there it should add all the data's in the particular column then i will have textbox outside the table control so that i can display the results in that textbox.if any other easier way than this kindly suggest me.

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 Nov 23, 2007 at 08:47 AM

    Table Controls in ABAP Programs

    Cursor Position on Table Controls

    At PBO you can set the cursor on a specific field of a specific row of a table control.

    SET CURSOR FIELD .

    if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 09:53 AM

    hi

    try this

    GET CURSOR LINE SY-STEPL.

    READ TABLE ITAB INDEX SY-STEPL.

    thn do the assignment where everu want to show the data

    txtbox = itab-empname

    txtbox1 = itab-empno

    .........

    rgds,

    Sunny

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 23, 2007 at 08:47 AM

    Hi,

    Use set cursor field.

    Regards,

    Prashant

    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.