05-05-2006 11:15 PM
Hi all,
I have the following paramters:
PARAMETERS:
P_LOCAL RADIOBUTTON GROUP RB1 DEFAULT 'X' USER-COMMAND FLAG,
P_UNIX RADIOBUTTON GROUP RB1,
P_INFILE(80) VISIBLE LENGTH 41 LOWER CASE.
How can I use: AT SELECTION-SCREEN ON RADIOBUTTON GROUP so that when switching the radiobuttons, the file-path clears.
Thanks in advance.
Regards,
Fred.
05-05-2006 11:23 PM
1.
PARAMETERS:
P_LOCAL RADIOBUTTON GROUP RB1 DEFAULT 'X' USER-COMMAND FLAG ,
P_UNIX RADIOBUTTON GROUP RB1,
P_INFILE(80) VISIBLE LENGTH 41 LOWER CASE modif id md.
2. AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'MD'.
IF P_LOCAL = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
05-05-2006 11:23 PM
1.
PARAMETERS:
P_LOCAL RADIOBUTTON GROUP RB1 DEFAULT 'X' USER-COMMAND FLAG ,
P_UNIX RADIOBUTTON GROUP RB1,
P_INFILE(80) VISIBLE LENGTH 41 LOWER CASE modif id md.
2. AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'MD'.
IF P_LOCAL = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
05-05-2006 11:26 PM
05-05-2006 11:29 PM
Nope
Try the code I gave you. Should work, if not, definitely let me know.
05-05-2006 11:34 PM
at selection-screen ON RADIOBUTTON GROUP rb1.
and based check which one = 'X' ,clear the path
FYI.. Sandeep is right . You can not do this ...
you have to use loop at screen and endloop.
Thanks
SK
Message was edited by: Saquib Khan
05-05-2006 11:26 PM
Fred,
You should be able to do something like this...
at selection-screen output.
if p_unix = 'X'.
p_infile = ''.
endif.
Regards,
Den
05-05-2006 11:35 PM
Fred,
You can also use something like the following to combine Sandips approach with your request to clear the value. This is a cut/paste from an existing program of mine -- apologies if I left something out, but you'll get the idea.
-d
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME.
parameter: rsearch radiobutton group A
user-command c_sel
default 'X'
modif id sel.
select-options: sebeln for ekko-ebeln modif id SHO,
slifnr for ekko-lifnr modif id SHO,
sbox for zpoarchive-box modif id SHO,
sqqyyyy for zpoarchive-qqyyyy modif id SHO.
selection-screen uline.
parameter: RUPLOAD RADIOBUTTON GROUP A modif id sel.
parameter: rchange radiobutton group A modif id sel.
parameter: pqqyyyy like zpoarchive-qqyyyy modif id CHG,
pbox like zpoarchive-box modif id CHG.
parameter: FILENAME(128) TYPE C
default 'c:\temp\ponums.xls'
modif id CHG.
selection-screen begin of line.
selection-screen comment 32(40) text-001.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK B.
----
at selection-screen output.
----
loop at screen.
if screen-group1 eq 'SHO'.
check screen-name ns '-opti_push'.
if rsearch = 'X'.
screen-input = 1.
else.
screen-input = 0.
endif.
modify screen.
elseif screen-group1 eq 'CHG'.
check screen-name ns '-opti_push'.
if rsearch <> 'X'.
screen-input = 1.
else.
screen-input = 0.
endif.
modify screen.
endif.
endloop.
if rupload = 'X'.
filename = 'upload'.
else.
filename = ''.
endif.
05-05-2006 11:50 PM