Adding Purchase Invoice

Hi All,
I've picked up another developers code to do some bug fixing and one of the bugs is that on creation of a Purchase Invoice SAP is throwing error "-2010 Internal error".  I cannot find any reference to this error code.
Does anybody know what the error is referring to?
Many thanks,
David

Hi David,
All Internal Errors are actually certain External Resource not available. To troubleshoot, run a part of the code one by one to narrow down the cause.
Thanks,
Gordon

Similar Messages

  • Sales Invoice, Purchase Invoice Merge

    Hi Guys
    I am creating a report that will give me the total # of Sales and Purchase Invoice, purpose of report is to merge the sales and purchase analysis.
    i have added all the fields on the main report from the OINV table, i then created a sub report that has the same fields, only difference is its from OPCH table, i need to have a parameter "Date", that i have created, but doesnt seem to filter the values as to my selection. What could be the problem.
    What i am trying to do is merge the Sales Analysis in SAP and the Purchase Analysis in SAP on one report.

    Euston,
    I am doing something similar to yours, I am merging total of (each credit job) with total (each free of charge job) to show in the single report.
    here what I am doing right now,
    1: Imported both tables into one new report
    2: Created a Running total field for FOC (free of charge job)
    3: Created a Running total field for CR (credit job)
    both of these running totals have formulas under "Evaluate each record"
    Formula is like this
    line_type="F"
    line_type="C"
    Both of them are grouped by two different groups however are of the same Reason ID.
    I then created formula like this
    Whileprintingrecords;
    Numbervar x:=0;
    Numbervar y:=0;
    Numbervar z:=0;
    x:=Runningtotal field for FOC
    y:=Runnitngtotalfield for CR
    z:=x+y
    z;
    This gives me combined result of two different jobs.
    Is that something what you are trying to do?
    Regards
    Jehanzeb

  • Selecting alternative Bank account in Purchase invoice is not working

    Hello experts
    When adding a particular purchase invoice, I select an alternative bank account for this vendor on Logistics tab. But when generating payment file for this invoice through Payment Engine, the bank account that can be seen on the file is the standard one for this vendor, so selecting an alternative Bank account in the invoice doesn't seem to have any effect on payment file. Do I have to consider something else?
    Regards

    Hello Nagarajan
    Thanks for the update. But by checking it, I haven't been able to find anything regarding vendor bank account selection on invoice, or about paying an invoice to vendor secondary bank account.
    Also I have done some testing, and the only way I have found so far to get a vendor invoice paid in the secondary bank account is to set this secondary bank account as the default bank account just before use Payment Wizard and Payment Engine. But this is a poor workaround and I guess there should be a way to make work properly the "Pay to Bank" functionality in invoice.
    Thanks and regards

  • Create a Credit Memo from purchase invoice

    Hi everyone,
    I am trying to create a credit memo from a purchase invoice, but it retuns the following error:
    "RFC is missing"
    I am using the JCO classes to develop this application. this is a sample of my code:
    IDocuments document = SBOCOMUtil.newDocuments(company,new Integer(19));
    document.setCardCode("P00055");
    document.setDocDate(new java.util.Date());
    document.getLines().setBaseEntry(new Integer(2852));
    document.getLines().setBaseLine(new Integer(0));
    document.getLines().setBaseType(new Integer(18));
    int lRetCode = document.add();
    if(lRetCode != 0){
        System.out.println(company.getLastError().getErrorMessage() );
    Do you have any idea about what is the problem?
    Many Thanks.

    Hi everyone,
    the problem was solve. I had to specified the FederalTaxID field on the document.
    just added the following field:
    document.setFederalTaxID("000000000000");
    Thanks.

  • Transform an object draft (purchase invoice) to one final with SDK.

    Some body help me.
              I need transform an object draft (purchase invoice) to one final with SDK.  
    I want make a massive approving puchase invoice in draf mode.
    How can i do that???
    CGM

    Hi,
    Different DI API Versions handles different XML versions.
    see ocompany documentation or you can use the following to reach version 2.
           oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
           oCompany.XMLAsString = False
    You can define in the xml file the version. Even if you have an older version it can work also.
    I have put here a stocktransfer, but i have found a Purchase Invoice
    Here is version 1/2 from 2004ABC versions up to 2007AB ... I had a full function for you.input is the draft absentry.
        Private Function saveDraftAsPurchaseInvoice(ByVal AbsEntry As String) As Boolean
            'oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
            'oCompany.XMLAsString = False
            Dim oPI As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseInvoices)
            If oPI.GetByKey(1) Then
                oPI.SaveXML(My.Application.Info.DirectoryPath & "\sample_Purchase_invoice.xml")
            End If
            Dim oDraft As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oDrafts)
            If oDraft.GetByKey(AbsEntry) = False Then
                Return False
            End If
            Dim FileName As String = My.Application.Info.DirectoryPath & "\18_" & CStr(DateDiff(DateInterval.Second, CDate("2007/01/01"), Now)) & ".xml"
            Dim xmlString As String
            Dim oXmlDoc As New Xml.XmlDocument
            xmlString = oDraft.GetAsXML()
            ' event this is not set you have version 1 using table names!
            'oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode -> version 2 of XML DI API, using DOCUMENT instead
            ' of table name !
            xmlString = xmlString.Replace("<Object>112</Object>", "<Object>18</Object>")
            xmlString = xmlString.Replace("<ODRF>", "<OPCH>")
            xmlString = xmlString.Replace("</ODRF>", "</OPCH>")
            xmlString = xmlString.Replace("<DRF1>", "<PCH1>")
            xmlString = xmlString.Replace("</DRF1>", "</PCH1>")
            xmlString = xmlString.Replace("<DRF3>", "<PCH3>")
            xmlString = xmlString.Replace("</DRF3>", "</PCH3>")
            xmlString = xmlString.Replace("<DRF6>", "<PCH6>")
            xmlString = xmlString.Replace("</DRF6>", "</PCH6>")
            oXmlDoc.LoadXml(xmlString)
            oXmlDoc.Save(FileName)
            Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseInvoices)
            Try
                oDoc = oCompany.GetBusinessObjectFromXML(FileName, 0)
                oDoc.Comments = oDraft.Comments & " DI API ADDED FROM DRAFT"
                oDoc.DocNum = 0
                oDoc.DocDate = Date.Today
                oDoc.DocDueDate = Date.Today
                oDoc.TaxDate = Date.Today
                lRetCode = oDoc.Add()
                'Kill(FileName)
                If lRetCode = 0 Then
                    Dim NewEntry As String = String.Empty
                    Call oCompany.GetNewObjectCode(NewEntry)
                    sbo_application.StatusBar.SetText(NewEntry)
                Else
                    sbo_application.StatusBar.SetText(oCompany.GetLastErrorCode.ToString & " - " & oCompany.GetLastErrorDescription)
                End If
            Catch ex As Exception
                sbo_application.StatusBar.SetText(ex.Message)
            End Try
        End Function
    Regards
    J.
    Edited by: Janos  Nagy on Aug 12, 2008 1:13 PM

  • Report to show all purchase invoices in B1

    Is it possible via a standard report in B1 to pull a list of all purchase invoices in the system (open and closed)??
    Purchase analysis will only show open invoices as far as i know.

    Hello Casserly David ,
    Please try the following query:
    SELECT SUM(T0.DocTotal), T0.DocDate, T0.DocNum,
    T0.DocStatus FROM OPCH T0 GROUP BY T0.DocDate,
    T0.DocNum, T0.DocStatus
    If you want to generate total value of all purchase
    invoices automatically, please hold Ctrl button
    on keyboard and Click on the header of Document total
    column. The total value will appear on the
    bottom of report.
    Regards,
    Wilma Wang
    SAP Business One Forums Team

  • Goods receipt number and purchase invoice nubember info objects

    hi experts
    i have the requirement to build the report with the  info objects of goods receipt number(document) , purchase invoice numbers and purchase document numbers from standard cubes or ods.i have checked in inventory management and purchasing cubes&ods i am not success got the purchase document number it is from ods   (0PUR_O02)  the InfoObject  is 0OI_EBELN(purchasing document number),like this i want InfoObject  for Goods receipt number and purchase invoices from where can i get these fields.
    if u need any more information i will provide.
    thanks and regards
    Sreenivas.

    Hi Ahamed,
    thanks for your reply,do u have any information about purchase invoice number.
    i need one more help from you, how to find out Debtors turnover ratio from Acceount Receivables(AR) (or)G/L (General ledger account).is there any standard queries from Business content,i was checked and i was failed,if you have any solution for this please let me know.
    thanks and regards
    Sreenivas.

  • Error on Adding AR Invoice

    Hi Experts,
    We have error on adding AR invoice (AR), Delivery (AR), Goods Receipt PO (AP), AP Invoice (AP). Please help on this error..
    below is the error message:
    [microsoft] [SQL Native Client] [SQL Server] Conversion failed when converting the nvarchar value '65002 0' to data type int. (CINF)
    Thanks,
    John

    Hi Jon,
    What Rahul meant was, if you have certain user defined fields or tables in SAP B1, these user defined fields can have some data or queries. This data or data returned by queries may have some strange characters in them. So he asked you to disable all your FMS fields and then test to ensure the error.
    I found one more link, they have similar problems as yours due to Store Procedures they had and migrated from 2007A to 8.8. Could this be your situation? Please read through this link - [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting and note the SAP B1 notes.

  • I want to create a query to send auto email to customer while adding AR Invoice

    Hi
    Friends
    I want to create a query to send auto email to customer while adding AR Invoice in SAP Business One 8.82.
    using the following fields & Text like
    email ID from - BP Master
    ' Dear Sir '
    Invoice is generated on the name  ---  BPName
    Quantity                                     ---  22.5 Tones
    Invoice Value                              ---   85,000/-
    date & Time                               ---  12-07-2014 : 16:18
    Thanks & Regards
    XXXXXXXXXX
    Please tell me how to set this in SAP B1.
    Srinivas

    I want to to send email to customer automatically the current invoice details while adding AR Invoice in SAP Business One 8.82.
    using the following fields & Text like
    email ID from - BP Master
    ' Dear Sir '
    Invoice is generated on the name  ---  BPName
    Quantity                                     ---  22.5 Tones
    Invoice Value                              ---   85,000/-
    date & Time                               ---  12-07-2014 : 16:18
    Thanks & Regards
    XXXXXXXXXX
    Please tell me how to write query in stored procedure to send email automatically.
    Srinivas

  • How Billing doc.created from purchase invoice in Third Party Sale

    Hi All
    Our client requirement  has been mapped as sap third party sales process .
    But if the vendor is delivering less qty .  than the qty. for which Sales ordered  has been  created, How to create the  Sales billing Doc.  according to the purchase invoice so that Sales Billing  Doc. should be created for the delivered qty. only .
    Please suggest the configuration  & how the data is flowing from the Purchase Invoice to the Sales Invoice.
    Thanks in advance
    Ashok

    Hi
    you can achieve your requirement by following
    T-Code  VTFA (copy control Order to Billing)
    use you Third party order type and billing type
    Go to Item category (if Standard use TAS)
    there is a option "BILLING QUANTITY"
    user there "E" Goods receipt quantity less invoiced quantity"
    Hope it will solve your problem
    Cheers
    Shambhu Sarkar

  • Purchase Invoice (AP Invoice)

    Greetings from India.
    we have some issues with some purchase invoice AP invoice.
    we buy some materials and some consumables which are second sale.  The supplier give us an assessable tax invoice for us to avail the CENVAT tax credit, which is a different invoice then the Original invoice.
    how are we to pass this "with copy from GRPO" and how to tabulate the amount for CST/VAT, Excise, Packing, Freight and how to pass the Invoice.
    i wish and hope that i get some kind advice and guidance in this issue.
    thanks and regards.

    Hi
    This is the case of First Stage Dealer & Second Stage Dealer For this type of Invoice.
    1.In which amount CST/VAT are calculated put this Rate in to Unit Price Field
      so Unit Price * Qty = Total Amount CST/VAT calculated on it.
    2.In which amount Excise are calculated put this Rate in to Assessable Value (INR) Feild
      so Assessable Value * Qty = Total Amount Excise calculated on it.
    3.Enter freight in to bottom level of GRPO if no Excise on freight  OR
    4.Enter freight in to Raw level of GRPO if Excise on freight
    But make sure all activity done at GRPO level because all accounting effect start at GRPO level.
    Thanks,
    Srujal Patel

  • Purchase Invoice Report fields

    hi,
           I need to create a purchase invoice drilldown report. the hierarchy for report is..
    Company> Plant> Location >Vendor->Invoice
    here company and plant are available in RSEG. Where can i find  Storage Location and vendor?..
    Thanks
    Sri

    Hi Sri,
    If you referring to storage location, then it is only relevant during goods movement & not during invoice posting. there is no option to change the storage location while posting the invoice.
    If my understanding of the location you're mentioning is not correct, please let me know.
    If helpful award points
    Regards,
    Vivek

  • Purchase Invoice

    Hi all,
    how to handle Purchase Invoice Including or Excluding Tax.
    For eg.
    Client is having Export Business in Foreign countries and for that they are making Export Invoice and with in country they are using normal invoice system.
    If they made A/P Invoice including freight charges and landed Cost,JE posted is.
    Credit 
    Vendor Account----724
    Debit
    Tax Account--14
    Purchase price gain--10
    Goods Invoiced Acct ---700 .
    But in case of export invoice they are having JE
    Credit
    Vendor Account---- 700
    Let Abc Acct----
    14
    Let Xyz Acct----
    10
    Debit
    Tax Account--14
    Purchase price gain--10
    Goods Invoiced Acct ---700 .
    how to do this in SAP B1.
    Thanks,
    Neetu

    Hi
    For export AP invoice create manual correction journal entry adjusting the automatic journal entry.
    Another method if only specific items are used for export purchase would be to try "set G/L accounts by Item group" in Item master with the required GL postings set in "Purchase acct" of Item group in Administration setup.
    But if u insist on automatic journal entry, create separate series for export AP invoice and use stored procedure for the journal postings, but for this please consult experts in technical forum.
    Hope this will help you.
    Edited by: Rui Pereira on Dec 9, 2008 4:58 PM

  • Purchase invoice tables

    Dear all,
    We're trying to find out purchase order invoice tables. We have found RBKP as header and RSEG is material detail. However we cannot match any of them with MSEG material transactiond because any of them does not contain MSEG document number as a reference document or something. Also we've tried BSEG bur it is the same story. Can anyone tell us that if there is a table which links MSEG (material transactions) and RSEG (purchase invoice items) ? Thanks in advance.
    Levent Arslan

    Hi there,
    I am not sure if there's anything that matches your need. You might want to link a PO table like EKPO inbetween via a query -SQVI
    Other wise you should have referenced or mentioned the Gr # in teh invoice.. which is the only way you can link them
    You can also link it via GR/IR account, however not sure if this fits your need.

  • Excise Sales Gate Pass with Purchase Invoice details.

    Hi All,
                   While making a Excise Sales Invoice,we need to link it with the corresponding items Purchase Invoice details for Generate Excise Sales Gate Pass.
    How can it be done in SAP B1.
    Please guide me.
    Thanks in advance
    Rajesh

    Hi
    Gate pass is not there in B One. you can create one UDF in invoice and put the details.
    regards

Maybe you are looking for

  • Need help in correcting the BW Delta loads

    Hi All, I have deleted entire data of the data targets and the init request of that data target, but I need to correct that now, please guide me with ur suggestions: I have tried with the following options, but it is not bringing the old data from th

  • Thai Codepage on MAC OSX 10.4.8

    Hi All Export, I install sapgui on mac osx sussesfully, but I cannot use it becase problem thai codepage. help me please. thank you all expert

  • Is there a way to have G5 transmit bluetooth to stereo receiver

    Is there a way to have G5 transmit bluetooth to stereo receiver

  • Help with case statement

    Can any one whats wrong in below sql....Error is missing expression ...? SELECT CASE WHEN A.STG_RECEIVER_MODEL_COUNT = 0 THEN 'STAGING RECEIVER MODEL CAPABILITY CONSISTS OF 0 RECORDS' WHEN A.STG_RECEIVER_MODEL_CAP > 0 THEN CASE WHEN ( B.ERROR_COUNT_F

  • Edi for purchase order

    hi, can any one say me the step to send a Purchase order through an EDI