📚 SAP Business One SDK Help

AddNCMCodeSetup Method
See Also  Example
pINCMCodeSetup
The data for the new NCM code.

Description

Adds an NCM code.

Syntax

Visual Basic
Public Function AddNCMCodeSetup( _
   ByVal pINCMCodeSetup As NCMCodeSetup _
) As NCMCodeSetupParams

Parameters

pINCMCodeSetup
The data for the new NCM code.

Return Type

Contains the key (AbsEntry) of the new NCM code.

Example

Adding an NCM code (C#)Copy Code
NCMCodesSetupService oNCMSrv; 
oNCMSrv = (NCMCodesSetupService)(MainModule.oCmpSrv.GetBusinessService(ServiceTypes.NCMCodesSetupService)); 
 
SAPbobsCOM.NCMCodeSetup addLine; 
addLine = (SAPbobsCOM.NCMCodeSetup)oNCMSrv.GetDataInterface(NCMCodesSetupServiceDataInterfaces.ncmcssNCMCodeSetup); 
addLine.NCMCode = "C1"; 
addLine.Description = "Desc C1"; 
 
oNCMSrv.AddNCMCodeSetup(addLine); 

See Also