📚 SAP Business One SDK Help

RemoveSeries Method
See Also  Example
pISeriesParam

The SeriesParams identification key of the Series that you want to remove.

Description

Removes a Series identified by its SeriesParams.

Syntax

Visual Basic
Public Sub RemoveSeries( _
   ByVal pISeriesParam As SeriesParams _
) 

Parameters

pISeriesParam

The SeriesParams identification key of the Series that you want to remove.

Example

Remove a Series
RemoveSeries (Visual Basic)Copy Code
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim oSeriesService As SAPbobsCOM.SeriesService
Dim oSeriesParams As SeriesParams

'get company service
oCmpSrv = oCompany.GetCompanyService

'get series service
oSeriesService = oCmpSrv.GetBusinessService(ServiceTypes.SeriesService)

'get series params
oSeriesParams = oSeriesService.GetDataInterface(SeriesServiceDataInterfaces.ssdiSeriesParams)

'set the number of an existing series
oSeriesParams.Series = 29

'remove series
oSeriesService.RemoveSeries(oSeriesParams)

See Also