📚 SAP Business One SDK Help

Update Method
See Also 

Description

Updates the object data in the company database.

Syntax

Visual Basic
Public Function Update() As Long

Return Type

Returns a result value that indicates success or failure. If the method succeeds, it returns 0. Otherwise, it returns an error code.

You can retrieve the last error code and its description using the method GetLastError.

Remarks

Before using this method, you must use the GetByKey method to retrieve an existing record, and to set the values to the object mandatory properties.

You can also use the SBObob object to browse lists of objects.

Example

See Also