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: 

How do we capture the record selected in the table control?

Former Member
0 Kudos

Hi,

In the table control when the user selects a record we need to capture that record and pass it to the next screen.how can we do this?

Thanks,

Rakesh.

3 REPLIES 3

Former Member
0 Kudos

Hello

First of all you need a 'mark' column in your TC structure.This should be char1.

This column has to be put into the TC Attributes as mark column.

Then to get back the info from the TC go the following way:

PAI

loop at <fs_it> . "Field symbol of your table.

MODIFY <fs_it> FROM wa_basic

INDEX tc_maintenance-current_line.

endloop.

Message was edited by:

Werner Gerbert

0 Kudos

Hi,

for this u have to first chech the attribute of TC for line selection and give it some name like itab-selected.

now in the structure of thatu creted for table control, take a field of 1 char named selected.

whenever u select the line in TC that selected value will be automatically update din the table.

now proceed with that..like in PAI

delete itab where selected = 'X'.

Regards,

Sonika

Former Member
0 Kudos

Hi Rakesh,

Problem not solved yet??

You can try using GET CURSOR ,

chk this program

<b>DEMO_DYNPRO_GET_CURSOR</b>