Hi all,
SBO Version: SP01 - PL32
SQL Version: 2005
I obtain this error when I try to update BP object after setting WithHoldingPropertys
Dim BP As SAPbobsCOM.BusinessPartners
Dim ret As Boolean = True
BP = _Cmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
If BP.GetByKey(Slp.CardCode) Then
If BP.CardType = SAPbobsCOM.BoCardTypes.cSupplier Then
BP.SubjectToWithholdingTax = SAPbobsCOM.BoYesNoEnum.tYES
BP.BPWithholdingTax.WTCode = Slp.WTCode
BP.BPWithholdingTax.Add()
BP.WTCode = Slp.WTCode
Else
BP.SubjectToWithholdingTax = SAPbobsCOM.BoYesNoEnum.tNO
BP.WTCode = String.Empty
End If
If BP.Update <> 0 Then
Prg.GetLastError(_err)
ret = False
End If
End If
With SBO Sp00 this code it works fine
Regards
Hany