GetNextDocNumbers Class

The GetNextDocNumbers class allows you to retrieve the next valid document number for several Microsoft Dynamics GP document types. To use the GetNextDocNumbers class you must first instantiate an object.

Inherits from the System.EnterpriseServices.ServicedComponent class.

Constructor

Name

Description

GetNextDocNumbers()

Initializes an instance of the GetNextDocNumbers class.

Properties

Name

Type

Default

Description

RequireProxyService

boolean

true

Specifies whether to use the identify of the logged on user or the service identity when accessing SQL server. The value true forces the application to use the service identity. The value in this class overrides the RequireProxyService setting in the configuration file.

Methods

Name

Return Value

Description

Dispose Method

void

Releases the resources of the GetNextDocNumbers object.

GetNextGLJournalEntryNumber Method

string

Retrieves the next general ledger journal entry document number.

GetNextIVNumber Method

string

Retrieves the next document number for a specified type of inventory document.

GetNextPONumber Method

string

Retrieves the next purchase order number.

GetNextPOPReceiptNumber Method

string

Retrieves the next purchase order receipt document number.

GetNextRMNumber Method

string

Retrieves the next document number for a specified type of receivable document.

GetNextSOPNumber Method

string

Retrieves the next document number for a specified type of sales order document.

GetPMNextVoucherNumber Method

string

Retrieves the next payables management document number.

RollBackDocumentList Method

void

Returns one or more unused document numbers.

SortAndRollBackDocumentList Method

void

Sorts and rolls back a list of document numbers.

Examples

The following Visual Basic .NET example creates a GetNextDocNumbers object:

'Instantiate a GetNextDocNumbers object
Dim NextDocNumberObject As New GetNextDocNumbers