Create invoice from delivery

Hi,
i have different  sales order numbers.against all these sales orders a delivery is created.now i want to create a invoice against this delivery.is there any bapi/fm to create invoice using this delivey only.(i dont have any po details i.e.no po is created)...can any one help me in finding this ...its an urgent thing.....thank you...
Thanks,
Bhaskar.

You can use transaction VF01 in batch input mode (call transaction VF01 using ...)
To get an idea of how batch input data should look like for this transaction use SHDB transaction before - to record an example VF01 transaction.
Preparing batch input data for transaction VF01 is quite simple - all you have to do is to enter delivery document number and have diskette icon clicked.
good luck

Similar Messages

  • How create an invoice from delivery using an idoc

    Hi expert,
    I'll like recive an help to know how implement the following solution: we would create an invoice from delivery sent into the idoc structure.
    In detail the process that we would implement is:
    To use an output type for outbound delivery and to assign a program to it in order to create an idoc when the output type is processed; when the idoc is created the program has to call the transaction VF01 to create the invoice from the idoc.
    Which type of idoc do we have to use?
    How the VF01 call transaction should be excuted?
    Many thanks in advance
    Regards
    Roberta

    Check with following standard basic IDoc types:
    INVOIC01- Invoice/Billing document
    INVOIC02 - Invoice/Billing document
    INV_ID01 - Invoice
    SISINV01- SIS - billing document
    And refer following link for understanding: [iDoc|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=HOME&title=StepbyStepprocedureforcreationof+IDOC&decorator=printable]
    I hope this can assist you.
    Thanks & Regards
    JP

  • Problems creating invoice from order (DI API and SBO)

    Hello all!
    I´m getting various tax problems using the following code to automatically create invoices from existing orders.
    For Each currentKey In arrABEntrys
      objInv = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
      objAB.GetByKey(currentKey)
      objInv.CardCode = objAB.CardCode
      With objInv.Lines
        .BaseType = SAPbobsCOM.BoObjectTypes.oOrders
        .BaseEntry = currentKey
        .BaseLine = 0
        For i = 1 To objAB.Lines.Count - 1
          objInv.Lines.Add()
          BaseType = SAPbobsCOM.BoObjectTypes.oOrders
          .BaseEntry = currentKey
          .BaseLine = i
        Next
      End With
    If objInv.Add() = 0 Then
    Else
    End if
    The result of objInv.add() was first "5002 - 'Tax Definition (1)' (a very informative message to me).
    Then I checked my admin tax settings and put a check on "EU".
    The next time the result was "10 - Customer´s tax ID not defined OINV.LicTradNum"
    Actually, I don´t want to pre-set any fields in the invoice, because the order looks complete to me.
    By the way: The error occurs in SBO, too.
    Thanks for help in advance!
    Best regards
    Marian

    Hi Marian,
    Your Error "10 - Customer´s tax ID not defined OINV.LicTradNum" is not working (through DI and in SBO)
    occurs because your "Federal Tax ID" is not set up against the Business Partner. (This is on the main page of the Business Master Data Screen).
    Set this up and it will work in SBO and the DI API!

  • Unable to Create Invoice from iSupplier

    I am unable to create invoice from isupplier module,
    the moment i click on create invoice "with a PO" or "without a PO" under finance Tab,
    i get this error "You cannot complete this task because you accessed this page using the browser's navigation button(the browser Back button, for example).
    But I have not accessed the pages with any browser navigation buttons at all.
    please advise what may be preventing me from creating invoice?

    This is caused by the incorrect setup of the browser.
    The browser's "Temporary Internet Files" setting for "Check for newer versions of stored pages" was set to "Never". This caused the browser to pull up the old data instead of querying the server.
    Please make sure the browser's "Temporary Internet Files" setting for "Check for newer versions of stored pages" is set to "Automatic".
    You Used Your Browser's Navigation Buttons To Get Here (Doc ID 1214138.1)

  • Can we create invoice from po instead of receipt in P2P

    Hi,
    how to create invoice from po in p2p instead from receipts.
    Thanks and Regards,
    Srikanth

    Hi Srikanth,
    You don't need a receipt to create an Invoice.
    All depends on your matching preferences.
    2-way. 3-way, 4-way - Please go through the documentation.
    Thanks
    Vinod

  • Cannot create A/R Invoice from Delivery

    Hi everyone.
    I have a Delivery based on a Sales Order and want to make an A/R Invoice from the Delivery using the "Copy to" button on the Delivery form. When I do that I get the following message:
    "One or more down payment that are linked to the base document(s) have not been paid. Continue?"
    When I press "Yes" the following error occurs:
    "Business partner of copied down payment document must be the same as business partner of target document."
    But I didn't create any down payments.
    Do you have any suggestions as to what may be the cause of the problem?
    Vladimir.

    Hi Vladimir,
    What is your B1 version and PL? Is there any relation between your question and SDK?
    Thanks,
    Gordon

  • Creating Invoice from a Delivery Note using SDK

    Hi,
    I am working on SAP 2005 A Patch 4 with SQL 2000 SP 4. I am using VB.NET (VS2005). I am trying to create a Invoice from a Delivery note which is created based on a Sales order.
    I am getting the following error
    Error occured while saving Invoice: 0 - '15' is not a valid value for field 'BaseType'. The valid values are: '-1' - '',  '0' - '',  '23' - 'Sales Quotation',  '17' - 'Sales Order',  '16' - 'A/R Returns'
    The Code that i used to create the invoice is as follows
    Dim oInvoice As SAPbobsCOM.Documents
            oInvoice = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oDelivery = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
            Try
                If oDelivery.GetByKey(iDlvNo) = True Then
                    sTaxCodes = sTaxCode
                    oInvoice = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                    oInvoice.CardCode = oDelivery.CardCode
                    oInvoice.SalesPersonCode = oDelivery.SalesPersonCode
                    oInvoice.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    oInvoice.DocumentSubType = SAPbobsCOM.BoDocumentSubType.bod_None
                    oInvoice.Address = oDelivery.Address
                    oInvoice.ShipToCode = oDelivery.ShipToCode
                    oInvoice.Address2 = oDelivery.Address2
                    oInvoice.JournalMemo = "Invoice - " & oDelivery.CardCode
                    oInvoice.Comments = "Based on Delivery  " & oDelivery.DocNum
                    oInvoice.PaymentGroupCode = oDelivery.PaymentGroupCode
                    oInvoice.DocDueDate = Now.Month & "/" & Now.Day & "/" & Now.Year
                    For iRowNo = 0 To oDelivery.Lines.Count - 1
                        If iRowNo > 0 Then
                            oInvoice.Lines.Add()
                        End If
                        oDelivery.Lines.SetCurrentLine(iRowNo)
                        oInvoice.Lines.ItemCode = oDelivery.Lines.ItemCode
                        oInvoice.Lines.Quantity = oDelivery.Lines.Quantity
                        oInvoice.Lines.Rate = oDelivery.Lines.Rate
                        oInvoice.Lines.BaseType = SAPbobsCOM.BoAPARDocumentTypes.bodt_DeliveryNote
                        oInvoice.Lines.BaseEntry = iDlvNo 'DocEntry of Delivery Note
                        oInvoice.Lines.BaseLine = iRowNo
                        oInvoice.Lines.TaxCode = sTaxCodes
                    Next
                    iReturnValue = oInvoice.Add()
                    If iReturnValue <> 0 Then
                        pcompany.GetLastError(iReturnValue, sErrorDescription)
                        Throw New Exception("Error occured while saving Invoice: " + _
                                           iErrorNo.ToString() + " - " + sErrorDescription)
                    Else
                        MessageBox.Show("Invoice created succesfully")
                    End If
                End If
    Since in the error message it has specified that i have given the BaseType as Delivery which has a value of 15 i changed that from bodt_DeliveryNote to bodt_Order which has a value as 17.
    When i tried creating the invoice again it gave the error
    Error occured while saving Invoice: 0 - Target item number does not match base item number.  [RDR1.TargetType][line: 2]
    I am not able to proceed further ... can any one help me
    thanks in advance
    Ganesh

    Greetings,
    I am having a similar problem, only I'm doing it as suggested in Louis' reply.  In fact I copied that code and tried it.  It's giving me a 2028 error with no description.
    I had been doing it slightly differently and the error I was getting was 5002 "Item no. is missing [INV1.ItemCode][line 2]"  I don't have 2 lines and I'm certain I have an item code.  The numbers I'm putting in for baseentry & baseline are absolutely in the table and the order is open.
    Here is that code:
            oDNUpd = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oDNUpd.CardCode = CardCode.Text
            oDNUpd.Lines.BaseEntry = CInt(SalesOrder.Text)
            oDNUpd.Lines.BaseLine = CInt(baseline.Text)
            oDNUpd.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
            oDNUpd.Lines.Add()
            lretcode = oDNUpd.Add
    I'm using SBO 2005 patch 7 (and the new dll).  I have similar code doing a stock transfer and it's working fine.
    Thanks for any suggestions you can offer
    John

  • Can't create invoice from the delivery

    Hello.
    Ship out the trade order then i created the delivery and PGI successfully.
    But when i went to VF01 to invoice the delivery i can´t create it.
    I take a look to the LOG and this is what i found:
    Error Log
                 6910517662 000010 The item is blocked for billing
    I double click the item and in the configuration of Financial processing there is a field called "Block" but there is nothing selected over there. Do you have any suggestion?
    I appreciate your help

    The item is blocked for billing
    Apart from the suggestions, if that particular material is kept open in some other system, then also, system will throw this error.  Also ensure that in material master Sales Org.1 view, this material is not blocked against the field "X-distr.chain status"
    thanks
    G. Lakshmipathi

  • Function module to create Invoice from the Delivery no ?

    Hi All,
    Is there any way (function module) to create an Invoice from the Delivery no and the Billing Type ? We do not want to go with BDC for transaction VF01.
    Details:
    We want to generate a pro-forma invoice while saving the delivery. We will have 'Special Function' (NAST-NACHA = 8) in the output determination and a routine would be called from there. That routine would contain the code to generate the Invoice. We will have only the 'Delivery no and the Billing Type'  in that routine. So trying to find any function module which can create an Invoice from the Delivery no and the Billing Type.
    Any suggestion / hint  is welcome.
    Thanks,
    Ashok

    Hello Ashok Satapathy ,
                                        The only option  for you is to call the FM "GN_INVOICE_CREATE" .
    There is no special FM availaible to pass only the delivery number at this point.
    You need to retrieve all the delivery information details and need to pass it to the FM "GN_INVOICE_CREATE".
    Thanks,
    Greetson

  • Customer Down Payment invoice (from delivery) not automatically assigned

    If I create a Down payment invoice from Sales Order (and I paied it) on the final invoice the sistem automatically assigne the down payment invoice on the final invoice for the order.
    If I do the same think but crerating the Down payment invoice from the delivery (and I paid it) when I create the final invoice I need to assigned it manually.
    SBO 8.81 PL 06
    I haven't found any set up for this, so I think is an error the sistem must work on the same way if the document is copied from the Sales order or delivey.
    Someone know if there is some set up? or I need to open an error message to SAP?
    Thanks

    My question is:
    If I make a sales order.
    I create a down payment invoice using copy from SO.
    I make the incomuing payment for the down payment invoice.
    I create the delivery from the SO
    I create the invoice from the delivery
    The system apply automaticaly the down payment invoice to the invoice (because I select a delivery that is linked to the so that I used to create the down payment invoice).
    If I make a sales order.
    I create the delivery from the SO
    I create a down payment invoice using copy from delivey.
    I make the incomuing payment for the down payment invoice.
    I create the invoice from the delivery
    The system DO NOT apply automaticaly the down payment invoice to the invoice (even if also this document is linked to the delivery that I use to create the down payment invoice).
    I know that I can select it manually. But I can select it manually also if I use the SO to create the down payment instead of the
    delivery. Why if the situation is the same in the firs case the system do it automatil^cally and in the second case I need to do it manually?
    Of course if I create a Down Payment invoice without selecting any document (SO, delivery..) the system don't know if you want to apply the payment to the final invoice.
    But If I select the delivey to create the down payment (the same if I select the SO): I want to apply the down payment to the final invoice of this delivery and not to another delivery.

  • Create Invoice From a Draft

    Hi everybody,
                        I'm trying to create an invoice from an existing draft by code and i can't...i use this code to do this, but it create a new draft instead an invoice.
    oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
    oCompany.XMLAsString = False
    oDrafts = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
    oFacts = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
    oDrafts.GetByKey(20)
    oDrafts.SaveXML("C:\draft.xml")
    oFacts = oCompany.GetBusinessObjectFromXML("C:\draft.xml",0)
    oFacts.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
    oFacts.Add()

    Hi Mariano Bertini,
    Can you pls share the code as i'm facing the same problem for conversion of open draft a/r invoice to invoice

  • How to stop creating mutiple performa invoice from delivery document

    case -
    i am creating stock transfer performa invoice on the basis of stock trf purchase order and delivery document. i want to stop creating multiple performa invoice.
    Mukesh Kumar

    If your requirement is to generate a certain output automatically only once for a certain document, you can set it for the output type in  transaction NACE (for example - NACE --> select the application --> "Output types").
    There's a "Multiple issuing" indicator (VN_T685B-MEHRF) through which you can control the desired behaviour.
    Edited by: Csaba Szommer on Jul 28, 2010 1:40 PM
    Sorry, I misunderstood your question...please neglect the suggestions above...
    As per SAP online help there's no limitation how many proforma invoices can be created from one delivery / sales order:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/dd/5610c9545a11d1a7020000e829fd11/frameset.htm
    If you want to restrict this, I think you should follow KC's suggestion and modify your copy control routine.
    Since in standard system this function does not exists you won't find suitable copy routine. That's why - in my opinion - you should use the same copy routine which has been set till now - you just have to modify it (add an ABAP code to check whether proforma invoice is already created or not; maybe you can check the entries in table VBFA)
    Edited by: Csaba Szommer on Jul 28, 2010 1:46 PM

  • Copying Invoice from Delivery notes

    Hi,
    I want to create an Invoice document from a Delivery document. Is there a straight-forward way in DI-API to do that?
    Please post any code segment you have.
    I'll appreciate your help.
    Thanks.
    -Geetha

    Hi Geetha,
    no there isnt
    you have to copy all properties with your own code
    oInvoice.CardCode = oDeliverNote.CardCode
    and "connect" the Lines
    oInvoice.Lines.BaseLine = oDeliverNote.Lines.LineNum
    oInvoice.Line.BaseEntry = oDeliverNote.DocEntry
    oInvoice.Line.BaseType = 15
    regards
    David

  • Creating invoice without delivery document?

    Hello Guys.
    Material is allready shipped to customer without any delivery documents, now in sap system sales order shows as open.
    Requirement is to bill the customer, how can I create an invoice without any delivery document, Is there any way I can fake the system in order create the invoice.please advice, looking forward for some urgent answers--thanks.
    Mike

    Even if you "fake" the system, how will you deal with the discrepancy in the warehouse? Without the delivery and goods movement document the material will show as if it's still in the warehouse. Why don't you just create a delivery and invoice, as (I'd assume) the business normally do.
    Another option is to create a debit memo (order type DR), but, again, it won't help with the inventory. You might want to think this through first...

  • Invoice from Delivery

    How can I know if an invoice is generated from a delivery or from an order ?
    What is the delivery ref. number inside the OINV table ?
    Thank you !
    Giuseppe

    Hi Giuseppe,
    The reference is at the row level.
    You must check the INV1.BaseType field.
    If INV1.BaseType = -1 it's not based on another document;
    If INV1.BaseType = 15 it's based on a Delivery;
    If INV1.BAseType = 17 it's based on a Sales Order.
    Regards,
    Vítor Vieira

Maybe you are looking for