‎2007 Jun 26 12:45 PM
I have one check box on the selection screen and 5 parameters.
Header is checkbox.
File1 parameter
File2 parameter
File3 parameter
File4 parameter
File5 parameter
When I select the header check box all the above should disable and when im not selected that all the above should enable.
Kindly let me know the code.
Akshitha.
‎2007 Jun 26 12:49 PM
Hi,
Use At selection screen output. and use following
Loop at Screen.
IF Screen-name = p_chk.
if p_chk = 'X'..
( Write screen visible / disable commands)
ENDIF.
Endif.
Endloop.
Regards,
Nandha
Reward if it solved the query
‎2007 Jun 26 12:49 PM
Hi,
Use At selection screen output. and use following
Loop at Screen.
IF Screen-name = p_chk.
if p_chk = 'X'..
( Write screen visible / disable commands)
ENDIF.
Endif.
Endloop.
Regards,
Nandha
Reward if it solved the query
‎2007 Jun 26 12:58 PM
Hi,
Use like this
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 = 'XYZ'.
SCREEN-VISIBLE = '!'.
MODIFY SCREEN.
ENDLOOP.
Regards,
Nandha
‎2007 Jun 26 12:54 PM
Hi,
at Selection-Screen Output.
Loop At Screen.
If Screen-Name = 'check'.
Screen-Input = 0.
Modify Screen.
Endif.
Endloop.
Thanks,
Anitha
‎2007 Jun 26 12:55 PM
at selection-screen output.
LOOP AT SCREEN.
IF SCREEN-NAME = 'FILE1' OR SCREEN-NAME = 'FILE2' AND........='FILE5'.
IF HEADER EQ 'X'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF. "HEADER
ENDIF.
ENDLOOP.
‎2007 Jun 26 1:07 PM
HI.
at Selection-Screen Output.
Loop At Screen.
If Screen-Name = 'check'.
Screen-Input1 = 0.
Screen-Input2 = 0.
Screen-Input3 = 0.
Screen-Input4 = 0.
Screen-Input5 = 0.
Modify Screen.
else.
Screen-Input1 = 1.
Screen-Input2 = 1.
Screen-Input3 = 1.
Screen-Input4 = 1.
Screen-Input5 = 1.
Endif.
Endloop.
Rewards all helpfull answers.
Regards.
Jay
‎2007 Jun 26 1:08 PM
hi,
try like this
At selection screen output.
Loop at Screen.
IF Screen-name = p_header and p_header = 'X'.
screen-input = 0.
modify screen.
else.
Screen-input = 1.
ENDIF.
Endloop.
reward some points if useful.
Regards,
Suresh.A
‎2007 Jun 27 4:52 PM
its Not working, i tried all the ways......
let me explain u once again.
i have one check box and five parameters
header is check box.
file 1
file 2 .......so on to file 5
when i select the header check box all the above should disable, and when im not selected that all the above should enable...
Akshitha.
‎2007 Jun 28 8:18 AM
Try this code dear, i've checked it, it works. You need to press enter after u mark the checkbox to get desired result.
parameters:
header as checkbox,
FILE1 LIKE RLGRAP-FILENAME,
FILE2 LIKE RLGRAP-FILENAME,
FILE3 LIKE RLGRAP-FILENAME,
FILE4 LIKE RLGRAP-FILENAME,
FILE5 LIKE RLGRAP-FILENAME.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME EQ 'FILE1' OR
SCREEN-NAME EQ 'FILE2' OR
SCREEN-NAME EQ 'FILE3' OR
SCREEN-NAME EQ 'FILE4' OR
SCREEN-NAME EQ 'FILE5'.
IF HEADER EQ 'X'.
SCREEN-INPUT = '0'.
ELSE.
SCREEN-INPUT = '1'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.