Not able to delete line items using BAPI_OUTB_DELIVERY_CHANGE

Hi,
    Not able to delete line items of a delivery using BAPI 'BAPI_OUTB_DELIVERY_CHANGE', with thte below code and even return parameter has zero messages.
I have even checked existing below posting.
https://www.sdn.sap.com/irj/scn/logon?redirect=http%3a%2f%2fforums.sdn.sap.com%2fthread.jspa%3fthreadid%3d782509
Below is the code that i am using.........
*wa1-deliv_numb = wa_lips-vbeln.
wa1-deliv_item = wa_lips-posnr.
APPEND wa1 to item_data.
wa-deliv_numb = vbeln_so .
wa-deliv_item = l_item.
wa-del_item = 'X'.
APPEND wa TO item_control.
w_header_data-deliv_numb = vbeln_so .
w_header_control-deliv_numb = vbeln_so .
w_delivery = vbeln_so .
*w_header_control-dlv_del = 'X'. "Delete whole Delivery
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
  EXPORTING
    header_data    = w_header_data
    header_control = w_header_control
    delivery       = w_delivery
  TABLES
   item_data      = item_data
    item_control   = item_control
    return         = return.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait = 'X'.
I have even  tried uncommenting item_data parameter but not able to delete line item.....i am able to delete whole delivery but not line items .........can any one of u help me in resolving this issiue plz ???
Regards,
M, Manohar

Kindly use WS_DELIVERY_UPDATE to delete the items
Sample code:
L_VBKOK-VBELN_VL = vbeln_so.
clear l_vbpok.
         refresh l_vbpok.
         l_vbpok-vbeln_vl = vbeln_so
         l_vbpok-posnr_vl = wa_deliv_item.
         l_vbpok-lips_del = c_x.
         append l_vbpok.
         set update task local.
         call function 'WS_DELIVERY_UPDATE'
           exporting
             vbkok_wa = l_vbkok
             commit   = ' '
             delivery = lv_delivery
           tables
             vbpok_tab = l_vbpok
           exceptions
             others   = 0.
         commit work and wait.

