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

query for displaying Sales order copied to AR DP Invoices

Dear All,

Please guide me on a query which would enable me to get the AR DP INVOICE docnum for a particular sales order docnum.

Kind Regards,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 26, 2009 at 07:09 AM
    SELECT T3.DocNum FROM [dbo].[RDR1]  T0 INNER JOIN [dbo].[DPI1]  T1 ON T1.BaseEntry = T0.DocEntry INNER JOIN ORDR T2 ON T0.DocEntry = T2.DocEntry INNER JOIN ODPI T3 ON T1.DocEntry = T3.DocEntry WHERE T2.DocNum = '[%0]'
    Add a comment
    10|10000 characters needed characters exceeded

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.