biuan SAP® BUSINESS ONE SDK
API Company / Get Company List

Description

Retrieves a list of the company databases located on the specified server.

Syntax

Visual Basic
Public Function GetCompanyList() As Recordset

Return Type

This method returns a Recordset object that contains a list of available companies on the server.

The list includes the following four fields:

  • dbName - represents the database name.
  • cmpName - represents the company name.
  • versStr - represents the version number of the company database.
  • dbUser - represents the database owner.

Remarks

This method is commonly used at start-up phase, when you are not sure which company databases exist on the server. Alternatively, you can use this method to allow users to choose the company database.

Before using this method, you must set the correct value to the Server property.

After retrieving the company databases list, you can use the Connect method to set up a connection with a specific company database.

Example

See Also

Related information


Get Company Service GetCompanyService Service
Creates a new CompanyService.
   Parent: Company Company Object

Progress Indicator ProgressIndicator Event
Progress indicator for long process execution. To be supported in future releases.
   Parent: Company Company Object

Company Service CompanyService Service
The CompanyService enables to manage the company administration data. This includes the following tables: Administration data - OADM (AdminInfo object). Company data -  CINF (CompanyInfo object). Posting Periods - OACT (ChartOfAccounts...
   Parent: Company Company Object

User Tables UserTables Collection
UserTables is a collection of UserTable objects.
   Parent: Company Company Object

Authenticate User Results Enum AuthenticateUserResultsEnum Enumeration
The check results of the username and password.
   Parent: Company Company Object

Bo Data Server Types BoDataServerTypes Enumeration
Database server types.
   Parent: Company Company Object

Bo Supp Langs BoSuppLangs Enumeration
Defines the current resource language. Note: The languages marked with * (asterisk) are country-specific only.
   Parent: Company Company Object

Bo Xml Export Types BoXmlExportTypes Enumeration
Defines the type for exporting an object to XML.
   Parent: Company Company Object

Company Company Object
Company is the primary DI API object that represents a single SAP Business One company database. This object enables you to connect to the company database and to create business objects to use with the company database.



SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates