📚 SAP Business One SDK Help

DeleteNatureOfAssessee Method
See Also  Example
pINatureOfAssesseeParams
The key of the nature of assessee to be deleted.

Description

Deletes an existing nature of assessee.

The nature of assessee is specified by its key (AbsId), which is contained in the NatureOfAssesseeParams object passed to the method.

Syntax

Visual Basic
Public Sub DeleteNatureOfAssessee( _
   ByVal pINatureOfAssesseeParams As NatureOfAssesseeParams _
) 

Parameters

pINatureOfAssesseeParams
The key of the nature of assessee to be deleted.

Remarks

You cannot delete a nature of assessee that is associated with a withholding tax code (WithholdingTaxCodes).

Example

Deleting a nature of assessee (C#)Copy Code
try 

    SAPbobsCOM.NatureOfAssesseeParams oNOAParams = (SAPbobsCOM.NatureOfAssesseeParams)oNASrv.GetDataInterface(NatureOfAssesseesServiceDataInterfaces.noasNatureOfAssesseeParams); 
    oNOAParams.AbsEntry = 1; 
    oNASrv.DeleteNatureOfAssessee(oNOAParams); 

catch (Exception ex) 

    Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 

See Also