Vl02n outbound delivery deletion check

hi all,
i need to create a checking when user going to delete a outbound delivery in VL02n, if there is any billing document status NE 'E' then program should issue error message and block the deletion.
currently i am using badi LE_SHP_DELIVERY_PROC method DELIVERY_DELETION, but i get short dump DYNPRO_MSG_IN_HELP when program issue error message. After some research in this forum, i know that message 'E' or 'W' is not allowed in this badi, but is there any workaround can help me to achieve the requirement?
If possible please provide me the sample code.
thanks in advance
Edited by: Mingo Lau on Jun 14, 2010 5:30 AM

thanks both,
i tried both method, both can solve my problem.
but for SAVE_DOCUMENT_PREPARE, when issue message type E, it will close the transaction and back to /n screen which i am not sure my user will accept or not.
for CHECK_ITEM_DELETION, use a bit more resources as it loop all delivery item but actually it can be done in once..
anyway, let see which one is accepted by my user.
thanks.

Similar Messages

  • Outbound delivery deletion with shipment cost settled.

    Dears
         I have one question about how to delete one outbound delivery which has one shipment document inside.
    Scenarios like:
         we do normal sales order -> outbound delivery -> Picking -> Loading -> PGI -> invoice. and also from outbound delivery to shipment document and shipment cost settled. that means everything is done.
       But next month, the customer said they do not need such goods, they want to return all and take money back. so we need to cancel billing , PGI , and warehouse transactions. as you know , the previous month already been closed. we could not cancel shipment cost settlement . actually, we do not need to cancel it because the shipment is done by 3rd party partner. we need pay the transportation cost.
    the problem, is when I use VL02n to delete outbound delivery item, it is not allowed because in document flow, there is one shipment document could not be deleted. but this outbound delivery status is OPEN, it always books some items which we will never delivery.
         is there one can help me about how to delete outbound delivery or how to close it to avoid stock booking ( ATP)?
    thanks
    jerry W.

    hello Jürgen L
    thanks for your answer. I fully agree with you. it is just our business user ( specially from warehouse) want to make process simple, so then use this way to cancel billing and PGI, then delete delivery lines. I will push them to use standard process .
    thanks again.
    best regards,
    jerry W.

  • Outbound Delivery Deletion

    Hi Experts,
    I would like to know if someone knows a way to prevent the deletion of outbound deliveries.
    I need to prevent the deletion in one of my business process.
    Thanks in advance.
    Best Regards,
    Remi

    Hi,
    In report MV50AFZ1, with form userexit_delete_document you can avoid it if you set the filters.
    Regards,
    Eduardo

  • Where to Authorization check for the plant while creating outbound delivery

    Hi Experts,
    For outbound delivery , the standard program is not doing the authorization check .
    Can i use BADI       *LE_SHP_DELIVERY_PROC *        and the method :     DELIVERY_FINAL_CHECK
    To write Authority-check statement ,
    If the particular is not authorized for any of the plants of the items in the outbound delivery i will throw a error message
    Can i use as above?
    And if i use it has to apply only for outbound delivery?Because for inbound delivery also the same BADI is getting triggered?
    Please suggest.
    Regards
    Ramakrishna L

    Hi,
    Yes you can use the said BAdi and the method if it is triggerd before the SAVE of the Outbound Delivery Order to do the Authorisation Check. In case the code is triggered for all the orders and you want only to restrict for the Outbound Delivery, then check for the Delivery Type (LFART) from the Delivery Header table for only the Outbound Delivery Order.
    Thanks,
    Susanth Swain

  • User Authorization for Outbound Delivery

    Hi sap gurus,
       I want to restrict sales document delete option for selective users in vl02n(outbound delivery). Can anyone tell me. How to do this?
    Warm Regards,
    Vinodh Rajendran
    Edited by: Vinodh Rajendran on Jul 27, 2009 8:30 AM

    Hi,
    Check with your BASIS person.
    They will provide/delete authorisations for a specific Transaction.
    SUIM is the T.Code for checking roles of a Transaction code.
    In SU01,by entering the user name one can delete that role for the user.
    Regards,
    Krishna.

  • Delete assignment of HU from outbound delivery (VL02N) not working

    Hi All
    I have searched many threads to find the solution to be above problem but none of them was working for me, so posting the query again.
    I hava a dummy pick HU that I create for some purpose, finally i want to delete the assignment of the HU in the outbound delivery.(not to delete the HU completely). For me, the assignment of the HU vanishes from outbound delivery with 3 FM's. 'HU_GET_HUS' , 'V51P_DELETE_RELATIONSHIP' and 'HU_POST'.
    The problem is, when i PGI the delivery, the HU appears again in VL03N. I am not able to understand this strange behavior.
    I have tried all FM's like bapi_hu_delete etc, but they delete teh HU completely which is not my req. I heard abt this FM BAPI_HU_DELETE_FROM_DEL, but am workng in Ecc 5.0 and the FM doesnt exist.
    Pls help
    Thanks

    Hemanth,
    I recall that we used to update the HU status as well when we dissociated HU from delivery,  though can't remember the reason now.
    Pls check the VEKP-STATUS for HU after you have done with these 3 FM calls, I believe you have to update the status to 'BLANK' with the help of some FM, try it first if it works for you by direct updating it in table in Dev.
    BR,
    Diwakar

  • In VL02N, getting runtime error "dynpro_msg_in_help" when deleting outbound delivery in production

    Hello SD members,
    I have an issue in which while executing VL02N and trying to delete the outbound delivery getting runtime error "dynpro_msg_in_help" in production system.
    Kindly suggest how to solve this...
    Regards
    Venkat

    Hi Venkata Pradeep,
    Can you please proivde more details about an error to understand the issue.
    Regards,
    Pravin

  • Delete or change outbound delivery distributed to EWM.

    Hi gurus,
    I create an outbound delivery in ERP and it is sent to EWM, EWM activates it automaticaly. Then I decide to cancel (delete) the outbound delivery. Altough the status of oubound delivery order is "not started", when i try to change it using VL02N system does not allow to change it. Posts an error message " The delivery was distributed, meaning that processing occurs in another system. The report back has not yet been received.".
    What do you advice me to do.
    Regards.

    Hi,
    Please perform following steps
    Use process Code – “With Quantity Adjustment”. à O001 à  Enter – Quantity. (- Quantity)
    It will adjust the quantity back to Zero.
    Click on  " Outbound Delivery" icon at item level.
    It will create an outbound delivery in EWM and will close/update the Quantity and status in ECC.
    We can create a new delivery against original Sales order again in ECC and will be distributed to EWM.
    You need to click on that button  ( Outbound Delivery) to send a message to ERP. This is a PPF action, start condition is outbound delivery creation. This only happens when you click this button while delivery item has zero qty or post goods issue.
    Saby

  • Generating outbound idoc  - During Oubound delivery deletion using VL02(N).

    Hi All,
    There is a requirement for me to send an outbound idoc from SAP System, when a outbound delivery is deleted in SAP system using transaction VL02N. The functionality is to achieve the same using message control/output control.
    When an item of the delivery is deleted then the idoc is getting generated correctly.
    But when the outbound delivery itself is being deleted no idoc is getting generated in fact the output determination itself is not taking place.
    Could anyone please give me some inputs on this.

    Hi,
    Could anyone please reply to my query. Points will be definitely awarded. Thanks in advance.
    Goutham.

  • Deleted outbound delivery doc displayed in document flow

    Hello,
    Deleted outbound delivery document is still displayed in document flow and its status is 'Archived'
    I don't know why deleted document  is seen and moreover I haven't ever seen such a status in document flow. For your reference, the delivery document is displayed in only VF02 or VF03 with its billing document, which is also cancelled. One more thing, its sales order is also deleted.
    Thanks for your kind response in advance.

    Hi,
    This is happening because invoice can only be cancelled and not deleted. While sales order and delivery can be deleted. So if you check the document flow of the cancelled invoice it will show the delivery number but with status as archived. If you try to display such documents you will get an error message 'Delivery xxx does not exist'.
    If you delete a sales order and delivery which does not have an invoice this will not happen.
    Regards,
    Sajith.

  • Delete outbound delivery in 4.6c

    Hi,
    I need a function module or BAPI to delete an outbound delivery(VL02N).
    I came to know about BAPI BAPI_OUTB_DELIVERY_CHANGE from forums,but this is not available in 4.6c.
    I saw another BAPI in 4.6c BAPI_OUTB_DELIVERY_CONFIRM_DEC which has deletion flag but when I tried this it says "delivery cannot be deleted".
    Any idea if there are any another function modules in 4.6c which can do the same.
    Thanks in advance,
    Ramesh

    No longer needed. Identified the root cause of this issue and it is addressed now.

  • Deleting Outbound Delivery

    Dear Guru's
    I have created sales order contains only 1 item and then create its delivery with ref to sales order.
    but mistakenly my user has deleted that line item, now delivery is exist without any item. Manual entery
    is not allowed at delivery. When i try to click on delete button on top, system is giving message that Outbound
    delivery no........ has been changed. so the document flow still contain delivery as a status open.
    I want to delete that delivery to create new one against the same order.
    Can any 1 tell me is there any programe through which i can flag it or delete it or remove its assigment from sales order???
    Regards,
    Rashid Masood

    thanks for ur reply,
    i think u did not understand my delivery is alreay empty there is no line item exist. Problem is not with the stock.
    Problem is i m not able to delete that delivery nor i am able to add line item because manual addition is not allowed.
    When i check sales order document flow that empty delivery is attached with sales order now i want to remove or delete delivery so that i can create new one.
    Regards,
    Rashid Masood

  • How to change QCI data in Outbound Delivery Order (VL02N)

    HI,
    Dear ABAP Experts,
    I need to over ride standard Quantity conversion interface data in Outbound Delivery Order with user specific data. Go to VL02N and select item number and click on ‘Additional Quantities’ button we can see all SAP calculated QCI data for that item. I need to over write these values with User specific data in VL02N. When I do with BDC program I can update only few units what ever visible in QCI screen. When i scroll down or page down and add new values for other units, system is not capturing any function code for scroll or page down function.
    Please can anyone guide me if have any BAPI or FM to solve this issue. Delivery order is related to IS-OIL/HPM.
    Any help will highly appreciate…

    Try this FM to create Oubound delivery with QCI IS-OILS HPM, additional quantities.
    It works perfectly and saves data in LIPSO1 and LIPSO2
    OIJ_EL_DOCG_CREATE_DELIVERY
    I_TICKET_ITEM-menge
    I_TICKET_ITEM-meins
    I_TICKET_ITEM-matnr
    - QCI convertion values
    I_TICKET_ITEM-tstmp
    I_TICKET_ITEM-tsteh
    I_TICKET_ITEM-tdich
    I_TICKET_ITEM-werks_d
    I_OIJNOMI-docind = 'S' for sales order document
    I_OIJNOMI-docnr
    I_OIJNOMI-docitm
    - fill table T_ERR_LOG with one blank line because it raise an index error
    T_ERR_LOG

  • Error while deleting outbound delivery

    Hi experts,
    To brief about the issue,we are trying to delete outbound delivery created with reference to sales order which was created with wrong line items .We are trying to delete the outbound delivery document but the system is showing the error " Topfile KT-STB2000-C1WW line item 000020 has the following missing components :STB2000-C10007R".BOM is created for the same line item KT-STB2000-C1WW with subcomponets STB2000-C10007R and KT-14000-148R.suggest the solution for the same
    Thanks & Regards
    subhash

    Hi Reazuddin,
    We are concerned only with deleting the OBD.Earlier there was a mismatch between material BOM and OBD sub-componets.The wrong sub-componets were taken from sales order.Later on we realized that we dont want these componets (it was mistake) in OBD since BOM has different components.Later on we realized our mistake and we have sychronized BOM components,Sales order components and OBD components and tried to delete the OBD,but the system gives error as explained in above query.The message number that we received is "ZW024".
    Thanks & Regards
    Subhash

  • Change of Sales order info without deletion of Outbound Delivery Order

    Hi Experts
    Background :  Although Invoice has been created and issued , Customer request SD user to divide the invoice into two invoices.
    or change the amount or quantity with same order No.
    AS IS  : 1 . Cancel invoice -> Reverse PGI -> Delete Outbound Delivery -> Change Sales Order -> Create New Outbound Delivery -> PGI ->
    Invoice
    Please let us know how to change sales order info ( cases : seperate 1 item with two items , change ship-to-Customer ,,,,,,,
    Further Explanation on this : After the invoice has been issued, If the customer wants to change the quantity 10, into two line items and One line item with 5 quantity another line item into another 5 quantity , wnats to have two seperate Invoices for this
    Is it possible to have?
    And some times the user wants to change the Ship to party after the Invoice has been issued, Is it possible to change ?
    Pls help me on this
    Thanks In advance

    Further Explanation on this : After the invoice has been issued, If the customer wants to change the quantity 10, into two line items and One line item with 5 quantity another line item into another 5 quantity , wnats to have two seperate Invoices for this
    Then, you have to first change the same in SO. to do so, you have to reverse all the process to reach SO & amend as required.
    Parila quantity billing is another way to have 2 seperate invoices.
    Is it possible to have?
    And some times the user wants to change the Ship to party after the Invoice has been issued, Is it possible to change ?
    This is doesnt seems logical or Business need. Once goods are alredy sent to respective partner. I dont think business asks you to change the Party name that too Invoice is already made. Is it your assumption or business requirement?
    if its really a business requirement, instead of thinking about the solution, suggest you to educate the Business. Is there any such practical scenario happens in the Market. I dont think so.

Maybe you are looking for

  • How to get files from external hard drive on new user on iMac?

    My wife has an iMac, and I want to transfer my time machine info from my external hard drive that it ultimately from my laptop...onto a new user name on her iMac for myself. How do I do this? Because every time I connect my external hard drive, it ju

  • Rebuild Snow Leopard server on new mac mini

    I have a very stable customised Mac mini server running SLS.  However the machine has developed a hard drive fault and I wanted to get a new mac mini i5 server and restore my stable SLS configuration - from Time Machine (the server backs up to a NAS

  • Downloadable online gallery

    Hi, I have been trying to make an online photo gallery using Photoshop Elements 8.0. I am hosting this album on my own website with the idea that family and friends can view and download the album or pictures as they require. Making the album goes we

  • Timestamp in HostFTP receiver channel

    Hello, I am working on one scenario which is having sender Proxy and receiver as HostFTP.There is a requirement to append timestamp in File name.Is it possible while using HostFTP receiver channel? If yes,please guide me how we can acheive this. Than

  • Score Issues between Captivate 4 and 5

    Hi Everyone, We are noticing an issue between Captivate 4 and 5 and we can't seem to figure out what is going on, this issue is with Captivate modules that have no quiz and the completion status is based only on a % of slide views.  We publish as SCO