Skip to Content

AP reserved invoice not yet received

I have to create a query that gives the amount of AP reserved invoice not yet received at a certain date. It works as long as the AP reserved invoice is still open. If I try to run that query too far in the past, it says that there is no data found because all those invoices have been paid and those AP reserved invoice are closed, and they are not intercepted by the query anymore. But the client need to use that query sometime back in time.

Here is my actual querie :

SELECT T0.[DocNum], T0.[CardName], T0.[DocTotal], T0.[DocStatus]

FROM OPCH T0

WHERE T0.[DocStatus]='O' and T0.[Doccur]in('USD','EUR') and T0.DocDate<='[%0]'

Thank you for your help !

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 14, 2018 at 01:43 PM

    I meant not related to GRPO yet.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 07, 2019 at 10:17 AM

    Hi Francis,

    Try using the flag Reserve='Y' in the OPCH table

    Thanks,

    Karthik Kannan

    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.