2013 Jul 08 8:27 AM
Hello Experts,
I am displaying a table control in a subscreen with vertical scroll bar.
How can I make all the rows EDITABLE?
I am using LINES attribute with fixed no (TAB_CT-LINES = 100), But still I can find some non editable rows when I scroll till end.
Thanks in advance,
2013 Jul 08 8:35 AM
For each input/output column field in the table control, set attributes to allow Input.
2013 Jul 08 8:48 AM
2013 Jul 08 9:28 AM
Hi Debarshi,
Whatever columns you want to make editable set the properties as shown by Sushmitha in SE51.
If your requirement is something else, let us know.
BR.
2013 Jul 08 11:08 AM
if you want to make all the row editable select the following for the input /output fields.
2013 Jul 08 11:51 AM
Hi Debarshi,
By default a table control only enables (makes editable) rows having any value. To achieve your goal, all you need to do is manually append INITIAL LINES to your internal table being displayed on subscreen.
select <fields> into itab.
suppose above query fetches 10 rows so itab will have only 10 rows. Your table control will display 10 rows and allow them to edit even though your table control is capable of showing more than 10 rows.
Now just after above SELECT statement if you write as below...
do 10 times.
append initial lines to itab.
enddo.
This will add another 10 blank rows to your itab. Now, the table control will show 20 rows all in editable mode.
Try this and appreciate.
Regards,
Vishram