Application Development and Automation 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: 
Read only

Hiding field on Module Pool screen

Former Member
0 Likes
1,203

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
Read only

Sm1tje
Active Contributor
0 Likes
1,006

screen-output = 0.

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.

7 REPLIES 7
Read only

Sm1tje
Active Contributor
0 Likes
1,007

screen-output = 0.

Read only

Former Member
0 Likes
1,006

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?

Read only

Former Member
0 Likes
1,006

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.

Read only

Former Member
0 Likes
1,006

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

Read only

Sm1tje
Active Contributor
0 Likes
1,006

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

Read only

Former Member
0 Likes
1,006

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

Read only

Former Member
0 Likes
1,006

(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