Show TOC

Procedure documentationCreating an Add-On Identifier Locate this document in the navigation structure

 

To run add-ons on client machines, you need to create an identifier string that enables the license service to recognize the add-ons. At runtime, the identifier string is passed to the SDK and the license service then verifies that a valid license exists in your license file before connection to the SAP Business One application is established.

For more information, see the License Guide on your SAP Business One product DVD.

Caution Caution

Add-ons developed in ASP.NET use a default user to connect to the application. This user does not have remote access rights. If the license service is installed on a remote machine, the add-on cannot connect to the license service, which in turn cannot validate your add-on license, causing connection failure.

To resolve this issue:

  • Install the license service on the same machine as that of the IIS installation

  • Configure ASP.NET to a user who has remote access rights

End of the caution.

Prerequisites

You have imported the license key file. For more information, see Importing a License Key File.

Procedure

  1. From the SAP Business One Main Menu, choose   Administration   License   Add-On Identifier Generator  .

  2. Select the add-on license type for which you are generating the identifier:

    • Development – to run add-ons under the Development license

    • Implementation – to run add-ons under the Implementation license

    • Solution – to run add-ons under a distribution (Add-On Solution) license

  3. If you are generating an identifier string for a Solution add-on, copy the license key name you received from SAP into the field of that name. Make sure you copy only the add-on name without the database type.

  4. Choose the Generate button.

  5. Copy the generated string to your code.

    Note Note

    Make sure you set the AddonIdentifier property before calling the Connect method.

    End of the note.

Example

UI API

SboGuiApi.AddonnIdentifier = “4CC5B8A4E0213A68489E38CB4052855EE8678CD237F64D1C11CD2707A54EBD245D596E4050AE9B929FBD0FAB44F6” SboGuiApi.Connect

DI API

Dim cmp As SAPbobsCOM.Company Set cmp = New SAPbobsCOM.Company cmp.UserName = "manager" cmp.CompanyDB = "SBODemo_US" cmp.Password = "manager" cmp.Server = “local” cmp.AddonIdentifier = “4CC5B8A4E0213A68489E38CB4052855EE8678CD237F64D1C11CD2707A54EBD245D596E4050AE9B929FBD0FAB44F6” cmp.Connect