03-16-2007 11:57 AM
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.
03-16-2007 12:14 PM
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
03-16-2007 1:40 PM
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
03-16-2007 1:43 PM
Hi Rakesh,
Problem not solved yet??
You can try using GET CURSOR ,
chk this program
<b>DEMO_DYNPRO_GET_CURSOR</b>