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 Module-pool

Former Member
0 Likes
1,361

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.....?

Kindly help me out in this aspect.

Regards,

Rama Murthy.P

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,339

Hi Dear,

Q: 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.....?

Ans: 1) In the PBO of the screen you need to set R2 = 'X'.

OR

2) In the TOP include write:

DATA : r1 type c,

r2 type c DEFAULT 'X'.

With Regards,

Rupinder

14 REPLIES 14
Read only

Former Member
0 Likes
1,339

use DEFAULT 'X' for the R2

Read only

0 Likes
1,339

Sharayu,

Where must I write this default 'X', which you have specified.

Regards,

Ram.

Read only

Former Member
0 Likes
1,339

Hi

Please check the names you have given to the radio buttons, in the sense you would have named the second radio button R1 and vice versa.. check the one which is need to be checked and give 'x' for that in select statement.

Regards

Divya

Read only

Former Member
0 Likes
1,339

Hi,

u can define like this: R2 radiobutton group RAD default 'X'...

Chk the following link....

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba6de35c111d1829f0000e829fbfe/content.htm

Regards.

Read only

0 Likes
1,339

Hi,

All my requirement is in a Module-pool screen ( SE51 ) not a Report.

Regards,

Ram.

Read only

Sidh_M
Participant
0 Likes
1,339

Hi,

in PBO set value for that second radio button. and remember to keep both radio buttons under one group.

R2 = 'X'.

Modify Screen.

Regards,

SUDHIR MANJAREKAR

Read only

Former Member
0 Likes
1,339

in PBO ... make R2 as 'X'

at run timr...

dont consider earlier answer as it was w.r.t selstion screen radio buttons

Read only

Former Member
0 Likes
1,339

Sharayu,

CAn you please explain me in detail as how to do that at run time.

If you answer this I will give you 10 points.

Regards,

Ram

Read only

Former Member
0 Likes
1,339

use LOOP AT SCREEN

Read only

Former Member
0 Likes
1,339

Hi,

In PBO give

R2 = 'X'.

Award if useful.

Prabhu.

Read only

Former Member
0 Likes
1,339

try this code

PARAMETERS : r_open TYPE c RADIOBUTTON group r1.

PARAMETERS : r_all TYPE c RADIOBUTTON group r1 default 'X'.

Read only

Former Member
0 Likes
1,340

Hi Dear,

Q: 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.....?

Ans: 1) In the PBO of the screen you need to set R2 = 'X'.

OR

2) In the TOP include write:

DATA : r1 type c,

r2 type c DEFAULT 'X'.

With Regards,

Rupinder

Read only

0 Likes
1,339

At Screen Painter set two radio button (ZRADIOBUTTON1 and ZRADIOBUTTON2),select bothor and click Edit->Grouping->Radio Button Group->Define.

REPORT Z_TEST_YW.

DATA: OK_CODE TYPE SY-UCOMM,

ZRADIOBUTTON1(1),

ZRADIOBUTTON2(1).

START-OF-SELECTION.

CALL SCREEN '100'.

&----


*& Module STATUS_0100 OUTPUT

&----


  • text

----


MODULE STATUS_0100 OUTPUT.

SET PF-STATUS '100'.

  • SET TITLEBAR 'xxx'.

ZRADIOBUTTON2 = 'X'. "set the second radiobutton selected

ENDMODULE. " STATUS_0100 OUTPUT

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

CASE:OK_CODE.

WHEN:'BACK' OR 'EXIT' OR 'CANCEL'.

LEAVE TO SCREEN 0.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

Read only

Former Member
0 Likes
1,339

Thank you my problem is solved