Hi
I have created a Add-on that resides in one DLL Active X using VB6.
Using this system: With a Add-on Ordinary Exe I have added a ActiveX Item to the Form(Main Menu)
followed is an extract of the code (I have omitted themanagement of the errors):
Dim oItem As SAPbouiCOM.Item
Dim oActiveX As SAPbouiCOM.ActiveX
Dim oForm As SAPbouiCOM.Form
Set oForm = GetmainForm()
Set oItem = oForm.Items.Add(id1, it_ACTIVE_X)
oItem.Left = -1000
oItem.Top = -1000
Set oActiveX = oItem.Specific
Note: DLL myDllAdd-On is Loaded in SAP Exe
With oActiveX
.ClassID = "myDllAdd-On.Sales"
passing connection string , addonIdentifier
.Object.SetApplication connectString, addonIdentifier , extraparam1
End With
Set oItem = oForm.Items.Add(id2, it_ACTIVE_X)
oItem.Left = -1000
oItem.Top = -1000
Set oActiveX = oItem.Specific
Note: DLL is Loaded in SAP Exe
With oActiveX
.ClassID = "myDllAdd-On.Purchase"
passing connection string , addonIdentifier
.Object.SetApplication connectString, addonIdentifier , extraparam2
End With
Set oActiveX = Nothing
I find that this system has many advantages in terms of flexibility and maintenance, however the issues that are placed are:
A) the compatibility with Sap 2005.
B) the modalities of Licence.
C) others that you will want to suggest.
Thanks in advance for your suggestions and comments. Michele Fiorantino.
PS: To those who they wish it I can supply the complete code
Message was edited by
sorry i have changed the subject : Michele Fiorantino