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

Locking Table contol

Former Member
0 Likes
551

How to lock a table control upto where data is showing in vertical column .

After that new input can be made.

4 REPLIES 4
Read only

Former Member
0 Likes
514

Unable to understand your question. Can u put your question more precisely.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
514

You can manage the SCREEN-INPUT attribute of your cells in the PBO, in the LOOP WITH CONTROL/ENDLOOP call a MODULE which will perform a LOOP AT SCREEN ON the current row of the table control.

* PBO
  LOOP AT  itab
       WITH control
       CURSOR control-current_line.
    MODULE row_itab_attr.
    (...)
  ENDLOOP.
* Module
MODULE row_itab_attr OUTPUT.
  LOOP AT SCREEN.
    IF <your test, eg column < colum input-able or itab-xxx not initial>
      screen-input = 0.
    ELSE.
      screen-input = 1.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
ENDMODULE. 

Regards

Read only

Former Member
0 Likes
514

IF itab-field NE ' '.

LOOP AT SCREEN.

screen-input = 0 .

MODIFY SCREEN.

ENDLOOP.

ENDIF.

ENDIF.

ENDMODULE.

try this.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
514

Did you fulfil your requirement ?

Regards