A/P Down payment invoice Problem

Hi all,
I have the ff. scenario
1.     Create PO
2.     Create A/P DP invoice(20%) against this PO
3.     Create outgoing payment against A/P DP invoice of 20%
4.     Create A/P DP invoice(30%) against this PO
5.     Create outgoing payment against A/P DP invoice of 30%
6.     Create A/P DP invoice(60%) against this PO
7.     Create outgoing payment against A/P DP invoice of 60%
8.     Create a regular A/P invoice against the 3 DP
Problem 1. We have exceeded our payment against the PO w/c in this case is 110%, but SBO allowed to post these Down payments. How can we prevent overpayment base on a specific PO?
Problem 2. Since we have overpayment what we should do on 10% overpayment?
Please help.
Fidel

Hi Fidel,
Sorry for the late post, quite a busy day for me today.
edit - start
Errrrr, line 12 actually should be IF @iBaseType (less-than-symbol)(greater-than-symbol) 22
Why this forum remove those 2 symbols whenever I write them? Anyway, you should understand it, I mean "IF @iBaseType is not equat to 22" in SQL script. Just curious why SDN automatically remove whenever those 2 symbols adjacent to each other, weird...
And the same thing apply to line 25, should be AND TargetType (less-than-symbol)(greater-than-symbol) 19
edit - end
IF @object_type='204'AND @transaction_type='A' -- 204 is object type for A/P DP Invoice
  BEGIN
    DECLARE @iBaseType AS INT               -- To contain base document type of A/P DP Invoice
    DECLARE @lDpmPrcnt AS DECIMAL(18,2) -- To contain sum of DP% related to the based PO
     SELECT @iBaseType=BaseType
     FROM ODPO T0
     INNER JOIN DPO1 T1 ON T0.DocEntry=T1.DocEntry
          WHERE T1.DocEntry=@list_of_cols_val_tab_del
     IF @iBaseType<>22          -- Make sure in order to create DP, a PO is required (PO object type is 22)
       BEGIN
          SET @error=-1
          SET @error_message='PO required in order to create purchase down payment'
       END
     ELSE
       BEGIN
          SELECT @lDpmPrcnt=SUM(DpmPrcnt)
          FROM ODPO T0
          INNER JOIN DPO1 T1 ON T0.DocEntry=T1.DocEntry
               WHERE BaseType=22
               AND BaseEntry=(SELECT BaseEntry FROM DPO1 WHERE DocEntry=@list_of_cols_val_tab_del)
               -- Line above is to select all DP related to base PO
               AND TargetType<>19
               -- Line above is to make sure DP that already reversed using A/P Credit Memo is excluded
               AND LineNum=0
               -- Make sure to add line above due to facts that DP% located in document header
               -- and since we join ODPO with DPO1,
               -- if line above doesn't exist, the sum of DP% will duplicated accordingly to number of line items in document
          IF @lDpmPrcnt>100
            BEGIN
               SET @error=-1
               SET @error_message='Down payment percentage already exceeded 100% of PO'
            END
       END
  END
Inform me if you have any inquiry or problem regarding this SP.
Best Regards,
Hendry Wijaya
Edited by: Hendry Wijaya on Sep 8, 2011 5:42 PM

