How to delete or remove delivery block in VL01N using userexit?

Hi All,
Would like to seek your advice on the above mention subject. There is a scenario where during the creation of sales order (VA01) and the order type is Sample Order (ZSA). The delivery block for the customer has the status '05: Check Free of charge delivery'.
After creation of sales order, i would like to create a delivery via (VL01N) with reference to the sample sales order that i have creation as mention above. It does not allow me to create and after i hit enter, a display log prompt out with the message text: Order blocked for delivery as a result of credit check.
Question:
1. How to set the delivery block to blank or delete the delivery block via user exit during the creation of delivery (VL01N)?
2. Which form should i use in user exit: MV50AFZ1, is it FORM USEREXIT_SAVE_DOCUMENT or FORM 
    USEREXIT_SAVE_DOCUMENT_PREPARE?
Steps Taken:
1. User exit found is MV50AFZ1.
Appreciate your advice a lot. Thanks in advance..:)

Hi,
i would suggest you to read these links first.
[http://help.sap.com/saphelp_46c/helpdata/en/93/744bf2546011d1a7020000e829fd11/content.htm]
[http://help.sap.com/saphelp_crm40/helpdata/en/dd/5607b3545a11d1a7020000e829fd11/content.htm]
this will you an idea of delivery block.
at delivery level LIKP-LIFSK field stores the delivery block value. in your case it will be 05. 90 is total block i believe.
so in your case, in user exit check for value in this field and if its 05, make your changes.  be careful when you make this change;  any batch jobs running at background can also get affected and start creating deliveries although it is suppose to have a delivery block.
Thanks,
Sam.

Similar Messages

  • Schedule Background Job :  Remove delivery Block in Sales order

    Hi Gurus,
    I have a requirement to select all sales orders as per a condition and remove delivery block at
    VA02-> Go to -> Header -> Status
    For that I have to write a program which will be run only in background and i have to schedule background job for the same.
    I have a parameter at selection - No of records
    If no of records = 500 , I have to submit 500 jobs ie one job each for each sales order for removing delivery block.
    I need to know
    1) Which function module/bapi I can use to remove delivery block at sales order header level.
        For blocked delivery the status is 'BSTK" . to remove block i need to change status to "RSTK".
    2) How to schedule a background job for my program and how to submit one job each for each sales   order.
    Regards
    Avi.

    Hi Avi,
    Would like to seek for your advice. I am facing the same scenario too which is to delete the delivery block but is deletion of the delivery block is done in the user exit MV45AFZZ. The subroutine which needs to have the extra logic of deleting the delivery block is USEREXIT_SAVE_DOCUMENT_PREPARE.
    Need your advice on how do you solve this scenario? Thanks in advance.

  • Remove Delivery Block - ORDCHG - INBOUND

    Hi,
    I'm trying to remove the delivery block set in sales order ( vbak-lifsk ) using the inbound ORDCHG message idoc.
    i'm populating E1EDK01-LIFSK = ''. This doesnt remove delivery block from the order. ( if we try to set delivery block E1EDK01-LIFSK = '01', it's coming through fine in the order ). when i debugged the FM IDOC_INPUT_ORDCHG, sap is populating the screen only if E1EDK01-LIFSK is NE space.
    Does this have to be handled in different way or in user-exit? Your inputs are highly appreciated.
    Thanks,
    Arun

    Naren,
    EXIT_SAPLVEDA_002 is triggered during ORDERS message. I'm changing the already created order using ORDCHG message type. In this case, i have to use EXIT_SAPLVEDB_002 to populate the BDC screens.
    I'm wondering why SAP standard segment field E1EDK01-LIFSK is not used for removing the delivery block as its for setting the block.
    If the standard segments are not working out, then i have to use  EXIT_SAPLVEDB_002 to populate the dynpros for delivery block field.
    Thanks for your input.
    Arun.

  • How to delete photos and albums from ipad without using iTunes

    I have an ipad 2 5.1.1 I need to delete photo albums without using iTunes. I've tried the edit button but it won't let me delete images or albums, just modify them. How do I delete?

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • How to determine that the Delivery Block in SO is removed manually

    Hi,
    Is there any way to determine if the delivery block is removed manually? Because initially on VA01 we are defaulting the delivery block. Then in VA02, if the user removed the delivery block then save, then goes back to VA02 again, in this, I need to determine that the delivery block was removed manullay.
    Regards,
    Mawi

    Hi,
    You can check out in environment->changes ..you can determine the manual changes made to the order...
    Thanks,
    Shailaja Ainala.

  • How to delete the stpo delivery

    hi ,
    please help me How to permenently delete the STPO Delivery.
    When am i creating stpo delivery, the system confirming the stock to the particular stpo deliver. we blocked the stpo delivery. but stock is confirming to that delivery only.
    i would like confim those stock to the other stpo delivery.
    how to handle. please help me.
    thanks and regards,
    ch.srinivas.

    Now it is confusing
    In ME21N you can create Stock Tranfer Order or Purchase Order.
    With VL04 or VL10B you create Delivery for it.
    I had assumed the above.
    The solution for you may be to use ME22N, make quantity of each line item zero and then but "mark for deletion" icon against each line by selecting each line item.
    Ashish

  • How to delete hyperlink (Remove signature) in a form created with InfoPath

    Hello. 
    We have Sharepoint 2013 Foundation in production. It work with forms created with InfoPath. In these forms, digital signatures are used to approve. The problem is that once you have signed the forms, the user can remove the signature. That's what we want to
    avoid.
    Which file should I edit to remove the hyperlink? I can not find how to do it. Do you know a better option? 
    Greetings.
    MCSA: Windows Server 2008

    Hi,
    According to your post, my understanding is that you want to delete hyperlink (Remove signature) in a form created with InfoPath.
    As far as I know, there is no OOTB way to achieve this. You need to use custom code to prevent removal of digital signatures.
    Please add the OnBeforeChange handler code to the "signatureN" group where the signature is stored, not to the section you are signing.
    In other words (my excample) browse to :
    Tools - Form Options - Digital Signatures - "Enable digital signature for specific data" - Modify/Add
    Note the "Store signatures in the following group" value. It will be a read only value, eg /my:myFields/my:signature3/my:signature4
    Here is a similar thread for your reference:
    http://www.infopathdev.com/forums/p/3661/12829.aspx#12829
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to update Sales Order Delivery Block while saving Delivery ?

    Hi,
    I have a requirement wherein i need to update sales order delivery block field(VBAK-LIFSK) while saving the delivery for the order.
    Also I need to remove this block while execution of  Backorder Rescheduling program SDV03V02 (Tcode : V_V2),
    Can anybody help me out in this?
    regards,
    Nitin

    HI,
    try using BAPI_SALESORDER_CHANGE
    pass ur vbeln in SALESDOCUMENT
    pass an 'X' to    BAPISDH1-DLV_BLOCK
    and 'X' to        BAPISDH1X-DLV_BLOCK
    Also add the UPDATE task clause, you will want to set the flag only when delivery is being saved, not before that.

  • How can we put temporary delivery blocks on STOs

    Hi,
    We need to put temporary delivery blocks on our UB type POs while we keep adding items to them till it is time for a full truck load to deliver all the products. Where can we do that?

    Yogesh,
    As to my understanding, you can put your STO on hold if the scensrio is on header level. Then after you add the material, you can save it.
    Hope it useful.

  • How to delete all removed devices in Windows

    I want to know is there any way to delete all removed devices (show as grayed out) in bulk in Windows?
    黄俊伟(wbpluto) MSN: [email protected] Blogs: http://blog.wbpluto.com http://blogs.itecn.net/blogs/wbpluto

    Hi ,
    Choose “Scan for hardware changes” by right clicking the machines` name at the top of this list.
    Restart the machine and then check the result.
    Best regards

  • How to delete Open/WIP Projects/Network Orders/WBSes using program PSARCHP1

    Hi,
    We have multiple open or WIP projects/Network orders. Program PSARCHP1 is used for this purpose. Can anybody suggest how to delete all these projects/networks that are open/WIP.
    Regards,
    Rakesh Kumar

    I think it's not possible to remove for the data base in sap. However you can delete the records for the tables which is not suggetable. which server do you want to do this??
    if developement yes you can delete the table records.
    As per my experiance we should not delete the table records because it's linked many tables and diff modules in sap.
    I hope it's help ful.
    give the points.
    Regards,
    Raman

  • How to delete the record in the table without using lead selection?

    hi,
    I have added the separate column "delete" to the table uielement and so for each record or row of the table the appropriate "delete" link to action will be there................the code below works when the particular row is selected through lead selection only.......
    help me how to delete without using lead selection.....
      DATA:
      NODE_MODULE                         TYPE REF TO IF_WD_CONTEXT_NODE,
      ELEM_MODULE                         TYPE REF TO IF_WD_CONTEXT_ELEMENT,
      STRU_MODULE                         TYPE IF_V_MODULE=>ELEMENT_MODULE .
       data itab TYPE TABLE OF zac_modules.
      navigate from <CONTEXT> to <MODULE> via lead selection
      NODE_MODULE = WD_CONTEXT->GET_CHILD_NODE( NAME = `MODULE` ).
      get element via lead selection
      ELEM_MODULE = NODE_MODULE->GET_ELEMENT(  ).
      get all declared attributes
      ELEM_MODULE->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_MODULE ).
    NODE_MODULE->GET_STATIC_ATTRIBUTES_TABLE(
        IMPORTING
         TABLE  = itab )
    DELETE itab WHERE zmodule_id = STRU_MODULE-zmodule_id.
    CALL METHOD NODE_MODULE->BIND_TABLE
        EXPORTING
          NEW_ITEMS            = itab
       SET_INITIAL_ELEMENTS = ABAP_TRUE
       INDEX                =
    ENDMETHOD.

    Hi  ,
    The onclick event provides you with a standard paramater "CONTEXT_ELEMENT" which has the element from which the event is triggered.
    so you can declare this in the handler(if it is not there) and use it as follows.
    CONTEXT_ELEMENT  TYPE REF TO IF_WD_CONTEXT_ELEMENT  an importing paramater.
    DATA:
    NODE_MODULE TYPE REF TO IF_WD_CONTEXT_NODE,
    ELEM_MODULE TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_MODULE TYPE IF_V_MODULE=>ELEMENT_MODULE .
    data itab TYPE TABLE OF zac_modules.
    CONTEXT_ELEMENT->GET_STATIC_ATTRIBUTES(
    IMPORTING
    STATIC_ATTRIBUTES = STRU_MODULE ). "Using the context_element paramater to get the static attributes.
    NODE_MODULE->GET_STATIC_ATTRIBUTES_TABLE(
    IMPORTING
    TABLE = itab )   "getting all the data.
    DELETE itab WHERE zmodule_id = STRU_MODULE-zmodule_id. "deleting the particular row from the table and binding it.
    CALL METHOD NODE_MODULE->BIND_TABLE
    EXPORTING
    NEW_ITEMS = itab
    * SET_INITIAL_ELEMENTS = ABAP_TRUE
    * INDEX =
    thanks,
    Aditya.

  • HT4759 i use icloud, butn not sure  how to delete some data that i no longer use, to free up space, help please

    I need some help with my icloud, i have data that i no longer use and dont know how to delete it off my iphone or itunes, help please. im not to good with computer so please make instructions as easy as possible, thank you...

    Hello, sweeper123.
    Thank you for the question.  The articles below will help you in managing your iCloud storage.  The first article covers what information is backed up.  The second article will walk you through how to manage your iCloud storage.  
    iCloud: Backup and restore overview
    http://support.apple.com/kb/HT4859
    iCloud: Managing your iCloud storage
    http://support.apple.com/kb/ht4847
    Cheers,
    Jason H. 

  • How to delete or remove a SWCV?

    Hi everyone,
    I have created some test SWCV, but now I need to remove them from the Object List in the Design and Configuration Screens.
    How do I do it? Thank you,
    Felipe

    Hi Felipe,
                  Go to Transaction code "SXMB_IFR"------> SLD -
    > select u r SWC and right click on it and delete ...............And also do the same in
    Integration Repository----
    Design
    Integration Directorry----
    Configuration
    if u r new to XI here some of the links where u can have good excerises:
    TBIT40:
    https://websmp109.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT40
    TBIT41:
    https://websmp201.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT41&LANGUAGE=
    TBIT42:
    https://websmp206.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT42&LANGUAGE=
    TBIT43:
    http://www50.sap.com/useducation/curriculum/course.asp?cid=60161651
    TBIT44:
    https://websmp102.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT44
    Reward with points if helpful
    Regards
    Sai Ganesh

  • HT3777 how to delete or remove windows Vista?

    I need to delete/ remove Windows Vista from IMac. how to do ??

    Use the Boot Camp Assistant in the /Applications/Utilities/ folder to return the drive to a single partition setup. If the computer was set to boot into Windows, select the Mac OS X system in the Startup Disk pane of System Preferences.
    (64967)

Maybe you are looking for