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

Hide pushbutton in selection screen

Former Member
0 Likes
2,515

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.

1 ACCEPTED SOLUTION
Read only

Former Member
1,199

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

2 REPLIES 2
Read only

Former Member
1,200

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

Read only

Sm1tje
Active Contributor
0 Likes
1,199

at selection-screen

LOOP AT SCREEN.

IF SCREEN-NAME = 'B2'.

SCREEN-OUTPUT = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.