Sum calculated data results from three queries in another query

Hello,
  I would like to read calculated data from three different queries and sum them in another query.  Is it possible to do it, please?

Hi there,
We have done this in Excel with a debtors report. I have five queries, each on a different sheet in a workbook. I have their total line appearing at the top of the results area.
Then I have an Excel worksheet with Excel formulas to bring through the totals on the other reports.
i.e.   +Sheet1!C30      + Sheet2!C35     + Sheet3!D40    = Result
Hope this helps,
Regards
Gill

Similar Messages

  • Customer master data updation from one system to another system

    HI  Experts,
    I have an issue with customer master data updation from one system to another system. And here only one field is not updating properly from one system to another system. and we found this is through idoc , but we don't find field in any segment.
    and the field is called ADDR1_DATA-HOME_CITY.
    and this will displayed as different city in address column.
    but as per the notes given in help , it is by program , form through only passing. but not able to trace and as per my analysis ADRC table , ADRNR  had this field HOME CITY.
    And this is for some customers updating wrong one from one system to another system , and for some customers field itself not updating in address column.
    please can you suggest any one. here are screenshot for your reference.

    that is not enough, it was enough in times before 40b release, but this was in the  last century
    Please read OSS note 384462 - Master data and addresses
    it explains what you have to do for ALE

  • Combining result of three queries to form a single table

    Hi ..
    I have three select queries. Each of them returns a single column. I want the result of these queries into a single table..
    I tried this way..
    select * from
    (first select),(second select),(third select);
    this gives duplicate rows... Any held would be appreciated

    Hi,
    Welcome to the forum!
    1005370 wrote:
    Hi ..
    I have three select queries. Each of them returns a single column. I want the result of these queries into a single table..Remember that the people who want to help you don't know as much about your tales and your application as you do; in fact, they might not know anything at all about them.
    You might ask a friend: "How can I get to that restaurant we went to last week?", and expect to get a good answer, because your friend knows where you are starting from, and knows, from that brief description, where you want to go. But would you expect a stranger on the internet to answer the exact same question? Of course not! A stranger on the internet wouldn't know where you're starting from, or where you want to go. How could a stranger give you directions with only that information?
    SQL code is like directions. A SQL query can tell you how to get a certain result set from a certain sample data set. No matter how well someone knows SQL, they need to know something about the data in a problem and the results needed fom that data before they can start writing a query to get those results from that data.
    Whenever you have a question, you need to post a little sample data (CREATE TABLE and INSERT statements) for all tables involved, and the results you want from that data in this case, the contents of the new table).
    All this and more is in the forum FAQ {message:id=9360002}. Take a few minutes now to read that page. It can realy help you get better results faster on this forum.
    I tried this way..
    select * from
    (first select),(second select),(third select);
    this gives duplicate rows... Any held would be appreciatedIf duplicate rows are the only problem, then just add DISTNCT t the main SELECT clause:
    select DISTINCT  *
    from    (first select)
    ,     (second select)
    ,     (third select)
    ;However, I'll bet duplicate rows aren't really the problem. It's much more likely that the problem is duplicate values in just 1 column.
    Again, how to get the output you want from your data depends on your data and the output you want. Post CREATE TABLE and INSERT statements for some sample data, and the complete results you want from that data. Explain how you get those results from that data.

  • Data coming from Three Applications and needs to post into SAP

    Hi all,
    i have scenario like
    XI needs to take data from 3 Applications and do some validations like data comparision of comman records and post the comman data among the three to SAP.
    Application1 will send text file and Application2 will send CSV file and Application3 will send xml file
    Ex:
    Application1:
    Emp No
    Emp Name
    Sal
    Location
    Application2:
    Emp No
    Emp Name
    Desgination
    Application3:
    Emp No
    Emp name
    Designation
    Location
    Now the Target data should be
    Emp No
    Emp Name
    Designation
    This is only the comman record which is there from 3 Applications.
    Regards

    Hi vamsi,
      As the experts mentioned above BPM is the way to achieve your business requirement.When you use BPM there is a step to wait till the 3 messages to come into XI to process furthur.Refer to the following links choose the one that is useful to you.
    Check this link for more information...
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm
    take a look at this blog..
    /people/alexander.bundschuh/blog/2006/01/04/scheduling-messages-in-sap-xi
    For your case yes its not mandatory to create communication channels for each step if the inputfiles are same and from same system..Else you obviously need to create different communication channels for each different file more over you mentioned that files are coming from 3 different application and should be merged.So 3 communication channels are required.
    Refer the following link too to get better understanding on message merge
    Re: BPM - Message merge
    All the best,
    Ram.
    Edited by: Ramakrishna kopparaju on Apr 24, 2009 7:55 PM

  • Inventory data load from Inventory Cube to another Copy Cube

    Hello Experts,
    I am trying to load Inventory data from the Inventory cube(say YCINV) to a copy cube  say YCOPY_CINV(copy of Inventory cube), but the results appear inconsistant when I compare the reports on these 2 cubes. I am trying to populate a fiield in copy cube so that I can populate the same data back to the original cube with the new field in it, I am doing this reload back and forth for historical data purpose only.
    I have seen lot of posts as how to run the setups for Inventory data, but my case does not need to perform set up runs.
    Does the note 1426533 solve the issue of loading from one cube to another ? we are on SAP BI 7.01 with SP 06 ,but the note specifies SP 07 ?
    I have tried note 375098 to see if it works, but I do not see the options as mentioned from  step "Using DTP (BW 7.x)" in BI to perform this note
    Please advise on whether to go with implementing note 1426533 or is there any other way to load inventory data from one cube to other.
    Regards,
    JB

    Hi Luis,
    Thanks for your reply,
    I do not see any setting like Intial stock in DTP except "initial non-cumulative for non- cumulative". I did try using the option "initial non-cumulative for non- cumulative" ,but the results still do not match with the inventory cube data.I do not see the check box for marker in the copy cube (under roll up tab). Please let me know if we can really implement this solution ,i.e. copying from inventory cube to copy cube and then re-loading it back to inventory cube for historical data. Currenlty, I am comparing the queries on these 2 cubes, if the data matches then I can go  ahead and implement it in Production, other wise it would not be wise to do so .
    Regards,
    JB

  • Copy Version-Budget data copied from one version to another-How to view Data in Copied Version.

    Dear All,
    Budget Data is copied from one Version to another Version using Tools>copy Version option. How can you view Data copied to new Version, when you receive a message Version is successfully copied.
    I think we can do that by selecting appropriate version in the version dimension while accessing the Forms or in Smart View.
    Can you please let me know how to do this or different options available with this process.
    Thanks in Advance for your valuable time...

    A form to check the data with the correct POV, a Smart View query, excel addin retrieve, financial report, export data, report script, take your pick.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • QM master Data copy from one client to another client

    Hi QM guru...
    Kindly suggest me how i will copy all  qm master data  from one client to another client
    QM master Data like....Catlogs. MIC inspection method. sampling...etc
    Kindly suggest me how i will copy all master data
    Thanx
    Regards
    Akil

    Dear Akil,
    I think that LSMW can be of help in this case.
    Otherwise, please check with your ABAPer whether any BDC is there for mass uploading of master data.
    Regards,
    Kaushik

  • Copy data pages from one workspace to another in JDev 10.1.2

    Hi:
    I have a workspace-1 that has a model and viewcontroller projects. No, I created another wrokspace-2. I created the same model. When I tried to copy the data pages from workspace-1 to workspace-2, it didn't allow me. Can't this be done? Have I to create the datapage every time from the, Component pallette and Data controls.

    Hi,
    In JDeveloper 10.1.2 there is no refactoring support for this. You can always copy the files on the filesystem and add them to the second workspace
    Frank

  • Purchase Order Data transfer from one client to another client

    Suppose i have created some purchase orders in one client( development server) and that are accurate according to our need .
    Now instead of creating same purchase orders again in production server is a useless task.
    SO i want to upload these purchase order directly from SAP development client to production client.
    How to execute this task.
    Please help me  out.
    I think it needs ALE concept .
    I know the ALE concept but i never uploaded the transaction data through ALE only i have uploaded the MASTER DATA.
    For eg i have transfered the material from one server to another server but never transfered the purchase order.
    CAN anybody help me out with simple example then it will greatful to me.
    Thanks a lot

    hi u can use BAPI to call that PO FROM ONE CLIENT TO ANOTHER CLIENT.
    FOR that, use, data: wa_destination type gsval.
      CASE sy-sysid.
        WHEN 'DVH'.
          CONCATENATE 'DVC' 'CLNT' '021' INTO wa_destination.
        WHEN 'QAH'.
          CONCATENATE 'QAC' 'CLNT' '129' INTO wa_destination.
        WHEN 'SUH'.
          CONCATENATE 'SUC' 'CLNT' '222' INTO wa_destination.
        WHEN 'PRH'.
          CONCATENATE 'PRC' 'CLNT' '222' INTO wa_destination.
      ENDCASE.
    call function  BAPI_PO_CREATE DEATINATION WA_DESTINATION
    COMMIT
    REWARD POINTS IF THIS IS USEFUL

  • SUM the COUNT RESULTS from 2 Tables

    If I have 2 seperate queries how can I sum the results of them
    select count(*) from tableA;
    select count(*) from tableB;
    MAXIMO@tarml > select count(*) from tableA;
      COUNT(*)
         500
    MAXIMO@tarml > select count(*) from tableB;
      COUNT(*)
         600
    MAXIMO@tarml > I want a query that gets me the 1100?
    I know people in here will know a simple solution that I can not find on the web?
    Thanks in advance again as always...
    Miller

    You should have read your given link more closely: You would have found
    select ( select count(*) from Table1 )
         + ( select count(*) from Table2 )
              as total_rows
      from my_one_row_table  --<---   replace with dual

  • 0PA_C01  different results from two queries on the same cube ....

    HI
    Can you please help with this  problems ...
    i am running a two queries with the same restrictions e.g
    Sep 08 for employee 22345 ,
    In one report it shows the Pay Scale level as A1 , then in the other report it shows Pay scale Scale level as A2  ,
    looking  at the master data in 0employee  , the first report is right ... this is how the data looks like in 0employee
    Employee  Valid from      To                Pay scale Level
    222345       2007-11-03   2008-09-30     A1
    222345       2008-10-01   9999-12-31     A2
    Can someone please shed some light on this , im thinking it has something to do with update rule but even that is supposed to use last date of the month , not 1st day of the following month. The Cube is a stndard cube 0PA_C01 and the update rule aswell .....

    Hi,
    Please check in the cube whether the data for the Employee is getting with two values like shown in your question:
    Employee Valid from To Pay scale Level
    222345 2007-11-03 2008-09-30 A1
    222345 2008-10-01 9999-12-31 A2
    and also check whether when the data loaded to the cube.
    There may be some change in the report structure where the difference is getting may in the column wise or row wise restriction may present.
    Please check on the structure of the report also.
    With Regards,
    Ravi Kanth

  • Result from 2 queries input to 3rd query

    Hi,
    We have requriement as follows, not sure how to go about this.
    We Need to build a workbook with 3 sheets wth 3 different queries. Once the workbook is open, we need to take documents numbers from query 1 and query 2 and input to variable of query 3 and execute query 3.
    Please help me understand how i can build this.
    Thanks
    AP

    You can try for APD option..
    .or else you can use some permuations on Replacement path variable..it will be able to solve your issue.
    another option is writing a Customer exit variable with manual entry enabled..here also you will have to load Report 1 and 2 data to some infoprovider.
    Regards,
    RK

  • Calculating One Value from Three Possible Values

    I want to generate a list of customer phone numbers to call from a database. A customer may have a primary phone number, a business phone number, and a cell phone number. I only want one to call one phone number from each customer. If the primary phone number is available, then it should be on the list. If the primary number is blank or 999-999-9999, then list the business phone number instead. If the business phone number is blank or 999-999-9999, then call the cell number instead. If the cell number is blank or 999-999-9999, then don't list the customer at all.
    Also, only list distinct phone numbers so that the same phone number isn't called more than once.
    I've tried various approaches, but can't get this work. Any ideas on how I should attack this?
    Thanks,
    Eric

    For the 1st question... A formula like this should do the trick:
    IF NOT IsNull({TableName.PrimaryPhone})
    AND {TableName.PrimaryPhone} &lt;&gt; ""
    AND {TableName.PrimaryPhone} &lt;&gt; "999-999-9999"
    THEN {TableName.PrimaryPhone} ELSE
    IF NOT IsNull({TableName.BusinessPhone})
    AND {TableName.BusinessPhone} &lt;&gt; ""
    AND {TableName.BusinessPhone} &lt;&gt; "999-999-9999"
    THEN {TableName.BusinessPhone} ELSE
    IF NOT IsNull({TableName.CellPhone})
    AND {TableName.CellPhone} &lt;&gt; ""
    AND {TableName.CellPhone} &lt;&gt; "999-999-9999"
    THEN {TableName.CellPhone} ELSE
    "No Phone Number Available"
    As for your 2nd question...
    Also, only list distinct phone numbers so that the same phone number isn't called more than once.
    This is a function of your data. If you have multiple customers that share the same phone number, then it stands to reason that this 1 phone number would legitimately apply to multiple customers. I could see not wanting to call the same home number multiple times for different customers who live under the same roof but what about different customers who work for the same company?
    You need determine exactly what you want to happen in the event there are matched numbers, including which customer takes priority in terms of which one keeps the numbers and which ones get eliminated.
    Jason

  • Remove double records during data upload from one InfoCube to another

    Dear Experts
    We have transactional financial data available in an InfoCube including cummulated values by period . Some companys have 12 reporting periods (0FISCPER3) and some companys have 16 periods (but all 16 periods are not always filled) . The data must be prepared for a consolidation system which expects only 12 periods. Therefore I bulit up a routine with the following logik:
    If period > 12, result = 12, else result = source field.
    But as the data target is (must be) an InfoCube the new values with reporting period 12 are not overwritten, but summarised instead. This means the original records with period 12 and the new records - see example:
    Records before transformation:
    Period   Amount
    12          100
    13           120
    Records after transformation in the InfoCube:
    Period   Amount
    12          100
    12           120
    This would lead to the following aggregation:
    Period   Amount
    12          240
    But as the values per period are cummulated, the consolidation system only needs the last period. So there should be only  one record left in the InfoCube:
    Period   Amount
    12           120
    Is it possible to delete dublicate records or do you have any other idea to to keep only the record with the last period (e.g. period 13) and to assign the value 12?
    Thanks a lot in advance for your help!
    Regards
    Marco

    Hi,
    You have two options here, you can put DSO in between the Datasource and infocube, and load the delta using the change log.
    Second is use delete the overlapping request from the infocube, it will delete the previuos requests and load the new request.
    Check the below article:
    [Automatic Deletion of Similar or Identical Requests from InfoCube after Update|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0431c48-5ba4-2c10-eab6-fc91a5fc2719]
    Hope this helps...
    Rgs,
    Ravikanth

  • Data loading from one table to another

    Hi,
    I want to load some data from a temp table to a master table. The master is having 40million records and the temp table is having 23 million records. Master table is having around 50 columns and we are adding 4new columns and the temp table is having 5columns. The data for these 4new columns are available in the temporary table also the employee column is there in common to these two table.
    I used a stored procedure to load the data, whcih uses a cursor. But its taking more that 6hours to load.
    Can any one suggest me a good technique to load data faster?
    Thanks,
    Santhosh.

    hi consider this case scenario which matches with yours.
    first of all you have to update not insert in master table.
    master table = emp with columns (emp_id, emp_name, emp_designation)
    to this original master table you added two more columns emp_salary, emp_department
    so now your master table looks like emp_id, emp_name, emp_designation, emp_salary, emp_department
    but when you do select * from master table, the last two columns salary & department are blank.
    Now you have another temp table with folllowing columns (emp_id, emp_salary, emp_department)
    now emp_id is common to master & temp tables & you want to put values from temp table into master tables? I think this is what ur trying to do..
    so for the above case the query i would write is
    update master_table m set m.emp_salary=(select t.emp_salary from temp_table t where
    t.emp_id=m.emp_id);
    commit;
    Regds.

Maybe you are looking for