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

Sales analysis y item groups using SQL query generator

Hello.

Is it possible to create a SQL query in query generator that would produce the sales information described below. This information should be grouped by item group.

1. SALES/WEEK

previous week's sales (saved sales orders during that week)

2. YTD SALES

sales from the beginning of a year up to last day of the week (saved sales orders)

3. YTD Invoicing

invoicing from the beginning of a year up to last day of the week (without VAT)

4. Margin

Sales margin from column 3. (YTD)

5. Backlog

All open sales order that are not delivered yet.

6. Stock

The stock value.

Regards,

Saku

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2004 at 02:34 PM

    Hi Saku

    You ask a lot in a little question...

    1 - 5: Yes

    6: Yes, if you know the prices of the goods you have on stock.

    Use the debug information to find out which tables you have to query. There is allways a table like OINV (Invoices) for the header of a document and a table like INV1 for the lines of the document.

    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.