AccpacCOMAPI Overview

ACCPAC Common Controls

Sage 300 ERP (ACCPAC) COM API

ACCPAC COM API Object Model

The ACCPAC COM API is a COM library which provides access to Sage 300 ERP System Manager functions. The ACCPAC COM API is organized as a group of COM objects whose properties and methods access underlying System Manager functionality.

To access objects in ACCPAC COM API, you need to create and open an AccpacSession object. This object represents an authenticated session with System Manager.

Quick Start

An application uses the Session class to establish a session with the Sage 300 ERP System Manager.

  1. Creates an instance of the AccpacSession class.

  2. Initializes the AccpacSession object by calling Init.

  3. Opens the session by calling Open on the AccpacSession object, supplying a valid username and password.

Before accessing application data, an application needs to open a database connection to the intended company database. This can be done by obtaining a AccpacDBLink object from the AccpacSession object's OpenDBLink method.

Applications can access ACCPAC application features and data through AccpacView objects. These object represent ACCPAC application views, which provide access to application data and business logic. AccpacView objects can be obtained from the AccpacDBLink object's OpenView method.