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?

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.
Regards,
Petronella

Similar Messages

  • How can we reject a Sales order after first Down payment invoice for Italy?

    Hello,
    As a legal requirement in Italy the Down paymenty have to be transformed into real invoices, another legal requirement is that an invoice cannot be cancelled it has to reversed by a credit memo.
    I would like to know in this context how we can reject a sales order line once a Down payment invoice has been emitted.
    When I do enter a reason for rejection in the sales order line I receive the message : V1036: Subsequent documenst exist for item XXX and then V2432 Cancellation not possible. Down payment request already created.
    I can create a down payment credit memo in order to cancel the down payment invoice but how can I get rid of my SD requirement in MD04 if I cannot reject the sales order line?

    Hello,
    have you tried using a recjection code which is not relevant for billing?
    Regards,
    Uli

  • How do you report Net Balance of A/R Down Payment Invoice?

    We have recently installed SAP B1 Version 8.8 at a new client site.  The client wants to accept A/R down payments from customers, issue invoices and draw the amount of the invoice from the down payment.  I can see the net amount in an open items list report called A/R Down Payments - Not Yet Fully Applied.  I need to report that net amount on each invoice that draws from the down payment.  I would like to create a Crystal Report or update the existing PLD Invoice to show the amount.  Do you know the link between an A/R invoice and the drawn A/R down payment invoice?

    Hi,
    Try this query it also show the corresponding outgoing payment information.
    SELECT
      T0.DocNum,
      T0.DocDueDate,
      T0.CardName,
      T1.Dscription,
      T0.DocTotal,
      T2.BaseAbs,
      T2.DrawnSum + T3.DiscSum AS DrawnSum,
      T3.DocDate,
      T3.DocEntry,
      T6.DocNum as DocCheck,
      T5.DocDueDate as DateCheck,
      T6.CheckNum
    FROM
      dbo.ODPI T0
      INNER JOIN dbo.DPI1 T1 ON (T0.DocEntry = T1.DocEntry)
      LEFT OUTER JOIN dbo.INV9 T2 ON (T1.DocEntry = T2.BaseAbs)
      LEFT OUTER JOIN dbo.OINV T3 ON (T2.DocEntry = T3.DocEntry)
      LEFT OUTER JOIN dbo.INV1 T4 ON (T3.DocEntry = T4.DocEntry)
      LEFT OUTER JOIN dbo.OVPM T5 ON (T3.ReceiptNum = T5.DocNum)
      LEFT OUTER JOIN dbo.VPM1 T6 ON (T5.DocNum = T6.DocNum)
    WHERE
      T0.CardName = [%0] AND
      T0.DocDueDate BETWEEN [%1] AND [%2] AND
    (T4.TargetType = -1 OR T4.TargetType IS NULL)  AND T1.TargetType <> 19
    GROUP BY
      T0.DocNum,
      T0.DocDueDate,
      T0.CardName,
      T1.Dscription,
      T0.DocTotal,
      T2.BaseAbs,
      T2.DrawnSum,
      T3.DocDate,
      T3.DocEntry,
      T6.DocNum,
      T5.DocDueDate,
      T6.CheckNum,
      T3.DiscSum
      ORDER BY
       T0.DocNum,
       T3.DocEntry
    This for A/R Downpayment Monitoring.
    regards,
    Clint

  • How to close an AR Down Payment Invoice

    SCENARIO:
    The customer added in SAP B1 an sales order, then registered an AR Down Payment Invoice for the all amount.
    After that he registered the incoming payment and at the end he registered a AR invoice linked to the previous AR Down Payment.
    The amount of the AR invoice is less than AR Down Payment one.
    The customer asks if is possible to close the AR Down Payment for the open amount creating a "payment on account" of the same amount.
    Creating an "payment on account" give the customer the possibility to show the amount on the Account Balance Details.
    Thank You in advance.
    Emanuele

    1. AR down payment invoice is closed when you raising incoming payment. So this AR down payment invoice will not appear in incoming payment selection list
    >>> Yes
    2. Further due to partial payment, only AR invoice will be in open status and this AR invoice will appear in incoming payment selection
    >>>the problem is that the AR invoice is registered with a less amount than the amount of the incoming payment
    3. If you want use Payment on account for balance amount, are you able to choose customer account at GL account field?
    >>>the AR invoice is just closed with incoming payment
    4. I don't think it is possible to post balance amount via payment on account. To get correct BP account balance, we have to post at customer account.
    >>>Yes. But if you open the report Sales --> Sales Report --> Open Report --> Incoming payment you continue to see the open amount of the Incoming payment.
    After all my idea is to register a not real AR invoice (really not exist) to link to the open amount of the Incoming payment:
    01: In the report Sales --> Sales Report --> Open Report --> Incoming payment I will not have more open amount
    02: After that I will adjust BP account balance with a post at customer account
    Thank you for your opinion ....

  • How to block the handset when it is missed

    can i know how to block a handset when it is missed. Its a brand new handset & there is no sim card in it. but i have the handset manufaturing code number

    Your phone can btw be tracked, but not as mccbleue mentiones in his guide. First of all the Imei number must not be blocked cause what you want to happen is that the person who found it/ stole it, switches Sim cards and start using the sim card registrated on him with the phone. That way it will be able to see who has started to use his SIM card with the IMEI number on your phone. Then it should be able to track down the adress of the person and get it. However, it's unlikely that the police will do this unless it's a matter of importance. But it never hurts to ask your local police about it. They migh actually do it for some reasons or others.
    If they don't have the time or don't want to track it you just ask if they can request the imei to be blocked or you call your operator your self to hear if it ccan be done without going through the police. After a IMEI block, the phone will be totally useless for calls and sms's as mentioned in a previous post.
    Most likely your important content isn't of any interest for the person who finds it. It might even be that the phone is found and given to the police. In that case you should contact them anyway just to make sure it isn't found. Blocking your Sim card won't make your phone useless, only the sim card.
    Good luck.

  • Customer Down Payment invoice (from delivery) not automatically assigned

    If I create a Down payment invoice from Sales Order (and I paied it) on the final invoice the sistem automatically assigne the down payment invoice on the final invoice for the order.
    If I do the same think but crerating the Down payment invoice from the delivery (and I paid it) when I create the final invoice I need to assigned it manually.
    SBO 8.81 PL 06
    I haven't found any set up for this, so I think is an error the sistem must work on the same way if the document is copied from the Sales order or delivey.
    Someone know if there is some set up? or I need to open an error message to SAP?
    Thanks

    My question is:
    If I make a sales order.
    I create a down payment invoice using copy from SO.
    I make the incomuing payment for the down payment invoice.
    I create the delivery from the SO
    I create the invoice from the delivery
    The system apply automaticaly the down payment invoice to the invoice (because I select a delivery that is linked to the so that I used to create the down payment invoice).
    If I make a sales order.
    I create the delivery from the SO
    I create a down payment invoice using copy from delivey.
    I make the incomuing payment for the down payment invoice.
    I create the invoice from the delivery
    The system DO NOT apply automaticaly the down payment invoice to the invoice (even if also this document is linked to the delivery that I use to create the down payment invoice).
    I know that I can select it manually. But I can select it manually also if I use the SO to create the down payment instead of the
    delivery. Why if the situation is the same in the firs case the system do it automatil^cally and in the second case I need to do it manually?
    Of course if I create a Down Payment invoice without selecting any document (SO, delivery..) the system don't know if you want to apply the payment to the final invoice.
    But If I select the delivey to create the down payment (the same if I select the SO): I want to apply the down payment to the final invoice of this delivery and not to another delivery.

  • Get list of related Down Payment Invoices to Delivery note

    Hi all,
        I would like some tips on how to get the "Open Amount" on any "open" deliveries in B1. the scenario here is that some sales order may have Down Payment Invoices (DPI)  associated with them. I dont seem to find any "direct links" between DPI's and Deliveries once the sales orders are converted to Delivery notes.
    The only option I can think of at this time is to write a query that will link the following:
    Delivery Rows BaseEntry (DLN1.BaseEntry) >> Sales order Rows DocEntry (RDR1.DocEntry) >> DPI header table (ODPI)
    This scenario would break if there are lines on the delivery that originated from seprate orders.
    Any help you can provide is appreciated.
    Thanks

    Hi,
    There is no "direct links" between DPI's and Deliveries. You can link them through Sales Order.
    Thanks,
    Gordon

  • HT1414 My Ipod Touch have a black screen when an app shut down and I can not shut down the Ipod. The screen is still black and I did the press two buttons solution and it doesn't work. What I have to do now?

    My Ipod Touch have a black screen when an app shut down and I can not shut down the Ipod. The screen is still black and I did the press two buttons solution and it doesn't work. What I have to do now?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Hi i have moved from uk to india, i have changed my country in itunes store, when i am entering my payment details its not accepting it. more worse is all my applications which i have downloaded in uk are not working now. please suggest me a solution

    hi i have moved from uk to india, i have changed my country in itunes store, when i am entering my payment details its not accepting. more worse is all my applications which i have downloaded in uk are not working now. please suggest me a solution

    papillondefer wrote:
    I want to be able to keep app's, music, movies and my Cloud/Match exactly the same.  How do I do this?
    Because of different local copyright laws and licensing you cannot keep everything exactly the same except for iCloud, which is not affected. You will have to create a new Apple ID for use on the UK iTunes Store with a form of payment drawn on a local bank and an address in the UK. As long as you have downloaded all your purchases and the computer is still authorized to play all protected video content that won't change, however Apps may give you trouble when updating because once associated with an Apple ID you can only switch between stores every 90 days.
    As for iTunes Match you must contact Australian iTunes Store support to cancel the subscription and you will have to resubscribe on the UK store.

  • How to create A/R Down payment Invoice

    Hi;
    I am trying to create A/R Down Payment Invoice through DI API by using the below mentioned object but the system is giving me the following error "Invalid Value. {DPI1.ExLineNo} {Line No. 1}".
      SAPbobsCOM.Documents oDoc SAPbobsCOM.Documents)x.CompanyObject.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDownPayments);
                oDoc.Lines.SetCurrentLine(0);
                oDoc.CardCode = "C0001";
                oDoc.Lines.ItemCode = "Test";
                oDoc.Lines.Quantity = 2;
                oDoc.Lines.UnitPrice = 10;
                oDoc.Lines.ActualDeliveryDate = DateTime.Now.Date;
                oDoc.Lines.BaseType = 17;
                oDoc.Lines.BaseLine = 1;
                oDoc.Lines.BaseEntry = 1;
                oDoc.Lines.ExLineNo
                int oRetVal = oDoc.Add();
                if (oRetVal != 0)
                    MessageBox.Show(x.CompanyObject.GetLastErrorDescription());
    Please suggest me how I can create AR Down Payment Invoice along with Incoming Payment and then wanted to link AR down payment invoice with AR invoice.
    Regards;
    Deepak

    Hi
    Try this code
    Try
    'Create DownPayment Invoice Object
            oDPM = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDownPayments)
            'Set Down Payment Header Values
            oDPM.CardCode = "Some Card code"
            oDPM.DocDueDate = "Suitable Date"
            oDPM.DownPaymentPercentage =" Numeric value (Double)"
            oDPM.DownPaymentType = SAPbobsCOM.DownPaymentTypeEnum.dptInvoice
            'Set Down Payment Line Values
            oDPM.Lines.ItemCode =" Some Item Code"
            oDPM.Lines.Quantity =" Quantity"
            oDPM.Lines.Price =" Item Price"
            lRetCode = oDPM.Add ' Try to add the invoice to the database
            If lRetCode <> 0 Then
                 oCompany.GetLastError(lErrCode, sErrMsg)
                 MsgBox(lErrCode & " " & sErrMsg) ' Display error message
            Else
                 MsgBox("Down Paymeny Invoice Added to DataBase", MsgBoxStyle.Information, "Invoice Added")
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    Regards
    Arun

  • How to link ap down payment invoice to ap invoice which have added.

    Hi,Expert,
      I encounter this situation in detail as follow:
    1. raisethe PO add row line with respective itemcode and quatity.
    2. raisethe ap down payment invoice  copy from the po created  just now.
    3. raise the bank -> outgoing pay the cash base on this down pay invoice.
    3. raise the Ap invoice copy from PO ,however,the user do'nt link related down pay invoice.
    This result in the account is confused and wrongly pay double amount for supplier.
    How can I process to repair it  now  and avoid it in the future ?
    Thank you in advance ,appreciate any comment and help.
    Best Regards
    Eric

    Hi Eric,
    The general down payment process is as below:-
    (1) The down payment request is made in F-47
    (2) The down payment is made in F-48
    (3) Then you create the MIRO invoice
              During MIRO, the system gives up a pop-up to show whether the down payment exist for the vendor or not. This is an information message and user will continue to process MIRO.
    (4) After processing MIRO, user need to immediatly clear the down payment againest the MIRO invoice via F-54. In F-54, on selection screen invoice number is given and then from "Process open item" you can get the list of the doan payments for the vendor to choose from.
    Regards,
    Gaurav

  • How to cancel an AR Down Payment Invoice

    Hello,
    I could not find any documentation on this, but it may happen that an AR Down Payment Invoice has been created twice on the same Sales Order.
    What should you do to ensure you disable/correct/cancel/delete an AR Down Payment Invoice from SBO?
    Regards,
    Petronella
    Edited by: Marc Riar on Feb 14, 2008 9:39 AM

    Hello Suda,
    Unfortunately I am not known with the SBO_SP_TRansactionNotification Stored Procedure.
    I have done the procedure below, but no result (no block/error message) like described..
    I did the following within SQL Server 2005. Selected folder 'Databases' and then the database for which the block is needed.
    Selected folder 'Programmability'
    Selected folder 'Stored Procedures'
    Selected
    Right mouse click on dbo.SBO_SP_TransactionNotificiation
    Selected option: Script Stored Procedure As>Alter To>New Query Editor Window
    Then copied the query mentioned in the other tread in below:
    --     ADD     YOUR     CODE     HERE
    Like below:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(20),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    -- Return values
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    select @error = 0
    select @error_message = N'Ok'
    IF @transaction_type = 'A' AND @Object_type = '203'
    BEGIN
    IF EXISTS (SELECT T2.DOCNUM, T2.DOCTOTAL, SUM(T1.DOCTOTAL) FROM
    dbo.DPI1 T0 INNER JOIN dbo.ODPI T1 ON T1.DocEntry = T0.DocEntry
    INNER JOIN dbo.ORDR T2 ON T2.DOCENTRY = T0.BASEENTRY
    WHERE T0.BaseEntry = @list_of_cols_val_tab_del
    GROUP BY T2.DOCNUM, T2.DOCTOTAL
    HAVING T2.DOCTOTAL < SUM(T1.DOCTOTAL))
    BEGIN
    SELECT @Error = 1, @error_message = 'DOWN PAYMENT AMOUNT GREATER THAN ORDER TOTAL'
    END
    END
    -- Select the return values
    select @error, @error_message
    end
    GO
    SET ANSI_NULLS OFF
    GO
    SET QUOTED_IDENTIFIER OFF
    GO

  • How to block a delivery

    Dear Gurus,
    My question is once a delivery is created and saved, due to some reasons I need to block it from furthur processing, that is, no one should be able to do PGI. I dont want to delet it since I need to keep a track of these kinds of documents, so when needed I can make a list of them and submit to management.
    How can I do this and how to get a list of such kind of documents for submission purpose monthly?
    Thanks in advance and best regards.
    Venkat - Hyd

    Dear Yajee,
    before going for solution, pl ensure other factors.
    I presume with an example that  you created 10 qty order. 8 qty delivery and 8 qty invoice.
    again created 2 qty delivery but no PGI. by the time contract period is over and no one should go for delivery.
    1. If MRP is there and it will block your available stock, then keep delivery doc as it is and change delivery qty to 0 put a delivery block and save. this will show in sale order as open del... then go for rej indicator in sales order as you are doing.
    please remember the defference between completed indicator in sales order and delivery.
    If order says completed, the indicator "C" just has implecation on status of document but no G/L account.
    but If indicator "C" in Goods issue means it has already affecteed COGS, and is ready for invoice and NEED it, UNLESS it is free goods item category..... so completion indicator in delivery has defferent meaning ... If iam not wrong.
    *****Coming to reporting purpose  in above solution, you can see in vl06 the picking status as BLANK and total status "A".
    please get back whether my reply is RIGHT or WRONG.
    Satya

  • HOW TO BLOCK THE DELIVERY IF CONTACT-DATE = SYSTEM DATE.

    HI ALL,
    in va02 transaction, after entering some order number, u will go inside. after going inside, goto GOTO-HEADER-PURCHASE ORDER DATA.
    THEN, IN THAT PURCHASE ORDER DATA TAB, A LAST CONTACT DATE FIELD IS THERE. NOW, THE ISSUE IS, IF THIS LAST CONTACT DATE IS GREATER THAN  OR EQUAL TO SYSTEM DATE, THEN THE DELIVERY SHOULD BE BLOCKED AND ALSO , IN SHIPPING TAB THERE IS DELIVERY BLOCK FIELD. THIS FIELD SHOULD BE SET TO VALUE JITS DELIVERY. FOR THIS I WAS TOLD TO WRITE THE CODE IN THE ROUTINE  , BY GOING TO VOFM - TRANSACTION . IN THIS TRANSACTION, I HAVE TO CLICK ON THE COPYING REQUIREMENTS MENU AND THEN CLICK ON DELIVERIES AND THEN GIVING THE VALUE AS 911 FOR ROUTINE NUMBER COLUMN AND ALSO MENTIONING SOME TEXT IN THE DESCRIPTION COLUMN AND THEN SAVE AND WHILE SAVING THEN IT WILL ASK THE ACCESS KEY, THEN I WILL MENTION THE PROVIDED ACCESS KEY AND THEN I HAVE TO WRITE THE ROUTINE.
    NOW, MY EXACT ISSUE IS HOW TO WRITE THE CODE IN THE ROUTINE TO BLOCK THE DELIVERY ,IF THE LAST CONTACT DATE IS GREATER THAN OR EQUAL TO SYSTEM DATE AND UPDATING THE DELIVERY BLOCK FIELD IN SHIPPING TAB TO JITSDELIVERY.
    NOW, WHERE I AM STUCK UP IS HOW TO WRITE THE CODE TO BLOCK THE DELIVERY.
    IF ANY PART IS UNCLEAR, PLZ REPLY ME SO THAT I CAN MAKE IT MORE CLEAR.
    THIS IS THE CURRENT AND URGENT REQUIREMENT I HAVE TO SOLVE. PLZ MAKE ME KNOW THE SOLUTION  AS SOON AS POSSIBLE.POINTS WILL BE AWARDED.
    THANKING U IN ADVANCE,
    SRINIVAS.

    Hi,
    Who advised you to write the Routine for this requirement?
    Can't this be achieved by writing some user exit code in MV45AFZZ  of Sales order main program SAPMV45A  as this req is related to Sales order.
    I feel this can be achieved via this. Try this first at the header level ( in the correct form).
    If at all you wants to write the code in Routines goto VOFM tcode and select the routine.
    First try to copy the code what was written in the similar existing routine and take the access key and write the same code and modify as per your requirements.
    Most of the times we handle the sy-subrc value in this routines.
    reward if useful
    regards,
    anji

  • How to block the iphone ,when i was stoled by someone?

    how to block iphone ,when i was stoled by someone ?

    Only your carrier can Blacklist a phone, so contact them to see if they offer Blacklisting.

