Fetching Radio button value in Module Pool
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.
Ramchander Rao krishnamraju replied
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