Need to delete delivery fparitally invoiced line item

WE have a scenario. We have a sales order with order qty 10 which were back orderd. The vendor sent 5, and the customer was shipped 5 and invoiced for 5. Then the rest of the 5 were received 2 weeks later, and now the customer does not want the rest 5, but delivery and PGI has been done for the 5 that were received today. The system does not allow us to delete the second delivery. We get a message stating " the original line item has been invoiced". Any suggestions on how we could delete this new delivery would really help.We cannot cancel the invoice. current setting is order related invoicing.
PLEASE NOTE WE CANNOT CANCEL INVOICE.
Any suggestions???

Susan
I am guessing you already tried Sai's suggestion  but were not able to delete the delivery after reversing the PGI with T code VL09. Is that the issue?
If so, my suggestion would be to check the item cat definition for Billing relevance and Completion rule, Similarly the Copy control for billing document again the Pos/Neg. Quantity and Billing quantity fields. Somehow the config here is making the system believe with even partial billing that the item is completely referenced or something like that. Even if you fix the config, I am doubtful you can rectify the current situation without canceling the invoice.
Whatever it  is,  please post the steps you have taken to resolve the issue. We are eager to learn from your experience. Thanks.

Similar Messages

  • Insert/Update/Delete Non-PO Invoice Line Item via FM/BAPI?

    Does anyone know of a way to insert/update/delete an Invoice Line item (Non-PO Accounting Invoice - Transaction FB60 or FV60) using a BAPI or Function Module (or set of function modules) using ABAP? I have been trying to find some code to accomplish this and am stuck on a couple of issues.
    I have found PRELIMINARY_POSTING_FB01 and PP_CHANGE_DOCUMENT_ENJ but both seem to submit the details to background processes. This is an issue because it gives the user a success message after execution but later delivers the error to Workflow. This is for an interfacing program so the results should be as real time as possible.
    Has anyone accomplished this via FM or BAPI and if so would you mind sharing your experiences?
    Thank you very much,
    Andy

    SG- Thank you for the reply.
    I have been playing with BAPI_INCOMINGINVOICE_PARK and I'm not sure if it is doing exactly what we want, but it is something that I have considered in the past. I plan on looking into BAPI_ACC_INVOICE_RECEIPT_POST this morning, hopefully that will provide some more for us.
    If possible I'd like to avoid BDC sessions because this program could hypothetically interface with multiple SAP systems with different configurations.
    I will check into those FM's and thank you very much.

  • Changing line item delivery address in shopping cart need to reflect same in all line items

    Hi All,
    Need help on below,
    I have a requirement that when we change the shopping cart line item delivery address same needs to reflect all line items.
    Suppose a shopping cart having 3 line items 1, 2 and 3. if i change the delivery address of line item 1, the same needs to reflect the line item 2 and 3 as well.
    In my case  if we change the 1's delivery address, after processing its genrating the IDOC on line item wise not in the header wise. And same having the different delivery address.
    Thanks in advance.
    regards:
    Ramesh

    Hello Ramesh,
    we can do this changes in BBP_DOC_CHANGE_BADI . Create a Implementation for the above BADI and Inside that Implementation BADI method just call the function module BBP_PD_SC_GETDETAIL for SC item details by passing the Header GUID.
    Once you get the Partner table(E_PARTNER) details.. Keeping a loop on SC item(E_ITEM) and change address number(ADDR_NO) in Partner table when Partner function eq X( X is an partner function values which you define in SPRO.).
    pseudo logic:
      CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
        EXPORTING
          i_guid    = l_guid
        TABLES
          e_item    = lt_item
          e_partner = lt_partner.
    * Check for all the line items if vendor is assigned
      LOOP AT lt_item INTO lwa_item.
        READ TABLE lt_partner INTO lwa_partner
                          WITH KEY partner_fct = '00000019'
                                   del_ind     = space
                                   p_guid      = lwa_item-guid.
        IF sy-subrc eq 0 .
       * modification of address number logic here in partner table
        ENDIF.
      ENDLOOP.
    All the best.
    Regards,
    Sankarbabu

  • Stop price update of  delivered but un-invoiced (non-invoiced) line items

    Hi Gurus,
    I need some help regarding price update of line items which are delivered but not invoiced yet.
    Case 1:
    I am calling the FM 'BAPI_SALESORDER_CHANGE' and passing the line item (say 10) whose price needs to be updated. This line item is neither delivered nor invoiced. Result, correct change of price for line item 10.
    Case 2:
    In the above order, i am adding another line item (say 30), which is completely delivered, but I have not yet created an invoice for it. I want that this line item's price should not be changed (as delivery is already created for it). So, in my price update report, I check and filter this line item (10) and pass only line item 30 to the BAPI. Result: not only line item 30 but line item 10 also gets updated with new price!!
    Case 3:
    I created a new line item(40) and created an invoice for it after completely delivering it. When I call the BAPI now, I again filter the line items 30 and 40 and pass only line item 10 which i want to be updated.
    Result:
    Line item 10 - updated with new price
    Line item 30 - updated with new price
    Line item 40 - not updated
    Requirement:
    Any line item that is completely delivered should not be updated with the new price regardless of it having an invoice or not.
    Assumptions:
    I am running a custom report to find the line items that need change and calling the BAPI_SALESORDER_CHANGE and passing those line items to update the price.
    Problem faced:
    This process is updating all line items in the SO that are not invoiced regardless of weather I am passing it to the BAPI or not
    As far as i know, the checking of the invoice is in some standard program, and hence had debugged the BAPI and got the FM SD_SALES_DOCUMENT_SAVE which in my opinion is doing the change. But on further debugging I lost track of the tables which were holding the data as the code is flowing through a number of user exits and standard forms.
    Please help!

    Hi Soumyo,
    In Pricing Update screen, you will find pricing type X, Y and Z which you can use to define your own pricing update scenarios.  Check OSS note 24832. This note provides enough details about each of the update pricing options and also explains on how to use pricing update X, Y, and Z.  Let me know if you need any more help on this.
    Thanks & Regards
    Kapil Sharma
    Author - Configuring SAP ERP Sales and Distribution

  • How to delete the Cost center line item data

    How to delete the cost center line item data of particular cost center and only one cost center is exisiting for that company code.
    Is there any way to delete the line items in that cost center.
    Can data archiving & deleting can help us..........
    does it have any effect over other cost center data....
    any input needed.........
    regards
    rajesh

    Hi,
    i found 2 reports for you:
    1) CO_TOTAL_WRI - Archiving CO Totals Records   
    2) RKCOITW1     - Archiving CO Line Items: Write Program        
    from 2) is a linlk to customize archiv-parameters
    -> start it with transaction se38 / sa38
    A.

  • Restrict deletion of sales order line items

    Hi,
    I need to restrict deleting of sales order line item, I think we can use the user exit, MV45AFZB, USEREXIT_CHECK_XVBAP_FOR_DELE.
    But when i set the flag to 'X', even though it does not delete at tht instance when the sales order save is clicked again the line item gets deleted.
    ANy idea , to prevent that?
    Thanks
    Keshi

    Hi Keshi,
    That is the correct exit, we are using the same without any problem. Just set US_EXIT  = CHARX.
    Regards,
    John.

  • Idoc to uodate delivery date of line item on Purchase order

    Hi All,
    Our vendor sends a delivery file consisting of delivery date and quantity(could be partial) for line items of a purchase order.
    I need to update the Purchase order line item with the delivery date and quantity sent from the Vendor. It should add a new confirmation line with custom confirmation category in the confirmation tab of the line item in the Purchase order.
    Each time we get a delivery file we need to add a new confirmation line in the confirmation tab of the purchase order line item.
    How can I get this working using inbound idoc processing? Which Idoc type should I use to solve my issue. Will ORDERSP work for my scenario?
    Thank you in advance!
    Sonali.

    Hi,
    I don't know about IDOCS, but since your vendor is not using EDI, but rather sends a file, you could right a small program to read the confirmations from the file, using the standard BAPI "BAPI_PO_CHANGE" to actually change the PO accordingly.
    Regards,
    Mario

  • Invoice line items report from DSO compared to Infocube (in HANA)

    Hi Folks,
    As you know Invoice line items are very granular level information. We are facing performance issues on reports based on the Infocubes to display this information. We are migrating to HANA and looking for options to improve the performance. One of the option we are looking at is instead of Infocube can we we report directly on the DSO. I would like to know whether it will help and its Pro & Con's. Please help.
    Thanks,
    B

    Hi B,
    Reading data from a DSO instead of an InfoCube will not improve reporting performance. The benefit in getting rid of the cube is that you have less loading to do.  You still need cubes for planning and inventory scenarios.
    You do not need a composite provider to report from DSOs in BW. Once you've migrated to HANA you use DSOs just as you would today, and you can report from a multiprovider. Yes, you can use a composite provider, but it is not necessary.
    If your report is slow today, you need to find out where it is slow.  HANA could provide a huge benefit as soon as you migrate, or it might not help much.  It depends on the scenario. OSS 1681396 is a good place to start.
    If the DB time is long, and you're not using BWA today, you can expect big benefits when you migrate to HANA.
    If the OLAP time is long, you might see big benefits when you migrate, as the OLAP engine during query execution is pushing more to HANA.
    If the frontend time is long, migrating to a different database isn't likely to change that, you'd need to address that separately.
    Finally, an important point to remember is that once you've migrated you open up additional possibilities for improvement that are not available to you in BW-on-non-HANA.  For example, you might be able to rewrite queries as HANA models.  I did some performance tests on this in a very simple case of exception aggregation.

  • Relation between Invoice Line items and Accounting Line item

    Dear All,
    My requirement is to print all the invoice documents and it's tax values like cenvat, Ecess, BED and VAT.
    I have to fetch these tax details from BSEG table .
    I' am getting Invoice number ( RBKP-BELNR ) from BKPF-AWTKEY .
    Can any one please tell me how to relate the Invoice line items and Accounting document line items..
    Any BAPI or FM is there to retrieve these data.
    Please do needful in this regard.

    Hi,
    from table bseg - field Koart
    K = Vendor
    D = Customer
    S = G/L account here tax lines identify with buzid = T
    or take table bset for taxes
    Andreas

  • Create delivery  document for line item 5 only manually

    Hi Sap Experts,
    We have scenario, we have created sales order with 10 line items while creating delivery we don’t want to show all the 10 line item to delivery creator (creating delivery manually).
    We will send him mail saying that create delivery  document for line item 5 and we will provide him material number and delivery date and shipping point with sales order number.
    We don’t want to use partial delivery option that split the delivery and we don’t want to use VL10C tcode also.
    What are options we have and how to customize this scenario?
    Kindly suggest.
    Regards,
    Kotli

    Can you be clear in your requirement?
    One requirement is user should not select line items other than the one instructed to them
    The other requirement is delivery split should happen based on item category
    If your requirement is first one, you need to go with user exit USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1 but I am not sure, on what logic, coding to be included in this exit.  If your requirement is second one, then just try in your system and share the outcome how system is functioning.  You will come to know how standard SAP works.
    G. Lakshmipathi

  • Order To Cash - AR Invoice Line Item description change

    Hi,
    I have a requirement of concatenating some value to the Invoice line - Item description in the AR Invoice created thought Auto Invoicing.
    Please could anyone tell me the best way of doing it.
    Thanks & Regards,
    Genoo

    Hi Luko,
    Thanks for your response.
    I noticed that Item Description is not a free text field in Sales Order Line..
    My requirement is that I have a value which needs to be concatenated to Item Description, when we interface the Order to Receivables through Auto Invoice program.
    Any possible ways please?
    Thanks,
    Genoo

  • Unable to delete the Purchase Requisition line item

    Hello MM sapperu2019s,
    I am unable to delete one of the line item in Purchase Requisition. Please let me know how to delete this Purchase Requisition line item.
    When I tried to delete the line item in ME52N the delete button is gryed out hence I could not able to do it.
    The purchase requirement has reference of network in the account assignment.
    Please let me know if you need more clarification.
    Cheers,
    Kumar.S

    Hi,
    You are experiencing the stnadrad behavior
    When the Preq is automatically created from either
    a production, plant maintenance, or network, order, what you can change
    in the PReq is very limited.
    This is to ensure no conflicts arises between the PReq and the source
    application of the PReq (be it PP, PM/CS or PS).
    The technical explanation is due to the recorded value in EBAN-ESTKZ
    (Creation indicator).  The value stored here (automatically by the
    system) controls what you can or can't change in ME52/N.
    We cannot delete the line item in this case
    regards,
    Lalita

  • Payment to be done according to invoice line item

    Dear SAP Friends,
    I require a small clarification on Payment. Please see the below screnario.
    1. I have a invoice for 10000 USD, Which includes 3 lines in the details.
           a. Water Charge - 3000
           b. Electricity Charge - 5000
           c. Rent Charge  -        2000.
    2. Now i receive a payment of 8000.
        Will it possible to match the invoice line item to receive the payments of 2 individual lines for 5000 and 2000.
        When i checked with our FI consultant , i saw that payment is done with respect to the whole invoice , not the individual detail line.
    Can anyone please provide some information on this.
    Thanks
    Kunaseelan.

    Hi
    Payment will be done with respect to Invoice only but not based on the Individual Line Items.
    you can do by partial or Residual Payments.
    Regards
    Venkat

  • Post non PO invoice line items using INVOIC01 and FM IDOC_INPUT_INVOIC_MRM

    hello there SAP folks,
    Have an interesting question for all of you. We currently have a partner through whom we use the IDOC_INPUT_INVOIC_MRM Function module to pass invoices. Now there are multiple line items some times [multi E1EDP01 / E1EDP02] segments which all refer to the same PO but to different line items on the PO. Now all that is well.
    For one particular partner we now have the following requirement. We are going to have the same condition as above, with the added condition that there are going to be some invoice line items with no reference to a PO. the reason is that the vendor is going to calculate the different taxes and send them to us. so when we post the invoice :
    we will now have
    31 Vendor
    40 GR/IR
    40 Tax 1
    40 Tax 2
    50 Tax 3 offset
    instead of
    31 vendor
    40 GR/IR
    to deal with the new situation I tried adding having the following
    first E1EDP02 is going to refer to the PO using qualifier 001, but second E1EDP02 [for tax] s not going to have a qualifier 001. When I do that i get a missing belnr (001) and zeile (001) error.the exact error message is the following
    Required field BELNR(001) is missing in segment E1EDP02
    Required field ZEILE(001) is missing in segment E1EDP02
    Message no. FD070
    Now to bypass that, I added the 001 qualifier for the second E1EDP02 [tax part] and now the error that I get is either the PO is duplicated or if i put some dummy PO number, then it says PO cannot be found.
    =======
    so the question is how is it possible to post  4 items in the idoc , with one being a PO reference and 3 non PO reference using INVOIC01 and IDOC_INPUT_INVOIC_MRM
    I also have to add that it is possible to add a non PO items to the MM invoice in MIRO by entering the additional tax lines using the g/l account tab next to the PO reference tab.

    nvm.
    Edited by: D N on Dec 16, 2008 2:10 PM

  • During F110  run-How to pick profit centre from the Pur.Invoice line item ?

    Could anyone please help me with a solution to this problem.
    Purchase invoice line items have got profit centre recorded from Material master.
    While doing the auto payment run F110, for foreign currency invoices, the exchange rate diff
    is posted to a - realised exch rate diff gl a/c.
    But there is no cost object attached.
    Business wants the system to pick the profit centre from the purchase invoice line item
    and put it in the line item record of the exch rate diff account.
    Can I do it using OKB9 ? Could someone please explain how to do it.
    Thanks

    Hi,
    With standard SAP this is not possible.may be you have to develop some custom program.
    with my experiance,we always post to defualt cost center.
    hope this helps you.
    Thanks,
    Rau

Maybe you are looking for