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

Former Member
0 Likes
752

hi all,

Im creating a module pool prog in this im putting two radio buttons and a input/output field.

I want that at a time only one radio button should be active the other should be not. So in the screen painters attribute i have defined the two buttons in one group but yet when i execute it both the button are active.

kindly help me out. I even tried to enter the fctcode field attribute of the radio button but its a gray field.

Please help me out. reward points for all useful ans.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
730

Hi,

U may giving the same name in GROUPS for both the radio buttons....

This is not the way to define the radio group...

select both the radio buttons at a time ,

then at the cursor, u will get options to define the radio group for the buttons...

Then bothe the radio buttons will come under single group...

Regards,

lavanya

6 REPLIES 6
Read only

Former Member
0 Likes
731

Hi,

U may giving the same name in GROUPS for both the radio buttons....

This is not the way to define the radio group...

select both the radio buttons at a time ,

then at the cursor, u will get options to define the radio group for the buttons...

Then bothe the radio buttons will come under single group...

Regards,

lavanya

Read only

Former Member
0 Likes
730

Hi Madhvi

How did you group the radio buttons?

You have to select the radiobuttons and group them using the menu path(in layout of screen painter)

edit->grouping->radiobuttongroup->define

Read only

Former Member
0 Likes
730

Hi Madhvi,

Refer the Below Procedure of creating a Radio Button:

- There are two steps involved:

1. Create the radio buttons as individual elements. Choose radio button from the object list and place it on the screen. You must assign a name to each radio button. In the ABAP program, create a field with the same name, type C, and length one. To make your programs easier to read and maintain, create a structure associated with each radio button group.

2.� You can also combine a collection of radio buttons into a radio button group. To do this, select the radio buttons in the layout editor and then choose Edit 􀃆 Group 􀃆 Radio button group 􀃆 Define.

- You can find out which radio button a user has chosen by querying the field contents in the ABAP program. If a radio button is not selected, the field value is initial.

- You can assign a function code and function type to a radio button group. When the user selects one of the radio buttons, the PAI event is triggered and the function code is placed in the command field (that is, the OK_CODE field).

Structure of the Radio Button Group in Main Program:

********************************* 
*INCLUDE xxxTOP 
*********************************
DATA: 
BEGIN OF mode,
  display VALUE `X´,
  change,
  create,
END OF mode.

Regards,

Sunil

Read only

0 Likes
730

hi sunil how can i add the function code to the radio button?

In the field attribute i have an attribute as fctcode but its a gray field. how should i add the function code.

Read only

0 Likes
730

Hi Madhvi,

Once you have Created a Group for the Radio Buttons you can DOUBLE-CLICK on any of the Radio Buttons and then the FctCode will appear, and when you give a FctCode to any of the Radio Button, the same FctCode is assigned to all the Radio Buttons of that Group Automatically.

Regards,

Sunil

Read only

Former Member
0 Likes
730

Hi Madhavi,

Its a very strange to hear this, what you can do is, simple delete the radio buttons and create it again and dont forget to group it.

if not please revert.

thats it

simple isn't it.

reward if helpful

thanks

abdul