📚 SAP Business One SDK Help

DeleteDNFCodeSetup Method
See Also  Example
pIDNFCodeSetupParams
The key of the DNF code to be deleted.

Description

Deletes an existing DNF code.

The DNF code is specified by its key (AbsEntry), which is contained in the DNFCodeSetupParams object passed to the method.

Syntax

Visual Basic
Public Sub DeleteDNFCodeSetup( _
   ByVal pIDNFCodeSetupParams As DNFCodeSetupParams _
) 

Parameters

pIDNFCodeSetupParams
The key of the DNF code to be deleted.

Remarks

You cannot delete a DNF code that is associated with an item.

Example

Deleting a DNF code (C#)Copy Code
DNFCodeSetupParams dnfCodeParams = dnfCodesService.GetDataInterface(DNFCodeSetupServiceDataInterfaces.dnfcssDNFCodeSetupParams) As DNFCodeSetupParams; 
dnfCodeParams.AbsEntry = 5; 
 
Console.WriteLine("Delete a DNFCodeSetup with key=" + dnfCodeParams.AbsEntry); 
 
dnfCodesService.DeleteDNFCodeSetup(dnfCodeParams); 

See Also