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

Select Row in Table Control using ABAP

Former Member
0 Likes
757

Good afternoon-

I would like to know how to simulate the action of selecting a row in a table control. For clarification, I understand how to get back the cursor/location/data assocated with a line item that the user has selected by clicking on the grey button to the left of the row.

If I have a table control where there are no rows currently selected and I know the details of a line that I would like to select for the user so when they see the table control a specific line is already selected (highlighted) for them.

I know of three or four ways to read data from a selected line in a table control, but I would actually like to programmatically select a line to display on the screen as having been selected.

Can anyone help, or have I been unclear with my request? Thank you in advance for any help you can provide.

3 REPLIES 3
Read only

Former Member
0 Likes
595

When you need to find the row, you just search for the mark field with an ‘X’, right?

Try to set this flag at the moment you fill your internal table before shows up in the table control.

Please, mark ALL useful answers.

Regards,

Felipe Cunha [Fpdc]

Read only

0 Likes
595

This helped me come up with what I was doing wrong. I had the basic mechanics down, and was doing just as you recommend by filling the internal table just before it shows up in the table control.

However, I was overwriting my 'MARK' field just before displaying the table to the screen thus causing my frustration.

Thank you.

Read only

Former Member
0 Likes
595

Hello Andrew,

See the link below there is detailed exmaple mentioned there.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm

Cheers,

Thomas

Please mark points if helpful.