‎2005 Jan 13 2:02 PM
Hai,
Thanks for your assistance.
I have table control displaying table records.
Now,if customer selects one record from table control then
i want to retrieve that selected record and
update value 'X' to one field of the record
and post this changed record again in table control.
so Incoding i dont know how to retrieve the selected record from table control.
could you please help?
Regards
Chandra kumar.
‎2005 Jan 13 2:17 PM
You can take a look at program
demo_dynpro_tabcont_loop_at
Flip into change mode with the button at the top and then you can select multiple rows and hit the delete button to delete them from the display. This should be a good example because the program determines what rows were selected so that it knows which ones to delete.
In a nutshell, your table control will have a field called MARK or something like that, and it will have an 'X' in it to identify the rows that were selected.
Please review the demo program and post any followup questions.
Let us know how it goes.
‎2005 Jan 13 2:21 PM
Hi Chandra,
In the PAI processing of your screen check your selection field and update your record in the internal table:
PROCESS AFTER INPUT.
*
LOOP AT g_tc_itab.
CHAIN.
FIELD: line_2000-selfield.
MODULE update_record.
ENDCHAIN.
ENDLOOP.
Regards,
John.
‎2005 Jan 13 2:21 PM
Hi,
-> append field mark(1) to your itab and tc
1) MODIFY tc at pai.
2) analyse which line of your tc is marked
By: loop at itab wherer mark = 'X'.
Andreas