‎2007 May 23 4:47 AM
Hi All,
There are 2 radio buttons in selection screen.when second radio button option is selected all x y z inputs should be in enabled mode.when first radio button option is selected only x y should be in enabled mode and " z " should be in disable mode.How can I do this.
Regards
SaiSri
I
‎2007 May 23 5:05 AM
hi sai,
assign function codes for two radio buttons.
at selection screen event.
case sy-ucomm.
when 'RB1'.
loop at screen.
if screen-name = 'x'.
screen-input = 1.
modify screen.
endif.
if screen-name = 'y'.
screen-input = 1.
modify screen.
endif.
if screen-name = 'z'.
screen-input = 0.
modify screen.
endif.
endloop.
when 'RB2'.
loop at screen.
if screen-name = 'x'.
screen-input = 1.
modify screen.
endif.
if screen-name = 'y'.
screen-input = 1.
modify screen.
endif.
if screen-name = 'z'.
screen-input = 1.
modify screen.
endif.
endloop.
endcase.
if helpful reward some points.
with regards,
suresh babu aluri.
‎2007 May 23 4:54 AM
Assign F -cdes to the Radio button select using the MODIF-ID addition.
In the PBO or At- selection screen output of the screen/selection screen , loop at screen and disable the fields by making it enable = 0 or enable = 1.
‎2007 May 23 4:54 AM
Hi
See The Sample Codes Below..Change it According To Ur Specific Requirment,,,..
LOOP AT SCREEN.
IF screen-group1 = 'ID1'.
screen-active = 1.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
OR
LOOP AT SCREEN.
IF screen-group1 = 'G1'.
screen-active = 1.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Reward Alll Helpfull Answers.......
‎2007 May 23 4:55 AM
Hi,
You need to put your code under AT SELECTION SCREEN OUTPUT.
There you can use LOOP AT SCREEN and do the necessary modification according to your need.
There are already lots of threads on this on SDN, just search by AT SELECTION SCREEN OUTPUT.
Reward points if useful.
Regards,
Atish
‎2007 May 23 5:02 AM
Hi Sai,
Code:
REPORT ZSAMPLE.
PARAMETERS:
P_FIRST RADIOBUTTON GROUP G1 USER-COMMAND A,
P_SEC RADIOBUTTON GROUP G1,
P_X TYPE CHAR10 MODIF ID P,
P_Y TYPE CHAR10 MODIF ID P,
P_Z TYPE CHAR10 MODIF ID Q.
AT SELECTION-SCREEN OUTPUT.
IF P_SEC <> 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'Q'.
SCREEN-INPUT = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
Thanks
Eswar
‎2007 May 23 5:04 AM
Hi ,
check this code
selection-screen : begin of block blk with frame title text-001.
parameters:
p_down radiobutton group gp1,
p_up radiobutton group gp1,
p_x like mara-matnr,
p_y like mseg-werks,
p_z like marc-lgort.
selection-screen : end of block blk.
at selection-screen output.
if p_up = 'X'.
loop at screen.
if screen-name = 'P_Z'.
screen-input = '0'.
modify screen.
endif.
endloop.
endif.
Reward points if helpful
Thansk
venki
‎2007 May 23 5:05 AM
hi sai,
assign function codes for two radio buttons.
at selection screen event.
case sy-ucomm.
when 'RB1'.
loop at screen.
if screen-name = 'x'.
screen-input = 1.
modify screen.
endif.
if screen-name = 'y'.
screen-input = 1.
modify screen.
endif.
if screen-name = 'z'.
screen-input = 0.
modify screen.
endif.
endloop.
when 'RB2'.
loop at screen.
if screen-name = 'x'.
screen-input = 1.
modify screen.
endif.
if screen-name = 'y'.
screen-input = 1.
modify screen.
endif.
if screen-name = 'z'.
screen-input = 1.
modify screen.
endif.
endloop.
endcase.
if helpful reward some points.
with regards,
suresh babu aluri.
‎2007 May 23 5:06 AM
Assume radio button parameters are rad1 and rad2, and other parameters are:
Parameters : x type x modif id 'X',
y type y modif id 'Y',
z type z modif id 'Z'
AT SELECTION-SCREEN OUTPUT.
IF rad1 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'Z'.
screen-active = 1.
screen-input = 1.
screen-output = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
elseif rad2 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'Z'.
screen-active = 0.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
‎2007 May 23 5:07 AM
Hi,
Use below code:
PARAMETERS p_r1 RADIOBUTTON GROUP pir USER-COMMAND flag
DEFAULT 'X' MODIF ID fil.
PARAMETERS p_r2 RADIOBUTTON GROUP pir MODIF ID fil.
At selection-screen output.
Loop at screen.
if p_r1 eq 'X' and screen-name eq <input z name>.
screen-input = 0.
endif.
modify screen.
Endloop.
Thanks
Sandeep
Reward if helpful
‎2007 May 23 5:58 AM
Hi,
assign modif id to the radio buttons.
At selection-screen output,
loop at screen.
if rb1 = 'X'.
if screen-name = 'X' or screen-name = 'Y'.
screen-active = 1.
screen-input = 1.
elseif screen-name = 'Z'.
screen-active = 0.
screen-input = 0.
endif.
elseif rb2 = 'X'.
if screen-name = 'X' or screen-name = 'Y' or screen-name = 'Z'.
screen-active = 1.
screen-input = 1.
endif..
endif.
Reward points if it is helpful.
regards,
sangeetha.a