Hi,
Based on Field1 value you can enable disable field2 using below code.
At Process before output event,
IF field1 is not initial.
LOOP AT screen.
if screen-name = 'FIELD2'.
screen-input = 0.
modify screen.
endif.
endloop.
endif.
Hopes it helps you.
Thanks,
Ashok.