Description
The following sample shows how to update a BusinessPartners object in the database. Use this sample as a basis to all business objects of master data type (not document type).
Dim nErr As Long
Dim errMsg As String
Dim vBP As SAPbobsCOM.BusinessPartners
Set vBP = vCompany.GetBusinessObject(oBusinessPartners)
If (vBP.GetByKey("HU1001") = True) Then
  Â
    vBP.FreeText = "Here's free text"
    Call vBP.Update
End If
Call vCompany.GetLastError(nErr, errMsg)
If (0 <> nErr) Then
    MsgBox ("Found error:" + Str(nErr) + "," + errMsg)
End If |