Hi All
Please help. I am trying to automatically load the user defined fields form withing code, on the form load event. For some reason it gives me the following errors:
"Cannot enable a disbaled menu option". It is an intermitent problem. The following code gets triggered during the load of a transaction form eg. Sales Quotation.
Dim oMenus As SAPbouiCOM.Menu
Dim oMenu As SAPbouiCOM.MenuItem
oMenus = SBO_Application.Menus
Try
oMenu = oMenus.Item("6913")
If oMenu.Enabled = False Then
If oMenu.Checked = False Then
oMenu.Checked = True
oMenu.Enabled = True
oMenu.Activate()
End If
End If
Catch
SBO_Application.MessageBox("Error in Function " & "'" & ErrorToString() & "'")
End Try
Regards John