Description
Updates an existing row in the database table of the current UDO.
The data for the row, including the key of the row to be updated, is contained in the GeneralData passed to the method.
Syntax
Parameters
Example
| Updating a UDO record (Visual Basic) | Copy Code |
|---|
Dim oGeneralService As SAPbobsCOM.GeneralService
Dim oGeneralData As SAPbobsCOM.GeneralData
Dim oGeneralParams As SAPbobsCOM.GeneralDataParams
Dim sCmp As SAPbobsCOM.CompanyService
sCmp = oCompany.GetCompanyService
oGeneralService = sCmp.GetGeneralService("SM_MOR")
oGeneralParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)
oGeneralParams.SetProperty("DocEntry", "2")
oGeneralData = oGeneralService.GetByParams(oGeneralParams)
oGeneralData.SetProperty("U_Room", "2")
oGeneralData.SetProperty("U_Price", "40")
oGeneralData.SetProperty("U_Name", "Guy")
oGeneralService.Update(oGeneralData)
|
|
See Also