Similar Messages

  • SQL-Query - AR Invoice and related AR Down Payment Invoices

    Hello everybody,
    I want to show all AR Down Payment Invoices related to a given AR Invoice, i.e. a query approximately in this form:
    SELECT
    T0.DocNum AS 'Invoice',
    T0.DocDate AS 'Invoice Date',
    T0.DocTotal AS 'Open Amount',
    T1.<<DocNum>> AS 'Down Payment Invoice',
    T1.<<DocDate>> AS 'Down Payment Invoice Date',
    T1.<<Amount>> AS 'Down Payment Invoice Amount'
    FROM
    OINV T0 INNER JOIN <<Down Payment Invoices>> T1
    ON T0.DocEntry = T1.<<DocEntry>>
    WHERE
    T0.DocNum = xxxxx
    I want to know if such a table <<Down Payment Invoices>> exists and what its name is.
    Thanks for your help!
    Regards,
    Frank Romeni

    Thanks for the INV11 - but this table seems to be empty even for invoices we have related down payments, e.g.
    SELECT
    T0.DocNum, T0.DocTotal, T1.<<whatever you want>>
    FROM
    OINV T0 LEFT OUTER JOIN INV11 T1
    ON T0.DocEntry = T1.DocEntry
    WHERE
    T0.DocNum = xxxxx
    That INV11 is always empty I could see with SELECT * FROM INV11
    Regards
    Frank Romeni
    P.S.: I only post questions to this forum when I analysed my problems and only if I couldn't find any further information in the helpfiles. With regard to your first hint to ODPI there is no reference to INV11 in the helpfiles.
    With regard to your comments I feel impelled to to say that if my question is confusing you, then it seems that nobody has ever taught you that meaning can be taken from the context. Regarding the "street", you asked me to find something: Do not waste your time with talking precociously ...
    If you should feel annoyed by my comments, we'd better stop this conversation. Otherwise let us fall back to a strictly factual exchange of information, OK? I am not willing to discuss this any further!
    F.R.

  • 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

  • Down payment Invoice is not being shown in Credit Memo option

    Hello Experts,
    I want to make a credit memo against Down payment invoice, but it is not being Drawn by COPY TO option in Down Payment Invoice form and not being Drawn from COPY From option in AP Credit Memo form.
    Please help
    Thanks
    Edited by: Shazad Nazir on Nov 20, 2008 8:45 AM

    Hi,
    Let me explain the steps I am following, for the problem I am getting. I directly goto Down Payment Invoice option and made a down payment invoice and then I try to use credit memo of that recently made Down Payment Invoice.
    But same that Copy TO option is not enable.
    Thanks & Regards,
    Shazad Nazir

  • AR Down Payment Invoice Does Not Reflect in BP Master Data...

    We have placed a sales order for a BP. 
    We select payment means and accept the payment
      In the background a AP Down Payment Invoice is created
    When we view the BP master data - the account ballance window does NOT reflect this "down payment"
    If we select the golden arrow at account ballance, uncheck "reconciled transactions" you can see the payment and AP down payment and they clear each other out.
    The problem is that when the final invoice is created it is not obvious that a down payment has been received.  Even if you are simply working at the BP master data window, it is not obvious that a down payment has been received. I belive our process is correct because If you click the TDP box, the payment is listed and will be applied to the final invoice.
    It simply does not alert the user that a payment had been received. 
    What are we doing wrong?????\
    Thank you!
    Edited by: Andrew Bleier on Feb 4, 2009 1:27 AM

    Keith Taylor
    You are right this feature is only available in Version 2007A.  There account posting happen purely due to the pay SAP has been designed and the configuration of GL Accounts.
    To make fundametal change to the core product is very difficult if you explain me your business process exactly as you do, I could think of alternatives.
    Please let know.
    Suda

  • 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.

  • Wrong input Witholding tax at AP Down Payment Invoice

    Dear all,
    My client has a problem.
    He already input AP Down Payment invoice and already has payment for it.
    Then when he want to draw AP Invoice from the Good Receipt PO, he found that the WTax Amount is wrong.
    It calculate as Total Amount - Down Payment.
    He want WTax Amount calculate from Total Amount only (without - Down Payment).
    Then he realize that the AP Invoice DP he creates is wrong. Should not have WTax = Yes in the detail row.
    The question is: how to make the correction of this AP Invoice DP ?
    The AP Invoice DP should have WTax = 'No' in detail row.
    While now the AP Invoice DP already set WTax = 'Yes'.
    Thanks you very much in advance.
    Best regards,
    Surya

    Hi Surya......
    The DP Account is unique at AP Down Payment Service Level.
    You have to map it in Business Partner Master Data which comes into the Down Payment Service Invoice when you going to add it..........
    Please check once again by defining account for down payment in Business Partner.....
    Regards,
    Rahul

  • DIFFIRENCE BETWEEN AP DOWN PAYMENT REQUEST AND AP DOWN PAYMENT INVOICE

    HI
    ALL
    Please tell me the diffirence between AP DOWN PAYMENT REQUEST AND AP DOWN PAYMENT INVOICE
    And Please tell me when those are applicable in practical scenarios in SAP B1
    Prasad

    Hi,
    You can check these threads to find out more:
    Re: AP Down Payment Request is not being Linked with AP Invoice
    Re: Down Payment Problem....
    Re: A/P down Payment Issue
    Thanks,
    Gordon

  • Create AP Down Payment Invoice

    Dear All,
    I have a problem when I creating AP Down payment Invoice using SDK SAP2007. Error message like this
    "Chosen BP is not customer  ODP1.Cardcode line: 1, 'v181'"
    When i check in SAP B1 2007, V181 is already set to VENDOR.
    Here is the code :
    Set oCompany = New SAPbobsCOM.Company
        With oCompany
            .Server = "T9\sql2005"
            .CompanyDB = "blive"
            .UserName = "n2301"
            .Password = "n7hfd8sd22"
            .DbServerType = dst_MSSQL2005
            .language = ln_English
            .UseTrusted = False
            .DbUserName = "sa"
            .DbPassword = "23dsasdh8d"
        ierr = oCompany.Connect()
            If ierr <> 0 Then
                Call oCompany.GetLastError(lErr, sErr)
                MsgBox sErr
            Else
                MsgBox "OK"
            End If
        End With
        Set oDP = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDownPayments)
        With oDP
            .CardCode = "V181"
            .NumAtCard = "Ticket 001"
            .DownPaymentPercentage = CDbl(100)
            .DocDate = Now
            .DocDueDate = Now
            .DownPaymentType = SAPbobsCOM.DownPaymentTypeEnum.dptInvoice
            .Lines.ItemCode = "C1"
            .Lines.Quantity = CDbl("10")
            .Lines.Price = CDbl("200")
            .Lines.VatGroup = "ZI"
        End With
            lErr = oDP.Add()
            If lErr <> 0 Then
                Call oCompany.GetLastError(lErr, sErr)
                MsgBox sErr
            Else
                MsgBox "OK"
            End If
    Thanks before
    rgrds,
    Edited by: Lunatic on Jun 25, 2009 6:24 AM

    HI
    Use the BoObjectTypes.oPurchaseDownPayments for A/P Down payments (purchase).
    oDownPayments object is a A/R  Down payment for (sales)
    Regards,
    J.
    Edited by: Janos  Nagy on Jun 25, 2009 9:32 AM

  • Down Payment Invoice and A/R Invoice

    Dear Expert
    I have been experiencing a scenario where my client wants to create A/R down payment Invoice to their Customers. But the down payment may or may not be received before issue of the (balanced) A/R invoice and further the client sometimes would have to issue the down payment invoice together with the (balanced) A/R invoice to customers.
    The problem is that SAP B1 does not allow me to refer or adjust the down payment in A/R invoice unless there is Incoming Payment received against the down payment . But as per this scenario the payment may or may not be received before raising the (balanced) A/R invoice.
    I know that using the A/R down payment request could solve the billing issue, however, it can not reflect account receivable of customers which can not satisfy my client's need.
    Could you please suggest some workarounds to overcome this limitation?
    Thank you very much
    Regards
    Elton

    Dear Expert
    Let me clarify my client's scenario more to see whether you could give advise.
    My client's business is project based and the invoicing flow is as below:
    Phase 1 -
    Invoicing  30%
    Phase 2 -
    Invoicing  30%
    Phase 3 -
    Invoicing  40%
                                                   Total 100%
    However, invoice for phase 2 maybe issued before invoice for phase 1 is paid and so do invoice for phase 3.
    There is also possibility that invoice for phase 1 is paid while invoice for phase 2 is not at the time when whole project is completed. Invoice for phase 3 therefore has to be issued before invoice for phase 2 is paid.
    The installments for A/R is not applicable in this case since sales would be realized at the time when the A/R invoice is issued.
    My client would have to realize the sales upon completion of project phase. A/R down payment invoice almost satisfy this scenario however, no A/R invoice of the balance with reference to the down payment invoices can be issued before the down payment invoices are settled.
    Can anything be done to overcome this limitation?
    Regards
    Elton

  • Down payment invoice tax

    Hi All,
    We have a customer in the US where an issue has come up regarding the down payment functionality. A message was logged with SAP support and they advised us to post a requirement for missing functionality in US localisation here. The scenario is as follows:
    Create DP invoice of say $10000. They recieve the full $10000 via incoming payments. They now create some invoices and want to pay them off with the down payment recieved. The problem they've come across is that the system does not allow the full clearing of the invoice as when you change the amount to draw to the full amount of the invoice (VAT inclusive), you get the system message "Total amount of down payments must be less than amount of Invoice". So when you apply the down payment you are always left with the VAT part as the balance due on the invoice. This creates a problem as the system now says they still owe us money on that invoice even though they paid more than enough already?? Now they have to ask their customer for another payment as there is still a balance due this invoice and of course this is what they don't want.
    So basically the requirement here is to have an invoice with tax fully paid off by the down payment invoice.
    Hope you can help.
    Many Thanks,
    Matt

    Hello Matt,
    based on my understanding of your scenario I think, it should be covered in SAP Business One version 8.8. I think there should be on the SAP portal preview version available for testing so you can test your particular scenario on the system.
    Best Regards,
    Martin Slavik
    SAP Business One Solution Manager

  • Can not void a check win paid from a down payment invoice

    I am working on a problem where we can not void a check to adjust the posting date of the payment.
    It would seem that the issue lies with the AP down payment invoice since the error message is
    "Cannot cancel a document with down payment that was drawn to invoice {3703-6]"
    any ideas would be greatly appreciated
    Thanks,
    John-Michael

    Dear,
    Please first check whether the payment did select some down payment or not.
    If it did, for your issue, I am sorry to say that we don't have workaround from the point of view of system. We would like to recommande customer to consult with his accountant in order to by-pass the mistake he had done
    using standard application processes.
    After double confirmed with development,this issue is currenct system behavior.The reply is:
    1) payment for the down payment invoice cannot be cancelled if it was
    withrawn to AR invoice. It can be done after the AR invoice will be
    credited.
    However, we have another problems:
    2) the invoice cannot be credited if it closed/reconciled.
    And one more:
    3) cancelling of the manual reconciliation does not open the invoice.
    So according all these information the system behaviour is correct and we can do nothing here.
    Thanks
    Regards
    Apple

  • Down Payment Invoices - Is there any date restrictions?

    Hi All,
    I created a down payment invoice (A/P or A/R) and draw the down payment invoice from the invoice.
    The thing is that the down payment invoice can be drawn only on certain posting date of the invoice.
    For example, when the date of the down payment invoice is 02 Jan, the invoice can only be between 02-05 Jan, cannot be later than that date.
    For some cases it can even only be drawn on the same date as the down payment invoice is issued.
    Could be any settings in the database related to this? Because when I tried on different database (with same version) there is no problem.
    Thank you.
    Regards,
    Marini

    Hi All,
    It's solved already. It was because the exchange rate of System Currency on the date the down payment invoice was issued was different from the exchange rate on the date it was drawn to invoice. 
    So I run the Conversion Differences first and then create the invoice again.
    Cheers,
    Marini

  • Down payment invoice module is missing

    Hi,expert,
    I create new company with P.R.china Local setting. Find Down payment invoice module is missing.
    I log in as the adminstrator. The vesion is 2007B  sp:00 PL:14
    Any valule suggestion appreciate.
    Regards
    Eric

    Hi,
    Let me explain the steps I am following, for the problem I am getting. I directly goto Down Payment Invoice option and made a down payment invoice and then I try to use credit memo of that recently made Down Payment Invoice.
    But same that Copy TO option is not enable.
    Thanks & Regards,
    Shazad Nazir

  • 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 ....

