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

Radio button on selection screen

Former Member
0 Likes
701

Hi abapers,

In my zreport there are 2 radio buttons available, i want to make one radio button in no display mode.

what is syntax for that?

As it is mandatory to have atleast 2 radio button in a radio buton grup, i cannot delete it.

just i want the second radio button in no-displaymode.

please help me.

regards,

Hari priya

Hi abapers,

In my zreport there are 2 radio buttons available, i want to make one radio button in no display mode.

what is syntax for that?

As it is mandatory to have atleast 2 radio button in a radio buton grup, i cannot delete it.

just i want the second radio button in no-displaymode.

please help me.

regards,

Hari priya

5 REPLIES 5
Read only

Former Member
0 Likes
665

AT SELECTION-SCREEN OUTPUT

Loop at screen.

IF screen-name EQ 'rb1'

screen-input = 1.

endif.

Modify Screen.

Endloop.

HERE rb1 is your name of radiobutton.

rgds

rajesh

Edited by: RAJESH KUMAR on Aug 8, 2008 2:41 PM

Read only

Former Member
0 Likes
665

Hi priya,

what is the point to inactive the one of the radio button, for this requirement u can go for checkbox.

thanks..

Read only

valter_oliveira
Active Contributor
0 Likes
665

Hello.

Check this code.


PARAMETERS: rad1 RADIOBUTTON GROUP vdo DEFAULT 'X',
            rad2 RADIOBUTTON GROUP vdo MODIF ID vdo.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    CHECK screen-group1 EQ 'VDO'.
    screen-active = '0'.
    MODIFY screen.
  ENDLOOP.

Regards.

Valter OLiveira.

Read only

Former Member
0 Likes
665

Hii!

Check this code


REPORT z_sdn.

PARAMETERS:
  p_num RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND abc MODIF ID abc,
  p_char RADIOBUTTON GROUP rad1 MODIF ID xyz.


AT SELECTION-SCREEN OUTPUT.
  IF p_num EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'ABC'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'XYZ'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

Regards

Abhijeet

Read only

0 Likes
665

Hi abhijit,

Thank you very much for providing the logic.

regards,

Hari priya