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

possible to determine when order entered from VBAP table

I am trying to answer the following business questions by running sql against the base tables of SAP.

1) What is the total dollar value of all orders entered for a given month, i.e. the month of September?

2) What is the total dollar value of all orders cancelled for a given month, i.e. the month of September.

I was looking in the VBAK and VBAP tables and saw some date fields such as aedat (date record entered) and erdat (date record last changed) but these do not seem to correlate to the date an order was entered and only sometimes to when an order was cancelled.

Is it possible to answer the 2 business questions from any tables in SAP? If so, what is the sql query I would need to use?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 07:42 PM

    Hi,

    Every sales document contains the document date. (VBAK-AUDAT). select records from VBAK based on AUDAT.

    If you want the total amount per sales document check NETWR from VBAK. If you want Items then check NETER from VBAP.

    Regards,

    Vamsi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2006 at 07:50 PM

    HI,

    It is a not a straight forward soltion for your requirement.

    But you can get all the data from tables VBAK, VBAP, CDHDR & CDPOS.

    Tables CDHDR & CDPOS contain the create/change history of the sales documents.

    Thanks,

    Ramakrishna

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ramakrishna,

      I have another question regarding the status of orders. Users of the SAP application make a distinction between when an order was entered in SAP and when it was confirmed. If the document date (AUDAT) field in the order header (VBAK) table indicates when the order was entered, where and how can I find the date the order was confirmed?

      Regards,

      Geraldine

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.