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: 

Non-editable line in TABLEVIEW control.

Former Member
0 Kudos

Hi guys,

I have a tableview control, created with screenpainter. I am able to fill it in my code but i would like to change some lines status to "non-editable".

I tried with LOOP AT SCREEN ..... ENDLOOP. -> I have access to rows but not lines.

I tried to loop at the table name ( name in screen painter, not the itab name corresponding), in the PROCESS BEFORE OUTPUT or PROCESS AFTER INPUT but i have the following error : +TAB_WERKS is not a database table. +

Any idea?

Thanks, Olivier.

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

in the PBO, use:


LOOP ... "any variant of loop on table control lines
  MODULE xxx.
ENDLOOP.

Define the module xxx:


MODULE xxx OUTPUT.
  LOOP AT SCREEN.
    SCREEN-INPUT = 0.
    MODIFY SCREEN.
  ENDLOOP.

Note 1: that's not possible to make the whole line non-editable in one statement.

Note 2: you may also simply declare all the I/O fields of the table control "output only"