📚 SAP Business One SDK Help

AddCockpit Method
See Also  Example
pICockpit
The data for the new cockpit.

Description

Adds a cockpit.

Syntax

Visual Basic
Public Function AddCockpit( _
   ByVal pICockpit As Cockpit _
) As CockpitParams

Parameters

pICockpit
The data for the new cockpit.

Return Type

Contains the key (AbsEntry) of the new cockpit.

Example

Adding a Cockpit (C#)Copy Code
SAPbobsCOM.Cockpit cptAdd = (SAPbobsCOM.Cockpit)cockService.GetDataInterface(CockpitsServiceDataInterfaces.csCockpit); 
 
cptAdd.Name = "Name"; 
cptAdd.Description = "Description"; 
 
SAPbobsCOM.CockpitParams cockParamAdd = cockService.AddCockpit(cptAdd);              
 

See Also