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: 

Make ALL ROWS of a table control EDITABLE

Former Member
0 Kudos
1,972

  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,

5 REPLIES 5

former_member184569
Active Contributor
0 Kudos
314

For each input/output column field in the table control, set attributes to allow Input.

Former Member
0 Kudos
314

Former Member
0 Kudos
314

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.

Former Member
0 Kudos
314

if you want to make all the row editable select the following for the input /output fields.

former_member388650
Participant
0 Kudos
314

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