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

Radio Button in Module Pool

Former Member
0 Likes
901

Hii,

Can any one help me to handle radio button with tablecontrol in Module pool program. how to trigger the PAI part when radio button is clicked , what's the thing to do in order to meet the requirement.

Thanks & Regards,

A.Thuyavan

5 REPLIES 5
Read only

Former Member
0 Likes
651

Please go though this link for Module Pool Radio Button

[http://www.sapdev.co.uk/dialog/radiobuttons.htm]

Reward points if it is usefull,..

Girish

Read only

0 Likes
651

Hii,

Grouping radio button i have already done it, problem for me is once radio button is clicked its not going to PAI only if press ENTER or anything PAI is getting triggered. Help me out

Thanks in Advance.

A.Thuyavan

Read only

0 Likes
651

Hii,

Im facing this problem in table control . Please hel me out.

Read only

0 Likes
651

Hi,

I hope you are looking for triggering PAI when you select the radio button in the radiobutton group. Am i right, if so follow the below.

1) When you create radiobuttons, you need to group them first.

2) Give the attributes (Name, Text and Function Code) of the radiobutton.

3) in PAI - write the module

4) In PAI module you can write like this

If sy-ucomm = FunctionCode (use the same function code for all the radio buttons in that radio button group).

case 'X'.

when 'RB1' (Radiobutton 1 field name)

code here.

when 'RB2' (Radiobutton 2 Field name)

code here.

Endcase.

Try as above scenario, please let me know if you need more information.

Regards,

Satya

endif.

Read only

Former Member
0 Likes
651

Hi Thooyavan,

Assign a function code to the first radiobutton group parameter only. This can be 20 char string of your choice. Now when any radiobutton in the group is clicked, PAI will be triggrred.



... RADIOBUTTON GROUP group1 USER-COMMAND DOSOMETHING.

Hope this helps.

Thanks

Sanjeev