Compartir a través de


GetSopNumber Class

The GetSopNumber class allows you to retrieve the next valid SOP number from Microsoft Dynamics GP. You can use the SOP number to create new sales documents. The class allows you to return numbers that you do not use.

Inherits from the System.EnterpriseServices.ServicedComponent class.

Constructor

Name

Description

GetSopNumber()

Initializes an instance of the GetSopNumber class.

Methods

Name

Return Value

Description

Dispose Method

void

Releases the resources of the GetSopNumber object.

GetNextSopNumber Method

string

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

RollBackSopNumber Method

bool

Returns an unused sales document number.

Examples

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

'Instantiate a GetSopNumber object
Dim SopNumberObject As New GetSopNumber