Based on some conditions we want to open the fields for user input or greyed out on the grid of FORMULA ITEMS tab of RECIPE transaction, pl. let us know how we can achieve this editable/ReadOnly requiremenet programitically based on a constion
readOnly property of that corresponding UI element will help you.Create an attribute of type WDY_BOOLEAN and bind it to the readOnly property of that UI element.
Now based on condition just set the attribute value as abap_true / abap_false.
abap_true : For making that UI element readonly.
abap_false : For making that UI element input enable.
Hope this helps you to resolve your issue.Feel free to get back with your queries.