Application Development 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: 

Fetching Radio button value in Module Pool

former_member184703
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

former_member1245113
Active Contributor
0 Kudos

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

1 REPLY 1

former_member1245113
Active Contributor
0 Kudos

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