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

How to block a delivery when an A/R Down Payment Invoice is not paid?

1. Create and add a Sales Order

2. Create and add an A/R Down Payment Invoice based on the created Sales Order (set DPM % to 50)

3. Create and add a Delivery based on the created Sales Order

The delivery is not blocked.

Is there an easy workaround/alternative to ensure goods are stopped from being delivered when a customer hasn't paid a certain amount upfront?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2007 at 04:34 PM

    Answering you first question, BaseEntry is the DocEntry of the SalesOrder which I checking in my query with DownPayment Rows BaseEntry.

    The issue as I described is with SAP picking the BaseEntry in the Delivery document. Unless you highlight a row the value of $[DLN1.BaseEntry] is not available for the Query.

    Try this, All the steps can remain the same, but before adding the Delivery highlight one of the Rows and then Click Add, you should see the Approval procedure will get trigerred. This may not be the final solution but I have to check a better way to do this where SAP will automatically get the BaseEntry value in the Delivery rows

    I will get back to you on this.

    NOTE: After we this work, you could add one more criteria in the Where Clause to be doubly sure <b>AND T1.BaseType = 17</b>. This is to check is the DownPayment was created from a Sales Order.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 05, 2007 at 02:39 PM


    You could try to use UDF that is defined with query formatted search or you could use approval procedures where on tab terms you select when the following applies, where the terms can be based on available terms or based on query. let me know if you need more detail. I am afraid the UDF can't perform better than approval procedures.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Suda,

      Unfortunately my usage of the sql queries is a bit rusty and am not sure if I am doing this correctly.

      Next to that I don't exactly see how it should work (hence my comment being rusty - haven't used this very often). I see that it checks the AR Down Payment Invoice document and lines, but how it checks to which sales order it is connected to stop the delivery.. Plus I always want it to stop any delivery when an AR Down Payment for any percentage hasn't paid in full untill it has been paid/approved by someone to be delivered. If no AR Down Payment has been done, there is no issue.

      Anyway I have copied your query to the Query Generator and saved it.

      I created an approval procedure based on delivery documents and based it on the saved query.

      Added a sales order and created a Down Payment Invoice based on the sales order with 40% that has to be paid upfront. Created a delivery based on the sales order and added the document. I only gotten an internal error (it went so quickly I can't see the actual whole message because I get the created message straight after), but it created the delivery anyway.. (same as you described maybe?)

      I'm missing something obviously, let me know what to do.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.