Hi Kavitha,
It is possible. By using UI attributes inside the DO-OPERATIONS method we can achieve that. Based on user action Do operations method will trigger.. there we can hide fields mentioned in the configuration.
Check sample code.
Based on your conditions you can hide required fields.
WHEN 'USER_EVENT'.
LOOP AT ui_attributes ASSIGNING <ui_attributes_wa>.
CASE <ui_attributes_wa>-fieldname.
WHEN 'PERNR'.
<ui_attributes_wa>-ui_attribute = 'H'.
WHEN 'NAME'.
<ui_attributes_wa>-ui_attribute = 'H'.
ENDCASE.
ENDLOOP.
Hope this will help you..
Regards,
Arun