In a screen i have 2 radio buttons and 2 text fields,if i
select the one radio button one text field has to be enable
and when i select another one,other text field has to be
enable,in the at selection screen output event how it was
happen?this event has to effect once i press enter
naa.......... how the screen knowing that?

Answer Posted / ananda babu uppara

Check this code and try this.
DATA: d_ucomm LIKE sy-ucomm.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: india RADIOBUTTON GROUP rad1 USER-COMMAND act
DEFAULT 'X',
Field1(10) MODIF ID a,
austria RADIOBUTTON GROUP rad1,
Field2(10) MODIF ID b.

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN.
d_ucomm = sy-ucomm.

AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF india = 'X'.
IF screen-group1 = 'B'.
screen-active = 0.
ENDIF.
ELSEIF austria = 'X'.

IF screen-group1 = 'A'.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

where are the passwords for ITS stores?

1807


What is the use of the statement leave to list-processing?

766


What is the meaning of client independent?

752


What is the full form of spro? : sap abap hr

913


If yes then why do we require logical database

2877






Can you show multiple alvs on a single screen?

787


What is get cursor field?

1092


What are different abap/4 editors?

811


What is design pattern? Provide example .Why are we using it?

1198


What is the meaning of sap r/3?

823


What is meant by authorization? Did you ever work on it? : sap abap hr

685


What is the difference between a structure and an append structure?

746


How to set an Enhancement point for a custom report?

1337


What are the types of windows in sap script?

787


How do you retrieve the data for repetitive structures ? : abap hr

832