Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding field on Module Pool screen

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Sm1tje
Active Contributor
0 Kudos

screen-output = 0.

7 REPLIES 7

Sm1tje
Active Contributor
0 Kudos

screen-output = 0.

Former Member
0 Kudos

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?

Former Member
0 Kudos

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.

Former Member
0 Kudos

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!!!

Sm1tje
Active Contributor
0 Kudos

Are you also setting this fields in the layout editor of the screen and do they override your settings in the coding?

Former Member
0 Kudos

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

Former Member
0 Kudos

(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