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

Re: Help in Query

Dear Experts,

I need help in below query.. when i was tried it shown an error message:

INV1, Itemcode | INV1, Dscription | ORDR, NumAtCard | POR1, Quantity/ OITM, SalpackUN | INV1, Quantity/OITM, SalpackUN

Selection Criteria:

 1. OINV, Docdate greater than and 

 2. OINV, Docdate Smaller than and 

 3. OINV, CardName 

Please kindly help me out....

Thanks and Regards,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2010 at 11:35 AM

    Hi Mani,

    You are querying the Sales Orders (ORDR, RDR1), Purchase Orders (OPOR, POR1) and A/R Invoices (OINV, INV1) tables.

    What information are you trying to achieve that requires such a query? I ask this because I don't know if there is a direct connection between the Sales and Purchase documents and, in case there isn't, you won't get any usable results.

    Best Regards,

    Vítor Vieira

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mani,

      Please use the query Parminder kaur provided, but copy it from my post (Parminder did't use the code tags and his query is missing some characters

           INV1.ItemCode, INV1.Dscription, OINV.NumAtCard, (INV1.Quantity / OITM.SalPackUn)
           OINV INNER JOIN
           INV1 ON OINV.DocEntry = INV1.DocEntry INNER JOIN
           OITM ON INV1.ItemCode = OITM.ItemCode 
           OINV.DocDate BETWEEN '[%0]' AND '[%1]' AND OINV.CardName = '[%2]'


      Vítor Vieira

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.