Similar Messages

  • Not able to display line item 20 in contract

    I could not able to display line item 20 in the contract document.
    line item 10 and 30is there however there is no line item 30. What could be reason and how to enable the same.
    MRS

    It may also possible if user forgot to enter the line item 20 and jump to line item 30 after 10 as below.
    Then system will show as like this

  • Adding a new line item using BAPI_OUTB_DELIVERY_CHANGE

    Hi,
    I have a requirement to add a new line item to outbound delivery to the existing line items using the FM BAPI_OUTB_DELIVERY_CHANGE.Pls suggest how to do it.
    Thanks in advance.
    Anand

    Hi,
    Did you Check IN SCN like [THIS|Re: BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item].
    Regards,
    Rahul

  • Not to be able to delete line items from sales orders

    I have to do something so as not to be able to delete the line items from a sales order if I have already received a down payment for this sales order

    Dear Stilianos
    Assign Reason for Rejection for that line item and create a new line item in the same sale order.
    Incidentally, why do you want to delete the line item ??
    thanks
    G. Lakshmipathi

  • Not able to delete Personalized Items !!!

    All,
    I was trying to create a flex field through personalization in iProcurement 11.5.10. There was some issue and i was not able to create it properly. Now, if i go to that page, its throwing an error.I cannot got that page at all to click on "Personalize" link. As a result, I decided to delete the personalized items through exec jdr utils. There it showed me as deleted. But I was still able to see that error. When i went to Functional Admiinistrator responsibility, I was able to see the items still existing! I tried to delete through Functional Admiinistrator manually by clicking on delete icon. It shows me the warning message but I am still able to see those items.
    Are there any settings required??
    Please reach out for this, as this will stop all the testing.
    Thanks
    Padmaja

    Thanks for the prompt resolution People !!!
    I had not given commit. But when i queried again for 'list document', it did not show me any personalizations exisiting in the page.
    I had not bounced the server after setting profile option "Disable Self-Service personal" to "Yes". When all the persoanlizations got disabled, I could successfully navigate through the page and delete it.
    I really could not understand the problem with the Funcational Admin responsibility.
    --Padmaja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Not able to process open items using F-53

    Hello All,
    I am trying to process open items using F-53, I  m getting error message as "Entry SAG1 is missing in table T043G". This was working fine for GL accounts, but failing for vendors.
    I checked the tolerance group for same and its fine and also tried checking table se16, but not able to find the root cause of issue. please let me know how can i resolve this.
    Thanks in advance.
    --Sagar

    HI,
    Check following...
    1. Make sure you have created one null (Blank) tolrance group using transaction OBA3 for your company code SAG1...
    2. If you do not want to create null tolerance group then make sure you have mapped the tolerance group created to the customer master and also see the use assignment...
    Regards,
    Chintan Joshi

  • After a PAI, I am not able to slect line items in the table control.

    Dear All,
    In GR55 Report;after a PAI triggered (by Enter button or vertical scroll bar),  I am not able to select any line-items in the table control. If no PAI triggered, the I am able to select as much as line item..
    Can anybody help me..
    -Ullas U

    before display, while debugging , after pai, it will go in pbo modules,
    so there u need to check the structure screen for the variable select. u might have declare one variable like sel(1) type c,
    these variable u have written in table control attributes in select variable as itab-sel.
    so check in debugging first.

  • Spool is not generating for deleted line item in PO.

    Hi Experts,
    A PO which was created in SRM pushed into SAP environment and when it was created initially spool was generated and user was able to take the print out. But if he delete a linte item no spool is created and message log was saying there is print relevent changes exists. I could the the change updated linte item change history of that PO.
    I tried replicating the scenario in test environment but I have not come across this situation. Please help if any one worked on similar problem.
    Thanks in advance,

    Hi Experts,
    Any suggestions.
    Regards,

  • In ME22N deleted line item should not be Re-activate

    Dear Sap Guru's
                         For Purchase order in T.code ME22N deleted line item should not be reactivate.
    If i create some line items in this t.code and i delete these items then ince again someone wants to views these they he should not be able to view the deleted line items.
                        plz give me reply as soon as possible.Urgent

    hi
    version management
    SPRO –> Material Management –> Purchasing -> Version Management .
    After activating version management you can see the Version tab in ME53N near to source of supply tab in PR.
    http://help.sap.com/saphelp_srm30/helpdata/en/46/882fdd8bfc1743bd5ef8b532f94402/content.htm
    SAP Enterprise Buyer provides you with version management for purchasing documents. As a first step, you can display versions of purchase orders and contracts.
    The system creates a version in the background if you, as a purchaser, carry out one of the following actions:
    · You change a posted purchase order
    · You order a posted purchase order again
    · You change a contract that has already been released
    · You release an already released contract again
    In contrast to the change documents that retain a change history, a version displays the status of a document at a specific point in time.
    Version management provides a check for you as a purchaser, for example, if you wish to display a purchase order in the form in which you transferred it to the vendor on day X. A version provides clarity, for example, in negotiations on a contract.
    Features
    You can use versions as follows:
    · Display
    · Compare and list differences in tabular form. The comparison result has separate areas that can be displayed:
    Header data (including organizational data, tax and payment data; partner data and documents)
    Item data (including taxes and limits if they exist; partner data, documents; account assignment and conditions)
    · Archive, if it relates to transaction data (you can archive versions of purchase orders, but not contract versions)
    You cannot change or output versions. This is only possible for the active document.
    Also, visit the following thread:
    regards
    kunal

  • Deleted line  item not display in Print preview

    Dear All ,
                                    Pl guide that when i delete the line item from a P.O then this deleted item is not visible in Print Preview .pl help what are the exact setting due to which i can know why this del item is not coming in Print Preview.
    Rgds ,
    Rajeev
    Edited by: sap11 on Feb 11, 2009 10:37 AM

    HI,
    Using the standard programm and print form the system works as follows:
    When you will create a new Purchase order with two line item. System
    will create new message record with  Change message flag (NAST-AENDE) as
    space and processing status (NAST-VSTAT) as  0 "not processed".
    After this if you will output the message using ME9F then system will
    update the message processing status NAST-VSTAT as 1 "Successfully
    processed".
    When you will delete line item 10, at that time system will create
    one more message record with indicator Change message flag
    (NAST-AENDE = X ) and processing status 0 "not processed".
    Now system contains two message records in table NAST, one for which
    processing has been done and one change message record for which
    processing has not been done.
    If you will run ME9F with processing status 0 then this means you
    wants to output the change message record means you wants to inform
    your vendor that item 10 has been deleted. That's why system show
    line item 10 but you can notice in print preview, system mentions that
    item 10 has been cancelled.
    If you will run the message with processing status as 1 then this is
    not change message output means system will show you latest print
    of purchasing document and thus will not show line item 10.
    Please take the print out of both message record and you can see the
    difference.
    I hope this information helps!
    Best Regards,
    Arminda Jack

  • 2LIS_02_ITM deleted line items are not reflected in BW

    Hi,
    Our current Data flow 2LIS_02_ITM-->DSO-->CUBE.
    I am analyzing a Invoice, When it is created 01.04.2014 it has got 10 Line Items and all the data is load to BW,Invoice with 10 Line items.
    In ECC I can now see the same Invoice only got 5 line items and from change log I can see 5 line items are deleted on 15.04.2014.These changes are not reflected in BW.In BW invoice data still shows 10 line items.
    If I perform setup table job and ECC RSA3 for that invoice I am getting only 5.
    I believe it’s something to do with 0RECORDMODE,Can you please let me know how to fix this in BW.
    Thanks

    Yes this is a known behavior in case of deltas.
    For Deleted line items Rocancel field will have an entry with R.
    To handle this you need to map ROCANCEL field in Technical group of transformation (Between Datasource to DSO) with 0Recordmode.
    Once you will do that then after activating the data in DSO it will nullify the records and deleted order or item will not appear.
    Regards,
    AL

  • I changed my Apple ID that using an invalid email address to a new one and I am trying to update iCloud account on iPhone5 with iOS 7.1.2, and I am not able to delete iCloud account without the old password.

    I changed my Apple ID that using an invalid email address and I am trying to update iCloud account with my new Apple ID on iPhone 5 with iOS 7.1.2. I am not able to delete iCloud account without the old password. Is there a way to update the Apple ID of my iCloud account?

    Many people are having probalems with this right now.  The only solution I've seen that seems to consistently work is the one posted by Brackers28 here: https://discussions.apple.com/message/23020591#23020591.  This only works if you still have access to your old email account.  If you don't, you'll have to have Apple help you reset the password for your old account so you can turn off Find My iPhone and sign into your account with your correct ID.

  • I have around 2000 photos on my camera roll as back up and now i am not able to delete unwanted photos and they are not even getting synced wid d computer so what should i do now?? they are using 9 gb of the space!!!

    i have around 2000 photos on my camera roll as back up and now i am not able to delete unwanted photos and they are not even getting synced wid d computer so what should i do now?? they are using 9 gb of the space!!!

    Chris CA wrote:
    You cannot backup photos to iCloud.
    You can enable Photo Stream (in Settings > iCloud) but only for 30 days and only a max of 1000 photos.
    Then what does this mean? It was copied from the kb article that I posted above.
    Reducing the size of your Camera Roll backup
    If you take lots of photos and videos with your iOS device, you may notice your Camera Roll takes up most of your iCloud Storage backup. To check the size of the Camera Roll backup on your device:
    On your Home Screen, tap Settings.
    Tap iCloud.
    Tap Storage & Backup.
    Tap Manage Storage.
    In the Backups section, tap your device.
    In the Backup Options section, the backup size is displayed under Camera Roll.
    To reduce the size of your Camera Roll backup, save your photos and videos locally to your computer with iTunes, and then manually back up your iOS device. If you want to keep your photos and videos on your iOS device, you can turn off Camera Roll in Backup (see the "Deleting backups and turning off Backup for your Device" section above) orpurchase additional storage.

  • Not able to delete a delivery after revenue recognition is reversed

    Hello Gurus,
    We have a situation for certain Sales Order types after creation of Sales Order -> Delivery and PGI, we do revenue recognition. But there was some mistake and delivery needed to be deleted and recreated if needed. So after doing revenue recognition reversal we are reversing the PGI. After this when we try to delete the  Delivery ( which would have got deleted if there was no revenue recognition process ) we get the below error.
    Is it a problem with the way Revenue recognition is configured or does the standard behave like this. If the Invoice is also present in the above I am able to cancel the Invoice. If you think its a problem with the way Revenue reccognition is configured please advise.
    Item 000010 cannot be deleted (revenue recognition status)
    Message no. VL896
    Diagnosis
    The delivery or delivery item cannot be deleted.
    System response
    The document cannot be deleted since the delivery contains items that
    reference sales document items that are relevant for revenue
    recognition. When the goods issue was posted, the system created revenue
    lines that had already been recognized. This means that there are
    subsequent documents in revenue recognition for this delivery.
    Procedure
    If you no longer require the delivery or delivery item for deletion, set
    the delivery quantities to zero and repost the goods issue. Make sure
    that the quantity zero is allowed in Customizing for the delivery item
    category. When the goods issue is posted, the overall processing status
    is set to C and the delivery can be archived. Message determination
    should be configured not to send any messages in this case. To make sure
    that the system makes revenue corrections if there are differences
    vbetween billed and recognized values, set a billing-relevant rejection
    reason in the sales document item if more than one partial delivery is
    allowed.
    If you still want to use the delivery, adjust the delivery quantities
    accordingly. Alternatively, deliver the referencing sales document item
    again. Note that the sales document item cannot be delivered again if
    only a partial delivery is allowed.
    What are the changes I can do to Delete the Delivery?
    If I cannot Delete the Delivery, Should I make the Delivery as 0 qty and create a new delivery with changed qty and do further process. Or should I reject the Sales Order and create a new sales order with exact qty and do further process.
    Please advise.
    Regards,
    SNK.
    Delivery has one line item. For the above case scenario, invoice is there for some deliveries and for some deliveries there is no invoice. Eg: SO -> DN -> PGI -> Rev Recog -> Iv or SO -> DN -> PGI -> Rev Recog. Requirement was SO was wrongly created as the qty was wrong or in some cases SO needs to be rejected. I am able to cancel Invoice. Rev recog is reversed. PGI is cancelled by VL09. Not able to delete Delivery and I get the above error. Ideally I thought since Rev recog is reversed, Delivery should have been deleted but not happening and above error comes.
    SO - Sales Order DN - Delivery IV - Invoice
    Edited by: sapconsultnt on Dec 16, 2009 5:06 AM

    Hello,
    Please review the Note 1224871 which introduced this functionality.
    Regards,
    Raghavendra YN

  • Deleted line item appears in BI report

    Helllo Gurus,
    How can we take care of deleted line items or sales order in sap BI.
    One of teh user came up to me and said even though i delete the line item in ECC but i am able to see in BI report.I thought it has something to do with ROCANCEL Field.
    In addition to  that my flow is 3.5 and we are reporting on DSO.So can you suggest how to take care of it.
    Thanks in advance.,
    Regards,
    AL

    Hi,
    I have worked with similar scenarios and my understanding is that whenever a order line is deleted, delta comes properly through LO data sources.
    You are using 2LIS_11_VAITM which should have a ROCANCEL field which you will need to load delta properly specially in case of deleted records.
    In your DSO, add 0RECORDMODE info object and map it to ROCANCEL (you will have to add this object in your info source as well as you are using 3.5 flow).
    Now, you do not need to worry about anything, if a order line is deleted in ECC and you are doing a delta load using 2LIS_11_VAITM, you will get the deletion record and it will delete the record in your DSO (I should say ODS as you are using 3.5) also.
    The keys of your DSO must be Sales Order Number and Sales Order Line Item.
    As far as I remember, deletion record comes with a value of R in ROCANCEL and X is used for Before Image.
    Regards,
    Gaurav

Maybe you are looking for

  • ABAP RUNTIME ERROR WHILE RUNNING BSEG REPORTS

    hi Exports I've developed one report using bseg (G/L Account Balance) report but following error occured while giving some G/L account no. bbos those GL account contains lot of records in bseg? how can i fine tuning the report both system and program

  • Why does my TM/TC back up so much?

    Before I refer this to AppleCare, I wonder if anyone on this forum can help? I am waiting for AppleCare to call me back on another matter, but my excellent Level 2 geek is on hoiday so it may be a while before he comes back to me. The reasons I am de

  • Adobe Photoshop CS4 refuses to recognize installed printers

    I have three printers installed on this Windows Vista 64-bit machine, and they all operate normally with other applications. When I open a TIF or JPEG file in Photoshop, part of the time they open normally, and I can do print preparation and normal p

  • Help required for Documents

    Hi all, Can anyone of you help me out by mailing me the CR200, CR300, CR700 and CR750 documents. It would be really helpful for me since i am struggling with the concept. Thanks in advance

  • Web service Response data - how to extract fields from XMl returned

    Hi,     I am using a web service in adobe forms to get currency , by entering country name. I generated the fields i form by clicking on 'Generate fields ' it automatically generated the biding. The problem is that in response field , i get the whole