📚 SAP Business One SDK Help

AddSection Method
See Also  Example
pISection
The data for the new section.

Description

Adds a section.

Syntax

Visual Basic
Public Function AddSection( _
   ByVal pISection As Section _
) As SectionParams

Parameters

pISection
The data for the new section.

Return Type

Contains the key (AbsId) of the new section.

Example

Adding a section (C#)Copy Code
SAPbobsCOM.Section oSec = (SAPbobsCOM.Section)oSectionSrv.GetDataInterface(SectionsServiceDataInterfaces.ssSection); 
 
oSec.Code = "192J"; 
oSec.Description = "HUM"; 
oSec.ECode = "92J"; 
oSectionSrv.AddSection(oSec); 

See Also