Showing results for 
Search instead for 
Did you mean: 

Pane level is not working for created button in Employee Master Data

Former Member
0 Kudos


I have created a button in Administration tab of Employee Master Data. I set the Pane level 3 for that button. Even though, when the Employee Master Data is opened, that button appears. ie., When Employee Master Data menu is clicked, Employee master data is opened in find mode and by default Address tab is active.But my button is visible here itself. I want that button visible only in Administration tab.

How to resolve this.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to set the FromPane and ToPane properties:

oItem.FromPane = 3
oItem.ToPane = 3

Former Member
0 Kudos


Thanks for answering.

Actually coding is as follows:

oNewItem = oForm.Items.Add("XXX", SAPbouiCOM.BoFormItemTypes.it_BUTTON)

oItem = oForm.Items.Item("61")

oNewItem.Top = oItem.Top

oNewItem.Height = oItem.Height

oNewItem.Width = oItem.Width

oNewItem.Left = oItem.Left

oNewItem.FromPane = 3

oNewItem.ToPane = 3

oNewItem.Visible = True

Butt1 = oForm.Items.Item("XXX").Specific

Butt1.Caption = "Click"

I got solution by commenting the line "oNewItem.Visible = True"

Thanks once again. But I don't know how it works.

Edited by: ParvathaSolai on Jun 7, 2011 2:11 PM

Active Contributor
0 Kudos

I only thought it affected if you added the data viia XML but perhaps this is the issue:

Note 1587498 - UI_Button added via XML appears on the incorrect tab when first loaded (

Answers (1)

Answers (1)

Former Member
0 Kudos


Another test that you can make is equating the property "FromPane-ToPane" with a system item that is only found in the same tab. So, you ensure that properties have the correct value.