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

Doubt in Radiobutton handling in Module-pool program

Former Member
0 Likes
1,094

Hi Experts,

I have requirement in where in a module pool screen I am creating two Radio-buttons say R1 and R2 under one group.

When I do this the first radio button R1 is by default gettimg checked. What is that I need to do for making secand radiobutton R2 by default getting cheked.....?

Please note that it is in Module-pool not a Report.

Kindly help me out in this aspect.

Regards,

Rama Murthy.P

1 ACCEPTED SOLUTION
Read only

former_member265047
Active Participant
0 Likes
857

Hi Ramamurthy,

You can do it that one in PBO event in the flow logic. Declare 2 variables of length 1 in the module program with the same name of radio buttons say R1 and R2.

In PBO , clear R1 and R2 = 'X' . Then R2 will be checked by default. But make sure you put some flag conditions .

Regards,

Naveen Veshala

6 REPLIES 6
Read only

former_member265047
Active Participant
0 Likes
858

Hi Ramamurthy,

You can do it that one in PBO event in the flow logic. Declare 2 variables of length 1 in the module program with the same name of radio buttons say R1 and R2.

In PBO , clear R1 and R2 = 'X' . Then R2 will be checked by default. But make sure you put some flag conditions .

Regards,

Naveen Veshala

Read only

Former Member
0 Likes
857

Hi,

In the process before output of the initial screen give

R2 = 'X'

Regards,

Sai

Read only

Sidh_M
Participant
0 Likes
857

Hi,

You can set check/uncheck value of radio buttons in PBO.

But that check box button should be declared in main program(se38) also.

for e.g

data: R1 type c,

R2 type c.

declare above in your main program.

now go to se51. In layout go to Dictionary/Program fields or press F6.

Now click on Get from program button and drag R1,R2 to your layout.

Now right click on it and under convert option you will get radio button.

In main program under PBO make that radio button check.

Loop at screen.

if screen-name = 'R2'.

R2 = 'X'.

endloop.

Modify Screen.

Regards,

SUDHIR MANJAREKAR

Read only

Former Member
0 Likes
857

Hi,

You can change the defalut value by assigning the value to 2nd Radiobutton in the PBO of screen.

Declare two variables of same name (As the name given for Radiobutton in Layout) having length 1 of type c.

And in the PBO of screen assign value 'X' to 2nd radiobutton.

E.g.:

DATA: r1 TYPe c,
      r2 TYPe c.

module STATUS_1000 output.

r2  = 'X'.

endmodule.

Ashven

Read only

Former Member
0 Likes
857

Hi,

Within the PBO event of that screen put

R2 = 'X'.

Regards,

Rajitha.

Read only

Former Member
0 Likes
857

Thank you my problem is solved