10-13-2006 1:05 PM
Hi Frineds,
I have three paramenter (A,B,C) options in selection screens and two radio buttons, when i click r1 radio button parameter C will be disabled and when i click r1 button c parameter only will be displayed.
its urgent pls give me the some idea
Regs
rams
10-13-2006 1:10 PM
Please check if below code can give you some lead.
parameters: p_rad1 radiobutton group rad1 default 'X'
user-command abc,
p_rad2 radiobutton group rad1.
parameters: a, b, c.
at selection-screen output.
loop at screen.
if screen-name cs 'C'.
if not p_rad1 is initial.
screen-active = '0'.
else.
screen-active = '1'.
endif.
modify screen.
endif.
endloop.
Kind Regards
Eswar
10-13-2006 1:10 PM
Please check if below code can give you some lead.
parameters: p_rad1 radiobutton group rad1 default 'X'
user-command abc,
p_rad2 radiobutton group rad1.
parameters: a, b, c.
at selection-screen output.
loop at screen.
if screen-name cs 'C'.
if not p_rad1 is initial.
screen-active = '0'.
else.
screen-active = '1'.
endif.
modify screen.
endif.
endloop.
Kind Regards
Eswar
10-13-2006 1:10 PM
10-13-2006 1:11 PM
hi,
use parameters...radiobutton group R USER-COMMAND ucom.
Message was edited by: Andreas Mann
10-13-2006 1:12 PM
Hi
PARAMETERS: A MODIF ID AAA,
B MODIF ID AAA,
C MODIF ID CCC.
PARAMETERS: R1 RADIOBUTTON GROUP R1 USER-COMMAND AAA DEFAULT 'X',
R2 RADIOBUTTON GROUP R1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R1 = 'X'.
IF SCREEN-GROUP1 = 'CCC'.
If you want only to disable the field
SCREEN-INPUT = 0.
If you want to hide the field:
SCREEN-ACTIVE = 0.
ENDIF.
ELSE.
IF SCREEN-GROUP1 = 'AAA'.
If you want only to disable the field
SCREEN-INPUT = 0.
If you want to hide the field:
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Max
10-13-2006 1:14 PM
hi,
You can use this code.
p_matnr will be enabled/disabled based on the radiobuttons clicked.
parameters : p_rad1 radiobutton group g1 user-command ABCD,
p_rad2 radiobutton group g1 default 'X',
p_matnr like mara-matnr.
data: v_chk.
at selection-screen output.
if v_chk = 'X'.
loop at screen.
if screen-name = 'P_MATNR'.
IF P_RAD1 = 'X'.
SCREEN-INPUT = 0.
ELSE.
SCREEN-INPUT = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
endloop.
endif.
at selection-screen.
if sy-ucomm = 'ABCD'.
v_chk = 'X'.
endif.
Regards,
Sailaja.
10-13-2006 1:17 PM
Hi ,
check this out.
TABLES : SSCRFIELDS.
PARAMETERS : R1 RADIOBUTTON GROUP RA1 USER-COMMAND C1,
R2 RADIOBUTTON GROUP RA1.
AT SELECTION-SCREEN.
CASE SSCRFIELDS.
WHEN 'C1'.
if r1 = 'X'
SCREEN-INPUT = '1'.
*SCREEN-OUTPUT = ' '.
MODIFY SCREEN.
else.
SCREEN-INPUT = ''.
*SCREEN-OUTPUT = ' '.
MODIFY SCREEN.
endif.
ENDCASE.
please reward helpful answers.
Regards,
Shrita.