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

Hi guy.. i have to face an interview in a couple of day.. so can you please give me some good and tough question on abap.

1601


What are the function of the transport system and workbench organiser? : abap data dictionary

568


How will you insert record in a sorted table

874


What are the different types of parameters? How can you distinguish between different kinds of parameters?

554


What is a data element?

542






What are the update types possible?

616


What is the function of a domain? : abap data dictionary

598


Why cant we use Normal function module for data transfer?

1717


Explain read dataset in sap abap?

732


Can a transparent table exist in data dictionary but not in the data base physically? : sap abap data dictionary

622


How will you link form with the event driven in sap scripts?

543


What are the differences between structure and table in data dictionary in abap? : sap abap data dictionary

593


What is meant by stacked list?

607


How to Solve a Particular Ticket in Realtime ?

1761


What is a batch input session? : abap hr

673