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

Similar Messages

  • 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

  • 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 Project from the Template or access project template

    Dear Experts,
    We are facing a issue while trying to access the project template/create the project from project template.
    we have 4 project template in place and of these two are working perfectly fine but
    From remaining two we are not being able to create project and even templates are not accesible , whenever we are trying to access the project template system rotates a circle for some time and keeps us on the same page.
    Even when we are trying to create project from the same template, system does the same again rotates the circle for some time and keeps us on the same screen.
    And System is not throwing any error for the same (we have checked in the log as well) just not letting us in and not allowing us to create project.
    Any Help Will be Highly Appreciated.
    Regards,
    Rakesh Daiya

    Dear Experts,
    We were able to find out the issue,
    We added 3 groups to the template with "Reviewer" access with "Document Only" Type in the project template.
    When we changed the type to "Template and Document" from "Document Only" and  system started allowing us to create projects from the template.
    Can anyone please help me with one query,
    Can we add a group(which includes all the buyers) with reviewer access and with Document only type?
    Does this really be a reason behind projects are not getting created from template?
    Any help will be appreciated
    Regards,
    Rakesh Daiya

  • 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

  • Creating an invoice from a delivery does not closes the delivery.

    I am creating an invoice using DI. The invoice is based on an already existing delivery note.
    The delivery is manually created from SBO. When I'm creating the invoice I transfer all items and expenses from the delivery to the invoice.
    case 1. The delivery has no freight defined.
    When the invoice is created the delivery is automatically closed
    case 2. The delivery has some freight
    When the invoice is created the delivery remains open even though the invoice contains everything in the delivery, including the freight.
    'Copy to' from this delivery opens an invoice with no items - only the freight is filled.
    Currently I explicitly close the delivery using the Close method.
    Is this correct?
    Is it normal for the base document to remain open if the target document imports everything?
    Thanks,
    Svilen

    Hi Svilen,
    My experience with getting a delivery note to automatically close when I create an invoice against it is that the base document information on each line item on the invoice must be set to point at the delivery note (base document).  You are probably already doing this on your line items and that's why it closes when there is no freight.  But freight items have "base" fields too, and they have to point back to the freight item on the delivery note.   Are you setting the base doc info on the invoice freight lines?
    The following code worked for me (although this example is for sales order to delivery, it is the same thing for deliveries to invoices):
                    Dim ix As Short
                    Do Until ix = vso.Expenses.Count
                        vso.Expenses.SetCurrentLine(ix)
                        If vso.Expenses.ExpenseCode = _FreightExpCode Then
                            If vso.Expenses.Status = bost_Open Then
                                vDN.Expenses.BaseDocEntry = SODocEntry 'added 1/5/7 jc
                                vDN.Expenses.BaseDocLine = vso.Expenses.LineNum
                                vDN.Expenses.BaseDocType = SAPbobsCOM.BoAPARDocumentTypes.bodt_Order
                            End If
                            Exit Do
                        End If
                        ix += 1
                    Loop
    I'm looping through the target (order) document's freight records to find the matching one that I know is on it - you might be processing all - but then I load the sales order base docentry, base doc line# & base doc type to the delivery note freight line item.
    When getting this done, my source documents close OK.  In fact, I think they close even if the totals don't match on each record - just so long as every source doc record is pointed to by a target doc record.
    HTH

  • Creating Excise Invoice from Sales Delivery using DI API.

    Hi Experts,
    I have been searching a lot for any Business Object for creating Excise Invoice base on Sales Delivery using DI API.. But have not yet found any one.
    I want to create Invoice for excisable items from Sales Delivery using DI API.,for Excisable items we cannot create standalone A/R Invoice . We need to create Excise Invoice also . But How to create Excise Invoice based on Sales Delivery using DI API. Is there any Business Object for that.
    Please suggest me.
    Thanks and Regards,
    Pooja Singh.

    Hi all,
    I have not received any reply for this thread. Does this mean that there is no provision for creating Excise Invoice from Sales Delivery ? Actually I was asked to create sales delivery and then Outgoing Excise Invoice and then Sales Invoice using DI API.
    But I don't find any Business Object for this in SDK ? Is it really not possible to create Outgoing Excise Invoice from Sales Delivery using DI API.? If possible then how?
    Please reply me if anyone has got any idea in this regard.
    Thanks and Regards,
    Pooja Singh.

  • Hi we have apple credentials for downloading OS and creating Provisioning profiles. Now we are trying to upgrade the Mac OS 10.7.3 version. do we need should buy this version from appStore. or can it be download from the apple site for free?  Many thanks

    Hi we have apple credentials for downloading OS and creating Provisioning profiles. Now we are trying to upgrade the Mac OS 10.7.3 version. do we need should buy this version from appStore. or can it be download from the apple site for free?  Many thanks in advance!

    Whether you need to buy Mac OS X 10.7.3 depends on what version of OS X you have now.
    If you have OS X 10.6.x or lower it is a paid upgrade from the Mac AppStore.
    If you have OS X 10.7.x it is a free upgrade you get using Software Update on your Mac.

  • Invoice before the delivery

    Hello everybody!
    I need the helping to resolve a problem for our implementing OM and AR for a Viet Nam customer.
    The company have a special business process is: Customers ordering a product, a Sale Order was created, Booked and waiting for pick release. But sometimes ,the customer want receive the invoices before the delivery. So that, we try make a Manual Invoice and reference the Invoice to that Sale Order for tracking progress shipping later. Because the invoice was Manual then may be variance between the invoice and total shipped goods.
    I'm wonder people have ever seen that problem yet? Please tell me the best solution for this case. And what's the name of that problem Oracle called?
    Thanks alot!

    Hello,
    You can create "proforma" invoice from sales order. This is easy way.
    From http://en.wikipedia.org/wiki/Pro_forma
    "In trade transactions, a pro forma invoice is a document that states a commitment from the seller to sell goods to the buyer at specified prices and terms. It is used to declare the value of the trade. It is not a true invoice, because it is not used to record accounts receivable for the seller and accounts payable for the buyer. Simply, a 'Proforma Invoice' is Confirmed Purchase Order where buyer and Supplier agrees on the Product Detail and its cost (usually-Supplier currency) to be shipped to buyer. Sales quotes are prepared in the form of a pro forma invoice which is different from a commercial invoice. It is used to create a sale and is sent in advance of the commercial invoice. The content of a pro forma invoice is almost identical to a commercial invoice and is usually considered a binding agreement although the price might change in advance of the final sale."
    Regards,
    Luko

  • Can't Create Invoice for PO

    SRM 7.0 Support Pack 9, Extended Classic:
    When attempting to create an invoice in SRM, we get error message "Purchase order contains no items for invoicing".
    The purchase order is in approved status and shows up in R3 (4.7).  Making it even more confusing the invoice can be entered in R3 using tcode MIRO.  The vendor does have the flags set to allow invoicing.  The error shows up whether you create invoice from reference in the POWL or whether you use the Add button in the Invoice screen.
    This was working in our SRM 7 system and may have been broken by support pack 8 or 9.  Any ideas what this could be?
    Thanks,
    Matt

    SAP provided a fix for this finally.
    Was resolved after implementing the notes
    1527874 in SRM and 1532845 in R3 4.7
    That did not fix limit orders though, we had to implement another note to fix limits 1557851.

  • Get all invoices from the system and their details

    Hello Experts,
    Whats the most efficient FM to use for getting all the invoices in the system with details to transfer them to an external system?
    Should I get a list of all invoices and then call BBP_PD_INV_GETDETAIL on each?
    Thanks,

    Hello,
    You can use the Function Module "BBP_PD_INV_GETLIST" to get all the invoices from the SRM system.
    Regards,
    Mani

  • Single performa invoice from multiple delivery

    Dear sir,
    my client requirement is they are doing one delivery and creating one performa invoice in export scnario while selling from plant and while doing export issue they have to take refrence performaa invoive .
    so they want to create as ingle performa invoice from multiple delivery for which already respective performa invoices have been created.so i want a single performa invoice from multiple delivery so tell me how to do it?
    thanks
    Debesh

    Go to VTFL and maintain as follows:-
    At Header
    Copying requirements:::::::::009
    At Item
    Copying requirements:::::::010
    Data VBRK/VBRP::::::::::::003
    thanks
    G. Lakshmipathi

  • After "Replace with clip" the original clip can not be deleted from the project - why?

    After using "replace with clip" to replace clip A in the timeline with a new clip B , clip A can not be deleted from the project anymore.
    If you try to delete clip A, you get a warning, that it still has references in one or more sequences.
    If you continue and delete clip A, it seems to be deleted - at first!
    Unfortunately if you save and reopen the project, clip A is restored to folder "Recovered clips".
    It's not possible to really delete it.
    I also did not find a way to unlink clip B from A .
    The only thing you can do, is to revert the change by "Restore Unrendered" in the clip context menu. But that's obviously not helping
    I dont know if this is a bug or a feature. I understand, that it can be useful to undo the "replace clip" function, but why would anyone not want to be able to delete the original clip at all?
    help how to fix this problem is greatly appreciated!
    I use Premiere Pro CC 2014.2 (Win7 64bit)

    I'm sure it has nothing to to with other sequences.
    You can easily reproduce this behaviour:
    1. create a new project
    2. import 2 clips and name them "A" and "B"
    3. put "A" in the timeline
    4. ALT-drag "B" over "A" in the timeline (or right-click "A" in the timeline while selecting "B" in the project files and select "replace with clip ... from bin")
    5. delete "A" from the project files
    6. save and close project
    7. reopen project
    => "A" reappears in "Recovered clips" and can not be deleted.

  • Hi, just updated hubby's iPhone 4 and all of his music has disappeared from the iPhone and from the iTunes library! He does have music still stored on his iPod, but can't get it from the library on his iPod back to phone or itunes. technophobe help pls!

    and all of his music has disappeared from the iPhone and from the iTunes library! Luckily he does have music still stored on his iPod, but I can't get it from the library on his iPod back to the phone or to itunes.Please help, but technophobe so put it in simple english please!

    Sounds like the music you had on your phone was not the same music on his computer. The iPhone/iPod touch is not designed to be a storage device. When you sync with a computer that doesn't have your music, it deletes your music from your phone.
    Was this music you purchased from iTunes? if so, and you are in the US, tap on itunes app, tap updates, tap purchased and tap on the cloud icon to get each song back. If you're not int he us, get iOS5 update later this week and do the same.
    But you need to move your itunes library to his computer. Create a user account on his macbook pro for you. From your external drive backup, load your itunes library on it. Then sync as usual! (Don't tell me you don't have a backup for your computer!)

  • My iphoto library has become unreadable. I am wondering if I shoudl delete iphoto and reinstall? Can I download iphoto from the web? I bought my computer in February of this year. Do I have to buy a new copy of iphoto?

    My iphoto library has become unreadable. I am wondering if I shoudl delete iphoto and reinstall? Can I download iphoto from the web? I bought my computer in February of this year. Do I have to buy a new copy?

    It's probably the library that's the prolem and not the application. Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If you can create and open a new library then your existing library is damaged.
    If that's the case, Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

Maybe you are looking for

  • Remove Soap Header while calling a WS from BPEL 11g

    Hi My requirement is to remove the entire SOAP Header tag in the invoke activity. How this can be achieved? Please help thanks Sesha

  • Account determination - Valuation class 3040

    Hi all, Material type ERSA ( spare parts) - valuation class 3040. For this valuation class 3040,wot are all the transaction key( eg BSA WRX) and Account modifier  ( eg GBB - auf,bsa etc) need to be maintained. We are configured,but,missed some a/c mo

  • Process Exception in Timer

    Hi, I am using timer whose value needs to be changed dynamically. I am using instance variable of type Interval as timer Interval Expression.I am changing value of interval instance variable using notification and Message wait activity as explained i

  • "save as" won´t work

    please help just downloaded the free trial of photoshop cs6 but the save as button doesn´t work everything else does.

  • Sqlplus and dbconsole  dont' show the correct version

    Hi, I have succesfully applied the patch 9654983 (11.2.0.1.2 Patch set update) . But , I don't understand why sqlplus and the dbconsole still show me the 11.2.0.1.0 version. Did I miss a step ? pfile or spfile ? note the the registry$history table sh