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: 

regarding processing of radio Button

Former Member
0 Kudos

hi,

i have 2 radio buttons on top of selection-screen and i have 2 parameters on the selection-screen.

By selecting one radio button,one among 2 parameters is ready for input and that parameter i ahve to made as Mandatory field....

How can we do it....

Help me.....

Nice answers are rewarded with Maxi Points...

1 REPLY 1

Former Member
0 Kudos

Hi Subhas,

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

PARAMETER R1 RADIOBUTTON GROUP G1 USER-COMMAND UC.

PARAMETER p_EBELN TYPE EKKO-EBELN MODIF ID S1.

PARAMETER R2 RADIOBUTTON GROUP G1.

PARAMETER P_MATNR TYPE MARA-MATNR MODIF ID S2.

SELECTION-SCREEN END OF BLOCK B1.

        • AT SELECTION-SCREEN OUTPUT ****

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF R1 = 'X'.

IF SCREEN-GROUP1 = 'S1'

SCREEN-REQUIRED = 1.

MODIFY SCREEN.

CLEAR SCREEN.

ENDIF.

IF SCREEN-GROUP1 = 'S2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

CLEAR SCREEN.

ENDIF.

ENDIF.

IF R2 = 'X'.

IF SCREEN-GROUP1 = 'S2'

SCREEN-REQUIRED = 1.

MODIFY SCREEN.

CLEAR SCREEN.

ENDIF.

IF SCREEN-GROUP1 = 'S1'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

CLEAR SCREEN.

ENDIF.

ENDLOOP.

Try this code. it'll solve your requirement.

Reward if useful.

Regards

ANUPAM