📚 SAP Business One SDK Help

SboGuiApi Object
See Also  Members  Example

Description

The object for establishing a connection to an active SAP Business One application.

Object Model


Remarks

In development, use the connection string as described in Connecting to the UI API or see the sample code.

In runtime, the SAP Business One application uses the connection string as a command line parameter to call the add-on.

Example

Connecting to SAP Business One (Visual Basic)Copy Code
Public Sub UsingSboGuiApi()
'*******************************************************************
'// Use an SboGuiApi object to establish connection
'// with the SAP Business One application and return an
'// initialized appliction object
'*******************************************************************
    Dim SboGuiApi As SAPbouiCOM.SboGuiApi
    Dim sConnectionString As String

    Set SboGuiApi = New SAPbouiCOM.SboGuiApi

    sConnectionString = "Place Connection String Here ..."

    '// Set an add-on identifier
    '// This identifier is for development license
    SboGuiApi.AddonIdentifier = "4CC5B8A4E0213A68489E38CB4052855EE8678CD237F64D1C11C22707A54DBD2D5D5F6E4050A09B9F9FB80FAC44F6"

    '// Connect to a running SBO Application
    SboGuiApi.Connect sConnectionString

    '// Get an initialized application object
    Set SBO_Application = SboGuiApi.GetApplication()
End Sub

See Also