Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Push Button in Table Control Module Pool

Hi guy,

My problem is simple . i have a table control and i have added a push button in the table control. Suppose my table control has 2 values (ROWS) . When i press the pushbutton of the second row i want to fetch the values of only the second row. I have placed the coding within the loop but i am still not getting how to get those values as the whole loop is run. i have tried using w/sel coloumn but am not able to fetch it.

any help would be great .

Thanks in advance.


Devrath Sampat.

Former Member
Former Member replied

Ah! I found this thead interesting so I excursed a bit.

Below is my finding.

You need to use the combination of GET CURSOR LINE and table_control-top_line. The below screen tells you the story. I scrolled my table control down so that the top line displayed inĀ  my TC is the 7th line. Then i pressed push button on the 3rd line. Which infact was the 9th line of my internal table.

In user command you get these values.

The line of your interest is tc-top_line + l_v_index - 1.

Rest is your own logic . Do let me know. I would be interested in knowing if it really works.

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question