Query as a datasource

There is a program which can be used if you want to use a query as a data source does anyone know the name of the program? Thanks

Thanks you mention to collect at the query level and regroup into another query.  This would be great if it can be done my scenario is below can you advise on whether you see this is possible and if so how
User runs query gets dynamic set of results for example
Results currently returned as:
Main Id Sub Id  Amount
A          B         100
             C         100
             D         100
             A         100
As can be seen the main can also be a sub
Required output
ID Amount
A 400 (need to confirm that this is not 100)
B  100
C  100
D  100
The dynamics and volume of data mean that the main and the subs can appear anywhere but need to be grouped together for showing the result

Similar Messages

  • Using crystal reports query (.qry) as datasource in crystal 9

    I have a problem using crystal reports query as a datasource in crystal reports 9. When Im using a report withing application i cannot change database or server property of the query.
    For example - during report design im using one odbc for query but I want to change it during runtime.
    Changing any options beside username or password results in external exception. Im using Builder XE as application environment.
    I tried switching to SQL commands which works but i lose all the fields on report when changing from query to report.
    Is there a way to make query work or to change query to sql command without losing all the fields (and putting them back on the report manually)?

    Hello,
    Unfortunately .QRY files are no longer supported as of CR 9. We replaced it with the Command Object where it basically did the same thing only you had to write the query yourself.
    The problem is because the Command Object can be anything CR has no way of mapping a query to the database field within the report so it auto deletes all of the fields.
    The only way is to create new reports, you can open the original report in one window and then create your new report, copy the SQL into the Command windows and then copy and paste the report objects from the window with the old report into the new report window.
    There is no migration wizard to do this. I have heard of others who used the RAS server or RDC to get the objects from one report and .add them to the new report. Depending on the number of reports you have depends on if it is worth the time writing that app or just rebuild all of your reports.
    Thank you
    Don

  • Power query from ODBC :"DataSource.Error: Arithmetic operation resulted in an overflow"

    Good day
    Everytime I want to pull data into a query from our servers it gives the error "DataSource.Error: Arithmetic operation resulted in an overflow". What is the reason for this error, and how do I get past this bump.
    Thanks in advance
    Arnoux

    Hey Tristan. Thanks I did that yes.
    For some reason my direct MySQL connection does not want to work.
    I get the following error
    DataSource.Error: MySQL: Unable to find a database provider with invariant name 'MySql.Data.MySqlClient'.
    This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'MySQL Connector/Net':

  • Query on Master datasource enhancement

    Hi BW Experts,
    We have Employee master datasource i.e 0EMPLOYEE_ATTR.In extract structure of 0EMPLOYEE_ATTR  i saw customised fields prefix with YY . Can i see these fields  in BI Server as Infoobjects with same prefix YY? .But i am not able to see those in BI Server? Instead of YY  i saw those fields Created with Z in infoobject menu of BI Server.Can i map those?
    Could you please tell me the reason ?
    Thanks

    It's depends on the naming conventions that your project followed for customized objects
    In R/3 we refer them as Source fields , In BW we call Info Objects which we need to map source field -> Info object
    You can create Z** Info objects in BW  based on source field data types and map them in transformations
    Ex. YYABS source field  --> ZYYABS BW Infoobject

  • Query on CRM Datasources

    Hi BW Gurus,
    How can we find out the base tables for CRM(Customer Relationship Management) Datasources?
    Thanks

    Hi Amar,
    You will be able to fins the details of the standard CRM DS's from help.sap.com :-
    For ex for Activities standard DS "0CRM_SALES_ACT_1", below is the link for its details & table of origin:
    http://help.sap.com/saphelp_nw04/helpdata/EN/61/ef4529577111d6b21500508b5d5211/frameset.htm
    Similarly you can find the details of other objects also.
    If it is a generic DS, then goto RSO2 trans in CRM source system> Enter the DS Tech name> Display--> Check if it is getting data from any Table/View or FM.
    If it is getting data from FM> Double click on the FM> Display --> Here if you go through the code, you will be able to find what & all tables they are using.
    Hope it is clear & helpful!
    Regards,
    Pavan

  • BW Query Directly as Datasource

    Hi All,
    We transported trn's(Query Ele to DSO) to Prod, Everything is fine.
    The problem is we are unable to create DTP's directly in prod as we wont transport DTP's from DEV to Prod.
    While creating the DTP's in Prod, its showing "Selected object is not a valid source of DTP".
    Please help on this.
    Regards,
    Babu.

    It's solved. It was authorization issue.

  • Query folding available datasources and how does it work with HDInsight

    Hi everyone,
    is there anywhere official list of data sources that support query folding? I searched for quite a long time and the only list I got is in post by Matt Masson from 2013 http://www.mattmasson.com/2013/07/filtering-in-data-explorer/ 
    Especially I'm curious how it works together with HDInsight. Ability to analyze Big Data from Excel sounds cool. But analyzing Big Data client side in Excel doesn't sound that cool at all. I'm afraid I already know the answer, that query folding isn't supported
    against HDInsight in terms of analyzing data (not HDFS paths).
    Thanks for any helpful comments
    Jiri
    Jiri Neoral -------------------------------------------------------------- Please mark as helpful if it helped to point you in direction. Mark as answer if it answered your question.

    Correct. We don't currently have any native support for executing queries in Hive or with Map-Reduce when accessing data in HDFS or HDInsight-compatible blob storage. If the data and queries are Hive-compatible, you could try using a Hive ODBC driver for
    this purpose.

  • How do you query across multiple datasources?

    I am trying to query data from an Oracle database and a DB2 database using bind variables. (10.1.3.2). I have created a data template as follows:
    <dataTemplate name="PMHUBS">
         <dataQuery>
              <sqlStatement name="Q1" datasourceref="PMDWTST">
                   <![CDATA[select      RGN.RGN_NAME,
             DSTRC.DSTRC_NAME,
          HUB_INFO.EXEL_HUB_TYPE,
          HUB_INFO.TOUCHPT_ID,
          HUB_INFO.EXEL_HUB_TYPE
    from      EXEL_DIRECT.DSTRC DSTRC,
          EXEL_DIRECT.RGN RGN,
          EXEL_DIRECT.HUB_INFO HUB_INFO
    where   DSTRC.DSTRC_ID(+) =HUB_INFO.DSTRC_ID
    and      RGN.RGN_ID(+) =DSTRC.RGN_ID
    Order by       HUB_INFO.TOUCHPT_ID,
    RGN.RGN_NAME,
    DSTRC.DSTRC_NAME,
    HUB_INFO.EXEL_HUB_TYPE]]>
         </sqlStatement>
         <sqlStatement name="Q2" datasourceref="EXBASETD DVLP1">
         <![CDATA[SELECT HBMHBCD FROM EXDBASETD.EMP012
    WHERE HBMHBCD=:TOUCHPT_ID]]>
              </sqlStatement>
         </dataQuery>
    </dataTemplate>
    I get the error message: ORA-00903: invalid table name. Each sql statement works separately. I can take the 2 sql statements and concatenate them and get the XML output, but I seem to be doing something wrong using a data template.
    Help?
    Thanks
    Phil Slater

    I was missing the GROUP part of the dataTemplate!
    I didn't find the manuals that helpful with this. You have to add the datasourceref to each SQL:, and then add a GROUP in a DataTemplate.
    <dataTemplate name="JOINS_TEST " dataSourceRef="EXDBASETD DVLP1">
    <dataQuery>
    <sqlStatement name="DB2 HUBS">
    <![CDATA[     SELECT HBMHBCD
                              FROM EMP012
                             WHERE HBMEXAG = 'E'
                         AND HBMSTAT = 'ACTV'
                    ORDER BY HBMHBCD
                    ]]>
    </sqlStatement>
    <sqlStatement name="ORACLE HUBS" dataSourceRef="PMDWTEST">
    <![CDATA[     
                    SELECT TOUCHPT_ID
                      FROM HUB_INFO
                     WHERE EXEL_HUB_TYPE='EXEL'
                 AND :HBMHBCD = TOUCHPT_ID
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_HUBS" source="DB2 HUBS">
    <element name="HBMHBCD" value="HBMHBCD"/>
    <group name="G_ORACLE HUBS" source="ORACLE HUBS">
    <element name="TOUCHPT_ID" value="TOUCHPT_ID"/>
    <element name="REG_ID" value="REG_ID"/>
    </group> -- PMDWTEST
    </group> --- EXDBASETD
    </dataStructure>
    </dataTemplate>

  • Query on Purchasing Datasources

    Hi
    I am using 0PUR_C04,  which is fed by 2LIS_02_HDR,2LIS_02_ITM, 2LIS_02_SCL. However Scheduling agreements are maintained in here. Do I still need to use 2LIS_02_SCL? or Can I do away with this?
    Thanks
    PB

    Hi Amar,
    You will be able to fins the details of the standard CRM DS's from help.sap.com :-
    For ex for Activities standard DS "0CRM_SALES_ACT_1", below is the link for its details & table of origin:
    http://help.sap.com/saphelp_nw04/helpdata/EN/61/ef4529577111d6b21500508b5d5211/frameset.htm
    Similarly you can find the details of other objects also.
    If it is a generic DS, then goto RSO2 trans in CRM source system> Enter the DS Tech name> Display--> Check if it is getting data from any Table/View or FM.
    If it is getting data from FM> Double click on the FM> Display --> Here if you go through the code, you will be able to find what & all tables they are using.
    Hope it is clear & helpful!
    Regards,
    Pavan

  • Content presenter: datasource based on CMIS query with URL parameters

    Hi all,
    I am trying to create a page containing a content presenter taskflow that is based on a CMIS query containing URL parameters. In my component properties I define the following query for my datasource:
    +SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='${param.qblSubGroep}'+
    I have a URL parameter qblSubGroep containing the value "Nieuws".
    Somehow my page does not show any content. It looks like the parameter value is not passed to the data source query. When I change my query to
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='Nieuws'
    so, I hardcode the value of my URL parameter in my query, the expected content items are shown.
    Also, I have another page containing a content presenter taskflow for a single item, based on the data source:
    +${'WebCenterSpaces-UCM#dDocName:'}${param.dDocName}+
    In this case, URL parameter values for dDocName are passed correctly and content presenter is showing the document with dDocName as entered in the URL.
    Does anybody have any idea on how to solve this probem?
    regards,
    Harold

    hi all
    when i try using cmis query with Arabic characters it display no results .
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE AND ora:p:xAgrPressMag LIKE'جريدة الرياض'
    this is the query i am using and the value inside ora:p:xAgrPressMag is correct and i try search this value inside content presenter normal search and it display results i am afraid that cmis query doesnt accept arabic characters
    any suggestion please its top urgent
    best regards
    Edited by: 975169 on Feb 26, 2013 12:59 AM

  • BW query as datasource

    Hi all,
    When i am using BW query as a datasource and connecting to universe ,
    the settings are
    1)BW query must be released to OLE DB for OLAP
    2)You allow external access to Bw query.
    I know how to do the 2 nd setting but how do the 1st setting.
    1)BW query must be released to OLE DB for OLAP.
    Please help me out.
    Thanks,
    Kiran.

    i got the solution

  • Executing Crystal Report using BI Query as datasource in Bobj portal

    I have a Crystal report using BI query as the datasource. The BI query contains User Entry variables.
    The Crystal report executes as expected except when added to the Bobj portal. From the portal, I can schedule the report and it will execute as correctly. However, if I try to execute without scheduling, I am able to enter the BI restrictions, but then am presented the following error message: "An error has occurred: For input string: "" ".
    If I remove all the BI variables from the query, the report will execute from the portal with out scheduling.
    Any help would be greatly appreciated.

    Hi,
    You can set your parameters from CMC. Select the report and set parameters in to the report properties.
    -SG

  • Load Master Data InfoObject using Query as Datasource

    I there a way to use a BW Query as a Datasource to load a Master Data InfoObject.  I have a query that calculates DSO for a customer and would like to update a custom DSO attribute in 0Customer

    As Bhanu mentions, Analysis Process Designer would be an option.  I did not use it before 3.5, but I know it did not have all the capabilities it has with 3.5.
    I don't think there is any need for transactional ODSs in the process however. You can specify your query as the DataSource, specify any filtering / transformations needed, and then specify the InfoObject that is the data target.  I haven't used a query to create Master Data with it but I do use it to take Master Data as input, manipulate it, and then update that Master Data.
    The APD is covered in BW380 along with Data Mining - which is a good class if anyone is interested.
    Is it easy enough for someone to pickup without training on it? I don't know - I think it would be for someone that has experience with the BW Admin Wkbench and has time to experiment. I think the related Data Mining features would require training.
    APD has a lot of powerful capabilities that could be used to solve a variety of challenges not readily solved with the Admin Wkbench tools.  I'm not sure why SAP hasn't done more to promote it.

  • How can i create datasource on apache server for ADF application?

    Hi All,
    i my use case i have created simple adf application using ADF BC and want to deploy on Apache server 6.x.
    So my question is that  how can i create Data Source i have goggling and find  two different way to do this.
    1. write following line of code on apache server conf/Context.xml file.
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource"
                   driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"/>
    but when i have used this way i got following exception.
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
    check link-
    https://forums.oracle.com/thread/2564233
    2. write following line of code apache conf/Server.xml file
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/TestDB" auth="Container"
                  type="oracle.jdbc.pool.OracleDataSource"
                  description="User database that can be updated and saved"
                  driverClassName="oracle.jdbc.driver.OracleDriver"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@//172.31.43.207:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"   />
      </GlobalNamingResources>
    and add this line in context.xml file inside <context> tag
    <ResourceLink global="jdbc/TestDB" name="jdbc/TestDB" type="oracle.jdbc.pool.OracleDataSource"/>
    but when i have run application i have got following error
    log-
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    Aug 2, 2013 5:17:21 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    so what is the solution how to create datasource on apche server which suitable for adf application?
    when i test data source using  following code used 1. way as i mentioned above  its running fine bt not for second.
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <sql:query var="rs" dataSource="jdbc/TestDB">
    select empname from pay_emphdr where empcd='JK1306'
    </sql:query>
    <html>
      <head>
        <title>DB Test</title>
      </head>
      <body>
      <h2>Results</h2>
    <c:forEach var="row" items="${rs.rows}">
        Foo ${row.empname}<br/>
    </c:forEach>
      </body>
    </html>
    please help me. it is very urgent.
    thanks in Advance
    Manish

    Hi Lindalnci
    i have already tried  this tutorial and in my post i have defined first way to do using this procedure.
    in that case i have got following exception as i have mentioned above
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection

  • Error when executing a query in ECC

    W'e're getting the following error when attempting to run a Crystal Report (2008) that uses an SAP ECC query as the datasource:
    Database Connector Error: "Screen output without connection to user"
    Anyone seen this before? Tried looking this up in the forum but didn't find anything.
    Thanks.

    Are you up to date on the Crystal ECC transports?
    Is the user running the Crystal Reported assigned to the SAP query user group (SQ03/02)?
    I have seen strange errors with these two things.
    Why not upgrade to CR 2011?  We found with our license there was no addiitional fee/cost to do this.
    Tammy

Maybe you are looking for

  • Errorpage

    If we don't put try-catch statement in a JSP file, we will be automatically forwarded to the errorpage when an exception occurs. How do I pass a parameter along with it? Specifically, I want to pass URL name of the original page so that the errorpage

  • Intermittent freezes upon cold boot

    Greetings gurus, I've been experiencing intermittent freezes on cold boot since a few weeks. I did not have them on 10.5.4. I've only had 4 freezes and according to the CrashReporter log all are identical, as far as I can tell. I have not installed a

  • Why iPhoto 9.5.1 will not complete download on my OSX 10.9.2?

    Why iPhoto 9.5.1 will not complete download on my OSX 10.9.2?

  • Printing Black & White Prints

    I will tell my problem first and then some background. When I attempt to print mono prints on my Epson R1800 using the "black" output opion on the print dialog I cannot get a true mono image and the full tonal range replicated. Often I have too much

  • Having issues with KIK & AnyVideo for KIK with IOS7

    Can anyone give advice on any user end fixes for KIK? I am on iPad2 and KIK no longer has the AnyVideo icon and the camera function in KIK does not allow to switch from front to rear cameras. Other apps have similar issues and some just will no longe