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 radio button

Former Member
0 Likes
2,891

How i can hide a radiobutton which is present in Selction Screen

How i can hide a radiobutton which is present in Selction Screen

4 REPLIES 4
Read only

Former Member
0 Likes
828
REPORT ychatest LINE-SIZE 350.

SELECTION-SCREEN BEGIN OF BLOCK b1 .
PARAMETERS : r1 RADIOBUTTON GROUP rad1,
             r2 RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'R2'.
      screen-invisible = 1.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
Read only

Former Member
0 Likes
828

Hi Praveen,

Use LOOP AT SCREEN statamant.

PARAMETERS: P1 RADIOBUTTON GROUP R1,

P2 RADIOBUTTON GROUP R1,

P3 RADIOBUTTON GROUP R1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P1'.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

regards,

keerthi

Read only

Former Member
0 Likes
828

Dear Praveen,

Since you're declaring the radiobutton in the Selection Screen.

Please follow the following link inorder to hide :

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba6de35c111d1829f0000e829fbfe/frameset.htm

Regards,

Abir

************************************

  • Don't forget to award Points *

Read only

Former Member
0 Likes
828

HI,

try with this.

data:flag type c value 'X'.

selection-screen begin of block b.

parameters:r1 radiobutton group radi modif id g1,

r2 radiobutton group radi.

selection-screen end of block b.

at selection-screen output.

loop at screen.

if screen-group1 = 'G1'.

if flag = 'X'.

screen-active = 0.

modify screen.

endif.

endif.

endloop.