Use JDBC to query data for JSP Report

Hi all,
I met a trouble when use JDBC to query data,
it can show data in report builder, but get error when call from url for exxample: http://localhost:8889/reports/TestJDBCReport.jsp
found error message:
javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source. REP-0069: Internal error JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source.
REP-0069: Internal error
JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
anyone know pls help me
Many thanks

As a general rule, it's a good idea to separate the
presentation (JSP and HTML) from the business rules
(database access). I know you didn't do that on the
AS/400, you had display files and business logic in
the same program (at least, we certainly do in ours),
but it's a good policy to follow in the web world.
That means, don't put your database access code in
the JSP. Other than that, it depends on the data.
If you have simple data (e.g. customer's name and
d address) then a Java bean would suffice. If you
have complex data (e.g. customer's payment history)
then a bean still might suffice. You would use an
"include" if you had some data (static or dynamic)
that you wanted to appear in several different pages
in the same form.Thanks, I figured putting the code in the JSP was not the best way, but I wasn't sure about the other options.

Similar Messages

  • Editing the Query name for all reports in PRD.

    Dear All,
    I have created 25 reports using Query Designer.We have moved all the reports to BI Production. And Clients are using these reports using the Tool Bex Analyser.
    Every time they are navigating through open Query -> Info Areas -> Data targets and Query.
    Instead of going this way, is there any other way to Open a query easily.
    And they wants to modify the Report name and the Technical name for all the reports. Can we able to edit the Query name for all reports, or do i need to go for SAVE AS for all querys.
    Pls Suggest.
    Thanks,
    Ram

    Hi Ram,
    1. For the first question; if it user specific query then ask the users to save them at the FAVORITES so that there is no need to go to the dataprovider specific.
    Or they can create the reports as favorites user menu screen of that particular user.
    2. In order to change the technical name and description of the queries goto RSZC t-code> give the source and target infoprovider as same> select queries>click on the reports>click on transfer selections-->
    Then you get a screen to change the description and technical name.
    But this is pertained to Infoprovider level.
    You can see all the reports on the infoprovider (cube/ods).
    Hope you understood.
    Regards,
    Ravi Kanth

  • Use evdre to query data from a SQL View

    Hi all
    I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
    Regards,
    Byron

    Byron,  perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this.  However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file.  This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
    It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level.  Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME"  If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
    Also:  I interpreted the following info from Page 10 of the same doc:
    In your EVDRE, set the following options:
    QueryEngine: MANUAL
    QueryType:  enter either NEXJ  OR TUPLE  see below:
    NEXJ  - Use two-dimensional queries using the nonemptycrossjoin function
    TUPLE  - Use two-dimensional queries using tuples"
    And I'm assuming you'd enter a Y for the following two parameters:
    QueryViewName
    "..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
    Option SQLOnly
    "..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."

  • Anyone else getting a message that they have almost used all of their data for the month?

    We just got a message saying that we have used 90% of our data for the month and we are only 10 days into the billing cycle. I looked at our account on line and it says that we aren't even close to using our total data for the month. When does all of the stupid stuff stop? When I switched to Verizon 10 years ago, they were great. Great customer service, great plans, etc. Now that has gone away. The 4G service is an absolute joke. Where I used to have great service, there literally is none, and the phone won't even switch to 3G if it is in a bad area. I travel through a major city every day and I am amazed at how crappy the service is.
    Now I'm getting messages that aren't even correct??? I have a lot of lines on my account and I don't want to go elsewhere, especially since I live in the country and Verizon is the only way to get decent internet service, but this is getting rediculous. I guess listening to the customers doesn't matter anymore as long as they get their money.

        Hi GeoffPrice
    I'm sorry to hear your getting alerts that are incorrect. Let's get to the bottom of this. What zip code are you in? Are any other devices having the same issue on your account?
    JoeL_VZW
    Follow us on Twitter @VZWSupport

  • Which tables are being used to extract the data for the materi Extractors

    Hi
    please advise which tables are used to extract the data for the extarctors
    0MAT_SALES_ATTR,
    0MATERIAL_ATTR,
    0MAT_PLANT_ATTR
    0PLANT_ATTR
    ,Many thanks.

    Hi,
    Activate a database trace using ST01. Then perform the MM03 operation and goto the SD Texts tab. Now stop the trace and see if you can locate either a table or program which you can utilize in the log.
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f993545a11d1a7020000e829fd11/frameset.htm
    Hope this helps..
    Rgs,
    Ravikanth.

  • Using SQL queries via ODBC connection to obtain data for a report

    Post Author: adhiann
    CA Forum: General
    Hi All,
    I was trying to run a Crystal Reports report through Clearquest using an SQL query I designed in CQ to give me the data I need, however, from within ClearQuest, I cannot associate an SQL query on a report, so I went directly to Crystal Reports and am using the ODBC connection to the ClearQuest database to run the report. I selected the right tables and fields and am using the same formula that I used on ClearQuest's SQL query to get the data, however, the report doesn't return any data whereas I am getting at least 5 records from Clearquest for the same query.
    Granted there's a difference in the way you create a SQL formula in Crystal, but I don't know if I'm doing it right as I've never had to use CR as a standalone product.
    Is there a way I can directly plug my ClearQuest's SQL query into the CR and run it? I don't know why the results won't return any data for a query that has some results
    Thanks in advance
    nandita

    Post Author: Roscoe1822
    CA Forum: General
    Did you try to add a command through the Database Expert? Also creating a Business View that contains your sql query might help as well.

  • Breakout of data for Webi Report

    I am not sure if this question should go here or in the Universe forum but I will post it here first.  I am using BOBJ Edge XI3.1 with SQL Server 2005 holding my data.
    I have a universe that has 4 tables in it.  The first table is "CSS_Facts" which is a Fact table consisting of aggregate data.  Table two is "TJG_Organization_CSS"  that holds six levels of hierarchy for all clients.  Corporation, System, Facility, Division, Service Line and Department.  Department is the lowest level so there is an "Organization_Key" for every department for every client.  Table three is "TJG_Survey_CSS" which holds all of the survey data for every client.  Every answer for every survey has its own "Survey_Key".  Lastly I have "TJG_Time" which has a "Time_Key" for every day of the year.
    Table "CSS_Facts" has a foreign key for each of the three tables above with the same field name as the key field in each of those tables.  The cardinality for all three of these joins is many to 1 from the "CSS_Facts" table (ex:  many "Survey_Keys" from the Facts table to one key in "TJG_Survey_CSS").  The facts table also has 4 other fields which hold the counts and or computed fields.
    All of this works perfectly for most of what we do.  I can build a WEBI document that has all of the fields that I need.  As an example, I can get a report of all the statements for a given timeframe for a specific survey number for a specific client.  If the survey has 50 statements in it I can get back all of the statements with the counts for all of the possible answers for each statement.  This is expected and what we want.
    Our problem is being able to break this down based upon the answer(s) to one question in the survey.  Let's say statement number 2 in the survey is an age statement that has 5 possible answers.  Answer 1 might be "Less than 18.".  Answer 2 might be "19 to 29.", and so on.  When I filter my query in my Webi to just bring back results for anyone who chose Answer 1 (Less than 18) for this statement I get back pretty much what I expect, that question only with all of the possible answers but a computed total for just answer 1 (less than 18) with all of the other answers getting zeroes.  Again, this is what I expect to get back based on the WHERE clause that is generated but not really what we want.  We want to get back the complete survey in the report, all 50 statements with new count totals per statement based on the answer (Less than 18) from that 1 question.
    Is this possible to do within Webi reports?  If not, can this be done outside of a webi report, but then brought back into the Universe to be consumbed by a Webi report?
    Thanks for any help in advance.

    You can use the following work-around without the need for an SDK solution.
    Display this info in the report in stead of in the pop-up...
    Just create a cell with the info want to show and hide it if there is data,
    (use and alerter to empty it when you have data and hide on empty)
    show it when there is no data fetched.
    Hope this helps,
    Marianne

  • Best practise BW Query design for Crystal Reports integration

    Hi all,
    I am looking for a guide on best practices when designing a BW Query to be used as data foundation for a Crystal Report.
    The scenario is that I am responsible for developing the Crystal Reports part, but not the BW Query part, therefore I would like to provide a list of best practises to the person who is responsible for the Query, this way make sure that the integration will work as good as possible. The setup is of course using BO Integration Kit for SAP.
    An example is how to use authorization variables in the query to provide data security. This is just one example, there are problably a number of other things to be aware of. A document containing suggestions for best practices is what I am looking for, or if the document does not exist, input to what should be on such a list.
    Thank you in advance.
    Regards,
    Rasmus

    Hi Rasmus,
    in regards to the Best Practices for Crystal Reports you can leverage all the knowledge you have on the Query Design today already. if you not the person for designing the query I think it is important to make sure people designing the queries do understand how Crystal Reports is leveraging the elements from the BI Query.
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    You should try to put as much as possible into the BI query from the logic point of view.
    and you can also build common BI queries - there is no need to build a BI query for each report.
    ingo

  • No data for daily report sent from my PC

    Since a clean install of Windows 7 Ultimate on my PC, no data is being sent to the Cisco server from my PC. Previously I was running the RC version of Windows 7 Ultimate on this PC, with the same router and configuration, and no problems in being able to access a full daily report. I was using Outpost Security Suite Pro, which allowed the data to be sent, but am now using the native Windows  firewall, configured to allow NM outward communications.
    I asked Support to assist with configuring the Windows  firewall, but they were unable to assist, as they did not know how to do this- I would have thought that as NM is Windows 7-compatible, this information would have been available to them.
    My netbook is running Windows 7 Ultimate RC, with OUtpost Security Suite Pro, and does send the data for the daily report, when using my home wireless network and the same router, so I suspect that the Windows 7 firewall is causing the problem with the PC.
    Can anyone advise me on the specifics of configuring the Windows 7 firewall to allow NM to send the necessary data so that I can get the daily report?
    Running Network Magic version -5.5..9195.0-Pure. ADSL-2 connection; Netcomm Router NB6Plus4W;PC connection to router wired; PCI Adaptor card; VIPRE Antivirus and Antispware (disabling this made no difference)

    ambergris77 wrote:
    Since a clean install of Windows 7 Ultimate on my PC, no data is being sent to the Cisco server from my PC. Previously I was running the RC version of Windows 7 Ultimate on this PC, with the same router and configuration, and no problems in being able to access a full daily report. I was using Outpost Security Suite Pro, which allowed the data to be sent, but am now using the native Windows  firewall, configured to allow NM outward communications.
    I asked Support to assist with configuring the Windows  firewall, but they were unable to assist, as they did not know how to do this- I would have thought that as NM is Windows 7-compatible, this information would have been available to them.
    My netbook is running Windows 7 Ultimate RC, with OUtpost Security Suite Pro, and does send the data for the daily report, when using my home wireless network and the same router, so I suspect that the Windows 7 firewall is causing the problem with the PC.
    Can anyone advise me on the specifics of configuring the Windows 7 firewall to allow NM to send the necessary data so that I can get the daily report?
    Running Network Magic version -5.5..9195.0-Pure. ADSL-2 connection; Netcomm Router NB6Plus4W;PC connection to router wired; PCI Adaptor card; VIPRE Antivirus and Antispware (disabling this made no difference)
    Hi ambergris77,
    First only one Software can be turned on within the operating system, otherwise you have problems. Also Network Magic needs Full Access, not just Outward Access.
    thecreator - Running Network Magic version -5.5..9195.0-Pure0 on Windows XP Home Edition SP 3
    Running Network Magic version -5.5.9195.0-Pure0 on Wireless Computer with McAfee Personal Firewall Build 11.5.131 Wireless Computer has D-Link DWA-552 connecting to D-Link DIR-655 A3 Router.

  • Is there a way to consolidate calculations used in SQL Query Data Sets?

    I am building SQL Query Data Sets against multiple DB Views which all have different date formats. I have the date parameter working well, but want to consolidate the changes that I have to do to it especially for the quarter. For example the SQL against a monthly view would use "where year_month > to_char(:ST_DATE, 'YYYY-MM')" which is not too hard, but to make that work for the quarterly view I need several concats and a decode to get a "> '2012-Q2'". I would like not to have to do this within every where clause. I had put this into a global element hoping to use that in a filter for the data set, but the filter does not have access to global elements only parameters.
    Is there any way to refer to a calculated global element from the data set to do this? I am using Layout Templates, so even if I wanted to I could not do the condition within the template.
         Thanks,
         Rick

    Change the following line to include the red coloured parts
    <div class="MasterColumn" spry:repeat="ds4" spry:setrow="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
      <span>{Dsp_#}</span><span>{Dsp_WkDay}</span><span>{Dsp_Event}</span>
    </div>
    The add the following style rule to your document:
    .MasterColumn span {
        display: inline-block;
    I hope this helps.
    Ben

  • Which data source to be used to bring sales data for customers???

    Hi Gurus,
    I am using 0FI_AR_4 data source for one of report for DSO calculation.
    To complete the DSO( Daily Sales outstanding) calculation in BW I need sales data also for each customer.
    And this should be for all the past 12 months. Based on past 12 months sales data for each customer DSO calculation will be done.
    As this sales data is not available in the the 0FI_AR_4 data source so which other datasource can I use for the same purpose to bbring the sales data for the customer. I am thinking of COPA datasoure..... will it be right choice????
    Or I can go with some other option???
    Thanks in advance......
    Uday Shankar.

    Uday,
    You can use datasource: [2LIS_13_VDITM - Billing Document-Item Data |http://help.sap.com/saphelp_sm32/helpdata/EN/73/0bf23839caf878e10000000a114084/frameset.htm]
    datasource provides billing data item level.
    Srini

  • Using JDBC Adapter posting data from Oracle database to Falt file????

    Hi All,
      By using JDBC adapter, for now I have to connect to Oracle Database and then get the employee information from the Employee Table and post it to the flat file, can you please help me out the complete procedure...
    Thanks in advance
    Andy

    Hi Andy,
    have a look at the help for configuring a JDBC Sender adapter: http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    It mentions all the settings you'll need to make e.g. the connection URL as posted above.
    And it also lists how an XML file looks like that contains the query results according to the SQL Select statement in the adapter.
    <resultset>
    <row>
    <column-name1>column-value</ column-name1>
    <column-name2>column-value</ column-name2>
    <column-name3>column-value</ column-name3>
    </row>
    <row>
    <column-name1>column-value</ column-name1>
    <column-name2>column-value</ column-name2>
    <column-name3>column-value</ column-name3>
    </row>
    </resultset>
    So you have to create a datatype, message type and message interface to match this structure (of course you'll need to substitute column-name1 etc. with the column names in your select statement).
    Now if you want to create a flat file from that, you have to create an XML representation of that flat file and use the content conversion in the receiver file adapter as defined here: http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards
    Christine

  • How to use different default parameter value for different report subscriptions

    In ssrs is it possible to define different default parameter values for different subscriptions? In the following example I have a report which has two subscriptions with different start date and end date values:
    Report name – Testsubscription.rdl
    Subscription-1
    Input parameter (default values):
    start_date = first day of current Month
    end_date = till date
    Subscription-2
    Input parameter (default values):
    start_date = first day of current Quarter
    end_date = till date
    I know an alternative way of doing this would be to copy the rdl file with a different name but I am curious whether this can be done within a single report definition file. I am using SQL Server 2008 R2 Standard Edition.
    Thanks!
    spp

    Hi sppdba,
    As per my understanding, there is a report with two parameter: start_date and end_date, you want to configure subscription for the report, and set different default values for start date and end date. And you want to know if it is possible to achieve you
    goal by using a single report definition file.
    Since you are using SQL Server 2008 R2 Standard Edition, we need to achieve your goal by configuring two subscriptions for the report. For detail information, please refer to the following steps:
      1. In design surface, right click start_date and open Parameter Properties dialog box.
      2. In General pane, type Name and Prompt, set Data Type to Date/Time.
      3. Click Available Values in left pane, select Specify Values.
      4. Click Add button, in Label text box, type “First day of Current Month”, click (fx) button in Value section, then type the expression like below:
    =DateSerial(Year(Now()), Month(Now()), 1)
      5. Click Add button, in Label text box, type “First day of Current Quarter”, click (fx) button in Value section, then type the expression like below, then click OK.
    =DateSerial(Year(Now()), (3*DatePart("q",Now()))-2, 1)
      6. Right click end_date and open Parameter Properties dialog box.
      7. In Available Values pane, select Specify Values.
      8. Click Add button, in Label text box, type “Today”, click (fx) button in Value section, then type the expression =Today(), then click OK.
    Now that the parameters are created, we need to configure subscription for the report. For detail information, please follow these steps:
      1. Open Report Manager, and locate the report for which you want to create a new subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Subscription.
      5. Select the delivery extension and data source for the subscription.
      6. Select a method of delivery, then choose report delivery options.
      7. Specify conditions that cause the subscription to process and delivery to occur.
      8. Set start_date to First day of Current Month, end_date to Today, then click OK.
      9. Create a new subscription as step4 to 7, set start_date to First day of Current Quarter, end_date to Today, then click OK.
    The following screenshots are for your reference:
    For detail information about Creating Standard Subscriptions, please refer to the following document:
    http://msdn.microsoft.com/en-us/data/ms156307(v=sql.105)
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • How to Integrate SAP EP with SAP PI to send data for creating reports in BW

    Hi Gurus
    I am struck with an Object/Interafce Creation in my project. My requirement is to Integrated SAP Enterprise Portal and SAP BW using SAP Pi. I am working on SAP PI7.1. The SAP EP sits on the Oracle Database and it will send some data required for generating some reports in BW.
    My question is how to integrate the above systems by which adapters and which will be the best approach. If we use PI, the major advantage is we can Monitor the flow of the messages .
    Cant the BW System directly talk with the SAP EP System. If there is an approach, can we monitor the message flow with out PI involvement.
    All the above mentoined systems(SAPEP,SAPPI,SAPBW,SAPSRM,SAPABAP) are in the client landscape only.
    Please suggest me the approach.
    Thanking you

    Hi rajshekar
    Thanx for the reply
    In the current project we are having an Interafce which is a B pass sceanrio from MDM to BI; MDM is dat , pi is picking the data by Sender File CC and Posting the Data to BW by using Receiver File CC. this does not involve any developemnt of ESR Objects.
    My current requirement also seems to be the same Pick thhe date from SP Portal and give it to BW for generaiting reports.
    Can i use the SOAP at sender side and File at receiver side with out the involvement of ESR Objects.
    Does the By Pass aprroach work for this aprticular interafce.
    How can we integrate SAP EP with BW withour Pi?
    please share any blogs or forums
    please help
    Thank you
    Edited by: VArjun86 on Jan 4, 2012 10:27 AM

  • Extract BPC 5.0 data for BI reporting

    Hi,
    I want to know, in order to extract data from a BPC 5.0 (microsoft version) for reporting in BI tools do I need to connect to underlying SQL tables or can I leverage the Analysis Services cubes as OLAP source.
    If it is SQL tables, how is the application database structured in terms of dimensions and facts. How easy it is to figure them out and build a relationship between the tables in the BI modeling layer.
    Appreciate you taking time to answer.

    Within BPC's standard functionality delivered in ApShell, there are two packages
    "Export" - exports from the OLAP cube (aggregate members, choose your measure, etc.)
    "Export from fact tables" - exports.. .well..  from the fact tables!
    Both of these generate a text file and allow you some flexibility to set up dimension mappings and some other useful features.
    You should certainly use one or both of those, if at all possible, since they involve no custom development. The data manager guide gives fairly complete documentation of the options available.
    Or if you need a more elegant / sophisticated / integrated export routine, you can go either to the underlying SQL tables, or OLAP cube, or some combination of both, using DTS programming for automation.
    In either approach, the SQL fact tables will be faster than the OLAP cube. I've never tried a customized OLAP export, but have done a few SQL custom exports, which give complete flexibility to map data against conversions using member properties, aggregate data from BPC base members to the export system's base members, etc. using standard SQL in a stored proc. (You could also do these using DTS, but I find it easier to stage the export using SQL; just my personal preference.)
    I'm not sure, in an OLAP export, how you'd access that kind of metadata information.
    The key tables are
    tblFactAppName
    tblFac2AppName
    tblFactWBAppName
    and then
    mbrAccount
    mbrTime
    mbrDimension
    etc. for each dimension

Maybe you are looking for