No matching records found (ODBC - 2028) in adding the Check

Hi Experts,
Im having a problem with the Manual Checks, if i insert the record to Manual Check i encounter error "No matching records found (ODBC - 2028)". Please help us identify the problem thanks.
            Dim _OUTGOING_PAYMENT As New OutgoingPaymentUnit()
            Dim oPayment As SAPbobsCOM.Payments = Nothing
            oPayment = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oVendorPayments)
            Dim oPayCheck As SAPbobsCOM.Payments_Checks = oPayment.Checks
            '1. DocDate
            oPayment.DocDate = _OUTGOING_PAYMENT.DocDate
            oPayment.DueDate = _OUTGOING_PAYMENT.DocDate
            oPayment.TaxDate = _OUTGOING_PAYMENT.DocDate
            '2. DocCurrency
            oPayment.DocCurrency = _OUTGOING_PAYMENT.DocCurrency
            '3. Bank Account
            If (_OUTGOING_PAYMENT.TransferType = "H") Then
                'I inserted the code here to set the manual check
                oPayCheck.CheckAccount = _OUTGOING_PAYMENT.BankAccount
                oPayCheck.ManualCheck = SAPbobsCOM.BoYesNoEnum.tYES
            ElseIf (_OUTGOING_PAYMENT.TransferType = "C") Then
                oPayment.CashAccount = _OUTGOING_PAYMENT.BankAccount
            ElseIf (_OUTGOING_PAYMENT.TransferType = "B") Or (_OUTGOING_PAYMENT.TransferType = "R") Then
                oPayment.TransferAccount = _OUTGOING_PAYMENT.BankAccount
            End If
            '4. DocRate
            oPayment.DocRate = _OUTGOING_PAYMENT.DocRate
            '5. Name
            oPayment.CardCode = _OUTGOING_PAYMENT.CardCode
            '6. Balance
            '7. C + P Balance
            '8. Trans Type
            '9. Ref No
            If (_OUTGOING_PAYMENT.TransferType = "B") Then
                oPayment.TransferReference = _OUTGOING_PAYMENT.RefNo.ToString()
            ElseIf (_OUTGOING_PAYMENT.TransferType = "H") Then
                oPayCheck.CheckNumber = CInt(_OUTGOING_PAYMENT.RefNo)
            End If
            '10. Amount
            If _OUTGOING_PAYMENT.DocCurrency = "SGD" Then
                If _OUTGOING_PAYMENT.TransferType = "C" Then
                    oPayment.CashSum = _OUTGOING_PAYMENT.Amount
                    'oPayment.CashSumSys = _OUTGOING_PAYMENT.Amount
                ElseIf _OUTGOING_PAYMENT.TransferType = "H" Then
                    oPayment.Checks.CheckSum = _OUTGOING_PAYMENT.Amount
                ElseIf _OUTGOING_PAYMENT.TransferType = "B" Then
                    oPayment.TransferSum = _OUTGOING_PAYMENT.Amount
                ElseIf _OUTGOING_PAYMENT.TransferType = "R" Then
                    oPayment.CreditCards.CreditSum = _OUTGOING_PAYMENT.Amount
                End If
            Else
                If _OUTGOING_PAYMENT.TransferType = "C" Then
                    oPayment.CashSum = _OUTGOING_PAYMENT.Amount
                ElseIf _OUTGOING_PAYMENT.TransferType = "H" Then
                    oPayment.Checks.CheckSum = _OUTGOING_PAYMENT.Amount
                ElseIf _OUTGOING_PAYMENT.TransferType = "B" Then
                    oPayment.TransferSum = _OUTGOING_PAYMENT.Amount
                ElseIf _OUTGOING_PAYMENT.TransferType = "R" Then
                    oPayment.CreditCards.CreditSum = _OUTGOING_PAYMENT.Amount
                End If
            End If
            oPayment.JournalRemarks = _OUTGOING_PAYMENT.Description
            oPayment.Remarks = _OUTGOING_PAYMENT.Remarks
            iRetVal = oPayment.Add()
            Return iRetVal
Your help is much appreciated. I am using SAP 8.8 PL15

Bank Code, and Branch is required. Thanks

