Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Kindly help.



Former Member
Former Member 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'.



loop at screen.
if screen-name = 'RAD1' " This you need to check i.e., SCREEN-NAME = 'RAD1'

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



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question