Use query results in transformation

Hello experts,
is it possible to use the results of a query to load data to a infocube?
We have an infocube containing detailed data. On this cube a query is built with a lot of calculated key figures. Now we would like to load these calculated key figures to a more aggregated cube.
Thanks in advance,
Ralph
points will be awarded

I would look at the APD process that Edwin mentions.  Typically, the way it would work is you use your query as input, writing the results to a DSO, then datamart the results form there to the cube.
APD could also be used to directly update a Mstr Data infoobject if that made more sense, then datamart that to he cube.
I'm not familiar with the CRM / falt file approach mentioned.  Might be fine for what you want to do.  The APD process has more options to perform additional manipulation of the data and even joining it with other query results if you wanted, plus the results end up in a DSO that I think might provide more options for retaining and managing the query results.
You can review the online help for APD, also SAP's Data Mining class BW380 (might have a new name for BI 7.0) covers this area.

Similar Messages

  • Using Query Results in Queries

    I understand how to "Using Query Results in Queries" through
    this link:
    http://www.adobe.com/livedocs/coldfusion/5.0/Developing_ColdFusion_Applications/queryDB11. htm;
    However, does anyone know how to do this inside a component?
    note: the first query gets parameters through a form and the second
    query is called through a grid bind.

    I didn't read the link, but there are two ways to use query
    results in other queries. At least two that I know about.
    One is to use valuelists. Since your link was for Cold Fusion
    5, that's probably what they mentioned.
    The other is with Query of Queries.
    You do it in a component the same way you do it in a
    template.

  • How to use query-result as a new query-fiter

    HI, All
    Is it possible to execute sub-query filtererd by the pre-query-reslted lists ?
    As far as I investigated, only way to do is that I combine two suject-areas by using set operations like "Union" or around.
    But in this way, there is an impractical restriction to define these datatype and column in common. (namely, "Union" conditions)
    I just want to query filtered by ex-query-results at anytime; for example, I extract a customer lists by one query and use various analysis in the group of customer list.
    Please give me some advise.
    Regards

    First create a Request with your FilterQuerey. Secund Create a Request und create a Filter. Under Advanced you will find the path to the first Requst. Than you can select the columns.
    Thats it :-)
    Stefan

  • Using Query results

    Hi All,
    Is there any way to use a query result as a dataset for another query.  We do not wnat to do staging and want to handle a complex series of calculation thru the above route.
    Thanks
    Neeraj

    hi neeraj,
    <b>Creating iViews Based on Custom Queries </b>
    http://help.sap.com/saphelp_nw04/helpdata/en/8a/1bd9d01ba3401f9db58ef89566c38c/frameset.htm0
    DataBase :
    http://help.sap.com/saphelp_webas630/helpdata/en/8d/2d5fac955fbb43871e348257f6c49d/content.htm
    Weblogs :
    https://www.sdn.sap.com/irj/sdn/weblogs?
    blog=/pub/wlg/2088
    Hope It Helps
    Thanks
    Varun CN

  • Use query results in ABAP

    hi,
    does anyone know how i could use the values outputted by a query in ABAP? i haven't seen any way to do this, and help is appreciated. =)
    ryan.

    Hi Ryan,
    I think this is the same as Jkyle wants to do. Please check out his thread.
    How to Extract  Query Result into Internal Table?
    regards
    Siggi

  • Use Query Results as XML?

    Hey all, I searched the forums but didn't find anything that
    quite fit this particular issue, I'm hoping someone can help me
    out.
    I am storing a string of text in a database field. It's an
    XML string (not technically, but it's formatted to BE xml).
    I am pulling this from the database in ColdFusion and trying
    to use it as XML, but having no luck. I can get as far as pulling
    it and dumping the data and I get this:
    <root><Booleanval>on</Booleanval><SuperDooperSelector>1</SuperDooperSelector><ContentBody> words</ContentBody><ContentTitle>AWESOME</ContentTitle><DocumentName>Content
    1</DocumentName></root>
    It's a test so the values are a bit goofy but it appears as
    it should nonetheless. I am wondering if there is a way I can parse
    this into actual XML and access these attributes the same way I
    normally would in ColdFusion. It won't let me use XMLParse(#myvar#)
    because it is technically a query.
    Does anyone know how I can use this data as XML in
    ColdFusion?

    "TomNez" <[email protected]> wrote in
    message news:gpu7r7$h18$[email protected]..
    > Hey all, I searched the forums but didn't find anything
    that quite fit this
    > particular issue, I'm hoping someone can help me out.
    >
    > I am storing a string of text in a database field. It's
    an XML string (not
    > technically, but it's formatted to BE xml).
    >
    > I am pulling this from the database in ColdFusion and
    trying to use it as XML,
    > but having no luck. I can get as far as pulling it and
    dumping the data and I
    > get this:
    >
    >
    >
    <root><Booleanval>on</Booleanval><SuperDooperSelector>1</SuperDooperSelector><Co
    >
    ntentBody>words</ContentBody><ContentTitle>AWESOME</ContentTitle><DocumentName>C
    > ontent 1</DocumentName></root>
    >
    > It's a test so the values are a bit goofy but it appears
    as it should
    > nonetheless. I am wondering if there is a way I can
    parse this into actual XML
    > and access these attributes the same way I normally
    would in ColdFusion. It
    > won't let me use XMLParse(#myvar#) because it is
    technically a query.
    >
    > Does anyone know how I can use this data as XML in
    ColdFusion?
    >
    See if this helps:
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    Ken Ford
    Adobe Community Expert - Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    http://www.cfnoob.com

  • Use Query Results in Subsequent Query

    Is it possible to use a value returned in query number one in
    query number two as the "where"? For example, Box Number is
    returned in query number one, and I want to query again for
    additional information based upon the box number.

    Lucky Kitty wrote:
    > Is it possible to use a value returned in query number
    one in query number two
    > as the "where"? For example, Box Number is returned in
    query number one, and
    > I want to query again for additional information based
    upon the box number.
    >
    Yeah, it is just a variable and can be used as anyplace
    another variable
    can be used.
    But when one is doing this kind of thing at least 8 out of 10
    times, it
    can be done with a single query with a proper join.

  • How to use SQL query result in DOS commands

    Hi
    Currently i am runnig below DOS commands manually
    d:\apps\bin>TrueGridsCalc period="Aug 2010"
    Now I want to write one batch file and schedule job on windows and make value of "period" to be dynamic. So to get that value i need to fetch it from DB
    Steps which i am taking are
    1. connect DB from command line (using SQLPLUS)
    2. run query to fetch result
    3.How to use query result in "period" parameter ?
    I am good at step 1 and 2. Dnt know how to use query result in command to make it dynamic
    Thank you
    Sachin
    Edited by: sachin.mali on Oct 26, 2010 4:39 PM
    Edited by: sachin.mali on Oct 26, 2010 4:43 PM

    sachin.mali wrote:
    Hi
    Currently i am runnig below DOS commands manually
    d:\apps\bin>TrueGridsCalc period="Aug 2010"
    Now I want to write one batch file and schedule job on windows and make value of "period" to be dynamic. So to get that value i need to fetch it from DB
    Steps which i am taking are
    1. connect DB from command line (using SQLPLUS)
    2. run query to fetch result
    3.How to use query result in "period" parameter ?
    I am good at step 1 and 2. Dnt know how to use query result in command to make it dynamic
    Thank you
    Sachin
    Edited by: sachin.mali on Oct 26, 2010 4:39 PM
    Edited by: sachin.mali on Oct 26, 2010 4:43 PMYOu'll have to have sqlplus spool the output to a file, then figure out some way of parsing that file. Too bad you're stuck with Windows. With any *nix you could do the file parsing with one line of code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem in using query-database() function in Transformation

    Hi All,
    I am using JDev and SOA 10.1.3.4.
    I have an async process.
    In that I am doing a transformation in which source is InputVariable and target is result.
    In Transformation I am using query-database function to fetch a record from DB and am assigning that to result.
    *<xsl:value-of select='orcl:query-database(concat("select ename from emp where empid=",/ns1:DBXSLProcessRequest/ns1:input),false(),false(),"jdbc:oracle:thin:scott/tiger@localhost:1521:abcd")'/>*
    I am not getting any error but query-database is not returning any thing I maen it is returning null.
    If i run that query in SQL prompt it is returning the empname.
    Please help me out.
    Regards
    PavanKumar.M

    Hi Pavan
    I tried following in BPEL transform actvity's XSL file, and it works fine and returns the sysdate for me.
    <xsl:value-of select='orcl:query-database("select sysdate from dual",false,false,"jdbc/myDS")'/>
    Can you try above in new XSL file of Transform activity and let me know its gives you the result? if it works you can start making changes according to your requirement.
    steps to follow:
    1.create connection pool in EM, and make sure its working fine by using test on connection pool.
    2.create Datasource and point to above created connection pool. and restart the oc4j_soa
    3.rename the xsl file name of transform activity in BPEL and use above query-database function.some times xsl files are cached even if you make changes it will not take effect so for testing if you rename it will be good.
    Thanks
    Seshagiri.Rayala
    http://soabpel.wordpress.com/

  • Sending email using PL/SQL based on a query result

    Hello all,
    I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
    I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
    select Acct_id, total from SourceTableA
    minus
    select Acct_id, total from TargetTableA
    select Acct_id, sum from SourceTableB
    minus
    select Acct_id, sum from TargetTableB
    If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
    I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
    Khan

    Actually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.

  • How to use one query results in another query

    hi,
    in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
    How I can do this?
    Result I want to get is:
    In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
    Can I do this?
    Regards,
    Andrzej

    Hi Andrzej,
    please check out this thread: Set parameters values depending on other parameters
    I had a discussion about query results as input for another query in there.
    For creating a workbook, just click on the save button after you ran your query in the bex.
    Siggi
    Message was edited by: Siegfried Szameitat

  • Using previous results in a query

    Hi
    Please can someone assist.
    I have a bex query - 1 structure only in my columns
    I have my data in rows broken down by calendar year.
    What I need to be able to do is to use the result in calendar year 2008 and sum it in calendar year 2009.
      Calendar month
      Calendar Year
      Remaiining
      Date of Hire
      Quota number
      Carry Over
      Deduction
    MAY
    2009
    21.960
    2000/05/15
    21.960
    0.000
    21.960
    2010
    30.000
    2000/05/15
    30.000
    0.000
    30.000
    2011
    42.260
    2000/05/15
    42.260
    0.000
    42.260
    2012
    39.240
    2000/05/15
    33.240
    6.000
    27.240
    2013
    50.000
    2000/05/15
    25.000
    25.000
    0.000
    JUL
    2008
    39.780
    2000/05/15
    39.780
    0.000
    39.780
    DEC
    2007
    43.700
    2000/05/15
    43.700
    0.000
    43.700
    Result
    266.940
    2000/05/15
    235.940
    31.000
    204.940
    My last column needs to be Entitlement which should be the carry over of 2012 + carry over of 2013 = 31 - which should be my entitlement for 2013.
    Not sure if that makes any sense.
    Please see images attached.
    Is there a way to do this with no ABAP, as I am not able to write the customer exit.
    Thank you

    You may try with Cell definitions concept by introducing a "Calyear structure" in rows and define 2013 cell accordingly. Rest all cells other than in Entitle ment KF take the definitions of their respective CKFs/RKFs. Leave all cells blank other than 2013 in Entitlement KF.
    Remove Calyear infoobject which is there currently in rows pane and then create a structure in place of it. Every year, you will need to enhance the Calyear structure and make the cell definitions accordingly as per your business requirement.
    Please have a look at my blog to get a brief idea on what I am saying.
    How to achieve Slab Wise or Bucket Wise and Age Wise requirements in BEx
    Message was edited by: SumaN ChakravarthY K
    Message was edited by: SumaN ChakravarthY K

  • How to use query-database() function in transformation?

    Hi All,
    How to use query-database() function in transformation?
    It is giving four fields but if i write select query in sqlquery field it is saying select node is not found....
    plz help me out
    Regards
    Pavankumar
    Edited by: [email protected] on Jul 29, 2009 2:49 AM

    Hi,
    To answer your query:-
    http://abhishek-soablog.blogspot.com/2008/08/orclquery-database.html
    Cheers,
    Abhi...

  • How to get the query result of improvement (Before and After ) using sql de

    how to get the query result of improvement (Before and After ) using sql developer.

    Check
    http://www.oracle.com/technetwork/articles/sql/exploring-sql-developer-1637307.html

  • Export query result to csv using Export Wizard

    Been a decade since I last used Oracle and related tools.
    I had to use Oracle server again, I have a query over multiple tables, I am to run a scheduled script that will spit out the query result as a csv file.
    I started with SQL Developer Export wizard, in step "Specify Data", I am at a loss, where to specify the query itself? I see a Name,Schema,Type input, a text area below, Up,UpAll,Down,DownAll buttons etc etc. Where do I specify my query here? Can someone please help?
    Is this the best way to go about to schedule a data export (query to csv) daily?

    To export a user query rather than a whole table, run it in a worksheet and export using the context menu on the result grid. However none can be scheduled.
    Instead you can look at the SPOOL command and schedule it through SQL*Plus. Any questions can go to the iSQL*Plus and/or SQL And PL/SQL forum.
    Have fun,
    K.

Maybe you are looking for

  • How to get my phone out of recovery mode so I can restore it? iPhone 5

    My iPhone 5 kept saying "Searching..." at the top when I was in a place I normally get full service LTE. After a really long time staying in "searching..." mode, and toggling between airplane mode on/off, and looking through my settings and checking

  • TOP 10 things you should AVOID in a OLTP DB

    So, what do you think? Who wants to give a contribuition? I vote on flooding the server with very cold water, but what the hell do i know? This post is serious, please give you're expert opinion. Cheers! And enjoy.

  • Loosing connection to my iMac drive

    Hello Support Community, I have an late 2012 late model iMac and a 13in Retina pro MacBook Pro. I do a lot of graphics work and what I used to do (before upgrading my MacBook) is do most of my graphics work on my iMac, but sometimes want to sit on th

  • I can not upgrade to Maverick from the App store

    Though it is available for me to download.  My specs are: MacBook c. 2010, OS X Lion 10.7.5, 2GB 667MHz DDR2 SDRAM and 48GB free.  Is there aay for me to know what I am missing? Why it won't install?

  • CUP auto provision to position

    Hello Experts I hope you can help me on this issue. We have just implemented CUP (SP14) and have set up auto provisioning, indiirect to a position. Despite this CUP is provisioning all requests directly to the User ID. There are no error messages to