Maybe you are looking for

  • VGA vs Mini-DVI to HDMI adapter

    I'm about to buy an external monitor to use with my MacBook Pro late 2008. I do understand HDMI (digital) looks much better than VGA (analog), so I'm thinking about buying a Mini-DVI to HDMI adapter. My questions are: Does the Mini-DVI to HDMI adapte

  • How do I restore my iMac with no backup after it was erased through iCloud find my iMac

    I removed my iMac from my device settings on my iCloud on accident. I had bought a new one for my office and moved this one to my home for my wife. Well, I set it up for her, did the migration from her old computer to her new computer. Worked like a

  • Table in which I can find the account impacted by deferral process

    Hello all, I have already asked this question but asking again what is the table in which it's mentioned which account is impacted by the "deferral" process when an invoice is booked on particular account number? For example: when I book invoice, let

  • IPad Air Apps keep crashing after iOS 7.1 Update

    Hi, I just upgraded to ios 7.1 on my ipad air. Everything was working fine before the update. But after, everytime I try to open any app, it attempts to start, but then immediately crashes. Even when I download an app from the app store, it still cra

  • Barcode scaning data in sap

    hai all,          could any body help me how to store scaned  barcode data from a reader in sap? IS their anypredefined scope/transaction for scanned data  to store in application directly from reader/any device.