2007 Apr 16 11:47 AM
Hi gurus,
Plz explain how to use Radio buttons in Module pool programming.
I grouped the Radion buttons but the function code was becoming same for all radio buttons. Based on the selected radio button i want to go further. give some suggestions to do it..
Thanks ,
Amal.
2007 Apr 16 11:52 AM
Hi,
The function code shoub be same for all the Radio buttons, you need to write the code like this
CASE SY-UCOMM.
WHEN 'RAD' " Radio button Function code
IF RAD1 = 'X'. " First Radio button group selected
Write the code Here
ELSEIF RAD2 = 'X'. " " Second Radio button group selected
Write the code Here
ELSEIF RAD3 = 'X' . " " Thisr Radio button group selected
Write the code Here
ENDIF.
OTHERS
ENDCASE.Regards
Sudheer
Hi,
The function code shoub be same for all the Radio buttons, you need to write the code like this
CASE SY-UCOMM.
WHEN 'RAD' " Radio button Function code
IF RAD1 = 'X'. " First Radio button group selected
Write the code Here
ELSEIF RAD2 = 'X'. " " Second Radio button group selected
Write the code Here
ELSEIF RAD3 = 'X' . " " Thisr Radio button group selected
Write the code Here
ENDIF.
OTHERS
ENDCASE.Regards
Sudheer
2007 Apr 16 11:51 AM
You have to distinguish the radiobuttons based on the ir names
Say the names of them are RADIO1 , RADIO2 and RADIO3,
you have to use
if RADIO1 eq 'X'.
2007 Apr 16 11:52 AM
Hi,
The function code shoub be same for all the Radio buttons, you need to write the code like this
CASE SY-UCOMM.
WHEN 'RAD' " Radio button Function code
IF RAD1 = 'X'. " First Radio button group selected
Write the code Here
ELSEIF RAD2 = 'X'. " " Second Radio button group selected
Write the code Here
ELSEIF RAD3 = 'X' . " " Thisr Radio button group selected
Write the code Here
ENDIF.
OTHERS
ENDCASE.Regards
Sudheer
2007 Apr 16 12:20 PM
Hi sudheer,
Do i want to declare the name of the radio button seperately in the program?
B'cuz , If i check the Radio button its showing that RAD2 is not define in DATA Statement. but i have given the radio button name in screen.
2007 Apr 16 12:22 PM
Hi amal,
Yes you have to declare them in ur program
parameters : rad1 radiobutton group rad...
2007 Apr 16 12:47 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |