on 07-13-2017 1:00 PM
Hello ,
I would like to update a business partner but i received the error "This entry already exists in the following table ODBC-2035".SAP : 9.2 PL04.The code is the following :
Try
Dim oBusPartner As SAPbobsCOM.BusinessPartners
oBusPartner = oCompany.GetBusinessObject(BoObjectTypes.oBusinessPartners)
oBusPartner.GetByKey("1256935")
oBusPartner.CardName="Test"
lRetCode = oBusPartner.Update()
Catch ex As Exception
End Try
Kind Regards ,
Ifigeneia Koumbarda
Hello ,
Deleting one address from addresses the update had no error.
I cannot understand why this happened.Any idea?
Kind Regards,
Ifigeneia Koumbarda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To troubleshoot this error I would first check if I am doing sth wrong removing the empty try catch, checking the GetByKey and checking the LastErrorDescription, try to change your code and post your GetByKey result, LastErrorDescription and lRetCode.
Also double check if there is something in the Transaction procedure
Dim lastError As String
Dim oBusPartner As SAPbobsCOM.BusinessPartners
oBusPartner = oCompany.GetBusinessObject(BoObjectTypes.oBusinessPartners)
if (oBusPartner.GetByKey("1256935")) then
oBusPartner.CardName="Test"
lRetCode = oBusPartner.Update()
lastError = oCompany.GetLastErrorDescription()
End If
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.