05-02-2008 7:59 AM
hi all,
i have two pushbutton B1 & B2 in selection-screen and i want to hide B2 when clicking at B1, can anybody tell me step by step how would i do? its urgent.
regards saurabh.
05-02-2008 8:17 AM
Hi Saurabh,
Assign B1 to a group, say c_ps, and B2 to another group, say c_as. Then write this code and you can get the desired output.
******************************************************************
LOOP AT SCREEN.
IF screen-group1 = c_ps.
IF B1 = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ENDIF.
IF screen-group1 = c_as.
IF B2 = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
*******************************************************************
Hope this is helpful to you. If you need further information, revert back.
Reward all the helpful answers.
Regards
Nagaraj T
05-02-2008 8:17 AM
Hi Saurabh,
Assign B1 to a group, say c_ps, and B2 to another group, say c_as. Then write this code and you can get the desired output.
******************************************************************
LOOP AT SCREEN.
IF screen-group1 = c_ps.
IF B1 = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ENDIF.
IF screen-group1 = c_as.
IF B2 = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
*******************************************************************
Hope this is helpful to you. If you need further information, revert back.
Reward all the helpful answers.
Regards
Nagaraj T
05-02-2008 8:20 AM
at selection-screen
LOOP AT SCREEN.
IF SCREEN-NAME = 'B2'.
SCREEN-OUTPUT = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.