04-23-2008 11:34 AM
Hi,
I have following code to hide screen field.
I have inactivated the screen field and disabled the input.
Still fields are visible.
Please let me know what is the solution to hide this field on module Pool screen.
LOOP AT SCREEN.
IF screen-name EQ c_lastchangedby.
MOVE c_zero TO screen-input.
MOVE c_zero TO screen-active.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
04-23-2008 11:38 AM
04-23-2008 11:38 AM
04-23-2008 11:49 AM
screen-output = 0.
this code is also not working!!!
my earlier code was workin fine a few days ago...
from yesterday it is not hiding the fields...
is there any setting for it?
04-23-2008 11:55 AM
Code looks ok. It may be worth break-pointing and making sure the screen table values are being changed and making sure that they are not subsequently changed back.
04-23-2008 11:58 AM
the code is disabliang the filds.. i.e. proper values are put in the SCREEN parameters..
still the fields are not getting disabled .. or they are not invisible!!!
04-23-2008 12:01 PM
Are you also setting this fields in the layout editor of the screen and do they override your settings in the coding?
04-23-2008 12:04 PM
Hi,
Pls check the following
(1) does c_lastchangedby contain the name of a screen field you want to disable
(2) is c_lastchangedby value in full CAPS
eg : constants : c_lastchangedby type string value 'ZABCDEF'.
if it is small letters zabcde ....it wont work
(3) are you changing the scrren properties from 0 to 1 after this code anywhere before the PBO is reached , then it is a clear case of overwrite
Pls check and revert
Regards
Byju
04-23-2008 12:41 PM
(1) does c_lastchangedby contain the name of a screen field that i want to disable
(2) is c_lastchangedby contains field name in capital
(3) the screen field parameters are changed in PBO