Application Development 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: 

Hide pushbutton in selection screen

former_member1284402
Participant
0 Kudos

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

Former Member

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

Former Member

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

Sm1tje
Active Contributor
0 Kudos

at selection-screen

LOOP AT SCREEN.

IF SCREEN-NAME = 'B2'.

SCREEN-OUTPUT = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.