Skip to Content
0
Former Member
Dec 16, 2011 at 08:41 AM

How to Enable And Disable input/output filed in a tabstrip

1103 Views

Hi Experts ,

i am creating application in that i used tabstrip control in that contain one box and in box contain

two input/output field . i add change button on that screen so that when user click on change button the the input/output filed is enable to user and enter value. i write code but it enable input/output field outside the tabstrip control not inside the tabstrip control . so please help me to write code to enable and disable field inside the tabstrip control.

tabstrip name = KNA1TABSTRIP.

tab name = ADDRESS.

subscreen name = SUB1

box name = BOX1

1) input/output field name = KNA1-NAME1. 2) input/output field name = KNA1-NAME2.

button name = CHANGE

groups name of i/o field = MSK

below i m write code but it not work properly

MODULE change OUTPUT.
 CASE sy-ucomm.
  WHEN 'CHANGE'.
  LOOP AT SCREEN .
screen-group1 = 'MSK'.
screen-input = 1.
MODIFY SCREEN.
ENDLOOP.
 ENDCASE.
ENDMODULE.