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

Similar Messages

  • 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

  • Cancel A/R down payment invoice and clearing account

    The following AR Dowm payment cancelation has been processed (as per the SAp WIKI)
    - but the down payment clearning account still has a value - how can this be reversed?
    2007A PL 42
    1.  If a 'Down Payment Invoice' (DPI) is unpaid and requires cancellation, then an 'AR Credit Note' can be used.
    2.  The 'AR Credit Note' should be based on the DPI.  This will create the correct journal entries necessary to cancel the DPI.
    3.  This is a screenshot of a DPI and its associated journal entry:
    4. The credit note based on the unpaid DPI will credit the customer and the associated tax accounts accordingly.
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=21823731

    Lisa,
    Please compare the journal created for the DPI and the journal made behind the credit note. Does the journal lines match?
    Regards,
    Nat

  • 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 automatically 'draw' a down payment invoice into an invoice?

    My customer would like to have their down payments draw into their invoices automatically, without having to click the '...' and display the down payments list to select.  They only ever have one down payment for an invoice.  Can this be done through formatted search or only through SDK?

    Hi Pat,
    You need to test out the exact scenario what you described initially in the thread on PL35 demo. Do the same steps in the PL44.
    Check the following steps :
    1) Create a Sales Order. Add
    2) Goto the Payment Means from the Sales Order and enter the amountpaid.
    3) The Downpayment is created.
    4) Goto the AR Invoice and create Invoice based on the Sales Order (Copyfrom).
    5) You will see that the Downpayment amount field is not filled in the AR Invoice.
    However, when try to reproduce the same steps in the 2007A PL35, the Downpayment amount is displayed in the AR Invoice downpayment field automatically.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Down Payment invoice to be reversed or cancelled

    While entering the opening balances we have posted a  Down payment invoice twice by mistake. The Journal entries as a result of this are as under:
    1. While the down payment invoice was posted the first time (correct transaction):
                                                             (Value in Local Currency)
    (a) Party A      Dr.                            10,000/-
         To Prepayments rec 3rd                          10,000/-
       (Invoice No.001)
    (b)While booking the payment for the above invoice no.001:
    Bank     Dr.                                       10,000/-
         To Party A                                                              10,000/-
       (Receipt for Invoice No.001)
    2. While the down payment invoice was posted the second time (duplication done by mistake):
                                                             (Value in Local Currency)
    (a) Party A      Dr.                            10,000/-
         To Prepayments received                          10,000/-
       (Invoice No.002)
    (b)To rectify the above invoice no.002 the below Journal was passed:
    Prepayments received    Dr.                     10,000/-
         To Party  A                                                             10,000/-
       (Reversal of Invoice No.002)
    The opening balances were then tallied and we started posting the regular transactions
    However when we made a A/R Invoice for the above party we wanted to call the down payment invoices we got both both down payment invoices 001 and 002. We want to adjust only down payment invoice 001 and want to cancel down payment invoice 002.
    Please advise how to cancel or reverse down payment invoice 002.
    Thanks in advance
    Venkatesan Swaminathan

    Hi Venkatesan,
    please see this thread:
    Cancel down payment
    All the best,
    Kerstin

  • 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

  • Cancel down payment Invoice and accounting document without lines item

    Dear masters,
    I have a problem with down payment invoice cancel. As you know when doing invoice down payment request, after release to accounting, the accounting doc will have special G/L indicator is F (noted item). And when I cancel this billing down payment and after release to accounting, the accounting doc of cancel invoice will not have any lines item. Now I want to have lines item for cancel down payment, how can I do that? I really appreciate your support!
    Regards,
    Nguyen Pham.

    Dear Nguyen,
    As i understand your process you created Downpayment Request from SD.
    Then created Downpayment with reference to that request.
    Then you generated Billing invoice and released to accounts.
    After that you cleared the downpayment with the Billing document.
    Now you want to cancel all this.
    First cancel the downpayment by FBRA reset and reverse.
    Then cancel the billing document.

  • 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

  • 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 Link A/R Down Payment to A/R Invoice

    I have a situation where the customer requires the use of a Down Payment invoice so their customer can pay in advance.  The do not want to enter the incoming payment as a payment on account which would affect the balance on the control account.  So the Downpayment invoice seems the way to go.  The problem is that the "Real" A/R invoice get's created by a 3rd party add in.  Since the add in creates the invoice there is no opportunity to select the downpayment before the "real" invoice is added.
    Is there a way I can link an existing A/R Invoice to an A/R down payment invoice that is fully paid.
    Thanks,
    don

    HI ,
    Plzz go through this. Hope this will solve your problem.
                                                 A/R Down Payment Invoice Concept. 
    Case:
    A Customer ordered material of worth Rs. 1, 00,000. And made a down Payment of Rs. 50,000.
    Steps:
    1.     Raise a sales order for this customer with ordered Qty and value Rs. 1,00,000.
    2.     Raise a Delivery against the respective Sales Order.
    3.     Raise A/R Down Payment Invoice against the delivery and add the document with Down Payment value made by the customer.
    Note: In A/R Down Payment Invoice Screen we have a tab at the bottom of the screen to enter the % of the down payment made by the customer.
    4.     Raise incoming payment by linking to the A/R Down Payment Invoice.
    5.     When we get the remaining payment from Customer, raise A/R Invoice against the respective delivery.
    Note: In A/R Invoice Screen we have a tab at the bottom, when we click this tab it displays all Down Payments which are closed.
    6.     Select the Down Payment in the A/R Invoice and the document total will be the balance paid by the customer.
    7.     Raise Incoming Payment linking to the A/R Invoice.

  • 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

  • Close Open Amount on A/P Down Payment Invoice

    Hi,
    I have the following scenario:
    I have created an A/P down payment invoice for 1000$
    Create an Outgoing Payment for this A/P Down Payment Invoice for 1000$
    This payment is closing the A/P Down Payment invoice
    Create an A/P Invoice for 800$ - apply this amount from the A/P Down Payment invoice (updating Amount to draw to 800$). The A/P invoice will close.
    The issue is how to get the money back from the supplier closing also the open amount of 200$ from the AP Down Payment Invoice.
    I have tried to apply an A/P credit memo to the A/P Down Payment Invoice but the system does not display the open amount from Down Payment invoice.
    Another way I have tried to create a manual A/P Credit Memo to BP and manually closing the open amount on A/P Down Payment Invoice but the system would not allowed me to cancel or remove the open amount on the Down payment.
    Do you have any other ideas?
    I am working with SAP B1 2007 PL42.
    Thank you,
    Alex

    Hi Alex
    please create a message for SAP Business One Support with high priority and all the details.
    regards
    Rui Pereira
    SAP Business One Forums Team

  • A/P Down payment invoice cannot be drawn to credit memo

    Hi Experts
    When i try to draw a A/P down payment invoice into a A/P credit memo, it gives me an error like Basetype mismatch what could be the reason for this ?
    Thanks & Regards
    Kanishka Wickrama

    Hi!
    You need to use Copy From option to book Credit Note on Down Payment. Also, if your Down Payment is Reconcilled (Payment Done) you need to cancel the payment first. Make sure the Downpayment is in OPEN status.

  • A/R down payment invoice not allowing tax

    Hi Experts,
    We use SAP Business One 2007A PL-08. While posting A/R down payment with percentage on DPM (For example 50%), the system is not calculating GST on it though we put the GST tax code in the invoice.
    Any idea how this can be resolved?
    Is there a workaround for this?
    Thank you,

    Thanks Gordon. As a workaround, we created a dummy item number for the GST to be input into the A/R Down payment invoice. The problem here is that when we add a line item for the GST using this item number, the G/L account is defaulting to customer deposits account and its now allowing us to change the G/L account to the relevant GST G/L. Is there a way we can change the G/L?
    Please let me know!!
    Thanks