Maybe you are looking for

  • Ultra Search Installation 10.2.0.1 on 10.2.0.2 RDBMS Server.

    I have upgraded to 10.2.0.2 on a RHEL 4 64 Bit installation. I've been informed that I need to install the Ultra Search (WKSYS and/or WKPROXY) for the installation of the Oracle Identity Manager. However, I can only find the companion CD for version

  • Role in UME whereas user can be created only in ABAP

    Hi experts, I want to create a user with a MDM EC Administrator role in my WAS Java UME. But i get the following exception while doing so: 1.5#001CC46BDFC200660000153C0000108000044D2CF9474AB3#1210755462890#com.sap.security.core.persistence.datasource

  • Anyone ever see this problem before???

    (AKA...welcome to bizarro world) We picked up a 500MHz iBook (Snow, dual USB) from a recycler because he showed us photos of it's good screen and thought the unit would be good for parts. We were really expecting a piece of junk but when we received

  • Keyhole DRM

    I've just started getting the following error: "Shockwave.com Keyhole DRM Application has encountered a problem and needs to close. We are sorry for the inconvenience." I see that others have previously had the same error. Contacting support has prov

  • Data table

    I want to hide/unhide some columns based upon my logic. So i am having rendered attribute bound to a boolean field. Its working fine with all elements but elements which are present inside facet element, are not getting hidden. <f:facet name="header"