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

Bug on selection screen

Former Member
0 Likes
395

Hello ,

I have a selection screen on which there are two set of radio buttons.

In first set of radio button there are three radio buttons and in second set there are 9 radio buttons.

On selection of 3rd radio button from first set , some of the radio buttons from secons set are disabled.

This is working fine.

But when a radio button is selected from the second set (which would disabled when first set radio button is selected) , and the third radio button is selected from first set ,all the radio buttons from second set get disabled.Ideally only the ones which have modif id assigned should get disabled.

There is a bug on the selection screen.Please help me out to fix it.

Here is the code.

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-015.

PARAMETERS: p_range RADIOBUTTON GROUP rbg USER-COMMAND ucom DEFAULT 'X',

p_date RADIOBUTTON GROUP rbg,

p_comp RADIOBUTTON GROUP rbg.

SELECTION-SCREEN END OF BLOCK b3.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

PARAMETERS: p_prctr RADIOBUTTON GROUP rbg2 USER-COMMAND ucom DEFAULT 'X'.

PARAMETERS: p_prart RADIOBUTTON GROUP rbg2.

PARAMETERS: p_swenr RADIOBUTTON GROUP rbg2 MODIF ID com.

PARAMETERS: p_psphi RADIOBUTTON GROUP rbg2 MODIF ID com.

PARAMETERS: p_pspnr RADIOBUTTON GROUP rbg2 MODIF ID com.

Here the radio buttons with modif id 'com' should get disable when p_comp is selected.This is happening.

But when p_psphi is selected and then p_comp is selected..all the radiobuttons is second group get disabled.

Please help with modification in code.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
348
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-015.
PARAMETERS: p_range RADIOBUTTON GROUP rbg USER-COMMAND ucom DEFAULT 'X',
p_date RADIOBUTTON GROUP rbg,
p_comp RADIOBUTTON GROUP rbg.
SELECTION-SCREEN END OF BLOCK b3.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: p_prctr RADIOBUTTON GROUP rbg2 USER-COMMAND ucom DEFAULT 'X'.
PARAMETERS: p_prart RADIOBUTTON GROUP rbg2.
PARAMETERS: p_swenr RADIOBUTTON GROUP rbg2 MODIF ID com.
PARAMETERS: p_psphi RADIOBUTTON GROUP rbg2 MODIF ID com.
PARAMETERS: p_pspnr RADIOBUTTON GROUP rbg2 MODIF ID com.

at selection-screen output.
if  p_range eq 'X' or
    p_date  eq 'X' or
   p_comp eq 'X'.
loop at screen.
 if screen-group1 = 'COM'.
   screen-input = 0.
  modify screen.
 endif.
endloop.
endif.

Check this..

Regards

Vijay Babu Dudla

2 REPLIES 2
Read only

Former Member
0 Likes
349
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-015.
PARAMETERS: p_range RADIOBUTTON GROUP rbg USER-COMMAND ucom DEFAULT 'X',
p_date RADIOBUTTON GROUP rbg,
p_comp RADIOBUTTON GROUP rbg.
SELECTION-SCREEN END OF BLOCK b3.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: p_prctr RADIOBUTTON GROUP rbg2 USER-COMMAND ucom DEFAULT 'X'.
PARAMETERS: p_prart RADIOBUTTON GROUP rbg2.
PARAMETERS: p_swenr RADIOBUTTON GROUP rbg2 MODIF ID com.
PARAMETERS: p_psphi RADIOBUTTON GROUP rbg2 MODIF ID com.
PARAMETERS: p_pspnr RADIOBUTTON GROUP rbg2 MODIF ID com.

at selection-screen output.
if  p_range eq 'X' or
    p_date  eq 'X' or
   p_comp eq 'X'.
loop at screen.
 if screen-group1 = 'COM'.
   screen-input = 0.
  modify screen.
 endif.
endloop.
endif.

Check this..

Regards

Vijay Babu Dudla

Read only

former_member787646
Contributor
0 Likes
348

Hi

Try the following code and check.

AT Selection-Screen Output.

IF SY-UCOMM = 'XYZ' .

if p_comp = 'X' .

loop at screen.

if screen-group1 = 'COM'.

screen-input = 0.

modify screen.

endif.

endloop.

else.

loop at screen.

if screen-group1 = 'COM'.

screen-input = 1.

modify screen.

endif.

endloop.

endif.

ENDIF.

Hope it helps.

Murthy

Edited by: Kalyanam Seetha Rama Murthy on Jul 28, 2008 7:27 AM