Application Development and Automation 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: 
Read only

Table control disable all rows

Former Member
0 Likes
618

Dear experts,

I've a table control, but the first time the dynpro is displayed, the table control is completely enable, all the rows and It doesn't make sense to have the button add row, also, if you press that button when all the table control is displayed then the table control open one line. Is there any possibility to disabled all the table control and only allow to add rows when the button "Add" is pressed?

Thanks a lot for your support.

Regards,

Rebeca

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
586

Hi Reol,

you can disable using the following code:

DATA: LS_DST_COL LIKE LINE OF TB-COLS.


LOOP AT TB-COLS INTO LS_DST_COL.
      LS_DST_COL-SCREEN-INPUT = ''.
      MODIFY TB-COLS FROM LS_DST_COL.
ENDLOOP.

Dear experts,

I've a table control, but the first time the dynpro is displayed, the table control is completely enable, all the rows and It doesn't make sense to have the button add row, also, if you press that button when all the table control is displayed then the table control open one line. Is there any possibility to disabled all the table control and only allow to add rows when the button "Add" is pressed?

Thanks a lot for your support.

Regards,

Rebeca

1 REPLY 1
Read only

Former Member
0 Likes
587

Hi Reol,

you can disable using the following code:

DATA: LS_DST_COL LIKE LINE OF TB-COLS.


LOOP AT TB-COLS INTO LS_DST_COL.
      LS_DST_COL-SCREEN-INPUT = ''.
      MODIFY TB-COLS FROM LS_DST_COL.
ENDLOOP.