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: 

How to lock just one line on Table Control?

fernando_pena
Participant
0 Kudos

Hello Experts,

I would like to know if is possible to lock just on line on table control, while execution, and not lock other lines...

If i try to lock a field or a line, table control locks the col and not the row... I would like to lock just one row...

Somebody can help me, please?

Thanks in advance.

Fernando Pena.

2 REPLIES 2

Former Member
0 Kudos

Hi

What do you mean?

If you mean not to allow modification for all field of a certain row, you need to insert some condition before changing input/output attributes, and It has to be done in the LOOP of table control:

PROCESS PBO
   LOOP AT ........
       MODULE LOCK_ROW.
   ENDLOOP.

MODULE LOCK_ROW.
    CHECK ..............  " Conditions to lock the row
    LOOP AT SCREEN.
       SCREEN-INPUT = 0.
        MODIFY SCREEN.
   ENDLOOP.
ENDMODULE.

Max

Former Member
0 Kudos

Try this.


loop with table contrl.
module lock_tab.
endloop.


module lock_tab.
if tabc-current_line = lock_line.  "lock_line is the line no to be locked and tabc is tab control name
loop at screen.
if screen-name = 'TAB-FLD1' or screen-name = 'TAB-FLD2'.......  "TAB-FLD1... are the names of the fields in the table
   screen-input = '0'.
   modify screen.
endif.
endloop.