Maybe you are looking for

  • IB- Downloading the file and send it to the user

    Hello BW gurus, I have a question. I have automated the ECC Z table loading process. Like I have a program which will run the ztable update process logic and will update the table and after that it will raise an event in the BW system. Based on the e

  • NI cRIO-9004 safemode improper installation

    We are now working with 'CompactRIO Real-Time Controller - NI cRIO-9004', and facing many problems. hardwares we're using: CompactRIO Real-Time Controller - NI cRIO-9004 chassis: cRIO-9104 modules: NI 9472, NI cRIO-9411, NI cRIO-9221 Softwares we're

  • Calling portal page from Oracle E-suite

    Hi, I want to know how to open a portal application from oracle Application forms. The user logins to Oracle apps, and select the 'portal' responsibility. Then it should open the portal application in a web browser. Thanks, Nishanth.

  • How do I delete the new Photos and go back to iPhoto?

    I really don't care for the weak editing ability in the new Photos app.  But when I tried to go back to iPhoto, it was grayed out and no longer available.  How can I get my iPhoto back.  I'm on Yosemite 10.10.3.

  • :-( Netweaver Installation Errors :-(

    1. on trying to install netweaver 6.4 SP 9, which I bought with the book from SAPPRESS, I only ever get errors. When I first bought the book it would not install and someone gave me an SDN download. This also didnt install because of a wrongly docume