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

Similar Messages

  • 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.

  • 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

  • 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 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

  • 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

  • Report to report interace ( Need to drill down to Sales Order Transaction )

    Hi,
      Report to report interface is working fine when I am jumping from Cube to ODS( Example Sales Order item). However  now I want to jump from the ODS data in a query ( Sales order level) to the transaction system and want to view the sales order detail info
      What I did is define a REPORT TO REPORT interface in the BW from the from the 2nd query and defined the interface as the following
    Report type : Transaction
    Target system : choose the CRM system from the drop down
    Report    : CRMD_BUS2000121 ( as this is the transaction for sales order).
      The whole thing works fine and the transaction opens. But the way the transaction works is that you will need to go to the menu and then Open and put the Sales order number and can only display after that. This is not very user friendly and I want the user to directly launch the sales order transaction in display mode.. from BW.. Is it possible?
      Thanks
    Arunava

    hi Anurava,
    take a look this doc, if you haven't
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6eb89190-0201-0010-89bf-ad46d1503ef9
    as Ashish mentioned you need to maintain the 'detail' assignment, choose infosource '0crm_sales_order_i (i guess for your case), choose 'field table' for type, and field possibly OBJECT_ID or CRMT_OBJECT_ID ... you may get the field info by go to crm system, position on cursor the info and F1 ....
    Special cases: For most transactions sender-receiver assignments function without you having to make further specifications. However, it is necessary for some transactions to make detailled assignments. One reason for this may be that the transaction uses an unseen first screen and the parameter is not filled by the memory ID of the data element. After having created the sender-receiver assignment as described above, proceed as follows: ...
    1. Select your sender-receiver assignment ans choose Assignment Details.
    2. Select Table Field as the type. You are then able to make entries in the Field Name, Data Elements, Domains and Set/Get Parameter columns.
    3. Specify the field name, data element, domain, and parameter ID for the receiver transaction.
    You need to know this information as no input help is available. You can normally find the parameter ID in the ABAP Dictionary under data elements. If it is still not possible to jump to the transaction, it may be necessary to program a short ABAP start program. Read SAP Note 383077 (RRI: Transaction call unsuccessful) on this

  • Jump Query

    In my sender query(Sales Cube) I have variable as order creation date (I enter a range as 01/01/2006 to 01/10/2006) and do a jump to get the details of delivery dates (delivery Cube), now the issue is delivery can be as early as 01/01/2006 to current date, but in the report it filters to only 01/01/2006 to 01/10/2006. How to resolve? Urgent
    Regards
    Kunal

    Hi Kunal,
    I assume you are using RRI for the jump query.
    In the screen named "Maintain Sender/Receiver Assignment", you can change the mapping of the filter to make it a one-sided (less than or equal to) filter.
    Hope this helps.
    - Pete

Maybe you are looking for

  • XML not working in remote host

    Dear colleagues, I've a JSP successfully running locally with J2SE1.4.2 and Tomcat5. The problem is it won't run when uploaded in the remote host. I've spent hours in vain, please help. The program should load an XML file located in the application f

  • Cannot copy and paste in Firefox, text or graphics

    recently updated to ver 22, , and started noticing that I can no longer copy and paste from sites I visit since the update. I can copy and paste from Chrome, IE, and other software within my PC. This appears to be only a problem with Firefox. Have us

  • Not having ALL the sub links appearing on top of page? Please help...

    Is there any way to set up a "main" page for the photo gallery on iWeb, and have that particular page link to various sub pages, without having all the sub galleries appear in the link section at the top of the page? To be more clear, I am a graphic

  • Performance Issue caused by XmlResults..next().asString();

    Hi all, We there is a simple method to get related documents from Berkeley DB through XQuery, and using XmlResults..next().asString() to get the result. (Note: the result is quite large.) If call this method in loop, it will become slower and slover,

  • Apple TV Take 2 iTunes login error

    Hi everyone, I am having problems logging in to my iTunes account (my aol map). Any thought/suggestions. I get this error... The Apple ID you entered couldn't be found or your password was incorrect. Please try again. After trying again I get this er