Similar Messages

  • Creating a Good Receipt PO via DI API No matching records found (ODBC -2028)

    Hi,
    I trying to create a Good Receipt PO via DI API.  It is working when the user I used to log in to SAP via the DI API is a Professional User but when I changed it to a Limited Logistics User, I'm receiving the No matching records found (ODBC -2028). I have already added the SDK Tools license to that user but still I'm receiving that error.
    So is it that the DI API will only work with a Professional User license or I can still use a Limited Logistics User?

    HI J S L,
    I get same error when I use different user that I just now add the SDK Tools without restarting the database server.  But previous user that I added SDK Tools before restart, no error.
    Today
    User 1 - add SDK Tools, no restart, error
    Last Wednesday
    User 2 - add SDK Tools, no restart, error
    Today - database server restarted this morning
    User 2 - no more error
    Both User 1 and 2 are Limited Logistics User.
    Best regards,
    Dennis

  • [NNM1] , 'No matching records found (ODBC -2028)'

    Hi,
    We have recently upgraded SBO 6.5 to SAP 2004. Now we are getting the following error when try to add invoice/order/incomming payments using the DI API 2004.
    Err Msg:- [NNM1] , 'No matching records found (ODBC -2028)'
    It would be wonderful if anyone could help us to solve this issue.
    Thanks
    Ajith

    Hello Ajith
    Business One document numbering mechanism in release 2004 changed as follows: The table NNM1 defines the document series characteristic (without relation to the object). The table NNM3 defines the Object to Series relation.
    The primary key in NNM1 until version 2004 was the object name and the series ID. In order to support the new concept of the series, the primary key is only the series due to this fact the values of the series was changed so it can be unique.
        Set oDoc = oCompany.GetBusinessObject(oInvoices)
        oDoc.Series = 2
    Until Business One release 2004, the code lines above referred to series no. 2 of the Invoice business object (in NNM1):
    ObjectCode = 13 (object code of Invoice)
    Series=2
    From release Business One 2004 code lines above will refer to an absolute code – series no. 2
    NNM1 table was changed in the upgrade process in order to have unique values for the series, for example:
    ObjectCode     Series     ==>     Series
    13..............0...............1000
    13..............1...............1001
    13..............2...............1002
    17..............0...............1003
    This is the reason your add-on has compatibility problems
    If the code includes hard coded assignment to the Series property of the Document object, it should be changed to the new unique key of the series
    SAP recommendation is to avoid use of any field value hard coded in add-on code.
    Regards, Avi.

  • -2028 [nnm1], 'No matching records found (ODBC -2028)'

    Hi All
    When the AR invoice saving, I am getting the error -2028 [nnm1], 'No matching records found (ODBC -2028)'
    could any one help me in this regards
    Amal

    Hi ian
    Here is my source code.  Could you help me what may be the wrong.
         Dim i As Integer
            Dim RetVal As Long
            Dim ErrCode As Long
            Dim ErrMsg As String = ""
            Dim sItemCode As String
            Dim dblQty As Double
            Dim sItemName As String
            Dim dblPrice As Double
            Dim dblDis As Double
            Dim sTax As String
            Dim dblTotal As Double
            Dim vInvoice As SAPbobsCOM.Documents
            vInvoice = vCmp.GetBusinessObject(BoObjectTypes.oInvoices)
            vInvoice.CardCode = txtCardCode.Text
            vInvoice.CardName = lblCardName.Text
            vInvoice.HandWritten = BoYesNoEnum.tNO
            vInvoice.DocDate = lblDate.Text
            vInvoice.DocTotal = Val(lblGrTotal.Text)
            vInvoice.DocType = BoDocumentTypes.dDocument_Items
            vInvoice.DocObjectCode = 13
            Dim lSingleItem As ListViewItem
            For i = 0 To ListView1.Items.Count - 1
                sItemCode = ListView1.Items(i).Text
                lSingleItem = ListView1.Items.Item(i)
                sItemName = lSingleItem.SubItems.Item(1).Text
                dblQty = Val(lSingleItem.SubItems.Item(2).Text)
                dblPrice = Val(lSingleItem.SubItems.Item(3).Text)
                dblDis = Val(lSingleItem.SubItems.Item(4).Text)
                sTax = lSingleItem.SubItems.Item(5).Text
                dblTotal = Val(lSingleItem.SubItems.Item(6).Text)
                vInvoice.Lines.ItemCode = sItemCode
                vInvoice.Lines.ItemDescription = sItemName
                vInvoice.Lines.Quantity = dblQty
                vInvoice.Lines.Price = dblPrice
                vInvoice.Lines.Currency = "INR"
                vInvoice.Lines.TaxCode = "VAT0"
                vInvoice.Lines.PriceAfterVAT = dblPrice
             if i>0 then vInvoice.Lines.Add()
            Next i
            RetVal = vInvoice.Add
            'Check the result
            If RetVal <> 0 Then
                vCmp.GetLastError(ErrCode, ErrMsg)
                MsgBox(ErrCode & " " & ErrMsg)
            End If

  • Error Code: -2028 :[OACT] , 'No matching records found (ODBC -2028)'

    Hi,
    I am trying to add Outgoing payment based on an invoice through the DI API but I got an error"[OACT] , 'No matching records found (ODBC -2028)". I was just using the SAP Business One 2005 Demo data to set all the value. The C# code is below:
    public static void AddOutgoingPayment(SAPbobsCOM.Company company){
         SAPbobsCOM.Payments vPay = (SAPbobsCOM.Payments) company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oVendorPayments);
         vPay.CardCode = "V23000";
         vPay.CardName = "Anthony Smith";
         vPay.Address = "1901 Maynesboro Drive, Suite 200, Camden PA  19065, USA";
         vPay.JournalRemarks = "Outgoing - V23000";
         vPay.DocDate = DateTime.Today;
         vPay.DocType = SAPbobsCOM.BoRcptTypes.rSupplier;
         vPay.CashSum = 100000;
         vPay.DocCurrency = "USD";
         vPay.CheckAccount = "_SYS00000000002";
         vPay.DocObjectCode = SAPbobsCOM.BoPaymentsObjectType.bopot_OutgoingPayments;
         //Purchase Invoice
         vPay.Invoices.DocEntry = 21;
         vPay.Invoices.DocLine = 0;
         vPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_PurchaseInvoice;
         vPay.Invoices.SumApplied = 100000;
         //Check     
         vPay.Checks.AccounttNum = "100-3443-7867";
         vPay.Checks.BankCode = "BOA";
         vPay.Checks.Branch = "54";
         vPay.Checks.CheckNumber = 389;
         vPay.Checks.CheckSum = 100000;
         vPay.Checks.Details = "Check";
         vPay.Checks.DueDate = new DateTime(2006,3,1,0,0,0,0);
         int returnVal = vPay.Add();
         int errCode;
         string errMsg;
         if(returnVal != 0){
              company.GetLastError(out errCode, out errMsg);
              string msg = string.Format("Error Code: {0}; Error Message: ", errCode, errMsg);
              Console.WriteLine(msg);
              return;
              Console.WriteLine("Successfully Add outgoing payment!");
    I am confused why I get this error and would appreciate if anyone can help me out.
    Thank you in advance,
    Sunny

    Hi Sunny,
    The quickest way to resolve this may be to try and enter the transaction manually using the same data you are testing in code. It looks like there's incomplete company setup (my guess is GL account determination but it could be a number of things).
    If you can enter the transaction manually then you are not populating all required fields in code before attempting to add it.
    Hope this helps,
    Owen

  • New PurchaseDeliveryNotes: "No matching records found (ODBC -2028)"

    Hi all
    I have searched for this error but have not found an answer that applies to me. I am trying to save a new PurchaseDeliveryNotes using the DI API (in VB.NET 2003), and I get that error.
    To_oPurchaseDeliveryNotes.CardCode = From_DeliveryNotes.CardCode
                            To_oPurchaseDeliveryNotes.DocDate = Now
                            To_oPurchaseDeliveryNotes.DocDueDate = From_DeliveryNotes.DocDueDate
                            To_oPurchaseDeliveryNotes.DocCurrency = "RMB"
                            Dim rs_batch As SAPbobsCOM.Recordset
                            rs_batch = WL_oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                            Dim From_SqlString As String
                            From_SqlString = " select  L.ItemCode,L.Dscription,L.OpenQty,L.Price,L.LineTotal,L.Currency,L.VatGroup ,L.BaseCard ,L.WhsCode,M.DocDuedate,L.basetype,L.Docentry,L.LineNum,M.DocNum " & _
                              " from [" & WL_oCompany.CompanyDB & "].[dbo].[ODLN] M,[" & WL_oCompany.CompanyDB & "].[dbo].[DLN1] L  " & _
                              " where M.Docentry=L.Docentry and BaseType='17' and  M.DocStatus='O' and L.LineStatus='O' " & _
                              " and M.Docnum=" & oItemCode & "  "
                            From_oRecordset = WL_oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                            From_oRecordset.DoQuery(From_SqlString)
                            Dim ii As Integer
                            For ii = 1 To From_oRecordset.RecordCount
                                If ii <> 1 Then
                                    To_oPurchaseDeliveryNotes.Lines.Add()
                                End If
                                To_oPurchaseDeliveryNotes.Lines.ItemCode = From_oRecordset.Fields.Item(0).Value
                                To_oPurchaseDeliveryNotes.Lines.ItemDescription = From_oRecordset.Fields.Item(1).Value
                                rs_batch.DoQuery("select BatchNum,Quantity   from  [" & WL_oCompany.CompanyDB & "].[dbo].[ibt1]     where Basenum=" & oItemCode & " and itemcode='" & From_oRecordset.Fields.Item(0).Value & "' and baseType='15'")
                                rs_batch.MoveFirst()
                                If rs_batch.RecordCount > 0 Then
                                    Dim BT_II As Integer
                                    For BT_II = 1 To rs_batch.RecordCount
                                        If BT_II <> 1 Then
                                            To_oPurchaseDeliveryNotes.Lines.BatchNumbers.Add()
                                        End If
                                        To_oPurchaseDeliveryNotes.Lines.BatchNumbers.BatchNumber = rs_batch.Fields.Item(0).Value
                                        To_oPurchaseDeliveryNotes.Lines.BatchNumbers.Quantity = rs_batch.Fields.Item(1).Value
                                        If Not rs_batch.EoF Then
                                            rs_batch.MoveNext()
                                        End If
                                    Next
                                Else
                                    To_oPurchaseDeliveryNotes.Lines.Quantity = From_oRecordset.Fields.Item(2).Value
                                End If
                                'If rs_batch.RecordCount > 0 Then
                                '    To_oPurchaseDeliveryNotes.Lines.BatchNumbers.BatchNumber = rs_batch.Fields.Item(0).Value
                                '    To_oPurchaseDeliveryNotes.Lines.BatchNumbers.Quantity = From_oRecordset.Fields.Item(2).Value
                                'Else
                                '    To_oPurchaseDeliveryNotes.Lines.Quantity = From_oRecordset.Fields.Item(2).Value
                                'End If
                                To_oPurchaseDeliveryNotes.Lines.Price = From_oRecordset.Fields.Item(3).Value
                                To_oPurchaseDeliveryNotes.Lines.Currency = "RMB" ' From_oRecordset.Fields.Item(5).Value
                                To_oPurchaseDeliveryNotes.Lines.VatGroup = Replace(From_oRecordset.Fields.Item(6).Value, "X", "J")
                                To_oPurchaseDeliveryNotes.Lines.WarehouseCode = From_oRecordset.Fields.Item(8).Value
                                'To_oPurchaseDeliveryNotes.Lines.UserFields.Fields.Item("U_011").Value = CStr(From_oRecordset.Fields.Item(11).Value)
                                'To_oPurchaseDeliveryNotes.Lines.UserFields.Fields.Item("U_012").Value = CStr(From_oRecordset.Fields.Item(12).Value)
                                'To_oPurchaseDeliveryNotes.Lines.BaseEntry = From_oRecordset.Fields.Item(11).Value
                                'To_oPurchaseDeliveryNotes.Lines.BaseLine = From_oRecordset.Fields.Item(12).Value
                                To_oPurchaseDeliveryNotes.Lines.BaseType = 22
                                If Not From_oRecordset.EoF Then
                                    From_oRecordset.MoveNext()
                                End If
                            Next
                            WL_lRetCode = To_oPurchaseDeliveryNotes.Add
    Getting "-2028 : No matching records found (ODBC -2028)". Any ideas?
    Thanks in advance.
    Message was edited by:
            l l

    Ok, when I has this problem, I solved check it the information that I put in into the component, the client information, the item information and the document that was linked with the new document.
    One advice for you is that you try to do the think that you want to make it in the SAP UI,   when you do that you can prevent the most of error that should be happen in design time.
    I hope that your problem fix with this.

  • -2028:No matching records found (ODBC -2028)

    My client lost their CRM data, so they restored the CRM database and have since contiuned processing.  Now they are getting this error:
    -2028:No matching records found (ODBC -2028)
       at NetPoint.SynchSBO.SBOObjects.SBOPartner.NetPointToSBO(NPQueueObject qData)
       at NetPoint.SynchSBO.SynchObjectBase.Synch()
    This was on the BPs. How can I correct this error?

    I am still working on  this problem.  I have looked in B1 for those BPs that are in the WebCRM.  However, every one of those BPs from WebCRM are in the B1 database.  I have tried going into the CRM changing one of those BPs  Save it.  When I run a synch. I still get the error.  The same is happening for NPActivity on Adds and Updates.  It looks like this:
    -5002:User does not exist   OCLG.AttendUser  at
    NetPoint.SynchSBO.SBOObjects.SBOContacts.NePointToSBO (NPQueueObjectqData) at NetPoint.SynchSBO.SynchObjectBase.Synch()
    Bryce do you have any more suggestions?  I can use it.
    Thanks
    Edited by: Chester Hargrove on Mar 10, 2009 11:31 PM
    Edited by: Chester Hargrove on Mar 10, 2009 11:33 PM

  • Outgoing Payment Issues - No matching records found (ODBC - 2028)

    Hi Experts,
    I am trying to create the add-on which automatically create Check payment against the vendor for the AP invoice and i am getting the issue, "No matching records found (ODBC - 2028)". 
    To know the exact reason of the issue i hardcode invoice, vendor name, cash account, bank code, bank account etc... but i am getting the same error. I also tried by using check account for both header and detail (check detail transaction) and i am getting the same error.
    The weird thing is the same code work in my development and test machine but it is not working on Live machine and another development machine. The machines which is getting error is one Live company with SAP 8.8 PL13 and another is OEC demo company having SAP 8.8 PL13. I dont think there could be account missing issue since i am getting the issue in OEC demo company as well, please correct me if i am missing something.
    I tried different things to resolve the issue you can see my code below where i have commented lot of things after trial. 
    I was trying to resolve the issue in this simple piece of code for last few weeks without any luck, so can you please help to resolve the issue. Please refer by below code which i was trying to create Outgoing payment.
                oOutgoingPayments = gCompany.GetBusinessObject(BoObjectTypes.oVendorPayments)
                oOutgoingPayments.DocType = BoRcptTypes.rSupplier
                oOutgoingPayments.CardCode = "V10000"
                'oOutgoingPayments.CardName = "Acme Associates"
                'oOutgoingPayments.CheckAccount = "_SYS00000000006"
                'oOutgoingPayments.CheckAccount = "11100000"
                oOutgoingPayments.DocDate = Date.Now
                oOutgoingPayments.DueDate = Date.Now
                'oOutgoingPayments.TaxDate = Date.Now
                oOutgoingPayments.JournalRemarks = "V10000"
                'oOutgoingPayments.TransferDate = Date.Now
                oOutgoingPayments.CashAccount = "11100000"
                oOutgoingPayments.Invoices.InvoiceType = BoRcptInvTypes.it_PurchaseInvoice
                oOutgoingPayments.Invoices.DocEntry = 89
                'oOutgoingPayments.Invoices.DocLine = 0
                oOutgoingPayments.Invoices.DiscountPercent = 10
                oOutgoingPayments.Invoices.SumApplied = 324
                'oOutgoingPayments.Invoices.Add() '// I tried with add also but no luck
                'oOutgoingPayments.Checks.CountryCode = "USA"
                oOutgoingPayments.Checks.BankCode = "BNY"
                oOutgoingPayments.Checks.AccounttNum = "145-4267-6703"
                oOutgoingPayments.Checks.Branch = "Main"
                'oOutgoingPayments.Checks.CheckAccount = "11220000"
                oOutgoingPayments.Checks.DueDate = Date.Now
                oOutgoingPayments.Checks.CheckSum = 324
                'oOutgoingPayments.Checks.Add()
                intErrCode = oOutgoingPayments.Add()
                If intErrCode <> 0 Then
                    gCompany.GetLastError(intErrCode, strErrMsg)
                Else
                    blnSuccessPayments = True
                End If
    I will wait for your positive Feedback.
    Thanks & Regards,
    Naresh

    Dear Naresh,
    The following could be the causes of the error.
    1. The BP is not avaliable in the other companies.
    2. The account which you have given is wrong. I guess you are using Account segmentation so the accounts would start with _sys... so please check with the correct account settings.
    Hope it helps,
    Vasu Natari.

  • Error -2028 Update No matching records found (ODBC -2028)

    An apology for my English, I'm trying to update a field but I get this error:
    No matching records found (ODBC -2028)
    This is part of the code that I use to add new ones and works fine, when I change the oItems.Add (); by oItems.Update () does not work.
    public static void addItem(DataRow itemObject)
       oItems = (SAPbobsCOM.Items)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems));
       oItems.ItemCode = itemObject["ItemCode"].ToString();
       oItems.ItemName = itemObject["ItemName"].ToString();
       lRetCode = oItems.Add();
       if (lRetCode != 0)
          oCompany.GetLastError(out lErrCode, out sErrMsg);
    I get the data from MySql, and I tried putting the data manually from an existing record and does not work
    Any ideas why?

    Hi,
    Before you can call Update on an item you need to call the GetByKey method to retrieve the item you want to update:
    public static void updateItem(DataRow itemObject)
       oItems = (SAPbobsCOM.Items)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems));
       if(oItems.GetByKey(itemObject["ItemCode"].ToString())
            oItems.ItemName = itemObject["ItemName"].ToString();
            lRetCode = oItems.Update();
            if (lRetCode != 0)
                    oCompany.GetLastError(out lErrCode, out sErrMsg);
    Kind Regards,
    Owen

  • New SalesOrder: "No matching records found (ODBC -2028)"

    Hi there
    I have searched for this error but have not found an answer that applies to me. I am trying to save a new SalesOrder using the DI API (in C#), and I get that error.
    I'm certain that the CardCode I set on the Order applies to  a real BusinessPartner, and that the ItemCodes I set apply to real InventoryItems.... what else could it be?
    Thanks!
    Kevin

    Hi Kevin,
    The only advice I can give is to start eliminating where the problem can be. Just leave the minimum values in there until it posts and then add the values one by one until you get the error. Also make sure that you don't have values that is longer than what the field can hold. Do you specify GL accounts or has it been set up in the GL Account Determination. It could be any one of the values (even those that you're not populating) that it misses. Can you post an invoice in SBO with just the values you're using in code?
    Hope it helps,
    Adele

  • No matching records found (ODBC -2028)

    why do i get those message when trying to add PO Draft for Service item using SDK?
    i check the code, all execute succesfully until it reached .Add method..it return -2028
    anyone have idea?
    PS: i'm using SBO 2005 PL 15
    thanks,
    erick

    thanks for the reply
    ok..here it is..
      Dim oPurchOrder As SAPbobsCOM.Documents
    oPurchOrder = _
                  CType( _
                      oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts), _
                      SAPbobsCOM.Documents)
    with oPurchOrder
    <b>
    ' do query code hereto get the default Vendor for item..if it's type is Service then just get the first vendor available since B1 needs it
    </b>
    .DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseOrders
    .DocDate = Today.Date 'CType(_oDataset.Tables(0).Rows(iRecordCount).Item(POSTINGDATE_FLD), Date)
                .DocDueDate = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(DELIVERYDATE_FLD), Date)
                .Comments = "Based on PR No. " & CType(_oDataset.Tables(0).Rows(iRecordCount).Item(DOCNUM_FLD), String)
                .Reference2 = Left(CType(_oDataset.Tables(0).Rows(iRecordCount).Item(DOCNUM_FLD), String), 11)
                .UserFields.Fields.Item(UDF_REQUESTOR_FLD).Value = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(REQUESTOR_FLD), String)
                .Project = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(PROJECTCODE_FLD), String)
    .DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Service
                    .DocCurrency = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(CURRENCY_FLD), String)
                    'Document Line
                    '.Lines.Currency = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(CURRENCY_FLD), String)
                    .Lines.ItemDescription = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(ITEMDESC_FLD), String)
                    .Lines.AccountCode = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(ACCOUNT_FLD), String)
                    .Lines.UnitPrice = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(PRICE_FLD), Double)
                    .Lines.CostingCode = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(COSTCENTER_FLD), String)
                    .Lines.ProjectCode = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(PROJECTCODE_FLD), String)
                    .Lines.UserFields.Fields.Item(UDF_PRNUM_FLD).Value = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(DOCNUM_FLD), String)
                    .Lines.UserFields.Fields.Item(UDF_LINENUM_FLD).Value = CType(_oDataset.Tables(0).Rows(iRecordCount).Item(LINENUM_FLD), String)
                    .Lines.VatGroup = "VCN"
    end with
    'after this we used the .Add method
    i check all the value inserted already exist in B1..not sure
    PS: the bold part i'm not include it coz it will take to much lines..i post after this one..
    regards,
    erick
    Message was edited by:
            Erick Widya

  • Invoice - not matching record found (ODBC -2028) Problem

    hi,
    when i'm going to raise the invoice based on sales order, it displays above mention error message. if anyone can help me to find this error.
    here i'm going to retrive previous open sales order and raise an invoce.
    here is my cording.
    MB_oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                MB_oRecSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                Dim sql As String = "SELECT T0.DocNum FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.ItemCode =" & strItmCode & " and  T0.DocDate ='" & dtDocDate.Date & "' and  T0.DocStatus ='O'"
                MB_oRecSet.DoQuery(sql)
                MB_oRecSet.MoveFirst()
                If MB_oRecSet.EoF = True And MB_oRecSet.BoF = True Then
                    Return False
                End If
                Dim i As Integer
                'oCompany.GetNewObjectCode(MB_oRecSet.Fields.Item(0).Value)
                With MB_oInvoice
                    .CardCode = "Duo_Sub"
                    .CardName = "Monthly Subscription"
                    .Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
                    .Lines.SetCurrentLine(0)
                    .Lines.BaseEntry = MB_oRecSet.Fields.Item(0).Value
                    .Lines.BaseLine = 0
                    .Lines.ItemCode = strItmCode
                    .Lines.LineTotal = dblTot
                    .Lines.Quantity = decQty
                    .Lines.TaxCode = "EXEM OUT"
                    .Lines.WTLiable = SAPbobsCOM.BoYesNoEnum.tNO
                    .Lines.Add()
                    i = .Add()
                    Dim sa As String
                    Dim ik As Integer
                    oCompany.GetLastError(ik, sa)
                    If (sa <> "") Then
                        SBO_Application.MessageBox(ik & sa)
                    End If
                End With
    kind regards,
    chaminda ratnayake

    Hi Chaminda!
    You need the DocEntry instead of the DocNum
    => "SELECT T0.DocNum FROM ORDR..."
    here you have to set the DocEntry of your Sales Order
    => .Lines.BaseEntry = MB_oRecSet.Fields.Item(0).Value
    Matthias

  • [OINV.GrosProfit][line: 1] , 'No matching records found (ODBC

    When creating a sales service invoice in Business One I get the following error:
    [OINV.GrosProfit][line: 1] , 'No matching records found (ODBC
    Can anyone help?

    Thanks,
    I found the solution to the problem.
    My SAP B1 system was using segmented accounts. When using segmented accounts you can not simply pass in the 'normal' AccountCode, you must pass in the system account code.
    For example is the AccountCode you want to use is: "15100-01-01" you would need to pass in an account code that looks something like this: "_SYS00000000051"
    How do you get this system account code?
    The easiest way is to use the SBobs as follows (Note c refers to a company object and "151000101" is the AccountCode you want to find:
    Dim sStr As String
    Dim vBOB As SAPbobsCOM.SBObob
    Set vBOB = c.GetBusinessObject(BoBridge)
    Dim vRs As SAPbobsCOM.Recordset
    Set vRs = vBOB.GetObjectKeyBySingleValue(oChartOfAccounts, "FormatCode", "410000101", bqc_Equal)
    'The Recordset retrieves the value of the key (for example, sStr = _SYS00000000010).
    sStr = vRs.Fields.Item(0).Value
    sStr now has the account code in the system format.
    Note: The above code is in VBA. In my Application I use C# and .Net

  • Again :: No matching record found 'G/L Account (OACT)(ODBC -2028)

    "No matching record found 'G/L Account (OACT)(ODBC -2028)"
    This error I am facing while adding Outgoing Excise Invoice based upon Delivery made.
    We have already discussed this issue but none of the solution is working out in my case.
    I have created Rounding A/C also in G/L Account Determination, but the problem remain as it is.
    Kindly resolve the issue.
    Khushwant
    [email protected]

    hello Khushwant Singh Sansowa,
    i just found this @ SAP Support.
    *fist possible solution.*
    Synchlog Error: 'No matching records found (ODBC -2028)'
    Symptom
    Synchlog Error Message:-2028:[OACT] , 'No matching records found (ODBC -2028)'
    Other terms
    Netpoint, SAP Business One, SAP Business One ecommerce, ecommerce, e-commerce, Net Point, Web tools, Business One ecommerce, Netpoint Synchmanager, Netpoint Website, Business One e-commerce, CRM Anywhere, Web tools server, WebCRM
    Reason and Prerequisites
    Program Error
    Solution
    May recieve the following message during a synchronization: -2028:[OACT] , 'No matching records found (ODBC -2028)' SBOOrder synchmodule, NetpointToSBO() synchmethod
    To resolve this error, ensure that the items in the order have a GL account or warehouse code assigned to them within B1 Item Master Data - Inventory Data
    2nd Possible Solution
    "No matching record found 'G/L Accounts' [ODBC 2028]"
    Symptom
    When attempting to add a marketing document with rounding, the following error message appears: "No matching record found 'G/L Accounts' [ODBC 2028]"
    Other terms
    Rounding, G/L account, error message, marketing documents, matching record, account, missing, SAP Business One
    Reason and Prerequisites
    There is no rounding account defined.
    Solution
    Define a rounding account under:
    'Administration' > 'System Initialization' ->'G/L Account Determination' -> 'General' tab page under "RoundingAccount" field.
    3rd Possible solution.
    Error 'G/L Accounts' '(ODBC 2028)' While Adding Market Docum
    Symptom
    While adding the marketing document into the system error message [OACT] 'No matching records found - 'G/L Accounts' '(ODBC 2028)' appears. When the user checks all definitions it looks like all accounts are defined.
    Other terms
    AP Invoice, Tax Account, Default Accounts, Chart of Account, User Defined, ODBC 2028, 7.6 SP0, SAP Business One, B1
    Reason and Prerequisites
    The User Defined Chart of Accounts is used.
    Solution
    When the user chooses User Defined Chart of Accounts under Administration -> System Initialization -> Company details -> Basis Initialization tab , the default accounts remain in the "G/L Account Determination", "Define Tax", "Define Warehouse" windows under Administration -> Definitions -> Financials and Administration -> Definitions -> Inventory. User has to check and define all accounts.
    hope this will help u..
    FIDEL

  • No matching records found (NNM1)(ODBC-2028)

    Hi,
    While adding approved A/P invoice i am getting the above error.
    Please help
    Thanks
    Md.nazeer Shaikh

    You may check these for reference:
    [NNM1] , 'No matching records found (ODBC -2028)'
    -2028 [nnm1], 'No matching records found (ODBC -2028)'
    [Create a Quotations] error 2028: No matching records found
    And SAP Note Number: 1178582 if applicable.
    Thanks,
    Gordon

Maybe you are looking for