Skip to Content
author's profile photo Former Member
Former Member

Setting a Delivery Block on a Delivery during creation (VL01N)

Hi all,

We have a requirement to place a Delivery Block (Awaiting Inspection - QA) on Deliveries of a certain Order Type when they are created.

I've previously done this for Sales Order Header (via MV45AFZZ, USEREXIT_SAVE_DOCUMENT_PREPARE) by setting VBAK-LIFSK to 'QA'. This worked straight away.

However I'm having a real issue in doing something similar for Delivery Header. I've already attempted changes (via MV50AFZ1, USEREXIT_SAVE_DOCUMENT & USEREXIT_SAVE_DOCUMENT_PREPARE) by changing LIPK-LIFSK.

I wonder if I'm changing the wrong value, or setting it at the wrong point for Deliveries?

Any help much appreciated, cheers!

Add comment
10|10000 characters needed characters exceeded

  • I would add a tag for 'SD' also, you might get some more answers from those folks...

    In this case do you have a sales order for the delivery? If you do, then you might be able just use config to set the header block automatically - no programming needed.

  • Former Member Raghu Govindarajan

    Added the tag, thanks.

    We do have a Sales Order at this point, but it's the Delivery Header we need to place a block on, not Sales Header.

    I've found a BAPI (BAPI_OUTB_DELIVERY_CHANGE) that looks like it'd update the delivery block, but since I'd like to place the block during creation, we've not got the right header data to populate the BAPI at this point.

    If I could find somewhere to do this right after the delivery is created, then that'd be something to consider, but I'm not quite sure.



  • I've closed this question due to lack of clarity in the question.

Further commenting has been locked.

4 Answers

  • Best Answer
    Posted on Feb 24, 2017 at 11:43 AM

    Sam Powell wrote in a private message to me. I thought it worth reopening the question to post it.

    My question was very clear: I want to change the value of LIKP-LIFSK at the point of delivery document creation, in MV50AFZ1, similar to as I had previously done in MV45AFZZ for sales documents.

    You'll be glad to know I managed this by changing XLIKP-LIFSK, not LIKP-LIFSK.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 16, 2017 at 02:28 PM

    Why to set a block after creating delivery? As a functional consultant, I prefer to have in sale order only and delivery should not be created if there is any quality issue or sufficient stock is not there. Also, I presume, during delivery creation, once the QA block is set, you need to save the delivery and I dont think, this is a Best Practice from users point of view. You must be aware, if any unrestricted stock is made available and you create delivery and save, system would block this unrestricted to stock to that delivery. So at some point of time, there would be more blocked stocks and either the user has to clear the existing deliveries or cancel such of those deliveries.

    Add comment
    10|10000 characters needed characters exceeded

    Further commenting has been locked.
  • Posted on Feb 15, 2017 at 08:43 PM

    Please reach to a qualified SD consultant on this, you are trying to re-create with ABAP what is already available in the configuration, from what I see.

    Google -> "default delivery block"

    Google -> "delivery block user exit"

    Add comment
    10|10000 characters needed characters exceeded

    • Did Google search not answer your question? I ran the same search and found many SCN posts on this subject in seconds, so I'm confused...

      It does not work in deliveries because what you're trying to do is not the standard SAP process. As G Lakshmipathi correctly pointed out, delivery block is assigned in the order. It is not clear to me either why would anyone need to do it in the delivery instead.

    Further commenting has been locked.
  • Posted on Feb 16, 2017 at 03:30 PM

    Raghu Govindarajan

    If you don't understand, better not to respond like this. The question asked was the business process for which, this requirement is needed. Go through the original post once again.

    Add comment
    10|10000 characters needed characters exceeded

    Further commenting has been locked.