‎2006 Jun 09 6:41 PM
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.
‎2006 Jun 09 6:53 PM
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]
‎2006 Jun 09 7:07 PM
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.
‎2006 Jun 09 6:53 PM
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.