Default delivery block

Hi,
I want to put a defaullt Delivery block in sales order if the material is changed.
if sy-tcode = 'VA02'.
if xvbap-matnr ne yvbap-matnr.
vbak-lifsk = '40'. '40 is a Delivery block
endif.
endif.
with this, the block is placed when the material is changed. but if someone manually checks and removes the block, while saving the order it puts back the block again.
What can i do to prevent that. I am a functional guy and trying to manage w/o a developer.
if anyone can provide the code. Points will be given.
Thanks

Hi Penn ,
u can also check XVBAK-UPDKZ( update Indicator ,i'm not sure of the field name , please check it) ,
if its  newly created then value will be I , in case of change it will be U , so based on it u can prevent.
regards
Prabhu

Similar Messages

  • How to set delivery block in va01 by not use delivery block reason.

    Dear SAP Gurus.
    I have one scenario. I need to do delivery block on sales order while i create sales order via VA01.
    Normally, I use delivery block reason in header and set delivery block in schedule line.
    In addtion, i dont want to use above method and not use complete delivery (Tick on it)
    So, I would like to know it has other way to do delivery block.
    The cause is my manager do not allow to use  this field from company's policy.
    Please help me to solve this problem.
    Thank you in advance for your kindly help.
    Best Regards,
        Surakit

    Surakit,
    Well, do you want to say that user should not manually user delivery block at header or sch line to block the doc or any other method manually done before saving the sales order.
    In that case, for making default delivery block at header, in Sales doc type (TCode VOV8) in Shipping section, maintain a delivery block as 22-Statutory Compliance(even any other option available) or for Item based block on Sch line cat (TCode VOV6) maintain default delv block there.
    Or if I misunderstood your requirement then we can wait & see other solution coming for the same.
    Thanks & Regards
    JP

  • Delivery block in sales order

    Hello,
    I have an issue regarding delivery block.
    I've read a couple of posts regarding this, but they all solved their issue by using userexit_save_document or userexit_save_document_prepare which is no option for me.
    My issue is the following:
    I've created an order type ZTA (copy of TA) and setup a default delivery block "Z1 - in work" to that order type.
    This prevents that after saving the order it will not be automatically delivered by a job which is running in background.
    So each time I create a ZTA order with VA01, it will set the delivery block Z1. That's fine.
    Now let's say when a customer has a delivery block (e.g. Z5), it will not overwrite the order delivery block Z1, when entering sales-to-party (or ship-to-party)!
    Now I tried to add some code to userexit_move_field_to_vbak like that:
        if not kuwev-lifsd is initial.
          vbak-lifsk = kuwev-lifsd.      " Z1 -> Z5
        else.
          if not kuagv-lifsd is initial.
            vbak-lifsk = kuagv-lifsd.     " Z1 -> Z5
          endif.
        endif.
    Result: It will execute my new code sequence, but will not change the delivery block Z1 to Z5 on the VA01 screen. Maybe because I'm at this step not in update but insert mode?
    I need to show the customer's delivery block while creating the order, means showing the delv. block after saving is too late.
    Is there maybe a better exit to change the order delivery block to the customers delivery block?
    Thanks in advance
    Wolfgang

    Dear Wolf,
    I dont know whether it might help you but , we had a requirement to make the information message of CUSTOMER BLOCK (which we do in XD05) to ERROR message .
    It was done in the include MV45AFZZ but i do not know much technical details.
    What i know is, this include comes much before the SAVE comes.
    Also if you can write the logic to check the BLOCK STATUS from customer master and if it has a value, then fill the same in the respective field in sales order, system might throw that blocking reason.
    If there is no reason, system will put the the default blocking reason from the sales order.
    Better you post the issue in ABAP forum.
    You might get more inputs there.
    Check and revert back.
    Thanks & Regards
    Hegal  K Charles

  • Set delivery block in MIGO

    Hi All,
    I have a requirtment where the supply process is 05 and a X-dock delivery will get created... also an inspection lot gets created in background..
    Once the system creates a inspection lot.. the delivery should be blocked - LIKP-LIFSK = Z2.
    Can anyone throw some light on this?
    I found that we can change the values of LIKP but before that the conditions should get satisfied...
    like the below one :
    Check MARC- QMATV where MARC u2013MATNR = MSEG-MATNR and MARC-WERKS = MSEG- WERKS , if MARC=X then the system will create an inspection lot and the delivery should be blocked
    please let me know

    Surakit,
    Well, do you want to say that user should not manually user delivery block at header or sch line to block the doc or any other method manually done before saving the sales order.
    In that case, for making default delivery block at header, in Sales doc type (TCode VOV8) in Shipping section, maintain a delivery block as 22-Statutory Compliance(even any other option available) or for Item based block on Sch line cat (TCode VOV6) maintain default delv block there.
    Or if I misunderstood your requirement then we can wait & see other solution coming for the same.
    Thanks & Regards
    JP

  • Regarding delivery block in sales order

    Hi experts,
    i have problem in user exits in which i hav 2 work
    my requirement is if sales organization is ____ and order type is_____
    and payment of terms is ______
    then delivery block must  be ' Needs Approval'..
    please help me out for this
    Thanks in advance.....
    Anoop.
    Moderator Message: I dont see any problem with the requirement. All you need to do is find the right EXIT/BADI and code your logic there.
    Edited by: kishan P on Nov 16, 2010 6:21 PM

    Dear Wolf,
    I dont know whether it might help you but , we had a requirement to make the information message of CUSTOMER BLOCK (which we do in XD05) to ERROR message .
    It was done in the include MV45AFZZ but i do not know much technical details.
    What i know is, this include comes much before the SAVE comes.
    Also if you can write the logic to check the BLOCK STATUS from customer master and if it has a value, then fill the same in the respective field in sales order, system might throw that blocking reason.
    If there is no reason, system will put the the default blocking reason from the sales order.
    Better you post the issue in ABAP forum.
    You might get more inputs there.
    Check and revert back.
    Thanks & Regards
    Hegal  K Charles

  • Automatick delivery block

    Hi Experts,
    Can we make automatic delivery block in sales order if for that sales order advance payment not recieved ?.Is there is any enhancment is there for this issue .
    Regards,
    Suresh

    Hi,
    Rather you can have a default blocking reason called "Advance Payment" for order. You can release the order based on verification that advance payment has been recieved.
    You can configure a seperate sales order type for advance payment and set default block inside that.
    Second way to handle this scenario is through credit management. Configure one payment terms called "Advance Payment" now whenever you are creating a sales order which should have advance payment, change the payment terms at the time of SO creation to Advance Payment. Now the sales order will get block because of credit check since we changed the payment terms. You can have an authorized person to remove this block then based on the authorization. The advantage of this method is when you go to tcode VKM3 to remove the blocked SO you can see the reason for block and release the document.
    Regards,
    Shantanu

  • Delivery Block being Removed in Sales Order

    Hello,
             While Creating a Sales Order, the moment we enter the Sales Order Entry initial Screen, the Delivery block is being set to a Default Value. However, when I enter the Sold-To,Ship-To, Material, Quantity & Plant and press enter, it disappears. But the Functional Requirement is that it should remain the same even after pressing enter. Can some one give me an idea as to how to achieve it?
    Thanks and Regards,
    Venkata Phani Prasad Konduri

    Hello,
            In fact there are no Checks / Validations in any of the User-Exits for Sales Order. I think it has something to do with Config which is setting the Delivery Block automatically for some of the Order Types and I want to know which would be the appropriate place to restore the Delivery Block after the Enter is pressed. Is there a BADI for Sales Order? Or do I need to do the check in USER_EXIT_MOVE_FIELD_TO_VBAK? Please let me know.
    Thanks and Regards,
    Venkata Phani Prasad Konduri

  • 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.

  • User Exit for VA01 - Delivery Block

    Dear Friends
    I wanted to do a User Exit for VA01 which should set the Delivery Block = Credit Memo as default for a particular user.
    Can anyone give me the solution.
    REg
    S.K.Raj

    Hi Kamaraj,
    First of all u have to find out the perticular exit for make the changes, after that take one field TBTKZ which is flag for decit /credit memo. Based on the condition that flag set as 'X'. If that flag set as 'X' then populate the data.
    Here it ishow to find out the user exit.
    execute the following report and enter the t-code VA01 it will display all the exits. then search them by seeing coments..
    report zuserexit no standard page heading.          
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.          
             tables : tstct.          
    data : jtab like tadir occurs 0 with header line.          
    data : field1(30).          
    data : v_devclass like tadir-devclass.          
    parameters : p_tcode like tstc-tcode obligatory.          
    select single * from tstc where tcode eq p_tcode.          
    if sy-subrc eq 0.          
       select single * from tadir where pgmid = 'R3TR'          
                        and object = 'PROG'     
                        and obj_name = tstc-pgmna.     
       move : tadir-devclass to v_devclass.     
          if sy-subrc ne 0.     
             select single * from trdir where name = tstc-pgmna.     
             if trdir-subc eq 'F'.     
                select single * from tfdir where pname = tstc-pgmna.     
                select single * from enlfdir where funcname =     
                tfdir-funcname.     
                select single * from tadir where pgmid = 'R3TR'     
                                   and object = 'FUGR'     
                                   and obj_name eq enlfdir-area.     
                move : tadir-devclass to v_devclass.     
              endif.     
           endif.     
           select * from tadir into table jtab     
                         where pgmid = 'R3TR'     
                           and object = 'SMOD'     
                           and devclass = v_devclass.     
            select single * from tstct where sprsl eq sy-langu and     
                                             tcode eq p_tcode.     
            format color col_positive intensified off.     
            write:/(19) 'Transaction Code - ',     
                 20(20) p_tcode,     
                 45(50) tstct-ttext.     
                        skip.     
            if not jtab[] is initial.     
               write:/(95) sy-uline.     
               format color col_heading intensified on.     
               write:/1 sy-vline,     
                      2 'Exit Name',     
                     21 sy-vline ,     
                     22 'Description',     
                     95 sy-vline.     
               write:/(95) sy-uline.     
               loop at jtab.     
                  select single * from modsapt     
                         where sprsl = sy-langu and     
                                name = jtab-obj_name.     
                       format color col_normal intensified off.     
                       write:/1 sy-vline,     
                              2 jtab-obj_name hotspot on,     
                             21 sy-vline ,     
                             22 modsapt-modtext,     
                             95 sy-vline.     
               endloop.     
               write:/(95) sy-uline.     
               describe table jtab.     
               skip.     
               format color col_total intensified on.     
               write:/ 'No of Exits:' , sy-tfill.     
            else.     
               format color col_negative intensified on.     
               write:/(95) 'No User Exit exists'.     
            endif.     
          else.     
              format color col_negative intensified on.     
              write:/(95) 'Transaction Code Does Not Exist'.     
          endif.     
    at line-selection.     
       get cursor field field1.     
       check field1(4) eq 'JTAB'.     
       set parameter id 'MON' field sy-lisel+1(10).     
       call transaction 'SMOD' and skip first   screen.
    Hope this helps you..
    Regards,
    Kumar.

  • Authorization check for Removing of Delivery block in Sales Order

    Hi,
    I want to have an authorization check for the person removing the delivery block in the Sales Order.
    By Default all Sales Orders will have a delivery block. I want to ensure that the user does not have the authorization to Remove the Delivery block.He should be able to choose any reason in the Delivery block if required.
    Only the user which has the authorization to remove the delivery block should be able to do so.
    I have checked that the Delivery block field does not have an Auth Object.
    I want to enable delivery block removal for some users and restrict the same for others.
    Please Advise

    Hi,
    In object V_VBAK_AAT you can find the activity 43 that is meant for authorisation, that should be removed for the users who are not supposed to release the sales order for any blocks.
    Try that it will work.
    Regards,
    Mann.

  • Report generation for Delivery Blocked Orders

    Hi All,
    I am trying to pull up a report which should contain only orders with the Delivery Block.
    Through VL06O i can get the orders which need to PGIed, which are open, which are stuck in workflow and which have got delivery block.
    So is it possible to separate the delivery blocked orders (from an end user point of view) from the other orders. I tried to have a look at the filters which i could put on the VL06O-> Outbound Deliv. for PGI, but couldn't find it.
    can any one help in thi regard.
    Thank you in advance.

    Hi,
    Try report V.02 - Incomplete Orders

  • Delivery block in sale order

    Hi,
    I got a problem with registration of a sale order with a BAPI : it set automatically a delivery block , and this not happen when using VA01.
    After create the order, for this one will be insert a technical object (serial number) and made some other change (always using BAPIs) like the requested delivery date or some texts.
    There is not any block set in customizing (tab. TVAK) for that type of order.
    If this was true,the block should have been set even using VA01,or not ?
    Thank you in advance.
    Luca

    I mean your order gets DB if created via BAPI and does not get any DB if created via VA01, right ?   What DB did your order get when was created via BAPI ?
    Is it your custom DB or SAP DB ?  Do you have any special logic in userexits to apply DB in some cases ?   If you have any logic which applies DB - does it have a check for sy-tcode ?

  • Standard T Code to release list of sales orders in 'Delivery Block'

    Dear All,
    Is there any standard transaction code in SAP which provides the facility to release list of sales orders in 'Delivery Block'. (Additional information - List of sales orders in 'Delivery block' is available in V.14,however it does not have release facility).
    For example, VKM3 gives the list of sales orders in 'Credit block' with release facility.On the same lines, is there any standard T code or any other facility in standard SAP which provides the facility to release list of sales orders in 'Delivery Block'.
    Thanks and Regards,
    Zahid

    As already suggested, if you execute VA14L you can see all sale orders that are blocked at
    -  header level
    -  item level
    -  credit check
    Wherever you see "X" under the tab Header level, double click on the respective sale order, so that system will take you to sale order in change mode.  You can remove the header level delivery block and save.
    thanks
    G. Lakshmipathi

  • Prevent Outbound delivery creation in sales orders with delivery block

    Hi gurus
         We are facing the following issue:
         Some sales orders have delivery block header and once they are saved an outbound delivery document is created; we want SAP system creates outbound deliveries only in those cases were sales orders have not a delivery block in header, is there any option or configuration we can use in order to prevent the creation of these documents?
    Regards,
    Edgar.

    Well Edgar,
    let's see then in spro
    Logistics Execution->Shipping->Deliveries->Define Reasons for Blocking in Shipping
    Check out the configuration of your delivery block reason and pay special attention to this instruction:
    "In sales documents, you can either enter delivery blocks manually at header level (business data in the sales document header) or they can be proposed automatically by the system. In the latter case, the delivery block must be entered in the respective sales document type (see chapter
    "Define sales document types"). In addition, the delivery block in the sales document header is only effective if the delivery block has been assigned to the respective delivery type."
    It must be something in the configuration of the delivery block reason you're using.
    Regards,
    Edgar

  • Number of times sales order./delivery blocked

    Hi,
    Do we have a report which gives details about number of times sales order/delivery blocked because of credit management.
    Or there is any work around for getting the same?
    I request you to kindly suggest your valuable inputs.
    Regards,
    Phani Prasad.

    Hi Balaji,
    Thanks for your reply.Please find the below example.
    Customer A was blocked for credit limit on 01.01.2011 and subsequently released using VKM3.
    Again the same customer was blocked on 02.01.2011 and once again released.
    How do I know the number of times Customer A was blocked and released for a given period.(2 times in the above example for that period).
    Please explain.
    Regards,
    Phani Prasad.

Maybe you are looking for

  • Revisit:  The iPod and Copy Protection

    Ok, mac mini and no mic/input. Now what?

  • Is iPhone 4 still can downgrade from 7.1.2 to 6.1.3 ?

    i have a iphone restore crash, after 3 days i try to restore my iphone they always show error 3194... i had try all the way to restore it, "editing host file", tiny umbrella and many more, but my iphone still doesnt want to restore... and now i try t

  • How to join data from SAP BW and Oracle database from Webi?

    Hi, Need to  create a Web Intelligence Report connecting to multiple data sources.         Ø SAP-BW contains the data (All units).                                                                                Ø Oracle db contains the access security

  • Steps allowed in Exception Branch

    I am a novice to XI planning to take my certification. But have a question. Could any one answer me what steps are allowed in EXCEPTION BRANCH? I am having the following two answers as per TBIT materia on ccBPM. Believe the first one is correct. But,

  • Apple TV, Photo Streaming and iCloud

    I just got an Apple TV and am trying to set up Photo Streaming but whenever I try to open it it tells me that the Terms and Conditions of iCloud have changed. System Preferences>iCloud do not show updated Terms. Help?