05-10-2011 1:06 PM
Hi
I have created a module pool program with 4 radio buttons. I have created a group for these radio buttons "RADIO'.
Now i have to check which radio button is selected .
I tried using loop at screen in PBO to check the values of radio button. But the radio button name 'RAD1 , RAD2 etc is not identified.
Kindly help.
Regards
Subha
05-10-2011 1:32 PM
HI,
1) In Screen Painter select all the 4 Radio buttons and then group them
2) in Top include define 4 variable with the same names as provided in the screen painter
lets say on Screen you named them as RAD1, RAD2 etc then in TOP Include
optionally you can assign a Function Code to it
data : RAD1(1) TYPE C,
RAD2(1) TYPE C. etc
any where in the program you can check
if RAD1 = 'X'.
elseif RAD2 = 'X'.
etc
ENDIF
loop at screen.
if screen-name = 'RAD1' " This you need to check i.e., SCREEN-NAME = 'RAD1'
ENDIF.
endloop.
and make sure all the components of module pool program like screens top include flow logic and other includes and the mailn program are all activated
Cheerz
Ram
05-10-2011 1:32 PM
HI,
1) In Screen Painter select all the 4 Radio buttons and then group them
2) in Top include define 4 variable with the same names as provided in the screen painter
lets say on Screen you named them as RAD1, RAD2 etc then in TOP Include
optionally you can assign a Function Code to it
data : RAD1(1) TYPE C,
RAD2(1) TYPE C. etc
any where in the program you can check
if RAD1 = 'X'.
elseif RAD2 = 'X'.
etc
ENDIF
loop at screen.
if screen-name = 'RAD1' " This you need to check i.e., SCREEN-NAME = 'RAD1'
ENDIF.
endloop.
and make sure all the components of module pool program like screens top include flow logic and other includes and the mailn program are all activated
Cheerz
Ram