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: 

Displaying selected record from table control in subscreen

former_member671224
Participant
0 Kudos

Hi gurus,

Im displaying set of records using tablecontrol. In that, if the user selects single record and click on display button it should be displayed in Subscreen.

How should i get the specific selected record details. Can anyone help me regarding this?

I set the table control attribute Line_sel as Single and also given the name for that column as <b>sel_rec</b> in the attribute w/selColumn.

3 REPLIES 3

Former Member
0 Kudos

WHEN 'DISPLAY'.

LOOP AT itab WHERE sel_rec = 'X'.

MOVE: itab-field1 to subsc-field1,

...

..

ENDLOOP.

If you have line selection set to one, you could also use READ TABLE itab WITH KEY sel_rec = 'X'.

Hope this helps.

Sudha

Message was edited by:

Sudha Mohan

0 Kudos

In this case, Should i delcare the SEL_REC filed in internal table structure?

0 Kudos

Yes, you need to declare the same in the internal table structure.

Sudha