Hide an Item
The code below has been adapted from SAP examples, but it refuses to hide the Item 34 (Unit Price -which exists in Pane 0) on the form 150 (Item Master Data)
I am a novice at this, so I hope many of you will know the solution instantly
Once this issue is resolved, I hope to hide an item at Pane level.
I am using VB Express 2008 and running in SB1 2007A PL47.
Private Sub Hide_Item_ItemEvent(ByVal FormUID As String, ByVal pVal As SAPbouiCOM.ItemEvent, ByVal BubbleEvent As Boolean)
If pVal.FormType = 150 And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = True Then
Dim oForm As SAPbouiCOM.Form
Dim oItem As SAPbouiCOM.Item
oForm = SBO_Application.Forms.Item(FormUID)
oItem = oForm.Items.Item("34")
oItem.Visible = False
Catch ex As Exception