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

Radiobutton

Former Member
0 Likes
1,030

How to deactivate the radio buttons.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,002

loop at screen.

if screen-name = 'RADIO'

screen-input = 0

screen-output =1.

endif.

endloop.

8 REPLIES 8
Read only

Former Member
0 Likes
1,003

loop at screen.

if screen-name = 'RADIO'

screen-input = 0

screen-output =1.

endif.

endloop.

Read only

0 Likes
1,002

hi John

do this way

Pu this in AT-SELECTION SCREEN part and do also check the check box option that is to be enabled and the one that is to be disabled

loop at screen.
if screen-name = 'RAD'
screen-input = 0
screen-output =1.
<b>modify screen.</b>
endif.
endloop

Read only

Former Member
0 Likes
1,002
Read only

Former Member
0 Likes
1,002

Hello use this code,

*AT SELECTION-SCREEN OUTPUT.

*

  • CASE 'X'.

  • WHEN R1.

  • LOOP AT SCREEN.

  • IF SCREEN-GROUP1 = 'SC2'.

  • SCREEN-INPUT = '0'.

  • SCREEN-OUTPUT = '0'.

  • SCREEN-REQUIRED = '0'.

  • SCREEN-INVISIBLE = '1'.

  • MODIFY SCREEN.

  • ENDIF.

  • ENDLOOP.

  • WHEN R2.

  • LOOP AT SCREEN.

  • IF SCREEN-GROUP1 = 'SC1'.

  • SCREEN-INPUT = '0'.

  • SCREEN-OUTPUT = '0'.

  • SCREEN-REQUIRED = '0'.

  • SCREEN-INVISIBLE = '1'.

  • MODIFY SCREEN.

  • ENDIF.

  • ENDLOOP.

  • ENDCASE.

If useful reward points.

Regards,

Vasanhth

Read only

Former Member
0 Likes
1,002

hi,

Try this out


*---------------Activate & Deactivate Screen Fields--------------------*

PARAMETERS       : p_abc RADIOBUTTON GROUP rad1 modif id ABC.


AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF <Condition for deactvation>.
      IF screen-group1  = 'ABC'.
        screen-input  = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.



Read only

Former Member
0 Likes
1,002

Hi john,

1. simple

2. just copy paste

3.

report abc.

parameters : a radiobutton group g1 MODIF ID G,

b radiobutton group g1 MODIF ID G.

*----


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'G'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

regards,

amit m.

Read only

Former Member
0 Likes
1,002
PARAMETERS : R1 RADIOBUTTON GROUP R MODIF ID RAD,
       R2 RADIOBUTTON GROUP R.

AT SELECTION-SCREEN OUTPUT.

  LOOP  AT SCREEN.
    IF SCREEN-GROUP1 = 'RAD'.
      SCREEN-INPUT = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
Read only

Former Member
0 Likes
1,002

Hi,

Check this sample code..

REPORT  ZTEST_RAD                               .
parameters: r1 radiobutton group g1 user-command ABC,
            r2 radiobutton group g1.

 at selection-screen output.
 loop at screen.
 if screen-name = 'R1'.
 screen-input = 0.
 modify screen.
 endif.
 endloop.

Regards

vijay