Online Tutorials & Training Materials | STechies.com
Register Login

Screen filed enabled and disable at the time of screen loading.

|| || 0

Screen filed enabled and disable at the time of screen loading.
Stechies

Hello Experts,

I have question about module pool programming. Screen filed enabeld and disable at the time of screen loading i would like to disabel the filed. field type is list like combo box. i was used at

LOOP AT SCREEN.
IF SCREEN-NAME = 'ZMOTWD-REMARKS'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

At PBO

I had writeen the code everything is fine.
Beside to this filed there is one more field this is also list like combo box. 
Once i select the value from the list if i press the enter key that field should be appear(first filed what i was hide it)
I had writeen the code.. like.

ELSEIF ZMOTWD-MMODE = 'NON-RETUN'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'ZMOTWD-REMARKS'.
SCREEN-INVISIBLE = 0.
MODIFY SCREEN.
ENDIF.

The above i had written at pbo
but first hide field is i am not able to make it appear may i know what is the wrong i had done
I put the break point at above code ,
screen-invisible =0 

The above line is also executeing but no result any idea?

Thanks in advance