Hi Kabil,
Please refer the following link
http://www.****************/Tutorials/ABAP/Hide/Index.htm
this example is for hiding and showing certain fields. Instead of Invisible property, use 'active' for enabling or disabling certain fields.
Regards,
Peri