12-01-2010 4:49 PM
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.
12-01-2010 4:57 PM
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
12-01-2010 6:25 PM
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.