Application Development 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: 

Selection screen

Former Member
0 Kudos

Hi,

I have a problem with the selection screen.

If I check the first radio button then one block becomes active and other inactive which is good.

If I check the second radio button then I can see no difference, no change.

Does anyone know where i am doing wrong? COde is:

REPORT selscreen .

DATA: GROUP_ID(3) TYPE C.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

PARAMETERS: P1 RADIOBUTTON GROUP ONE DEFAULT 'X',

P2 RADIOBUTTON GROUP ONE.

SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.

PARAMETERS: F1 LIKE SY-DATUM MODIF ID DRU,

F2 LIKE RLGRAP-FILENAME MODIF ID DRU,

F3 LIKE RLGRAP-FILENAME MODIF ID DRU.

SELECTION-SCREEN END OF BLOCK B2.

SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-003.

SELECT-OPTIONS: D1 FOR SY-DATUM MODIF ID SRU,

T1 FOR SY-UZEIT MODIF ID SRU.

SELECTION-SCREEN END OF BLOCK B3.

AT SELECTION-SCREEN OUTPUT.

CASE 'X'.

WHEN P1.

GROUP_ID = 'SRU'.

WHEN P2.

GROUP_ID = 'DRU'.

ENDCASE.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = GROUP_ID.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi DN,

You have to use USER-COMMAND option on parameters then it will work like below.

PARAMETERS: P1 RADIOBUTTON GROUP ONE DEFAULT 'X'

USER-COMMAND ucom.,

P2 RADIOBUTTON GROUP ONE.

Cheers,

Satya

2 REPLIES 2

Former Member
0 Kudos

Hi DN,

You have to use USER-COMMAND option on parameters then it will work like below.

PARAMETERS: P1 RADIOBUTTON GROUP ONE DEFAULT 'X'

USER-COMMAND ucom.,

P2 RADIOBUTTON GROUP ONE.

Cheers,

Satya

0 Kudos

Hi Satya,

Thanks. The problem is solved as you said. I did award you the points.