biuan SAP® BUSINESS ONE SDK
DTW Others / PaymentRunExport
API Nature Of Assessees Service / Update Nature Of Assessee

Description

Updates an existing nature of assessee.

The data for the nature of assessee, including the key of the nature of assessee to be updated, is contained in the NatureOfAssessee passed to the method. To update a nature of assessee, you must first retrieve it using the GetNatureOfAssessee method.

Syntax

Visual Basic
Public Sub UpdateNatureOfAssessee( _
   ByVal pINatureOfAssessee As NatureOfAssessee _
) 

Parameters

pINatureOfAssessee
The data for the nature of assessee to be updated. The NatureOfAssessee object must contain the key of the object to be updated.

Remarks

If the nature of assessee is associated with a withholding tax code (WithholdingTaxCodes), you cannot update the Code and AssesseeType properties.

Example

Updating a nature of assessee (C#)
try { SAPbobsCOM.NatureOfAssesseeParams oNOAParams = (SAPbobsCOM.NatureOfAssesseeParams)oNASrv.GetDataInterface(NatureOfAssesseesServiceDataInterfaces.noasNatureOfAssesseeParams); oNOAParams.AbsEntry = 1; SAPbobsCOM.NatureOfAssessee oNOA = oNASrv.GetNatureOfAssessee(oNOAParams); oNOA.Description = "Updated"; oNASrv.UpdateNatureOfAssessee(oNOA); } catch (Exception ex) { Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); }

See Also

Related information


Nature Of Assessee NatureOfAssessee Object· Table: ONOA
Represents a type of assessee in order to determine the tax rate for TDS (withholding tax). Source table: ONOA Mandatory properties: Code, Description
   Parent: Nature Of Assessees Service NatureOfAssesseesService Service· Table: ONOA

Nature Of Assessees Params NatureOfAssesseesParams Collection
A collection of NatureOfAssesseeParams objects.
   Parent: Nature Of Assessees Service NatureOfAssesseesService Service· Table: ONOA

Nature Of Assessees Service Data Interfaces NatureOfAssesseesServiceDataInterfaces Enumeration
NatureOfAssesseesService data interfaces.
   Parent: Nature Of Assessees Service NatureOfAssesseesService Service· Table: ONOA

Nature Of Assessees Service NatureOfAssesseesService Service· Table: ONOA
The NatureOfAssesseesService service enables you to add, look up and remove nature of assessees in the nature of assessee master data table. Nature of assessees are used to specify a type of entity subject to TDS (withholding tax). Source...



SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates