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: 

enabling and disabling radiogroup button .

Former Member
0 Kudos

Hi Experts,

I have a radio button group declared as 'RB1' on my selection screen which should be INVISIBLE when i enter the selection screen. There is a pushbutton created on application toolbar with function code as 'CROBJ' . on click of this pushbutton radio button group should be VISIBLE. correct my code ..

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN .

IF screen-group1 = 'RB1'.

IF SY-UCOMM EQ 'CROBJ'.

screen-invisible = c_no.

screen-active = c_yes.

ENDIF.

ELSE.

screen-invisible = c_yes.

screen-active = c_no.

ENDIF.

MODIFY SCREEN.

2 REPLIES 2

MarcinPciak
Active Contributor
0 Kudos

Use PAI instead of PBO


AT SELECTION-SCREEN.
LOOP AT SCREEN .
IF screen-group1 = 'RB1'.
IF SY-UCOMM EQ 'CROBJ'.
screen-invisible = c_no.
screen-active = c_yes.
ENDIF.
ELSE.
screen-invisible = c_yes.
screen-active = c_no.
ENDIF.
MODIFY SCREEN.

Regards

Marcin

Former Member
0 Kudos

Try this..


AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN .
IF screen-group1 = 'RB1'.
IF SY-UCOMM EQ 'CROBJ'.
screen-invisible = c_no.
screen-active = c_yes.

ELSE.
screen-invisible = c_yes.
screen-active = c_no.
ENDIF.
ENDIF.
MODIFY SCREEN.