Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Selection Screen Problem(Urgent)

I have a problem with the selection screen.

I have to define a selection screen.The selection screen details are as under :

parameter1

radiobutton1

radiobutton2

parameter2(a)

when radiobutton 1 is selected the screen should look as above and when radiobutton 2 is selected the screen should look as under ;

parameter1

radiobutton1

radiobutton2

parameter2(b)

Tags:
Former Member
Former Member replied

PARAMETERS:

P_VAR1 TYPE C,

R1 RADIOBUTTON GROUP G1 USER_COMMAND U1,

R2 RADIOBUTTON GROUP G1 DEFAULT 'X',

P_VAR2 TYPE I MODIFID SC1,

P_VAR3 TYPE I MODIFID SC2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF R1 ='X'.

IF SCREEN-GROUP = 'SC1'.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ELSEIF SCREEN-GROUP = 'SC2'.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ENDIF.

ELSEIF R2 ='X'.

IF SCREEN-GROUP = 'SC1'.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ELSEIF SCREEN-GROUP = 'SC2'.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

Rewards if useful.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question