Add Draft A/R Invoice

Hi,
I am creating a Draft Invoice; the lines creates fine and when I create the Draft I get following error:
No matching records found (ODBC -2028)
It works for all customers except 2 customers...???
Can you help me here?
Thank you,
Rune

are they on hold?

Similar Messages

  • Converting draft document to invoice document

    Hi everyone -- new SBO developer here, trying to come up to speed on the SDK.  I'm curious how you manage to "convert" an existing draft document (in my case, a draft A/R invoice) to an actual A/R invoice, and then add it at the same time.  Say, for instance, you were to add an "Add" button to the Document Drafts form (3002) so the system would convert the draft to an actual document (just like it does when you double-click the matrix line) and then add that document right then-and-there.
    Right now, my guess is that you simply change several properties on the document object, but I cannot figure out which ones.  I'm assuming I can call the Add method once I change the right properties.  Am I on the right track?
    Thanks for your help!
    Anthony

    Hi Anthony,
    Surprisingly, you cannot "convert" a draft document into a real one.
    If I remember correctly, you will have to copy the data (header + line-by-line) into the invoice (When you want to create an Invoice e.g. based on an order it is a bit easier, but still you have to touch every line setting the reference to the base document... - check-out the sample code in the helpfile + the SDK "COM DI" samples).
    DI API is very much "straightforward" in such things.
    As you certainly already discovered, you have to specify the exact object type when you request a business object (it's just a "container"/reference - no real object on your side of the interface) from Company object.
    This means that in DI API itself would have to happen some more things than just to set a value in case you wanted to set the "type" from draft e.g. to invoice...
    Therefore this feature is unfortunately not yet available.
    Regards,
    Frank

  • We are Not able to Add, approved A/P invoice - Error - Tax code Missing

    Dear Experts,
    In A/P -> A/P service Invoice
    When We are going to Add Approved Invoice ,system can not allow . This
    invoice is go through a approval process ,system can not allow to change any
    of document row during approval process or after approval process.
    we are unable to add tax or remove line item after approval.
    We are Not able to Add, approved A/P invoice - Error - Tax code Missing
    [A/p Invoice Row -Tax code] Line 3 [Message 3513-14]
    I think ,It should allow the system to edit the row tax or amount after or during
    approval process

    Don't worry,AP invoice is not get posted,it will be saved as draft only,
    Default tax code for purchase documents using tax code determination.
    Create new ap invoice with tax code and send it for approval.
    Orginator should ensure all mandatory fields in document are entered correctly before
    sending it for approval.

  • Add Discount % In AR Invoice

    How can i add Discount% in AR Invoice Document.I had set the discount % in Document. But after Adding The discounted amount not correctly updated in The Invoice.How can i set.My code as follows.
    Dim RetCode As Integer
    Dim OInvoice As SAPbobsCOM.Documents
    Dim TPrice As Double = 0
    Dim Disc As Double
    OInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
    For Each row As DataGridViewRow In dgvitem.Rows
    TPrice = TPrice + ((CType(row.Cells("Price").Value, Double) * CType(row.Cells("Quantity").Value, Double)))
    Next
    Disc = (TPrice * CType(txtper.Text, Double) / 100)
    With OInvoice
    .Series = My.Settings.Series
    .CardCode = txtcustcode.Text
    .DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
    .DiscountPercent = CType(txtper.Text, Double)
    .UserFields.Fields.Item("U_Mode").Value = "CA"
    With .Lines
    For Each row As DataGridViewRow In dgvitem.Rows
    .ItemCode = row.Cells("PartNo").Value
    .Quantity = CType(row.Cells("Quantity").Value, Double)
    .WarehouseCode = My.Settings.MWhscode
    .Add()
    Next
    End With
    .DocTotal = TPrice - Disc
    RetCode = .Add()
    If RetCode <> 0 Then
    MsgBox(oCompany.GetLastErrorDescription)
    Return Nothing
    Else
    Return oCompany.GetNewObjectKey()
    End If
    End With
    How can fix the error, Please help

    Hi,
    Try this:
    Dim RetCode As Integer
    Dim OInvoice As SAPbobsCOM.Documents
    Dim TPrice As Double = 0
    OInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
    With OInvoice
      .Series = My.Settings.Series
      .CardCode = txtcustcode.Text
      .DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
      .DiscountPercent = CType(txtper.Text, Double)
      .UserFields.Fields.Item("U_Mode").Value = "CA"
      With .Lines
      For Each row As DataGridViewRow In dgvitem.Rows
      .ItemCode = row.Cells("PartNo").Value
      .Quantity = CType(row.Cells("Quantity").Value, Double)
      .Price = CType(row.Cells("Price").Value, Double)
      .WarehouseCode = My.Settings.MWhscode
      .Add()
      Next
      End With
      RetCode = .Add()
      If RetCode <> 0 Then
      MsgBox(oCompany.GetLastErrorDescription)
      Return Nothing
      Else
      Return oCompany.GetNewObjectKey()
      End If
    End With
    Regards,
    Csaba

  • Can't add Drafts to Mailbox view

    Hi Guys,
    Had my iPhone 5S a few days and I've come up with an issue in the Mail app, if I try to add "Drafts" to the Mailbox view at the top the app crashes, any other mailbox works, Trash, Junk, Sent etc but just not Drafts.
    Anyone else experienced this, I've already had to reinstall iOS 7.0.1 as the handset went in to DFU mode on the first day from trying to upgrade to 7.0.1, would prefer not to do it.
    Thanks,
    Matt

    Hi,
       I found the difference between the two dev systems.
       In the new system, check the table BSP_WD_EXT_HIST, set field BSP_APPL='ZBT115H_SLSO', there is no result. So the system suppose that the view is not enhanced, and will call the standard class.
       Set breakpoint in class CL_BSP_WD_ENHANCEMENT_API->CHECK_TARGET_CLASSES() and CL_BSP_WD_ENHANCEMENT_API->GET_CLASSES_FROM_EXT_HISTORY().
    method GET_CLASSES_FROM_EXT_HISTORY .
       select single * from BSP_WD_EXT_HIST into ME->EXT_HISTORY
                       where BSP_APPL = ME->ENH_TARGET_BSP_APPL and
                             VIEWNAME = ME->VIEWNAME.
       if SY-SUBRC = 0.
         if ME->EXT_HISTORY-CUST_CONTROLLER is initial.
           raise NOT_DERIVED.
         else.
           CV_CONTROLLER_CLASS = ME->EXT_HISTORY-CUST_CONTROLLER.
           CV_CONTEXT_CLASS = ME->EXT_HISTORY-CUST_CONTEXT.
         endif.
       else.
         raise NOT_FOUND.
       endif.
    endmethod.
    ME->ENH_TARGET_BSP_APPL = 'ZBT115H_SLSO' and  ME->VIEWNAME = 'SOHOverView'

  • DI: Add Serialnumbers to AR Invoice Lines

    We are having a difficult time adding serialized items to AR invoices through the DI. It doesn't seem to be happy doing this no matter what we try. Probably a rookie mistake but I have tried several different ways of doing this with no luck. We get a 5002 error when trying to add the invoice if the serialized items are included on it. Works fine with just the non-serialized.
    Here is the current iteration of the code. The DB lookups work fine and return the desired values. The exact same serialized items can manually be added to an invoice without any issues. If anyone can offer some advice I would  greatly appreciate it.
    Thanks,
    Matt
    Dim EINV As SAPbobsCOM.Documents
    Dim SerialNumber As SAPbobsCOM.SerialNumbers
    Set EINV = Company.GetBusinessObject(oInvoices)
    'Snip
    'EINV setup and non-serialized items added
    'No problems until we try adding serialized items
    'All values return properly and can be added manually to an invoice.
    'Fails with a 5002 when EINV.Add is invoked after serialized items are added.
    'EINV.Add works fine with serialized code disabled.
    If SerialRS.RecordCount > 0 Then
       SerialRS.MoveFirst
       Do While SerialRS.EOF = False
        STech = SerialRS.Fields("TechNumber").Value
        SItemID = SerialRS.Fields("ItemID").Value
        SSerial = SerialRS.Fields("Serial").Value
        If STech = TechNo Then
          EINV.Lines.Add
          EINV.Lines.SetCurrentLine (EINV.Lines.Count - 1)
          EINV.Lines.ItemCode = RTrim(SItemID)
          EINV.Lines.Quantity = 1
          EINV.Lines.TaxCode = "ZERO"
          EINV.Lines.WarehouseCode = TechNo
          Set SerialNumber = EINV.Lines.SerialNumbers
          SerialNumber.SetCurrentLine (SerialNumber.Count - 1)
          Set RecSet3 = Company.GetBusinessObject(BoRecordset)
          RecSet3.DoQuery ("select top 1 sysserial from osri where intrserial = '" & SSerial & "'")
                                                                                    If RecSet3.RecordCount > 0 Then
              SerialNumber.InternalSerialNumber = SSerial
              SerialNumber.SystemSerialNumber = RecSet3.Fields("sysserial").Value
           End If
          End If
          SerialRS.MoveNext
        Loop
    End if
    Addresult = EINV.Add
    If (Addresult <> 0) Then
      Call Company.GetLastError(nErr, errMsg)
      If (0 <> nErr) Then
         MsgBox ("Found error:" + Str(nErr) + "," + errMsg)
      End If
    End If

    This is evidently an issue with adding non-serialized items to an invoice before adding serialized items through the DI. It looks like the DI was trying to add the serialnumbers to the non-serialized doclines despite our best efforts to add them to the appropriate items. Once we changed the order of our code and added the serialized items first it worked just fine.
    On a related note, if you add individual lines to an invoice for the same item (multiple lines of single quantity for the same item instead of a single line with a quantity > 1) the DI will only add serialnumbers to the first docline occurence of the item in question.

  • Rounding of document total in draft A/R Invoice

    Hi All,
    I am creating document draft of A/R invoice through user defined screen (DI API). after creating the draft document, when I see the actual draft document through document draft report in SAP, the document total has the difference of 0.1. where should the rounding be changed in system? document and system currency is INR. there is no rounding given in currency setup. i have not given any rounding in document also.
    the values in user defined draft are :
    total before discount : 19144.8
    discount % = 40
    total after discount : 11486.88
    tax (12.5 % for all items in the document )
    tax = 1435.86  (12.5% of total after discount)
    rounding = 0.00
    doctotal : 12922.74
    when it is saved, the system draft document shows following value:
    total before discount : 19144.8
    discount % = 40
    total after discount : 11486.88
    tax = 1435.85  (12.5% of total after discount)
    rounding = 0.00
    doctotal : 12922.73
    if you check, the value is different in tax field. system has calculated tax on 11486.8. whereas, I have calculated tax on 11486.88. and this only gives the difference of 0.1 in doctotal. now, anybody can guide on why this is so?
    thanks and regards,
    Binita
    Edited by: Binita  Joshi on Oct 8, 2009 11:05 AM

    Hi Dwarak.....
    Run time total sum is not possible throgh FMS else you would have to to SDK work. But if you want it to be displayed then you can display it into the simple PLD. Whenever your client requires he will fill the AR invoice details and just click on the print preview. This way you can solve the purpose.......
    Regards,
    Rahul

  • How To Add Freight Amount in Invoice Before the Invoice is Posted Through SDK

    Dear All,
    I have a requirement in SAP B1 9.0 where the user want to add the freight amount in the freight window based on an udf value automatically .
    So if there is an possibility of adding the freight amount based on an udf calculated value though SDK before the Invoice get added in the Database.
    Please suggest if this is possible through SDK or any work around for this scenario in SAP.
    Thanks & Regards,
    Amit

    Hi Amit,
    Here is a way to do it via UIAPI:
    Setting a Freight by the UI API ?
    If you need to do it via DIAPI, have a look here:
    How to update amount in freight column(INV3) of A|RInvoice through SDK
    DI Copy AP(AP Invoice) from PO(Purchase Order)
    Populating Freight Charges on Sales Order
    Freight in A/R Invoice
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Add interest on ar invoice

    Dear expert,
    If our company want to do financing for our customer to buy our product (such credit card installment payment) how to apply on ar invoice?
    eg.
    our lcd set worth 1200 usd , customer x pay down payment 200 usd and make 10 times installment with 12% annual interest
    so our first invoice should 100 + (1000 * 1%) usd , second invoice should 100 + (900 * 1%) usd
    should we apply interest manually calculate or sap b1 has facility to add automatically
    Thanks

    Hi,
    I don't think there is a built-in function in B1 already. You may post a DRQ here:
    /community [original link is broken]
    Thanks,
    Gordon

  • How to print draft of AR invoice by making query

    Hi, do you know how I can make query of AR invoice draft so that the UDF, header, row items can be showed in it?
    Thanks.
    Raymond
    Edited by: Rui Pereira on Aug 6, 2008 4:11 PM

    raymond,
    Develop a query and link it to query manager
    to design a query print layout template.
    Can give me details what you want to be in report ?
    Jeyakanthan

  • SRM 7 ECS : "Add contract item" to Invoice

    Hello,
    We are creating invoices that will be posted to ECC 6.
    Those are " contract call-off" invoices without PO reference.
    What config should be done to get the option "Add item/Contract item" working? Currently it desperately remains grey...
    Thanks in advance.

    Hi
    Can you elaborate a little bit? It is not clear what I could do regarding Acount Assignment types and they are mapped with ECC as a standard.
    I just need to use the shortcut in the portal to call the contract straight away instead of having to go into the item details.
    Thanks

  • Add Additional Expenses to Invoice

    Hi,
    I have a problem that I hope you can help me with. See description below:
    Workflow
    1. User genrates delivery in B1 and adds info. Performs external process to calculate shipping expenses.
    2. The expenses calculated in step get filled in a UDF on the Delivery.
    3. User opens A/Rinvoice and converts the delivery added in Step 1 to an invoice.
    At this stage, I would like to be able to pull the expenses from the UDF on the delivery to the invoice.
    Please advise on best solution.
    This is a big problem for us. Any help is appreaciated.
    Thanks.

    Hi,
    I think you can try this approach:
    1. Create a UDF in the Invoice to store the info (if its already created just for testing create another one).
    2. In the Invoice UDF create a Formatted search that based on the BaseType and BaseEntry of the first line of the invoice (Table INV1), query the UDF Field in the delivery (ODLN).
    If the invoice is based in more than one delivery this approach will not work and you will have to develop a solution for this (that is not that difficult).
    Hope it helps :-D
    -M

  • Add line types  in invoice

    when i press type lov in invoice line appear
    item
    freight
    miscellaneous
    withholding
    i want to add another type like custom - bank charges .... and so on
    how can i add these types.

    Hello.
    You cannot. INVOICE DISTRIBUTION TYPE lookup code is System Access Level, so you cannot modify it.
    Octavio

  • Problem to add the Note for Invoicing Document using Idoc

    Hi All,
    I would like to use the idoc to create the Invoicing document (MIRO). it seem can't use standard segment E1EDKT1 to create the standard text.
    Anybody have any suggestion to create this standard text?
    Regards,
    Luke

    Hi Krishna,
    I checked WE60 and tried use the E1EDKT1 to create the standard text for invoicing document.
    Document created successful but can't add the standard text in this document.
    also i try to find some exit for update the standard text. i can't find out any exit after creating the invoiceing document.
    would you please give more advise to me ?
    Regards,
    Luke

  • Add PA_NON_LABOR_RESOURCES.DESCRIPTION in Invoice Report

    I need to modify the Invoice Report by adding the PA_NON_LABOR_RESOURCES.DESCRIPTION for each line in the invoice (q_lines query).
    I'm not sure how to tie a record in ra_customer_trx_lines back to pa_expenditure_items (also ensuring a one-to-one mapping) so I can use the NON_LABOR_RESOURCE column to lookup the description. I don't see any direct or indirect foreign keys between the two tables (customer trx lines and expenditure items). Any help will be greatly appreciated.
    Thanks,
    Ahsun Jilani

    Don't think there is a direct link back. You can use CUSTOMER_TRX_ID to tie back to SYSTEM_REFERENCE in PA_DRAFT_INVOICES_ALL but the PA invoice will not contain a one-to-one relationship with the expenditure items as you can't generate PA invoices to that level of detail. From PA_DRAFT_INVOICES you can get down to PA_DRAFT_INVOICE_ITEMS and then to PA_CUST_REV_DIST_LINES_ALL where you can then get to PA_EXPENDITURE_ITEMS. How the PA invoice is created depends on the invoice format you have used, the lowest level I can see is by expenditure type so you'll find that the invoice lines contain grouped items based on the type - well, as far as I can see anyway!!
    Graham

Maybe you are looking for

  • Table in GL a/c

    Hi I am new to Oracle Financials. I am trying to find out how to find the table FLEX_VALUE_SET_ID. I could find table FND_ID_FLEX_STRUCTURES_VL from front end through HELP from the Account setup screen. Could anyone navigate me to find the FLEX_VALUE

  • PR creation at the time of release of external activity

    dear, is there any way to restrict system for creation of purchase requisition for material components only not for the external activity itself. in our system setteings the pruchase requistion are created for extenal activitiy as well as for materia

  • Credit management automatic credit control use of credit group

    Hello gurus 1)In the credit management we have credit groups( which enables us to combine different sales document types for the purposes of credit management). In the simple credit check also we will assign the doc types to check the credit. Then pl

  • HT1600 Apple TV (3rd generation) cannot update

    Recently, my Apple TV (3rd generation) showed that I can update it. But while updating, it showed, "update was not successful". I have tried restart and restore it, but it did not work as well Do you guys have any ideas about how can I fix it ?

  • Why am I missing songs after reorganizing files?

    This morning did everything I usually do but iTunes couldn't locate any song files. So I rebooted and still had the problem. Went to Edit/Preferences and saw that folder location was pointing to the default folder on C:, but my music is on an externa