cancel
Showing results for 
Search instead for 
Did you mean: 

Binding a new combo box to a System Form

Former Member
0 Kudos

Hello,

I am quite new to SAP. I am trying to put a new combo box on the Item Master data (system form).

I am wondering how to go about it coewie

can any one please help.

thank you

josh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi joseph,

here is the following code sample

dim gformuid as string

'declare formuid variable

Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent

gformuid = FormUID

end sub

Private Sub B1_Application_menuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent

If pVal.BeforeAction = False And pVal.MenuUID = "3073" Then

Dim f As SAPbouiCOM.Form

Dim oItem As SAPbouiCOM.Item

f= SBO_Application.Forms.Item(gformuid)

Dim oCombo As SAPbouiCOM.ComboBox

oItem = f.Items.Add("btn100", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)

oItem.Left = 148

oItem.Width = 65

end sub

hope this will work.

If not tell me.

Vaithi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Joshua,

Basically, System form can be captured in 'form_load' event.

Then you can add certain items to the form. Even you can remove (or hide) system form items. Adding items to the system form have to be done within source code level.

If you have any sample code of SAP Business One, you can see 'manipulating system form'.

Hope this useful for you

Regards,

Hyunil.