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

desable table control and push buttons

Former Member
0 Likes
389

if gv_trtyp eq 'A'.

loop at tc_value-cols into cols.

move 0 to cols-screen-input .

move 0 to cols-screen-active .

modify tc_value-cols from cols index sy-tabix.

clear cols. " after pressing enter key then it is happening endloop.

loop at screen.

if screen-name eq 'CONT'. '' this is push buttons* OR screen-name = 'ZCURR-ZEDATU'

  • OR screen-name = 'ZCURR-ZWMENG'

  • OR screen-name = 'ZCURR-ZREASON'

  • OR screen-name = 'ZCURR-ZCOMMENT'.

move 0 to screen-input.

modify screen.

endif.

endloop.

***********the above logic is on table control not working properly need to disable table control as well as push buttons both

1 REPLY 1
Read only

Former Member
0 Likes
359

Hi ,

During processing of a table control or a step loop, the changes affect the current line of the table control or the current step loop group. Before the processing of a table control, the change to the attributes of a screen element that is part of a line in the table control does not effect the table control, since the values are transferred from the structure created using CONTROLS. Before a step loop is processed, the change to the attributes of a screen elements that is part of a step loop group affects all groups in the step loop.


MODULE modify_0100 OUTPUT. 
  LOOP AT SCREEN. 
    IF screen-name = 'VAL'. 
      screen-active    = '0'. 
      MODIFY SCREEN. 
    ENDIF. 
  ENDLOOP. 
ENDMODULE. 

Regards,

Renjith Michael.