‎2008 Aug 03 2:56 AM
‎2008 Aug 04 3:59 AM
Hi Jallapuram,
Go to tcode ABAPDOCU, there you will see lot of sample programs on almost every topic.
Also the first reply will also guide you for the module pool program.
transaction code ABAPDOCU->abap user dialogs>screens>processing Screen--checkboxes and radiobutton
Mohinder
‎2008 Aug 03 7:23 AM
Hi,
I hope the following link will help you,
http://www.saptechnical.com/Tutorials/ABAP/DynamicSScreen/demo.htm
Screen Painter (SE51)
Drag and drop the radio button in screen painter and group those buttons using right click option (select group option) of the mouse. Give function code for that group and in report use that function code to operate the radio button.
MODULE USER_COMMAND_0130 INPUT.
case ok_code.
when 'RDB'.
if RDB1 EQ 'X'.
MESSAGE s888(sabapdocu) WITH 'Radio button 1'.
ELSEIF RDB2 EQ 'X'.
MESSAGE s888(sabapdocu) WITH 'Radio button 2'.
ENDIF.
ENDCASE.
ENDMODULE.
RDB is the function code
RDB1 is the first radio button
RDB2 is the second radio button
Regards,
Harish
‎2008 Aug 04 3:59 AM
Hi Jallapuram,
Go to tcode ABAPDOCU, there you will see lot of sample programs on almost every topic.
Also the first reply will also guide you for the module pool program.
transaction code ABAPDOCU->abap user dialogs>screens>processing Screen--checkboxes and radiobutton
Mohinder
‎2008 Aug 04 5:30 AM
‎2008 Aug 05 1:07 PM
Hi,
To define radio button in module pool program go to se51 screen painter. select radio button icon which will be there on left side icons select that and place on screen where you want. give the name and text. now double click on that button now other window will appear in that group row with four fields will be there give name to any one of them. Similar to above process create another button on screen. now we should group those two. Select reset button on left side icons and then select both fields right click go to radio button and then select define. Now radio button group has been created we can use those in module and endmodule ie., in program using their field names like if <name1> eq 'x' or if <name2> eq 'x'. where name1 and name2 are names given in screen painter.
Regards,
Aswini.
‎2008 Aug 05 2:06 PM
HI.
There is simple way.
First put number of radio button on ur screen.
give it individual name to those radio button.
than after you have to do a Grouping of Radio button. select those radio button which you want to make group...
and Group it with help which available in menu bar.
now you have to declare those radio button in top include of that program....
like
data : radio1 type c value 'X',
radio2 type c,
radio3 type c .
here i was taken three radio button. and default set on radio1.
hope so it is help full to you.
Regards,
Vipul Darji
‎2008 Aug 05 6:16 PM