Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selecting rows in table control

Former Member
0 Likes
645

Hi experts,

I have question regarding selecting rows in table control. How can I select a row when a button is pressed. I cannot use the selection column in this case. Is there any option to achieve my requirement without using the selection column. Thanks.

regards,

sriram.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
598

Please search in scn or google.

There are lot of materials regarding this.

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
599

Please search in scn or google.

There are lot of materials regarding this.

Read only

Former Member
0 Likes
598

By,

Using the Get cursor syntax you can achive the Selected row in Table control.


  DATA : selrow TYPE i,
         selindex TYPE i  .

* getting the cursor line in Table Control for selected row
  GET CURSOR FIELD selfield LINE selrow.
  selindex = <tablecontrol>-top_line + selrow - 1.

Prabhu

Read only

0 Likes
598

Thanks Prabhu, Solved my problem.

Read only

Former Member
0 Likes
598

Probably you can create a last field LINE_SEL in your table control strucutre and assign it in table control properties at Screen Layout.

Then, when your button get pressed, you can move 'X' to the LINE_SEL field of your desire table row.

Read only

JanStallkamp
Advisor
Advisor
0 Likes
598

Hi Sriram.

Please do not ask questions in the forums that can be answered by a simple search. Your question has been asked and answered several times before. Please read our rules of engagement before posting in the SCN forums.

Regards,

Jan Stallkamp