Application Development and Automation 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: 
Read only

module pool program

Former Member
0 Likes
752

How to define radio buttons in the module pool program ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
718

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

6 REPLIES 6
Read only

Former Member
0 Likes
718

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

Read only

Former Member
0 Likes
719

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

Read only

narin_nandivada3
Active Contributor
0 Likes
718

Hi,

Please check this solved thread of same kind of question...

More information on your topic....

Hope this would help you.

Good luck

Narin

Read only

Former Member
0 Likes
718

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.

Read only

Former Member
0 Likes
718

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

Read only

Former Member
0 Likes
718

Hi all

Thank u so much ...

it was really helpful answers.