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 radiobutton group

Former Member
0 Likes
2,658

Hi

I maintained two radiobuttons one for uploading the data record and other generating a smartform in the standard selection screen.

And I have another set of radiobuttons below smartorm radiobutton.when I click on the smart form radiobutton only those suboptions should be displayed.How can i do this. Pls Reply soon.

Hi

I maintained two radiobuttons one for uploading the data record and other generating a smartform in the standard selection screen.

And I have another set of radiobuttons below smartorm radiobutton.when I click on the smart form radiobutton only those suboptions should be displayed.How can i do this. Pls Reply soon.

6 REPLIES 6
Read only

Former Member
0 Likes
1,011
Parameters:P_upload radiobutton group rad1 user-command ucomm Default 'X',
                 p_smart  radiobutton group rad1.

* Smartform Options.
Parameters: S_opt1 radiobutton group rad2 user-command ucomm1 modif id 'AA',
                   S_opt1 radiobutton group rad2 modif id 'AA'.

Initailization.           " Initially Buttons will not display

Loop at screen.
If Screen-Group1 = 'AA'.
Screen-active = 0.
Endif.
Modify screen.
Endloop.

At selection-Screen output.
If p_smart = 'X'.               " Button is clicked
Loop at screen.
If Screen-Group1 = 'AA'.
Screen-active = 1.
Endif.
Modify screen.
Endloop.
Else.
Loop at screen.
If Screen-Group1 = 'AA'.
Screen-active = 0.
Endif.
Modify screen.
Endloop.
Endif.

Regards,

Gurpreet

Read only

Former Member
0 Likes
1,011

hi,

You can use Modif id to the two suboptions radiobuttons and then use

at selection-screen output.

loop at screen.

if P_SMART = 'X' and

SCREEN-GROUP1 = 'BL2'.

SCREEN-ACTIVE = '1'.

endif.

modify screen.

endloop.

thanks

Read only

Former Member
0 Likes
1,011

Hi,

u need to modify the screen elements after u perform action on the selection screen.

so,

at selection-screen.

Apply the following process
Loop at Screen.
if rad1 eq 'X'.
if screen-group eq 'GRP1'.
screen-active = '1'.
endif.
else.
if screen-group eq 'GRP1'.
screen-active = '0'.
endif.
endif.
modify screen.

endloop.

thanks

ravi

Read only

Former Member
0 Likes
1,011

Hi,

Go through this piece of code as an example...

TABLES: MARA,
         EKKO,
         VBAK.

 PARAMETERS: P1 TYPE C RADIOBUTTON GROUP GRP1 USER-COMMAND USER_SEL DEFAULT 'X',
             P2 TYPE C RADIOBUTTON GROUP GRP1,
             P3 TYPE C RADIOBUTTON GROUP GRP1.

 SELECT-OPTIONS : S_MARA FOR MARA-MATNR MODIF ID MI1,
                  S_EKKO FOR EKKO-EBELN MODIF ID MI2,
                  S_VBAK FOR VBAK-VBELN MODIF ID MI3.

AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
  IF SCREEN-GROUP1 = 'MI1'.
    IF P1 = 'X'.
      SCREEN-INVISIBLE = '0'.
      SCREEN-ACTIVE = '1'.
      ELSE.
        SCREEN-INVISIBLE = '1'.
        SCREEN-ACTIVE = '0'.
    ENDIF.
     MODIFY SCREEN.
  ENDIF.
  IF SCREEN-GROUP1 = 'MI2'.
    IF P2 = 'X'.
      SCREEN-INVISIBLE = '0'.
      SCREEN-ACTIVE = '1'.
      ELSE.
        SCREEN-INVISIBLE = '1'.
        SCREEN-ACTIVE = '0'.
    ENDIF.
      MODIFY SCREEN .
  ENDIF.
  IF SCREEN-GROUP1 = 'MI3'.
    IF P3 = 'X'.
      SCREEN-INVISIBLE = '0'.
      SCREEN-ACTIVE = '1'.
      ELSE.
        SCREEN-INVISIBLE = '1'.
        SCREEN-ACTIVE = '0'.
    ENDIF.
      MODIFY SCREEN.
  ENDIF.
ENDLOOP.

Regards.

Read only

Former Member
0 Likes
1,011

Hi,

Are u still watching this thread? If you have got your answer please mark this thread as 'Answered'.

Regards.

Read only

Former Member
0 Likes
1,011

-