Query Sales By Quarter

Hello,
Need to build a query that gives sales data by quarter from 2009 to current year end of quarter. I think I have to use offset variables and build a structure, any hints or pointers in the right direction would be appreciated. thanks

My issue was resolved.

Similar Messages

  • Query - Sales Incentives

    Hi
    My customer needs a Query for sales Incentive.
    Can any one provide me the solution.
    Version: SAP Business One 2005B
    PL; 38

    hi
    Sorry for stating so. I'm SAP Business One Certified Consultant.
    Sales Incentive:
    For Example there are 5 sales Executives to an Area Manager, like this there are 4 Area Manager, all these Area Managers are under one Sales Manager.
    Sales Executive will get incentive if the achieve more than 60% of their Sales Target in that month.
    Area Manager will get incentive for the 60% of that Area's target. (overall achievement i.e of all the  Sales Executives)
    Sales Manager will get incentive for the achievement of 60% of the whole sales Target inclusive of all the area's.
    I want a Query which calculates the Sales Incentive in this category.
    Edited by: Rui Pereira on Jan 27, 2009 4:52 PM

  • Query - Sales(%)

    Hi all,
             Hierarchy has been created based on GL account no. This GL hierarchy has been used in the query and displayed in the report node wise.
    We have Below Report in hierarchy format, we need to have percentage column that calculation as to display group as well as sub group wise.
    Net Sales----
    130(sales column values)                      
    >Rent----
    50
           3100005(GLs)-----25
           4567888----
    25
    >Tax----
    80
            3656678----
    40
            4565656----
    40
    Other Income----
    90
             4566656----
    30
             4786656----
    60
    For example I need sales percentage like below:
    Sales Percentage(%)
    Net Sales----
    80%                      
    >Rent----
      30%
           3100005(GLs)----15%
           4567888----
    15%
    Tax----
    50%
            3656678----
    25%
            4565656----
    25%
    Net sales = Rent+tax
    Tax = all GLs sales percentage added
    Caculation:
    (Sales/Total sales)*100
    Total sales = Net sales + other income
    Kidnly guide me how i have to do this in query level. Please help me on this
    Thanks,
    R. Saravanan

    Hi,
    I am not sure whether you can have percentage and the values(using hierarchy) in rows at the same time. if you want a separate query which displays only percentages as you mentioned, you can create a structure in rows and define selections based on group of GLs in each selection. i.e. selection for  tax, sales etc..
    Regards,
    Pruthvi R

  • While executing the query sales org not given in Selection screen but still

    Hi ,
    while am executing a query even though am not giving any sales organization  input in selection sceen , and execute , the query will run and pop up windows displays as ' you do not Authorization to read Zsales organization,
    same query i executed last days before  , it worked fine, but now its not working, plz advice

    Hi,
    you might made Sales org Info object as Auth relevant, hence it is giving that error.
    Eirther disable the authorization relevant check in the infoobject maintainance in Bex explorer tab...
    Or create a auth  variable for the infoobject and use it in the query..
    Regards,
    Rangz

  • Error on Query  Sales Order CRMD_BUS2000115 application?

    Hi Experts,
    I have added  2 buttons 'Release' and 'Reject' for Sales Order CRMD_BUS2000115 aplication using PCUI which provides the functionality...as
    1.Click On Release will change the status of seleceted order as "Released" i.e. to remove the Billing/Dleivery Blocks...And SAVE it. 2. For "Reject" change status as Rejected and Save it using "CRM_ORDER_SAVE" api followed COMMIT work. Functionality is working fine.
    But I'm getting an <b>error / explorer error " An error has occurred in this script page"</b> ( <b>the Error is : 'CAT Params' is undefined</b> ) is coming as soon as query/click on <b>"GO",</b> carried out after the action performed like<b> "Release/Reject"</b> on the sales order approval screen.
    Please, can anyone give an idea @ the <b>cause of error</b> ?? whether it is frame error ?? or else???
    And How  to resolve it???
    Thanks,
    Arjun

    Look at PCUI adding button
    Re: PC-UI and option to add buttons....
    Re: PC-UI and option to add buttons....
    Re: PCUI Standard Event + Custom Event in a button

  • SAP Query: Sales Order to Workflow Join

    I'm trying to create a report in Query that joins VBAK to workflow.  The idea is to select a date range, a sales org, a customer, or any number of parameters, and bring in work items related to those Sales orders .
    The trouble I'm having though is finding the key field to join sales orders to workflow.  I've been through what I think is nearly every workflow table, but I can't find a compatible field.
    Any help is greatly appreciated, and of course points awarded.
    Thank you.

    Hi Naval
    Can you provide a bit more detail. It is difficult to try and think what the problem could be without sufficient information
    Regards
    Brian Maunde

  • Query sales tax

    could you help with the formated search following, I have created 3 values in the UDF called SSALESTAX, 10(1%),15 (1,5%), and 50 (5%) as value with comma is not accepted so divided by 1000 to get the purcentage, then I need to calculate the net amount which is total payable amount item 29 variable 91 deducted to the payable VAT item 27 variable 116 but I have the fields code wrong.
    Declare @taux as numeric (19,6)
    Set @taux = 1000
    SELECT T0.[U_SSALESTAX] * (T1.[total invoice value] - T1.[total VAT collected]) / @taux AS 'Précompte fiscal' FROM  .[OCRD] T0  INNER  JOIN .[OINV] T1  ON  T1.[CardCode] = T0.CardCode  AND  T1.[CardCode] = T0.CardCode

    Thank you for the answer I have tried and the query is OK and I have a result when I run from the menu but the formatted search gives me an error
    THE QUERY IS AS FOLLOW
    SELECT $[OCRD.U_SSALESTAX] * ($[$29.0.Number] - $[$27.0.Number]) / 1000 AS 'Précompte fiscal'
    Internal error (3006) occured (Message 131-183)
    I have checked and found the following on SAP (I run B1 2005 A PL 34)
    FMS based on "Search in Existing User-Defined Values" fails
    Symptom
    When defining formatted search based on "Search in Existing User-Defined Values", the search fails and an error message appears.
    For example: a formatted search defined in Business Partner Master Data -> Contact Persons tab ->Position field, led to the following error message: "Internal Error 'Activities' (OCLG) (-2007) occurred "
    This occurs since the search was perform on a table where few columns has been removed.
    Other terms
    FMS,
    Reason and Prerequisites
    FAQ
    Solution
    As of SAP Business One 2007 A patch December, the system checks the values to be loaded for the formatted search. If the requested value is invalid, the default setting is retrieved from the database. In addition, during the upgrade process, the CHFL table is checked to make sure that all records are valid. In case invalid records are found, they are removed from the table.

  • Query - Sales Register Report

    Hi all,
    I need a Customized Sales Tax/Service Tax Report,  Which should include the sales/Service returns also.
    My SAP Business One Version is SAP 2005B, PL:38
    Kindly help me.

    try ---
    SELECT T0.DocNum, T0.DocDate, T0.DocDueDate, T0.CardName, T1.StcCode, T1.StaCode, T1.TaxRate, T1.TaxSum, T1.BaseSum, T0.DocTotal, T0.PaidToDate FROM OINV T0 INNER JOIN INV4 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.StcCode =[%0] and
    T0.DocDate between [%01] and [%02]
    group by T0.DocNum, T0.DocDate, T0.DocDueDate, T0.CardName, T1.StcCode, T1.StaCode, T1.TaxRate, T1.TaxSum, T1.BaseSum, T0.DocTotal, T0.PaidToDate
    Edited by: somi mishra on Dec 17, 2008 4:22 PM

  • Query sales per month per customer

    Hello,
    I have a query for the months january and february working. Now I want to add more months.
    When I do this, the query works, BUT I get very strnage amounts.
    Instead of 20,000 I get an amount of 1.650.000
    Can someone please tel me where I go wrong?
    SELECT T0. [CardCode] ,
    T0. [CardName] ,
    (SUM (T1.Debit) - SUM (T1.Credit ) ) AS ' [November 2013] ' ,
    (SUM (T2.Debit) - SUM (T2.Credit ) ) AS ' [December 2013] ' ,
    (SUM (T3.Debit) - SUM (T3.Credit ) ) AS ' January ' ,
    (SUM (T4.Debit) - SUM (T4.Credit ) ) AS ' February ' ,
    (SUM (T5.Debit) - SUM (T5.Credit ) ) AS ' March ' ,
    (SUM (T6.Debit) - SUM (T6.Credit ) ) AS ' April '
    FROM dbo.OCRD T0
    LEFT JOIN dbo.JDT1 T1 ON T1.ShortName = T0. CardCode AND Month (T1.DueDate ) = 1 AND Year (T1. DueDate ) = Year (GetDate ( ) ) AND T1. TransType in (13, 14)
    LEFT JOIN dbo.JDT1 T2 ON T2.ShortName = T0. CardCode AND Month (T2.DueDate ) = 2 AND Year (T2. DueDate ) = Year (GetDate ( ) ) AND T2. TransType in (13, 14)
    LEFT JOIN dbo.JDT1 T3 ON T3.ShortName = T0. CardCode AND Month (T3.DueDate ) = 3 AND Year (T3. DueDate ) = Year (GetDate ( ) ) AND T3. TransType in (13, 14)
    LEFT JOIN dbo.JDT1 T4 ON T4.ShortName = T0. CardCode AND Month (T4.DueDate ) = 4 AND Year (T4. DueDate ) = Year (GetDate ( ) ) AND T4. TransType in (13, 14)
    LEFT JOIN dbo.JDT1 T5 ON T5.ShortName = T0. CardCode AND Month (T5.DueDate ) = 5 AND Year (T5. DueDate ) = Year (GetDate ( ) ) AND T5. TransType in (13, 14)
    LEFT JOIN dbo.JDT1 T6 ON T6.ShortName = T0. CardCode AND Month (T6.DueDate ) = 6 AND Year (T6. DueDate ) = Year (GetDate ( ) ) AND T6. TransType in (13, 14)
    WHERE T0. CardType = 'C'
    Group By T0. [CardCode] , T0. [CardName]

    Hi,
    Please check any manual journal entry posted for that month.
    Thanks & Regards,
    Nagarajan

  • Query for months & quarter in date functions

    Hi All
    Could some on assist me how to get Last Year 1st,2nd,,, months and Current Year 1st,2nd,3rd,,, months and same way Quarterly please.
    I have date column Trade_date (dd/Mon/yyyy), Trade_price in Trade table
    DB:Oracle 11g
    Any assist would be appreciated

    All you have done is repeat your unclear question with more words.
    Here is how to get all the months for prior year and this year
    SQL> alter session set nls_date_format = 'Mon-YYYY';
    Session altered.
    SQL> select
      2      add_months(this_year, - 12) last_year,
      3      this_year
      4  from
      5      (
      6      select
      7          add_months(trunc(sysdate,'y'), level - 1)    this_year
      8      from
      9          dual
    10      connect by
    11          level <= 12
    12      );
    LAST_YEA THIS_YEA
    Jan-2010 Jan-2011
    Feb-2010 Feb-2011
    Mar-2010 Mar-2011
    Apr-2010 Apr-2011
    May-2010 May-2011
    Jun-2010 Jun-2011
    Jul-2010 Jul-2011
    Aug-2010 Aug-2011
    Sep-2010 Sep-2011
    Oct-2010 Oct-2011
    Nov-2010 Nov-2011
    Dec-2010 Dec-2011
    12 rows selected.And quarters
    SQL> select
      2      add_months(this_year, - 12) last_year,
      3      this_year
      4  from
      5      (
      6      select
      7          add_months(trunc(sysdate,'y'), (level - 1) * 3)    this_year
      8      from
      9          dual
    10      connect by
    11          level <= 4
    12      );
    LAST_YEA THIS_YEA
    Jan-2010 Jan-2011
    Apr-2010 Apr-2011
    Jul-2010 Jul-2011
    Oct-2010 Oct-2011
    SQL> alter session set nls_date_format = 'dd/mm/yyyy';
    Session altered.
    SQL> select
      2      add_months(this_year, - 12) last_year,
      3      this_year
      4  from
      5      (
      6      select
      7          add_months(trunc(sysdate,'y'), (level - 1) * 3)    this_year
      8      from
      9          dual
    10      connect by
    11          level <= 4
    12      );
    LAST_YEAR  THIS_YEAR
    01/01/2010 01/01/2011
    01/04/2010 01/04/2011
    01/07/2010 01/07/2011
    01/10/2010 01/10/2011As you can see from the second example, the display format of dates is controlled by the session,
    >
    he date column is trade_date (dd/mm/yyyy)
    >
    So this is still incorrect - if it is a date the format is not dd/mm/yyyy and, it is still not clear how this relates to your other questions.

  • Query for details of  Sale order , Invoice and COGS

    I Need the report cointing following based on month & Business partner
    Sale order, Sale Amount, Due date, Invoice Amount, Last Invoice date, COGS amount

    Hi Anantha,
    Please check below link and modify according to your requirement.
    Sales Order Query for  in SAP B1
    Query - Sales Orders linked to Deliveries
    My Top SQL Queries for SAP Business One
    Hope this helps
    Regards::::
    Atul Chakraborty

  • Find Sales Order Item Basic Data by Elements query fails

    I am trying to consume Find Sales Order Item Basic Data by Elements in .NET 3.0.
    Every thing appears to be working fine -- I could query by PO number, Creation time, SalesOrganisationID etc.
    However, the most basic query is mysteriously failing. I just want to query by Sales order number, and have given a valid sales order number 6718 that exists in SAP.
    It fails giving the following errors:
    (in Log.LogItem.Note variable):
    <b>"Conversion failed: Invalid input format"</b>
    (in Log.LogItem.TypeID variable):
    <b>"701(SFB)"</b>
    Code is pretty simple, and I am just trying to query Saler Order number 6718. Of course there is nothing wrong with its format.
    From the ESOA site, all I could get was:
    <i>----
    QUOTE -
    The following values are optional selection criteria for restricting the search result:
    SelectionByID – Document number range
    INCLUSION_EXCLUSION_CODE
    INTERVAL_BOUNDARY_TYPE_CODE
    LOWER_BOUNDARY_ID
    Value
    UPPER_BOUNDARY_ID Value
    Value
    UNQUOTE -
    </i>
    I could not even have any  documentation on what to put in InclusionExclusionCode, and IntervalBoundaryTypeCode. They apper to be some Global Data Types for which I couldn't find any documentation. By sifting through Wiki, I just guessed a couple of values praying that it may work. I am a bit new to ESOA, but have expertise in .NET 3.0. Would someone guide me where to find the documentation for that, where are the error codes listed, so that I make the queries with little better preparation.
                querydata.SelectionByID = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID[1];//Single element array is good enough
                querydata.SelectionByID[0] = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID();
                querydata.SelectionByID[0].InclusionExclusionCode = "E";
                querydata.SelectionByID[0].IntervalBoundaryTypeCode = "6";
                querydata.SelectionByID[0].LowerBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].LowerBoundaryID.Value = "6718";
                querydata.SelectionByID[0].UpperBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].UpperBoundaryID.Value = "6718";

    How do you test with a SOAP Client  - I am trying to use same dataset as provided?
    I did with WSDL Test - SAP, SOAP Client and got the following error:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
       <soap-env:Body>
          <nr1:SalesOrderERPBasicDataByElementsResponse_sync xmlns:nr1="http://sap.com/xi/APPL/Global2">
             <Log>
                <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
             </Log>
          </nr1:SalesOrderERPBasicDataByElementsResponse_sync>
       </soap-env:Body>
    </soap-env:Envelope>
    Thanks..
    Vikas

  • Calculation of Quaterly Figures for Sales Report.

    Hi,
    I would like to display the Sales report in the Quarterly format with respect to  sales employees.
    For Ex :-
    1)Q1-20 Lacs  (April,May June 07)
    2)Q2-30 Lacs   (July Aug ,Sept 07)
    3)Q3-25 Lacs   (Oct,Nov and Dec 07)
    4)Q4-20 Lacs   (Jan.Feb,Mar 08)-Also i would like to view the current month say Jan 08 i.e till date sales.
    It should display Monthly sales and Quartely sales with the Quartely totals.
    Please advise me as to how to proceed with the Formaulae,Restriction in BEX Query.
    Let me knw if u require any further info.
    Thank in Advance
    wth rgds
    SVU
    Edited by: svu123 on Jan 8, 2008 3:47 PM

    Hi Kenneth
    1) you can use statistical FC means with input data your histoy and you outputr your proportional factor if you want e.g. to have an average of the last 13 or 24 months, with use of moving average simply, if you want to have a constant value
    2) you can use a calculated KF that copies from history to proportional factor by shifting by one year, using PERIODID shift. THere are example in the SAP model for a year-1 lag calculation
    3) You can do as in 2, but in addition make use of any additional formula according to your needs
    4) you can NOT have a dynamic calculation, because prerequisite for disaggregation is that you keyfigure used in the fisaggregation
    - is stored and not calculated
    - has the same base planning level than the KF itself
    Yours
    Irmi

  • Sales order form issues

    Hi,
    Sales order form takes lots of time to get closed on r12.0.4 vison instance why?
    Regards

    Hi,
    Can you reproduce the issue on some other instance (same release)?
    Was this working properly before? If yes, any changes have been done recently?
    Try to generate the form via adadmin, and run the "Gather Statistics" concurrent program and see if this helps.
    Also, enable trace and generate the tkprof file, this may help in getting details about the issue -- (Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12).
    The following documents may be applicable, go through it and see if it helps.
    Note: 845014.1 - Saving Of Sales Order Reservation Too Slow With Lots
    Note: 739486.1 - Performance Issue When Querying Sales Order From Sales Order Form
    Regards,
    Hussein

  • Relationship table of Sales Order (VA03) and Delivery Order (VL03N)

    Hi everyone!
    What table can I see the relationship of Sales Order document (VA03) and Delivery Order document (VL03N) as shown in VA03 > Environment > Document Flow?
    I mean, what tables saves the partnerships of each document (query sales order no. and get equivalent delivery order no. or nos.)
    Thank you very much!

    Hi
    U can use the fm RV_ORDER_FLOW_INFORMATION in order to get out those links or you can read the item table LIPS:
    LIPS-VGBEL  = sales order number
    LIPS-VGPOS  = salese order item
    Max

Maybe you are looking for

  • How to read Excel file in flex

    Hi,      I am new to Adobe flex and i dont know how to read Excel in flex and i need coding for that. So anybody help me... thanks in advance...

  • Separate buttons on animated .gif

    I have a couple animated .gif files on my website. I use them as scrolling advertisements. I would like to offer link buttons specific to the info on the current frame, however, when i create the button is shows up on all frames. Is there anyway to h

  • Inserting a new view  in place of already existed once

    Hai folks, In Ic Webclient on crm 5.0 system i got an issue In <b>identify customer</b> View set i have removed the view of <b>regestered product</b> and want to insert a  view <b>bupaLongTexts</b> there(in that deleted area) I am able to remove the

  • Connectivity between ABAP and Java Stacks for BI

    Dear all, our BI developer have to use BW Analyser for showing and changing of BW reports in Java based NetWeaver Portal. Initially just ABAP stack (SID DCE) was installed. In Februar 2014 I installed also an Java Stack (SID JCE) and got dokumentatio

  • Using Variable in Email

    New to OWB.. Trying to include system info in emails.. example: database name, hostname etc... Any help would be appreciated.