📚 SAP Business One SDK Help

Close Method
See Also  Example
pIGeneralDataParams

Contains a property whose value is the key of the row to close.

For example, for a UDO for a document table, the object contains a property called DocEntry whose value is the key of the row to close.

Description

Closes a row in the database table of the current UDO.

Syntax

Visual Basic
Public Sub Close( _
   ByVal pIGeneralDataParams As GeneralDataParams _
) 

Parameters

pIGeneralDataParams

Contains a property whose value is the key of the row to close.

For example, for a UDO for a document table, the object contains a property called DocEntry whose value is the key of the row to close.

Remarks

For document-type UDOs only.

Example

Closing a UDO record (Visual Basic)Copy Code
Dim oGeneralService As SAPbobsCOM.GeneralService
Dim oGeneralParams As SAPbobsCOM.GeneralDataParams

'Get a handle to the SM_MOR UDO
oGeneralService = sCmp.GetGeneralService("SM_MOR")

'Close UDO record
oGeneralParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)
oGeneralParams.SetProperty("DocEntry", "2")
oGeneralService.Close(oGeneralParams)

See Also