on 02-29-2016 5:09 PM
Hi,
When trying to enter a sales order, I got the error below:
No matching records found (ODBC -2028) Code -5002
Here my code block. Please, can anyone help?
Dim oSO As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
oSO.SalesPersonCode = 1
oSO.DocDate = DateSerial(2009, 12, 13)
oSO.CardCode = "C42000"
oSO.GroupNumber = 25
oSO.PaymentMethod = "BLT_BNE_01"
oSO.Comments = "Teste DI API"
oSO.DocDueDate = DateSerial(2009, 12, 13)
oSO.Lines.ItemCode = "I00007"
oSO.Lines.Quantity = 6.0
oSO.Lines.Price = 35.0
oSO.Lines.DiscountPercent = 0.0
lRetCode = oSO.Add()
If lRetCode <> 0 Then
oCompany.GetLastError(lRetCode, sErrMsg)
MessageBox.Show("Error: " & sErrMsg & "; Code: " & lRetCode)
End If
SAP 9.01 (9.10.180) PL08
And what product are you using? I think you posted in an incorrect SCN Space. Check the Overview tab - it tells you what this Space is for...
- Ludek
Senior Support Engineer Product Support, Global Support Center Canada
Follow me on Twitter
Got Enhancement ideas? Use the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.