No Matching Record Found in Invoice Doc Creation (ODBC -2028)
When I add an Invoice Document with DI Api, system returns a mysterious error : "-2028 No Maching Record found (ODBC -2028)".
I work with SAP Business One 2005A SP01 PL11.
My code is:
' Header
vInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
TestataFattura = Split(strTestata, "|")
'1 FTCLCodice (Card Code)
'2 FTDataFattura (Doc Date)
'3 FTCPCodice (Payment Terms)
'4 FTTotImponibile (Total begin VAT)
'5 FTTotIva (VAT Total)
'6 FTTotFattura (Doc Total)
'7 FTNumeroFattura (Invoice Number)
'8 FTRGCodice (VAT Code)
vInvoice.CardCode = TestataFattura(1)
vInvoice.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
vInvoice.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
vInvoice.DocDate = Now
vInvoice.DocTotal = TestataFattura(5)
Dim vecchiaData As DateTime = TestataFattura(2)
Dim nuovaData As New DateTime
nuovaData = vecchiaData.AddMonths(3)
vInvoice.TaxDate = nuovaData
vInvoice.Comments = "Questa è una fattura importata da T.D. -NR: " & TestataFattura(6)
counter = 0
' Lines
While dettDataReader.Read
vInvoice.Lines.SetCurrentLine(vInvoice.Lines.Count - 1)
If dettDataReader.Item("DFImporto") <> 0 Then
vInvoice.Lines.ItemCode = dettDataReader.GetValue(2)
vInvoice.Lines.ItemDescription = dettDataReader.GetValue(3)
vInvoice.Lines.Price = dettDataReader.GetValue(4)
vInvoice.Lines.VatGroup = dettDataReader.GetValue(5)
vInvoice.Lines.AccountCode = dettDataReader.GetValue(6)
If dettDataReader.IsDBNull(8) Then
vInvoice.Lines.Quantity = 1
Else
vInvoice.Lines.Quantity = dettDataReader.GetValue(8)
End If
sFlagRigaDati = "Y"
Else
vInvoice.Lines.FreeText = dettDataReader.GetValue(3)
sFlagRigaDati = "N"
End If
If sFlagRigaDati = "Y" Then
If vInvoice.Lines.LineNum <> 0 Then
vInvoice.Lines.Add()
End If
End If
End While
If retval = 0 Then
'Add the Invoice
retval = vInvoice.Add
End If
Thanks for any help.
AL.
Hi Eddy,
I have tried to use the code of example inserted in help of the SDK for the insertion of an invoice being used the same data that I must insert through SDK but the error remains the same one.
The code that I have used as test is much simple one, I insert before the header and then two lines of detail.
Source code in SDK Help:
Sub AddInvoice_Click()
Dim RetVal As Long
Dim ErrCode As Long
Dim ErrMsg As String
'Create the Documents object
Dim vInvoice As SAPbobsCOM.Documents
Set vInvoice = vCmp.GetBusinessObject(oInvoices)
'Set values to the fields
vInvoice.Series = 0
vInvoice.CardCode = "BP234"
vInvoice.HandWritten = tNO
vInvoice.PaymentGroupCode = "-1"
vInvoice.DocDate = "21/8/2003"
vInvoice.DocTotal = 264.6
'Invoice Lines - Set values to the first line
vInvoice.Lines.ItemCode = "A00023"
vInvoice.Lines.ItemDescription = "Banana"
vInvoice.Lines.PriceAfterVAT = 2.36
vInvoice.Lines.Quantity = 50
vInvoice.Lines.Currency = "Eur"
vInvoice.Lines.DiscountPercent = 10
'Invoice Lines - Set values to the second line
vInvoice.Lines.Add
vInvoice.Lines.ItemCode = " A00033"
vInvoice.Lines.ItemDescription = "Orange"
vInvoice.Lines.PriceAfterVAT = 118
vInvoice.Lines.Quantity = 1
vInvoice.Lines.Currency = "Eur"
vInvoice.Lines.DiscountPercent = 10
'Add the Invoice
RetVal = vInvoice.Add
'Check the result
If RetVal <> 0 Then
vCmp.GetLastError ErrCode, ErrMsg
MsgBox ErrCode & " " & ErrMsg
End If
End Sub
Many thanks for your help.
Alex.
Similar Messages
-
Hello,
We are having a problem viewing one of our goods receipt. When going into a PO weu can see that there is a target document, but when we click on it the following message pops up u2013 u2018No matching records found Goods receipt PO (OPDN) (ODBC-2028) [Message 131-183]u2019. You cannot view the goods receipt by going through the purchasing module either. You can however see it when you go into the item and then right click and choose u2018stock posting listu2019. It then shows the goods received from GRPMS at the bottom under the GR no
We now have the invoice and need to enter it onto SAP but because you cannot view the GRN it wonu2019t allow me to copy from the GRN.
Could some offer assistance.
Regards,
JuanDear Juan82,
From what you say it looks like it is an issue that should be reported by message in order to be fixed.
Please, log a message on the portal with your S number.
When you write the description of the issue please attach screenshots that can help us to understand the issue.
Regards,
Marcella Rivi
SAP Business One Forums Team -
Error: No matching records found 'G/L Accounts' (OACT) ( ODBC-2028)'
Hi all
While adding outgoing excise invoice from Delivery the system gives the foll error:
No matching records found 'G/L Accounts' (OACT) ( ODBC-2028)'
Please note that
1. I have already mapped cenvat accounts in outgoing/incoming in general tab of G/L account determination.
2. I have two fiscal years 09-10 and 10-11. Both are unlock. Im working on 09-10 fiscal year and cenvat accounts are mapped for both fiscal years.
3. For rounding i have also mapped rounding account.
4. I am easily able to create incoming excise invoice.
5. I am able to add some of outgoing excise invoice but in the accounting tab there is no transaction.
6. My excise tax codes are BED+VAT in which BED is of 0 rate and VAT is of 12.5% or 4% rate, the reason for taking BED as 0 is the comapany is trading and we have to pass excise to customer by taking item as batch.
This is whole scenario.
Plz solve my problem considering all these points. Waiting.
Thanks
Edited by: Malhotra Saurabh on May 11, 2010 7:13 AMI have managed item by groups and warehouse is excisable as i have done GRPO in that warehouse.
I have already given cenvat accounts in Warehouse too.
Edited by: Malhotra Saurabh on May 11, 2010 7:55 AM
Edited by: Malhotra Saurabh on May 11, 2010 7:57 AM -
Dear All,
I am having an problem when AP Invoice is to be saved from GRN. There are 83 line items in the GRN which has sucessfully been posted. Now while making the AP invoice for the full GRN its showing error as - 'No matching records found ' G/L account' (OACT) (ODBC - 2028) [Message 131-183]. I have checked all the accounting determination and it seems to be fine.
I also did one thing that I tried to make partial AP invoice based on the same GRN....For e.g first 10 GRN items to AP Invoice.....Sometimes AP invoice is getting saved and sometimes the above error is coming....Then I remove some items and then while doing this process AP Invoice is sucessfully made in partial way for all 83 lines items but the problem is that its not saving in one single AP invoice....its saving in 8-10 partial AP invoices.
Note that items are set as Set GL accounts by Item Group.
Please let me know what might be the problem
Using SAP Business One 2005B with patch level 39.
Regards,
KamleshDear Riyaz,
Thanks for the detail document but after checking everythings the same error is coming in the AP Invoice. If there is any accounting or GL account missing then from GRN partial AP invoice should not be saved but when I am making partial invoices from the same GRN its added to the system. Means in GRN its 78 item suppose but when partial invoice is made for e.g 10 items first....partial AP invoice is getting saved....Again for 5 items AP is booked...its showing the same above error message...Now if I remove any item from 5 and then adding the AP its getting added to the system...Like this I partially created AP Invoices from the same GRN and after making all items in Multiple AP invoice the GRN is closed.....All this experiment I did in the live PROTOTYE database.
Please help me as to what might be the problem
Regards,
Kamlesh -
"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 -
hello ,
grpo created by mistake n nw while closing grpo document.. and
i am getting this error
No matching records found 'G/L Accounts' (OACT) (ODBC -2028) [Message 131-183]
any suggestions
Edited by: rudra.ykvr on Jun 1, 2011 3:27 PMHi rudra.ykvr,
you need to define the Goods Clearing account under Administration -> set up -> Financials -> GL account determination -> Stock.
Please keep in mind that there will be no correction of the stock account if you simply close the GRPO.
All the best,
Kerstin -
Dear Expert,
When i am adding the Receipt from Production Document i am getting the below error:
No Matching Record found 'G/L Account' (OACT) (ODBC -2028) [Message 131-183] in Receipt from Production
Thanks & Regards,
Tushar Nathwani
Edited by: Tushar Nathwani on Nov 2, 2010 11:36 AMHi,
You may check this thread :
Re: Error: [No matching records found 'G/L Accounts' (OACT)...] @ AR Invoi
Thx,
JimM -
No matching records found ' cheque for payment '(OCHO) (ODBC -2028).
Hi All,
Check number confirmation window does not automatically appear.
I make all setting with SAP Note 1059752- cheque for payment skipping confirmation screen.
I get the error message ' No matching records found ' cheque for payment ' (OCHO) (ODBC -2028).
Can anyone guide me to resolve this issue.
Regards
Vinod GHi Manish,
Yes, I am able to open the check for payment window manually and in the option credited GL Account , i found account is listed.
And also i done all setting in house bank setup as per SAP note 1059752.
Banking -
> check number confirmation
check number confirmation - Selection criteria -
> Window open
After data is put and enter
Error message is display "No matching records found 'Cheques for payment' (OCHO) (ODBC -2028) [ Message 131-183 ] ..
Till not resolve .
Regards
Vinod G -
Error: No matching record found 'G/L Account (OACT)(ODBC -2028)
This is the error that I got while trying to update the Sales Order with my add-ons.
All the required details were filled in the columns including the delivery date.
PLEASE REPLY SOON.
Thank YouHi Sudatta,
It seems to be a error relating to Rounding Account as per the note I read.
Check link <a href="https://service.sap.com/sap/support/notes/874131">https://service.sap.com/sap/support/notes/874131</a>
In case you are not able to login to read the Note.
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.
Regards
Suda -
No matching Records Found (OACT) for G/L Accounts -2028
Hi,
While Adding APInvoice got copied from GRPO shows NoMatching Records Found (OACT) GLAccounts -2028 for a user for a particular document series. For the same user, for different docseries, APInvoice(Copy from GRPO) can able to add. Also, the same document showing error can be added by user having FullAuthorization.
Also Direct APInvoice without copy from GRPO can be add.
What might be the problem?
Any suggestion is appreciated.
Thanks in Advance,
Parvatha Solai.NHi,
Please refer threads No matching Records Found (OACT) for G/L Accounts -2028
Can't Copy from Good Receipt PO to AP Invoice
Thanks & Regards,
Nagarajan -
Error in adding A/R Invoice - 'No Matching Records Found'
Hi Folks,
This one is related to 'thunderclap8's post last month (June 01, 2011)
As we create an A/R Invoice, we have encountered an error that says:
[A/R Invoice Rows Warehouse Code] [line: 0] , 'No matching records found 'Inventory Log Message' (OILM) (ODBC -2028)' [Message 131-183]
As with the process, the supposed A/R Invoice we're making came from a Delivery/Release that came also to a Sales Order.
But when we make the same transaction for other Customers, it ends successfully. I'm not trying to point out that it's because of the Customer since the error shows inventory-related concern.
Any theory on how did it come to this? and any remedy?
Thanks!
FringeHi Raja!
First and foremost, I would like to thank you for your answer.
I have checked it and there are no restrictions involved with the item nor with the BP.
I can't exactly determine the cause of this error.
I believe you do have other suggestions, don't hesitate to post it here.
Thanks!
Fringe -
No Matching Records Found ''G/L Account''
Dear All ,
I am Posting A/P Invoice which is based on GRPO, but while adding document system is showing the following error
No Matching records found ''G/L Accounts'' (OACT) (ODBC-2028) [Message 131-183].
The G/L Account determination is Item Group wise and i have checked the Account determination in Item Group everything is fine and i would like to know the Possible reasons for this error.
Regards,
KashiHi,
Kindly check the following settings :
1. Check the G/L account setting of the item.
If managed by Warehouse, then check warehouse -> Accounting tab.
If item group, then check item group -> accounting tab.
If item level, then check the item master data.
Defined all acccounts for the warehouse/item group/item.
2. Check administration -> setup -> financials -> G/L Account Determination -> General tab. Define the Rounding Account.
Kind Regards,
Jitin
SAP Business One Forum Team -
No matching record found 'G/L Accounts'
Hello,
When I try to copy an A/P Credit memo from an A/P invoice, the following error message appears: "No matching record found 'G/L Accounts' (OACT)[ODBC 2028]"
This message appears only when I select some lines from the credit memo. If I choose all lines, the credit memo is created.
SAP 8.8 PL 18
Any idea please?Hi NADIA BENLAMLIH,
Check This Link.
http://forums.sdn.sap.com/search.jspa?threadID=&q=Nomatchingrecordfound%27G%2FL+Accounts%27&objID=f264&dateRange=all&numResults=15&rankBy=10001
Generaly this type Error occured for the G/L Account Determination check it.
Thanks,
Srujal Patel -
No Matching Records found in OOEI Table
Can Any one Give me the clearance of the given below mentined error
No matching records found 'G/L Accounts' (OACT) (ODBC -2028) [Message 131-183]
When we add the out going excice invoice based on delivary we got the bove error
Regards,
Venkat.Hi Venkat,
Welcome you post on the forum.
You may go though these threads to find a match to your case:
http://forums.sdn.sap.com/search.jspa?threadID=&q=%22NomatchingrecordsfoundG%2FL+Accounts%22&objID=c44&dateRange=lastyear&numResults=15&rankBy=10001
Thanks,
Gordon -
Dear Experts,
I want to distribute the Freight Charge into Item Cost at Goods Receipt PO, so i setup the Freight under Administration > Setup > General > Freight
Revenue Account and Expense Account are entered properly.
Distribution Method = Row Total
Drawing Method = Total
Stock = Yes
When i Add the Goods Receipt PO, error message prompt: No matching records found 'G/L Accounts' (OACT) (ODBC-2028).
If i change Stock = No, then the Goods Receipt PO can be added successfully.
I am using SAP 8.8 Patch 14. Can you please advise where did i configure wrongly?
Thanks.
Regards,
Lay ChinDear all,
Found the answer accidentally, add the Freight Charge in AP Invoice instead of Goods Receipt PO. Then it works.
Thanks.
Regards,
Lay Chin
Maybe you are looking for
-
I get a system fan error on power up? Are there two fans in the G52-352CA? Ie a general system fan and a CPU cooling fan or just the one CPU/heatsink fan? If it is the CPU/heatsink fan then there are 4 part numbers for different options. Is t
-
Contacts: Specify which email address to use in Contact Group?
I have a few mailing lists that I keep in Contacts. However, I have multiple email addresses for some of these contacts. When I send an email to the list, the wrong email address will be used for some of the contacts. Is it possible to specify a def
-
External class call in a XSL document ?
I'd like to use Xalan package to transform XML documents thanks to XSL documents. I've seen how to use these classes in the XML Tutorial, but does anyone know whether it is possible or no to define customized call in a XSL document ? Exemple <xsl:tem
-
Java and serial port communication
Hello, In my code i have parsed a file through which i have extracted the port name and baud rate . Now i want to open the port with this portname and baud rate. I have a device moxa card which has 16 port and want to open each and and read and write
-
Boot iMac from external DVD drive
Hi guys! I need to boot my iMac to my system disc using an external DVD drive (USB). I put the DVD in the drive and it shows up in Prefs as a bootable disc but when I select it and tell it to restart it gives me the error beep. I've tried rebooting a