Skip to Content
avatar image
Former Member

Trigger availability check in delivery document

Hi Experts,

I would like to trigger a new availability check in delivery when the document is saved.

In my scenario the user deletes the delivery block (block for pick and GI) in the header data.

When the delivery block is deleted, a new ATP is needed in order to confirm again the quantity in the document.

The new check should be the same already triggered by the system when the storage location is changed.

I can use also user exit but i don't know what is the correct one.

Someone has a suggestion for me?

Please help me.

Best regards.


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 15, 2016 at 10:43 AM

    Why wouldn't unchecking field TVLP-VERPR ("Switch off availability check in delivery document") in delivery item customizing (t-code 0VLP) help?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Noel Connolly

      Ciao Noel,

      I have select the following solution.

      As proposed in SAP Note 415716, I have used the FORM routine USEREXIT_SAVE_DOCUMENT_PREPARE (include MV50AFZ1).

      In the note you can read: <<If you want to change item data consistently, you should note the source code example EXAMPLE 1 from the correction instruction. With this, the internal tables of the delivery including the change indicators are updated correctly.>>.

      With this USEREXIT I can check if the header field are changed and maintain the item data.

      Setting V50AGL-ATP_CHECK = 'X' the system perform a new ATP check.

      If an error occurs, the save process is cancelled.

      This is the solution found.

      Replay if have news.