Skip to Content
Aug 26, 2019 at 05:08 AM

Enable / Disable UDF in the Title Area

91 Views Last edit Aug 26, 2019 at 09:36 AM 3 rev


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
ActiveForm.Items.Item("U_Test").Enabled = False
End If