Regarding Customer Total Sales table

Hi All SAP Experts
I like to know which table will provide me total of each customers for year. an Actual sales for per customer. I know table VBAK with filed Net value. My question is that figure is right figure for each customer. I am looking for total sales. Report requirement is total sales it will not show line itemwise. Just total sales per customer.
Thank you

Welcome to the forum.  As a new member, I would like to inform you that there are certain rules and regulations applicable to this forum which you can find to your right screen where it has also been indicated that posting basic / repeated query is not allowed. Please search in this forum or Google it with the same text, so that you will find many threads discussed on the same topic.  Take the inputs from there and update still if you are not able to resolve.  Meanwhile, this thread would be locked.
G. Lakshmipathi

Similar Messages

  • Reg: Total sales of each month of customer

    Dear All,
    I have the below two tables
    Customers (customer_id, custer_name,customer_address)
    Sales (sales_id, sales_cust_id, sales_order_date, sales_amount)
    I need to write the SQL query to display the total sales made by each customer, each month with grand total of all months of current year
    can anyone help regarding this..
    Sample
    customer_id
    customer_name
    month
    total_sales
    12
    aaa
    Jan
    15242
    12
    aaa
    Feb
    17889
    (Total)
    33131
    13
    bbb
    Feb
    1487
    13
    bbb
    Jun
    19987
    (Total)
    21474

    Hi,
    You can use GROUP BY GROUPING SETS to get sub-totals in SQL:
    SELECT    sales_cust
    ,         NVL ( TO_CHAR ( TRUNC (sales_order_date, 'MONTH')
                            , 'Month YYYY'
                  , '   All months'
                  )    AS month
    ,         SUM (sales_amount)  AS total_sales
    FROM      t
    GROUP BY  GROUPING SETS ( (sales_cust, TRUNC (sales_order_date, 'MONTH'))
                            , (sales_cust)
    ORDER BY  sales_cust
    ,         TRUNC (sales_order_date, 'MONTH')
    Output from the sample data Ramin posted:
    SALES_CUST MONTH           TOTAL_SALES
            12 May       2013          120
            12 June      2013           15
            12 July      2013          110
            12 September 2013          750
            12    All months           995
            13 May       2013           70
            13 July      2013          205
            13    All months           275

  • Wht r the standard tables for vendor customer and sales order report/

    Hi wht r the standard tables for vendor and customer reports and is how in normal we cannot use them for vendor reporting and etc ?

    Hi
    Customer is related to Sales Module
    So for a customer we fetch the reports of Sales orders , Deliveries and Billing doc's
    CUstomer and Vendor related tables with important fields:
    KNA1: Customer Master-General(KUNNR,NAME1,LAND1)
    KNB1: Customer Master(Company Code)(KUNNR,BUKRS,PERNR)
    KNC1: Customer Master Data (Transaction Figures)(KUNNR,BUKRS,GJAHR)
    KNVK: Customer Master Contact Partner(PARNR,KUNNR,NAME1)
    KNVV: Customer Master sales data(KUNNR,VKORG,VTWEG,KDGRP)
    KNBK: Customer Bank Details(KUNNR,BANKS,BANKL,BANKN)
    KNVH: Customer Hierarchy (HITYP,KUNNR,VKORG,VTWEG,SPART)
    KNVP: Customer Master Partner Functions(KUNNR,PARVW,KUNN2)
    KNVS: Customer Shipment data(KUNNR,VSTEL,TRANS)
    KNVI: Customer Tax data(KUNNR,ALAND,TATYP)
    LFA1: Vendor Master-General (LIFNR,NAME1,ORT01)
    LFB1: Vendor Master(Company Code)(LIFNR,BUKRS,PERNR)
    LFC1: Vendor Master (Transaction Figures)(LIFNR,BUKRS,GJAHR)
    Sales related Tables for a customer
    VBAK: Sales Document(Header Data) (VBELN, KUNNR)
    VBAP: Sales Document(Item Data) (VBELN,POSNR,MATNR,ARKTX,CHARG)
          Enquiry, Quotation, Sales Order are differentiated based on Doc.
          Type(VBTYP field) in VBAK,VBAP Tables( for Enquiry VBTYP = A,
          for Quotation 'B' & for Order it is 'C'.)
    LIKP: Delivery Table (Header Data)(VBELN,LFART,KUNNR,WADAT,INCO1)
    LIPS: Delivery Table (Item Data)(VBELN,POSNR,WERKS,LGORT,MATNR,VGBEL)
          (LIPS-VGBEL = VBAK-VBELN, LIPS-VGPOS = VBAP-POSNR)
    VTTK: Shipment Table (Header Data)(TKNUM)
    VTTP: Shipment Table (Item Data)( TKNUM,TPNUM,VBELN)
          (VTTP-VBELN = LIKP-VBELN)
    VTFA: Shipping Document Flow(TKNUM,VBELV,VBELN)
    VTPA: Shipping Partners data(VBELN,PARVW,KUNNR,PERNR)
    VTTS: Stages in Shipment(TKNUM,TSNUM,TSTYP)
    VTSP: Transport Stage/Shipment Item Allocation(TKNUM,TSNUM,TPNUM)
    VEKP: Handling Unit: Header(Packing)(VENUM,VSTEL)
    VEPO: Handling Unit: Item (Packing)(VENUM,VEPOS,VBELN)
    VBRK: Billing Table(Header Data)(VBELN,FKART,BELNR)
    VBRP: Billing Table(Item Data)(VBELN,POSNR,FKIMG,NETWR,VGBEL,VGPOS)
          (VBRP-AUBEL = VBAK-VBELN, VBRP-VGBEL = LIKP-VBELN)
          Apart from these tables there are lot of other tables which starts with
          ‘V’, but we use the following tables frequently.
    VBUK: All Sales Documents status & Admn. Data(Header)(VBELN,VBTYP)
          VBTYP= ‘C’(Sales Order) VBTYP=’J’(Delivery) VBTYP=’M’(Invoice) 
    VBUP: Sales Documents status & Admn. Data(Item)(VBELN,POSNR)
    VBEP: Sales Doc. Schedule Lines Data(VBELN,POSNR,EDATU,WMENG)
    VBKD: To get sales related Business data like Payment terms etc.(VBELN,ZTERM)
    VBFA: sales document flow data(VBELV,VBELN,POSNV,VBTYP)
    VBPA: Partner functions Data(VBELN,PARVW,KUNNR,LIFNR)
    VEDA: Contract Data(VBELN,VPOSN)
    VEDAPO: Contract Data(VBELN,VPOSN)
    Vendor related MM tables
    EBAN-- Pur.Reqn. Data (BANFN,BNFPO,BADAT,MATNR)
    EBKN-- Purchase Requisition Account Assignment(BANFN,BNFPO,VBELN)
    EINA—- Purchase Info.Record (General Data)(INFNR,MATNR,LIFNR)
    EINE-- Purchase Info.Record (Pur.Orgn Data )(INFNR,EKORG)
    ELBK-- Vendor Evaluation Header Data(LIFNR,EKORG,KLASS)
    EKKO-- Purchase Order Data (Header)(EBELN,BSTYP,BSART)
    EKPO-- Purchase Order Data (Item)(EBELN,EBELP,MATNR)
           RFQ and PO are differentiated by Doc Type(BSTYP)in EKKO table.
           For RFQ it is ‘A’ and for PO it is ‘F’.
    MKPF-- GRN Data (Header) (EBELN,BLDAT,BUDAT,XBLNR,BKTXT)
    MSEG-- GRN Data (Item)(MBLNR,BWART,LIFNR,MATNR,EBELN)
           Apart from this there are lot of tables which begin with 'M'& 'E', but we
           use the following very often.
    EKBE--PO History Data (EBELN,EBELP,BELNR,BLDAT,MATNR,VGABE)
    EKBZ--PO History with delivery Costs(EBELN,BELNR,LIFNR,XBLNR)
    EKET--Schedule lines data of a PO (EBELN,EINDT,SLFDT)
    EKES--Vendor Confirmations Data(EBELN,EBTYP,EINDT,XBLNR)
    Reward points if useful
    Regards
    Anji

  • HOW TO CREATE A CUSTOMER NO (sales view)THAT STOERS IN KNVV TABLE

    HI ,
      how to create a customer no(sales view) that stores in tabel knvv, i able to create in kna1 table but not storing in knvv table, please provide with tcode

    Hi,
    I believe while creating customer you must be maintaining sales area if you are not maintaing then only customer's genaral data will be created and only KNA1 table will be populating.
    Rgds
    San

  • Sales Analysis by Customer Total Open IN

    Hi all
    Any idea why this Sales Analysis by Customer Total Open IN does not equal to total Sales Amount less Applied Amount when double click to read the details?
    Kedalene Chong

    Hi Nagarajan
    Please see screenshots below.
    Don't know why my client's customer result shows great differences between these Summary and Detail results?

  • How to all customer who are having total sales value more than 10000 usd??

    Dear all,
    How can we see all customers that are having total sales value is more than a specific amount (Ex: more than 10000 USD)
    How to list all customers who's total sales value is more than 10, 000 USD.
    Please help me to find the right solution for this problem.
    Your help will be highly appreciated.
    Best wishes,
    Raghu ram

    Dear Raghu ram
    Go to VF05N, give just Sales Organization, distribution channel and execute.  You will get the entire sales details including currency.  Sort in descending order by selecting the value column.
    thanks
    G. Lakshmipathi

  • Report to fetch the text information from customer master sales data

    Dear Experts,
    We have come up with a requirement where the business want a report/list of the customers for whom a particular text is not maintained in customer master -sales data.
    There are many Z text id are configured and are maintained in Sales data- extras- text. In addition, business also need some key fields from the customer master such as name, city, delv plant, payment terms, sales off, sales grp etc.
    I could not get any standard table where the text is maintained with the customer numbers. Table STXH can give the customer numbers for a particular text id type but what is maintained against the given text id is not fetched from the table.
    So we need the valuable inputs to realize the requirement.
    As an proposal, we are aiming to develop custom Z report with the FM READ_TEXT to get the text information with the customer no ( object type KNVV and text id ). But for the additional information, what should be the actual logic for fetching the data. say if this FM is used, what should be the sequence of the logic and ideal selection parameters.
    In addition, we aim to use BAPI BAPI_CUSTOMER_GETDETAIL2 to fetch some of the customer ifnormation but many fields are not found in this . can we use some other bapi which can provide the complete general/sales data of customer ( delv plant, sales off, sales grp, custo grp, incoterms, payment terms etc)
    Kindly suggest accordingly.
    Many thanks in advance.

    Hi Dharmendra Kumar,
    I guess the best would be to check in ABAP General forum on the READ_TEXT sequence/ logic etc..
    For customer details, the available BAPIs are:
    BAPI_CUSTOMER_GETDETAIL
    BAPI_CUSTOMER_GETDETAIL1
    BAPI_CUSTOMER_GETDETAIL2
    However, you might have to check classes in SE24 to find any existing classes and its method yo give you all the information of a customer. Also check this thread: [BAPI for customer details like in IDoc DEBMAS;
    Regards,
    Raghu.

  • How to see customers total sales orders value

    Dear all,
    How can I create a query to see all customers total sales orders value.
    I have tried MC+E transaction, it is not giving accurate values when compare for a customer with VA05N report.
    moreover it doesn't have filter option.
    Please help me to resolve the issue. Your suggestion will be highly appreciated.
    Best regards,
    Raghu ram

    Hi,
    Try S_ALR_87012171  and S_ALR_87012186.   or
    S_ALR_87012160, select customer lite items only, enter customer number.
    Click on dynamic selection (Shift+F4). enter RV in document type field and press execute.
    Regards,
    Chandra

  • How to define ABC class field in the Customer Master Sales tab

    HI All,
    can any one let me know how to define the new  ABC class in the Customer Master Sales tab like below.
    u2013 A (> 6,000,000 )
    u2013 B (> 1,000,000u20136,000,000 )
    u2013 C (> 100,000u20132,000,000 )
    u2013 D (< 100,000 )
    can any one let me know how to define and path in IMG.
    Thanks in advance.
    kumar reddy.

    In my opinion, you don't have any such std table/view to update ABC Classification field. You might need to update relevant infostructure based on your requirement, such as sales, invoiced, etc..
    Try with following, based on your requirement:
    MC(A
    SIS: Customer,Inc.Orders - Selection
    MC+A
    SIS: Customer Returns, Selection
    MC+E
    SIS: Customer, Sales - Selection
    MC+I
    SIS: Customer Credit Memos - Selec.
    Regards
    JP

  • Regarding BAPI at sales order

    Dear guys,
    I have CSV file having records, which is read from local PC and has to be uploaded in R/3 screen.
    Concretely speaking, Now Records from CSV files will be displayed in Sales order screen. customer will correct the data changes in screen(if necessary for each record) and save the record to sales table.
    1-Here i want to know should i have to use BAPI or not for saving datas in sales order table.
    (Its purely ABAP programming module)
    2-if Bapi is required could you pls tell what BAPI is required to save in sales table.
    Thanks in advance.
    ambichan.

    Hi Ambichan,
    first of all: don't make changes (/ use exits / BADI) for this task. Only if you need different functionality for sales document creation itself, you might do some enhancements.
    Copy of this transaction doesn't make much sense: to much to delete. Maybe you use screen definition, but the rest you should do on your own.
    Do you need feedback from system?
    Yes: use BAPI_SALESORDER_SIMULATE to get feedback (like delivery days, availability...) and display results in own transaction.
    No: just display the values like an editor (but in corresponding fields and places of VA01).
    If you create only one order at a time, then it's also possible to use a batch input (VA01), started in error mode, to fill all fields. Then your last action is pressing enter (instead of save). Transaction will pop up, because it's not finished -> user is in correct transaction, feedback from system is available, all additional functions (like display customer / article / whatever else data) are at hand...
    Regards,
    Christian

  • Customer Master - Sales text copy to Sales Document Header

    Hello,
    I have properly configured the text types, access sequences, and text procedures to take text from the Customer - Sales & Distribution and copy to the Sales Document Header.  After testing this in my DEV system, everything is working appropriately.
    I have transported these changes to my QA system, all transports went through successfully.  All configuration is now the same between my DEV and QA systems, and the access sequences are recognized in both systems via the TTXERN table.
    All changes were made using transaction VOTXN.
    The problem is that when performing my test in QA, the text is not copied from the Customer Master - Sales Area text to the Sales Document Header text.  When going to the Text Determination Analysis view, it states 111 - Access Sequence does not exist.  When selecting Customizing, it clearly shows that the access sequences do exist.
    Has anyone encountered this issue?  I have checked SAP notes but have not found a proper resolution for this issue.
    Edited by: Andy Slania on Jan 31, 2011 9:30 PM

    Read OSS  Note 1002455 - Errors in texts: Messages VX 201, VX 111, and VX 205 and  Note 1002664 - FAQ: Text determination problems after upgrade.
    Also check OSS Note 581779 - Text determination analysis: Access sequence does not exist.
    One more OSS Note 970153 - Change to Customizing text not transferred to target system may also apply to your scenario.
    Regards,

  • Trying to find the difference between two sub-totals (sales - credits)

    Hi Everyone,
    I have the following code which essentially lists the total sales for an items on the first row, and the total credits for the same item on the second row.
    SELECT T0.ItemCode, SUM(T0.LineTotal) as 'Total Sales'
    FROM INV1 T0
    WHERE T0.ItemCode = 'ACR2401010'
    GROUP BY T0.ItemCode
    UNION ALL
    SELECT T1.ItemCode, SUM(T1.LineTotal) as 'Total Sales'
    FROM RIN1 T1
    WHERE T1.ItemCode = 'ACR2401010'
    GROUP BY T1.ItemCode
    The results of the query are shown below (with some alterations for confidentiality).
    What I would like to do is write a code block that subtracts the total credits from the total sales, leaving me with only one row of data for the ItemCode.
    If anybody can help with writing the code to achieve this it will be greatly appreciated.
    Kind Regards,
    Davo

    Hi, Please take a look and tweak accordingly. You may pay attention to nulls and manipulate accordingly. Best of luck!
    --Option 1
    SELECT t2.ItemCode,( SUM(T2.TotalSales)-SUM(TotalCredits)) AS 'Total'
    FROM
    SELECT T0.ItemCode, SUM(T0.LineTotal) as 'TotalSales',SUM(0) as 'TotalCredits'
    FROM INV1 as T0
    WHERE T0.ItemCode = 'ACR2401010'
    GROUP BY T0.ItemCode
    UNION ALL
    SELECT T1.ItemCode, SUM(0) as 'TotalSales', SUM(T1.LineTotal) as 'TotalCredits',
    FROM RIN1 as T1
    WHERE T1.ItemCode = 'ACR2401010'
    GROUP BY T1.ItemCode
    ) AS t2
    GROUP BY t2.ItemCode
    --Option 2
    SELECT t2.ItemCode, ( SUM(T2.TotalSales)-SUM(TotalCredits)) AS 'Total'
    FROM
    SELECT T0.ItemCode, SUM(T0.LineTotal) as 'TotalSales',SUM(0) as 'TotalCredits'
    FROM INV1 as T0
    --WHERE T0.ItemCode = 'ACR2401010'
    GROUP BY T0.ItemCode
    UNION ALL
    SELECT T1.ItemCode, SUM(0) as 'TotalSales', SUM(T1.LineTotal) as 'TotalCredits',
    FROM RIN1 as T1
    --WHERE T1.ItemCode = 'ACR2401010'
    GROUP BY T1.ItemCode
    ) AS t2
    WHERE t2.ItemCode = 'ACR2401010'
    GROUP BY t2.ItemCode
    --Option 3
    SELECT t2.ItemCode, ( SUM(T2.TotalSales)-SUM(TotalCredits) ) AS 'Total'
    FROM
    SELECT T0.ItemCode, T0.LineTotal as 'TotalSales', 0 as 'TotalCredits'
    FROM INV1 as T0
    UNION ALL
    SELECT T1.ItemCode, 0 as 'TotalSales', T1.LineTotal as 'TotalCredits',
    FROM RIN1 as T1
    ) AS t2
    WHERE t2.ItemCode = 'ACR2401010'
    GROUP BY t2.ItemCode
    --Assuming credit part is optional..also assuming each table should return only one row else results would inflate...option 4
    SELECT t0.ItemCode, ( SUM(T0.TotalSales)-SUM(T1.TotalSales)) AS 'Total'
    FROM
    INV1 as t0
    left outer join
    RIN1 as t1
    ON t0.ItemCode = t1.ItemCode
    WHERE t0.ItemCode = 'ACR2401010'
    GROUP BY t0.ItemCode
    --option 4 with grouping to ensure single row from each table
    SELECT t0.ItemCode, ( isnull(T0.TotalSales,0)-isnull(T1.TotalSales,0)) AS 'Total'
    FROM
    SELECT T0.ItemCode, SUM(T0.LineTotal) as 'TotalSales'
    FROM INV1 as T0
    --WHERE T0.ItemCode = 'ACR2401010'
    GROUP BY T0.ItemCode
    )as t0
    LEFT OUTER JOIN
    ( SELECT T1.ItemCode, SUM(T1.LineTotal) as 'TotalCredits',
    FROM RIN1 as T1
    --WHERE T1.ItemCode = 'ACR2401010'
    GROUP BY T1.ItemCode
    ) as t1
    ON t0.ItemCode = t1.ItemCode
    WHERE t0.ItemCode = 'ACR2401010'
    --Option 5 with grouping to ensure single row from each table.
    --Also assuming that sales or credits can be optional
    SELECT
    ISNULL(t0.ItemCode,t0.ItemCode) AS ItemCode,
    ( isnull(T0.TotalSales,0)-isnull(T1.TotalSales,0)) AS 'Total'
    FROM
    SELECT T0.ItemCode, SUM(T0.LineTotal) as 'TotalSales'
    FROM INV1 as T0
    --WHERE T0.ItemCode = 'ACR2401010'
    GROUP BY T0.ItemCode
    )as t0
    FULL OUTER JOIN
    ( SELECT T1.ItemCode, SUM(T1.LineTotal) as 'TotalCredits',
    FROM RIN1 as T1
    --WHERE T1.ItemCode = 'ACR2401010'
    GROUP BY T1.ItemCode
    ) as t1
    ON t0.ItemCode = t1.ItemCode
    WHERE (t0.ItemCode = 'ACR2401010' OR t1.ItemCode = 'ACR2401010')

  • Customer master data table KNVV is missing

    Hi All
    I a trying to cancel the billing document using transaction VF11. System shows error as " customer XYZ customer master data table KNVV is missing"
    Please advice how to proceed?
    Thanks and regards
    satyaprasad

    Hi,
    Goto the T.Code "Se11/SE16".
    Enter the table name as "VBRK".
    Enter your invoice number.Execute.
    Check the value of "VKORG(Sales Organisation)","VTWEG(Distribution Channel)" and "SPART(Division)".
    Or you check the same in "VF03" screen also.
    Make a copy of the above three fields.
    Goto the T.Code "Se11/SE16".
    Enter the table name as "KNVV".Enter your customer number in "KUNNR" and the values of "Sales organisation,Distribution channel and division" into their respective fields.Execute.
    Check if there are any entries.The result should be no entries so that only you will receive this error message.
    If you created the customer with out sales area,while creating the order only it will give you an error message as "No customer master record exists for sold-to party XXXXXXX
    Message no. VP199".
    As the partners are defined in sales area data only.
    Regards,
    Krishna.

  • Total sales values by material and plant

    Hi,
    I was trying to extract the following information:
    material number, plant, total sales qty(2006), and total sales amount(2006) from sap table. So, can any one help me with the table or a report where in I can find all this information.
    Thanks
    Putta

    Hi,
    Good evening and greetings,
    You can get the info from the Table BSEG as below
    BSEG-BUKRS = Company Code and a Sales Org is attached to a Company Code
    BSEG-GJAHR = Fiscal Year
    BSEG-DMBTR = Amount in Local Currency
    BSEG-PSWBT =  GL Account Amount
    BSEG-HKONT = GL Account Number
    BSEG-MATNR = Material Code
    BSEG-WERKS = Plant
    BSEG-MENGE = Quantity
    BSEG-MEINS = Base Unit of Measure
    You have to execute the report with the following input parameters in SQVI
    Company Code
    GL Account Number = Revenue Account
    Fiscal Year
    You will get all the info from the system in the single table.
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • Derivation of Sales Office, Customer gr, Sales gr and Sales district

    Hi,
    In the derivation, of Customer group, Sales Group, Sales Office and Sales District in Profitability Analysis, the standard derivation looks into the table KNVV. But how to pickup the derivation from the sales document where the user selects the values against the said characteristics. Kindly share whether it is possible to derive the said characteristics from billing document table and how. Any valuable inputs shall be highly appreciated.
    Regards,

    Dear Ashok,
    Pls. maintain the values in KEDR as below  your purpose will be resolved since the below are the results of simulation.
    Source Fields for Table look up :
    Table   Field Name                                                       Table    Field Name
    VBAK     VBELN     Sales Document     =     CO-PA     KAUFN
    Maintain the Target field as below and also assign the relavant fields from COPA.
    VBAK     VKBUR
                  KVGR1
                  VKGRP
    Regards,
    Omprakash

Maybe you are looking for

  • Problem in generating oracle 10g reports to rtf Template? (Emergency)

    Hi Team, I had a problem in generating rdf to rtf template.. I had an rdf template with place holders like this Hi i "Employee" <Empno> and my salary is <Empsal> but after the generation by using BIBatchConversion , i am getting partial rtf file like

  • Segment is not informed in FAGLFLEXT table

    Hi in my current project we are informing the "segment" field in certain documents using a substitution. The objective is to be able to discriminate those document when running the balance sheet program. The problem is when I execute the Balance Shee

  • How to remove text from photo only one layer?

    How do I remove text from this photo? plz & ty o I remove text from a photo?

  • W520 running Windows 8.1 not connecting to internet after sleep

    Hey everybody, really need the help!  I have a w520 that suddenly stopped connecting to the internet after waking up from sleep. I will connect to the network and show others but the connection to the Internet times out. Once I restart I can access t

  • International- Data Transfer

    Be careful about using your phone for data transfer in Europe! I Just got back from a 2-week trip to Europe with my family of four- we all brought our iPhones. I had international roaming- World Traveller- turned on before we left. I was told that ph