📚 SAP Business One SDK Help

UpdateDNFCodeSetup Method
See Also  Example
pIDNFCodeSetup
The data for the DNF code to be updated. The DNFCodeSetup object must contain the key of the object to be updated.

Description

Updates an existing DNF code.

The data for the DNF code, including the key of the DNF code to be updated, is contained in the DNFCodeSetup object passed to the method. To update a DNF code, you must first retrieve it using the GetDNFCodeSetup method.

Syntax

Visual Basic
Public Sub UpdateDNFCodeSetup( _
   ByVal pIDNFCodeSetup As DNFCodeSetup _
) 

Parameters

pIDNFCodeSetup
The data for the DNF code to be updated. The DNFCodeSetup object must contain the key of the object to be updated.

Example

Updating a DNF code (C#)Copy Code
DNFCodeSetupParams dnfCodeParams = dnfCodesService.GetDataInterface(DNFCodeSetupServiceDataInterfaces.dnfcssDNFCodeSetupParams) As DNFCodeSetupParams; 
 
dnfCodeParams.AbsEntry = 5; 
DNFCodeSetup dnfCode = dnfCodesService.GetDNFCodeSetup(dnfCodeParams); 
 
dnfCode.DNFCode = "1"; 
dnfCodesService.UpdateDNFCodeSetup(dnfCode); 

See Also