I want to control my udf in the title area based on the changing of the form mode. If the user click on the find/update mode I want my udf to disabled but if the user click the add mode I want my udf to enable.
Currently I am working in the below script. But nothing happened
If pVal.MenuID = "1282" And pVal.BeforeAction = True Then Dim ActiveForm As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm ActiveForm.Items.Item("U_Test").Enabled = True Else ActiveForm.Items.Item("U_Test").Enabled = False End If