Application Development 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: 

Selected row of a table control

Former Member
0 Kudos

Hello,

silly question: I have a table control with a selection column on the left (single select). How can I know which row the user selected?

Thanks,

Manuel

3 REPLIES 3

Former Member
0 Kudos

Hi Manuel,

I think the below link may be useful

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

Regards,

Atish

Former Member
0 Kudos

Thanks for the quik answer. I know the link.

If I get it right, the important statement is:

MODIFY itab FROM demo_conn INDEX flights-current_line.

demo_conn is the current workarea with MARK = 'X' (if the row is selected).

Is that right?

in my example demo_conn-MARK remains always ' ' and never turns to 'X'.

When drawing the Table control I took reference to a dictionary structure. In the report I user TABLES <dictStruct> to define my workarea.

Could you give me further advice?

Former Member
0 Kudos

In the Selectio Field (table control Properties) I enterd only the field name. Now that I entered the <table>-<fieldname> everything works fine.

Regards,

Manuel