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.

Similar Messages

  • Final invoice without paying existing down payment invoice

    One of our customers demands some changes within the Business One.
    The support in Ireland advised us to post these requirements in this Forum.
    The customer has created an AR down payment invoice. This invoice was not paid, but the delivery took place anyway. Now it's not possible to create the final AR invoice, without paying the down payment invoice first.
    In my opinion that's logical but our customer demands this possibility anyway.

    Hi,
    No other feasible workaround other than creating AP Down Payment Invoice to record the TDS.
    Kind Regards,
    Jitin
    SAP Business One Global Support

  • A/p Down Payment Request and A/p Down payment Invoice

    hi All,
    I am Using SAP B1 2005B
    A/p Down Payment Request :-
    1.Wnen i want to give a 50% Advance Based on Purchase Order What is the Procedure. whether i have to use A/p Down payemnt request or A/p down payemnt invoice.
    2.whenever i am making down payment request there is no JE and There is No GL and BP affected.
    2.a. While making payment against down payment request there are 3 accounts hitted
    1.Bank Account.
    2. Bp(As Advance-Debit balance)
    3.GL linked with BP.(Acccounts payable).
    Is Correct or Not?
    3. While Making A/p Invoice can we pick this Advace in A/p invoice Entry and can we Adjust .
    at this stage Whenever i want to Check the balance of the BP should be Debit Balance(as Advance).
    A/p Down payment Invoice:-
    What is the Procedure, When it will be Used and What are the GL affected.
    Thanks & Regards,
    yusuff

    Hi,
    We are using A/p Down Payment Invoice where the entry is
    Party Credited
    Advance for capital purhase ie. ofset account is debited
    and making payment
    Party Debited
    Bank Credited
    and when linking with Invoice
    Advance for capital purhase ie. ofset account is credited
    GRNI of Asset A/c is debited.
    Here the main issue is in Party ledger its showing 1st credit and then debit and your requirement that Party should be shown debit balance it will be not there it will be in Offset account i.e "Advance for capital purhase ie. offset account"
    Now you have to generate query base report if you want to show advances given to party.
    This is what we are doing if there is any other possibility kindly revert back all experts.
    Thanks
    Kamlesh

  • Link betwwn a/p and a/p down payment

    i am creating a balance sheet report for vendor for that i want each  and every field like down payment amt,applied amt n bal due amt etc.
    but i didn't get the linking between a/p invoice and a/p down payment invoice.
    ex. for vendor V101 i have created an a/p down payment invoice for 50000
        agn i have created same amt a/p down payment invoice
    after that i have created an a/p invoice for 30000 i used amt from down payment
    i want the sum of total down payment for that vendor according to that i want to calculate the remaining bal.
    like total is 100000 for down payment .
    as well as i want a/p invoice in which i am not used that down payment amt.
    means i want both condition downpayment amt used in a/p invoice and without used downpayment a/p invoice.
    can any one help

    Hi,
    Try this query :
    SELECT 
         FROM dbo.ODPO T0
         INNER JOIN dbo.DPO1 T1 ON (T0.DocEntry = T1.DocEntry)
         LEFT OUTER JOIN dbo.PCH9 T2 ON (T1.DocEntry = T2.BaseAbs)
         LEFT OUTER JOIN dbo.OPCH T3 ON (T2.DocEntry = T3.DocEntry)
         LEFT OUTER JOIN dbo.PCH1 T4 ON (T3.DocEntry = T4.DocEntry)
    This link is from AP Downpayment, AP Invoince. Since you are asking for AP Invoice to Ap Downpayment
    just  reverse the link above.
    Thanks.
    Clint

  • About AP Down Payment Request, AP Down payment invoice and AP reserve inv.

    Hi:
    Which are the main differences? I need to pay in advance to my supplier 100% of the invoice, the purchase invoice would be received one month later. How can i link them? And what about the payment, how can i remember easily that invoices are missing when the account balance is = 0 because the payment is done.
    Best regards,
    Alberto.

    Hi,
    There is a business need for companies to issue/receive Invoices including tax (or
    VAT) for Down Payments made or received. These Invoices can then be cleared with
    partial or final Invoices. Companies can record a Down Payment received in SAP
    Business One by creating a Payment not based on an Invoice. However, due to legal
    requirements in certain countries the recording of a Down Payment requires an Invoice
    or a billing document.
    Down Payment Request and Down Payment Invoice documents have their own numbering series. The Down Payment Invoice
    resembles a regular Invoice and the Down Payment Request resembles a Sales
    Quotation. The user may define a different series under Invoices to be used in the
    Down Payment document. Neither of these two documents affects the On Hand stock
    or the stock valuation. They can be of Items or Service type.
    The process for them are:
    Down Payment Invoice>Payment of Down Payment Invoice >Regular Invoice> Payment of Regular Invoice.
    Down Payment Request>Payment of Down Payment Request > Regular Invoice >Payment of Regular Invoice and Clearing of Down Payment.
    For the invoice paid, you can find a Payment Means icon from Invoice window, click on it, there is payment information and a link for it.
    Hope this helps,
    maggie an

  • 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

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

  • 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

  • Relation between Ap down payment invoice and Ap invoice

    Hi sap members
    pls help in this scenario what is the query relation for ap down payment invoice and ap invoice  solution given vilbe appreciated
    regards
    Jenny
    Edited by: Jennifer Anderson on May 3, 2010 11:02 AM

    hi Gordon
    can u write a query and send regarding this relation i need fields like
    SELECT Distinct T0.[DocNum][Invoice No ], T0.[CardName], T0.[DocTotal], T1.[DocNum][Ap Down Payment No],T1.[CardName], T1.[DocTotal]
    FROM OPCH T0 , ODPO T1
    WHERE T0.[CardName] = T1.[CardName]
    and T0.[DpmAmnt] =  T1.[DocTotal]
    GROUP BY T0.[DocNum], T0.[CardName], T0.[DocTotal], T1.[DocNum],
    T1.[CardName], T1.[DocTotal]
    in Ap invoice Query i need Ap down payment Docnum
    Regards
    Jenny

  • Down payment Invoice and AR Invoice

    Hi,
    Can anyone please advise the details of this note for PL44 - I am unable to find reference to this note on the SAP notes page?
    Error 'Down Payment sum cannot be greater then total sum', note 1244893
    We have PL42.  We have created an AR invoice and a Down payment seperately.  Both IN and DT are appearing as positive figures in the incoming payment window - how can we reconcile these transations?  
    Thanks Lisa

    Note 1244893 - Error 'Down Payment sum cannot be greater then total sum'
    Summary
    Symptom
    In Tax Groups for output documents, you define a tax code. You
    create a sales order with this tax code. You create a partial A/R down payment request and pay it. You copy the A/R down payment request
    into the A/R down payment invoice. You open a created sales order and
    copy it into the A/R invoice, and then attach an A/R down payment invoice. You try to add the A/R invoice and get the following message:
    Down Payment sum cannot be greater then total sum [3703-3].
    The A/R invoice cannot be posted.
    Other terms
    JDT1, OINV, Financials
    Reason and Prerequisites
    Application error
    Solution
    This issue will be fixed in a future patch. See the info.txt file
    on SAP Service Marketplace to verify when the fix was included.
    Header Data
    Release Status: Released for Customer
    Released on: 15.09.2008  08:29:58
    Master Language: English
    Priority: Correction with high priority
    Category: Program error
    Primary Component: SBO-SD-INV A/R Invoice
    Secondary Components: SBO-FIN Financials
    Affected Releases
    Software
    Component Release From
    Release To
    Release And
    subsequent
    SAP-M-BO 2007 2007 A 2007 A  
    Related Notes
    1294071 - Overview Note for SAP Business One 2007 B Patch 09
    1257957 - Overview Note for SAP Business One 2007 A Patch 44

  • 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

  • Drag and relate filter on AP Invoices not showing post dates past Dec2010

    Hello experts,
    Using the following version: 2007A (8.00.178) SP:00, PL:44
    The customer is getting the following issue.
    In drag and relate bringing up AP Invoices, the latest AP invoice is for 21/01/2011. When the customer tries to filter by posting date, the drop down list of dates only goes down to 27/12/2010.
    Using drag and relate for other documents such as the credit notes this issue is not seen and the date goes into 2011.
    Can anyone tell me how I can solve this issue or if this is a bug with the version the customer is using ?
    Thank you
    Andy

    Hi Andy,
    It might be version related. Try on a high version. PL44 is too low.
    Check period indicator too.
    Thanks,
    Gordon

  • A/R Down Payment Invoice and A/R Invoice

    Dear Experts,
    I have thousands of A/R Down Payment Invoices (Not Yet Fully Applied) that were suppose to be applied to the correct A/R Invoice through an integration that didn't work.  Is there an easy way or any way to apply the down payments to the correct invoice now in batch.  There are so many now that trying to use the Total Down Payment Button "..." crash the system.

    Dear Gordon,
    We get about 400 to 500 A/R Invoices a day.  And right now we have 13,000 down payments we need to match.  Oh by the way we are on SAP B1 8.8 Patch 15

  • Purchase register query based on down payment invoice

    Hai All,
    I am creating an invoice based on purchase order.The vat  tax is being calculated in the downpayment. I want the vat to be displayed in the downpayment invoice as well as the a/p invoice but i m not getting it in the a/p invoice. Pls guide me with the linking of tables to get the query working. I have formatted the fields req but could not link the tables...Pls guide me with that...
    Thanks & Regards,
    Neela

    Hi Neela,
    Check the thread.
    Re: Purchase register query based on down payment invoice
    FROM PCH1 T0
    INNER JOIN OPCH T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode
    LEFT OUTER JOIN PCH12 T3 ON T1.DocEntry = T3.DocEntry
    LEFT JOIN ODPI T4 ON T1.CardCode = T4.CardCode
    INNER JOIN DPO1 T5 ON T0.ItemCode = T5.ItemCode
    Close the thread, if issue solved.
    Regards,
    Madhan.

Maybe you are looking for

  • I've had my Ipod for about 2 years. I was able to play in a docking station but now cannot. Any Ideas?

    I purchased this Ipod two years ago. I was using it in a docking station and got along quite well. Now I cnnot use it withou running a cord from the ipod to the station. Anyone help me?

  • Dynamic Routing Using Query String (SOAP)

    Hi Folks, Does anyone have any examples on how to do a dynamic routing using a query string from a SOAP Adapter. I know how to get the query string but don't know how to map for dynamic routing. Thanks, AArhyn.

  • Best Coding Practices

    Hi are there any best coding practices for EP development?can anybody suggest the material? Prasad

  • Spry HTML dataset unseen in IE7/8

    Using Mac OS 10.5.8 and DW CS4 to produce a simple HTML dataset for calendar dates. The code produced by DW is unaltered, and can be viewed at www.meonrc.org/Test.html. The data is at /Data/dscalendar.html. Dataset renders perfectly in Firefox (Mac &

  • How Do I Do A Fresh Install?

    As discussed on this thread I got my hard drive replaced by Apple recently and have been having problems with Logic being slow ever since. On that thread, a couple of people mentioned that it could be because I did a Time Machine restore and that it