JDBC Procedure iView
Hi All-
I'm using the standard iView template to connect to a JDBC system and run a stored procedure (Oracle DB). All connections are fine and returning data, but I'm wondering if I can format the result.
The procedure returns a series of label/value pairs. In pl/sql the output is formatted as one row per label/value pair. When the same results are returned to the iView, they show as a long single row.
Can I control the result format from the iView?
Alternatively, how could the procedure be written to output a multi-row result?
Thanks
V/C is definitely an option, however it appears that I'd be better off simply re-executing the SQL from VC than trying to do the text manipulations on the stored procedure result. This means that the stored procedure is bypassed completely and recreated in SQL and VC (sigh)
Preferably, I would leave the procedure/SQL-writing to the DBAs and just consume the result set for presentation. So, if I cannot do formatting with the JDBC Procedure iView, can the procedure be written to output text that appears formatted?
I have to believe this is possible because the JDBC Procedure iView properties allow me to adjust the number of rows returned....question is, how to return multiple rows?
any ideas?
thanks
Similar Messages
-
Testing a Stored Procedure iView gives an error!!
Hi,
I have created a stored procedure iView , associated with a SP object in MSSQL server.Tested the connection etc..everything is works. but when i Preview the SP iview..It gives me an error
"No response from the backend application"
Can u please let me know whats wrong and also let me know incase i missed any step in creating the Iview,
thanks
GlenHi,
I have created a stored procedure iView , associated with a SP object in MSSQL server.Tested the connection etc..everything is works. but when i Preview the SP iview..It gives me an error
"No response from the backend application"
Can u please let me know whats wrong and also let me know incase i missed any step in creating the Iview,
thanks
Glen -
Change the default name of a personalizable attribute of an JDBC Iview
Hello All,
I created have an IView from JDBC Stored Procedure IView Template and the name for the value of the parameter was autogenerated as 'function_params_value1'. The iView is personalizable and so are the parameters. When the iView is placed on the page and personalized by an end user, the parameter value name shows up as 'function_params_value1'.
Is there a way to change the name of the value attribute to say for ex..'StoreId' which is the actual parameter name in the stored procedure.
Thank you,
AparnaHi Aparna,
Check the additional info for the function parameters in the following link:
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/a2/b59589e5a942838247493b255d5981/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/a2/b59589e5a942838247493b255d5981/frameset.htm</a>
Hope it gives you some idea.
Regards,
Vivekanandan -
How to use a cofigured JDBC iView?
Hello,
I ghave configured an iView which implements a JDBC connection to my SQLServer, let's call it "myJDBC".
Can someone please show me a simple code example
(including relevant descriptors)of another iView which uses the JDBC iView in order to Query the Database and display the results?Hi,
I assume by JDBC iView you mean that you have created a system that points to a database. <i>Not</i> JDBC iView as if you had created one of these you would already be able to configure the output at the time of the iView creation.
What Praveen has said is correct one way is to do a custom development using JSP. (He makes it sound easy!).
There are a number of options using the standard iViews provided out of the box rather than getting into java code.
There are two types that are quite basic but easily configurable.
They are JDBC Stored Procedure iView & Query iView.
The stored procedure iView obviously requires a stored procedure on the database that provides a response.
The iView creation wizard will enable you to be able to browse and select your stored procedure and for the query iView you should be able to select the tables etc and organise there output inside the wizard.
If you have difficulty when creating these iViews check you configured the system correctly so make sure you follow the steps of:
Create Alias on the system and Test connection
Provided usrpwd details to DQE on the system.
Configured your user mapping to the Alias using the personalize option on the portal header.
Once you have this all working you might like to look at a bigger challenge and get unification iViews working...
See Weblog :
1-2-3 Drag&Relate (or D&R for dummies) -
JDBC-Adapter-Receiver Calling Stored Procedure with Input-Typ Record
Hallo,
I´ m trying calling a stored-procedure with two input-parameter; one of typ record (oracle) and one of type tabel of records. Is this possible (I think there are only types like string, integer etc. possible)? When not is there another possibility to work with that type?
Thanks in advance,
FrankHi Frank,
I think stored procedures will not take Array of Records as a Input. If you want to make a loop funtionality etc then JDBC adapter will work accordingly. You need to just call the stored procedure from the JDBC adapter. It will work for the array of records(multiple occurences).
Receiver JDBC Procedures.
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
Alternative option is you can make use of Java Proxy and from there you can call stored procedure ..I think it is possible.. not tried.
Hope this helps
Regards,
Moorthy -
JDBC Connection to MSSQL-Database in Netweaver Portal
We are running into problems when trying to create a Query- or JDBC iView to retrieve data from a MS SQL server table.
Here is what we have tried on 2 different EP portals.
Portal versions:
6.0.12.0.0 (NW04 SPS12)
6.0.14.0.0 (NW04 SPS14)
Step 1: Created a JDBC system.
Connection URL - jdbc:microsoft:sqlserver://<servername>:1433;DatabaseName=name
Driver Class Name - com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection Factory Class JDBCFactory
Admin User ID (DQE) database admin name
Admin Password (DQE) database admin password
User Mapping Type admin;user
Step 2: Created an alias for this JDBC system, for example, test_JDBC_system.
Step 3: Added user mapping.
Search for my user ID in the User Mapping in User Admin section, click on Edit, and select the JDBC alias name test_JDBC_system in the system dropdown list, and then put database admin user name and database admin password in the fields User and Password, and click on Save.
Step 4: Tested the connection.
Connection Test Through DQE was successful, but Connection Test for Connectors failed. Error message was:
Results
Retrieval of default alias successful
Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
Step 5: Created a JDBC stored procedure iView.
Got an error message like this Error connecting to backend application. Check your system and user mapping settings. Contact your system administrator if problem persists.
Step 6: Because we couldnt successfully create JDBC iView, so we tried to created a Query iView instead.
It showed me the system alias, and I could drill down all the way to the table level and put in my query, for example, SELECT cdb_admin.Land.Land FROM cdb_admin.Land (table name is land and the column name is also land, cdb_admin is the admin user). But it gave me an error when previewing it Query execution failed. Exception message:
Here are our issues/thoughts:
We dont know how to do the user mapping, not sure what to put into User and Password fields.
The documents saying these versions have the SQL Server Driver installed already, but we couldnt see the com.microsoft.jdbc.sqlserver.SQLServerDriver under System Drivers in JDBC connector in SAP Visual Admin.
In some document, it used com.sap.jdbc.sqlserver.SQLServerDriver, and we dont see that in the system driver list either.
We tried to deploy MS SQL driver 3 jar files msbase.jar, mssqlserver.jar, msutil.jar by adding a new driver under JDBC connector in SAP VA. We gave it a name MSSQL. But we dont know if we referred to the SQLServerDriver class correctly by entering Driver Class Name - com.microsoft.jdbc.sqlserver.SQLServerDriver when creating the JDBC system in the portal.
It seems like we connected to the database server and tables when using Query iView, but why did we get this Query execution failed. Exception message: ? We tried to modify the query to select land from land too, but it didnt work either, same error message. So is it really the SQL statement wrong? There is not much documentation on Query iView and can you give me some hints?
Thanks very much..Hi,
in "User" and "Password" field you need to give database administrator User-ID and Password.
You just need to give proper Database url and Driver class name to access MS SQL thro JDBC system.
Have you set the security settings for the database, check the <b>prerequsites</b> in the following link:
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/f5/eb516b0e6a11d7b84900047582c9f7/frameset.htm">Creating iViews for Databases</a>
Hope it helps
Regards,
Vivekanandan -
How to Create an IView on EP 6
I have installed EP6 and the SAP Web AS using the sneak priview edition . We have to get certified on SAP in two steps :
1. running our J2EE applications on the SAP WebAS which we have completed successfully .
2) Build a Iview which would access our data which lies in an Oracle Database . (The Priview edition had to be installed with SQL Server but we want to grab data for the Iview from our Oracle Database).
I have very little time left for getting Certified . What would be the best way of getting this done . <b>I need to build one main Iview to grab our data from our Oracle database to present one of our significant reports.
Do i need to have the DQE running for this ?</b>
With so much documentation it has been very confusing for me and i have been unable to get the right steps to proceed with this implemenation . I am new to the Certification and also not a Java Developer.
Thanks
RaviHi Ravi, below are the steps to create the iView. I have not done this with Oracle but this is the theory.
Please assign points if this helps.
Cheers
Daniel
The steps to create the JDBC Query iView are as follows.
Login as System Administrator,
Navigate to System Administration>System Configuration>System Landscape
Create a new system,
Choose JDBC System>Assign name etc>Open Object for Editing
Under property category choose: Connection & assign,
Connection Timeout = 60
Connection URL = jdbc:sap:oracle://<YOUR_ORACLEHOSTNAME>:1521;SID=<YOURSID>
Driver Class Name = com.sap.portals.jdbc.oracle.OracleDriver
SAVE
Change the Property Category to: Distributed Query Engine
Enter the admin user\password to the oracle database.
SAVE
Change the Property Category to: User Management
Choose admin,user
SAVE
Now change the Display category to System Aliases
Enter a system alias for the system.
Go to user management and assign your login details to the system alias you just created.
Go back to the system in the system landscape and right click and choose connection tests.
Test your connection, at this point if it fails check & re-check the above steps. Ensure that the passwords etc that you provided are correct.
Once this is done all we now need to do is create the JDBC connection iView.
Go to Content Administration, create a new iView using: JDBC Stored Procedure iView>Assign name etc>Choose the system alias we just created>Find your function(You will need DBA to create this for you)>Choose your result set value, Open the object for editing> Click preview. You should see the result from the function (Stored Procedure) -
Dear All,
I am using EP 7.0 SP6.
We encountered a problem in creating a jdbc system for us to configure a jdbc stored procedure iView in EP.
Here is what we have done:
1 - In System administration> System Configuration, create a new system (from template)
2 - Select 'jdbc system'
3 - Provide the system name etc
4 - Provide the jdbc driver url etc information. The jdbc driver is already deployed on the J2EE engine via Visual administrator and tested to be ok
5 - We provided valid username/password via user mapping
However the creation fail and here the error message on EP screen:
=============================================
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend application using the connector defined in this system object
Results
Retrieval of default alias successful
Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
================================================
Thanks.
KelvinHi KL, jdbc system doesn't have any other mistery...
May be the drivers that you are using aren't the propers.
for SQL:com.sap.portals.jdbc.sqlserver.SQLServerDriver
and URL: jdbc:sap:sqlserver://servername:port;DatabaseName=PruebaPortal
for ORACLE:com.sap.portals.jdbc.oracle.OracleDriver
and URL:jdbc:sap:oracle://servername:port:1527;SID=PruebaPortal
Best Regards,
Nacho -
No WebDynpro iView Template found in content administrator menu (NW 7.1)
Dear Sir/Madam,
I tried to integrate a sample application in my local portal, but I did not found the webdynpro iview template to accomplish this in the content adminstrator menu.
I found the webdynpro iview template for webdynpro ABAP, but not the on for webdynpro java.
Is this a problem of my installation or are there some prerequisites which I miss?
Many thanks in advance for any input on this.
I am using Netweaver 7.1.
Wolfgang Rothmayer.Thanks for the quick answer.
My problem is, that I do have the New->iView Menu but then I miss the
Web Dynpro Java application entry
Find below the screen I do have:
<<snip>>
Please wait
Your request is being processed
iView Wizard
Step 1: Template Selection
This wizard guides you through the steps required to create a portal iView based on an existing template. The template list reflects the contents of the cache, and may need refreshing.
Refresh
Choose Template: *
BEx Web Application iView
Crystal Enterprise Report
JDBC Stored Procedure iView
Proxy-to-Portlet iView (WSRP)
Related Services iView
SAP BSP iView
SAP IAC iView
SAP MiniApp iView
SAP RFC iView
SAP Transaction iView
SAP Web Dynpro for ABAP iView
Service Map iView
URL iView
Web Service iView
Workset Map iView
XML iView
Cancel Back Next > Finish
<<end snip>>
What is wrong?
Thanks again.
Regards,
Wolfgang. -
Query iView Does Not Display Sql Server Tables
I have a system connected to a SQL Server (2000 Enterprise) and the Connection Tests works properly.
When I start to create a Query iView, I get to the point where I must select a JDBC system and select tables from it. When I select the tree node of my system, it displays "Loading ..." and then this disappears and nothing is displayed for this system.
Funny thing, I can create a Stored Procedure iview for this system, and it displays the available stored procedures.
Any ideas of the problem?
DanielHi Antony,
Upgrading from SP7 to SP9 fixed a lot of problems for me! It's worth trying.
Problems solved for me:
Page requests take about 2 minutes to display page (now within a few seconds)
KM SQL logging (30-50Mb per minute) problem fixed.
There are some problems upgrading to SP9, but searching this forum will help you in finding some solutions for this
Regards,
Noel -
For reasons too managerial to discuss here, I need to pull code from a stored procedure to normal JDBC procedure.
Is there a reccomended method [standard pattern] to access a table_name_seq.NEXTVAL column to automaticlly generate a primary key? [say as part of an insert using a [Prepared]Statement?]
Or, should this be a seperate select action?
like
Statement s=con.createStatment();
ResultSet rs=s.executeQuery("select table_name_seq.NEXTVAL from DUAL");
long primaryKey=rs.getLong(1);
//use the new key to build a new record.....I'd just have the PreparedStatement be
insert into <<table_name>> (<<primary key>>, <<other columns>>) values (table_name_seq.NEXTVAL, ?, ?, ..., ?)That avoids the extra roundtrip to get the next sequence value and prevents your code from accidentally reusing a value or binding the wrong value to the primary key.
Of course, it's probably going to be hard to find a standard pattern for doing something that's better done in a stored procedure.
Justin -
Hello - I was wondering if someone can help me figure out the best way to catch a deadlock situation. If my app encounters a deadlock I want it to keep trying until it succeeds - what would be the best way to do that.
Here's some sample code I found but this will only perform it one more time if it gets a deadlock.
/// if this code might encounter a deadlock,
// put the whole thing in a try/catch block
// then try again if the deadlock victim exception
// was thrown
try {
s6.executeUpdate(
"UPDATE employee " +
"SET bonus = 625 " + 91
"WHERE empno='000150'");
s6.executeUpdate("UPDATE project " +
"SET respemp = '000150' " +
"WHERE projno='IF1000'");
// note: do not catch such exceptions in database-side methods;
// catch such exceptions only at the outermost level of
// application code.
// See Database-Side JDBC Procedures and SQLExceptions.
catch (SQLException se) {
if (se.getSQLState().equals("40001")) {
// it was chosen as a victim of a deadlock.
// try again at least once at this point.
System.out.println( "Will try the transaction again.");
s6.executeUpdate("UPDATE employee " +
"SET bonus = 625 " +
"WHERE empno='000150'");
s6.executeUpdate("UPDATE project " +
"SET respemp = 000150 " +
"WHERE projno='IF1000'");
else throw se;It would be much better to figure out WHY the exception can happen, and do everything you can design-wise at both the database and client level to ensure it won't happen again.
If you must continue to possibly encounter that exception, then you could put the thing in a loop construct of course. (A while loop, for instance) -
Error in Configuring EP to MS SQL 2000
Hi nw ep consultants
I have a requirment .. i have give employee number has a input nad i have press submit button.. it has to retrive the data from MS SQL 2000, so my backend is MS SQL 2000.. now i have to connect EP to backend system (MS sql) for
<b>step 1</b>: i have created a folder MSSQL2000
<b>step 2</b>: i have created a JDBC system also..
<b>step 3</b>: then i gave the connection URL for SQL driver
jdbc:sap:sqlserver://192.168.1.71:1433;databaseName=Northwind;
com.sap.portals.jdbc.sqlserver.SQLServerDriver
<b>step 4</b>: property category > connection parameter> connection timeout 60
<b>step 5</b>: property category > user mapping> admin, user
<b>step 6</b>: and then created system aliases also..
<b>step 7</b>: AND Then content admini> went to my folder> created iview (JDBC Stored Procedure iView) and then iview name
chosen the system aliases name (...) next
<i> it shows error message here..</i>
Step 4: Error Occurred
<u><b> Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter. </b></u>
i have a doubt here.. why i am getting the error message..
MS SQL 2000 is running in this ip address 192.168.1.71 and the user name : sa and the password : sa
i don't know why this error is coming..
<b>My doubt is is there any JDBC driver to be loaded EP ..</b>
<b>Please help me to solve this problem.. friends..</b><u></u><b></b><i></i><u></u>Hi,
Check these Notes:
Note 675939 - SAP Web AS 6.40 Installation on Windows: MS SQL Server
Note 795991 - J2EE deployment fails, memory error on db-side
Note 659468 - JDBC: Unspecified database error -
Creating an ivew in nw 7.1 sp3
Hi there
i am facing a typical problem, i have created and portal application for km to create an folder and created an ear file using netweaver developer studio
form here i need to create an iview and then assign it to user my when i go to the portal content and repository and look for preview it displays exception id
xx-xxx-10006250
and what selection do i have to take to display it in the portal i have the following option in create i view
can any body explain the steps required to see the above created folder in the portal ..
its a bit urgent , quick reply will be appreciated
thanks in advance.
i have the following options
BEx Web Application iView
Col Room Navigation iView
Collaboration Configuration Template
Crystal Enterprise Report
JDBC Stored Procedure iView
KM Application Log iView
KM Cache Monitor iView
KM Classification Inbox
KM Configuration iView
KM Content Exchange Subscriber Syndicators List iView
KM Content Exchange Subscriber iView
KM Content Exchange Syndicator Offers iView
KM Content Exchange Syndicator Subcribers iView
KM Content Exchange Syndicator iView
KM Crawler Monitor iView
KM Crawler Monitor iView
KM Discussion Group Admin iView
KM Discussion Group Contributor iView
KM Discussions iView
KM Document iView
KM Document~ iView
KM Index Administration iView
KM Indexing Monitor iView
KM Navigation iView
KM Quickpoll Administration iView
KM Quickpoll iView
KM Recent Notifications iView
KM Search iView
KM Subscriptions iView
KM Taxonomy Query Builder iView
KM Taxonomy Trainer iView
KM Taxonomy Update Log iView
KM Transport Monitor iView
KM Transport Service Information iView
KM Trex Monitor iView
KM Upload iView
KM XML Forms Builder Check iView
KM XML Forms Builder iView
Proxy-to-Portlet iView(WSRP)
Related Services iView
SAP BSP iView
SAP IAC iView
SAP MiniApp iView
SAP RFC iView
SAP Transaction iView
SAP Web Dynpro for ABAP iView
Service Map iView
URL iView
Web Service iView
Workset Map iView
XML iViewHi there,
i am not able to view the option portal application in the templetes
it displays the following optioins , so can you tell me which one do i need to select
i have the following options
BEx Web Application iView
Col Room Navigation iView
Collaboration Configuration Template
Crystal Enterprise Report
JDBC Stored Procedure iView
KM Application Log iView
KM Cache Monitor iView
KM Classification Inbox
KM Configuration iView
KM Content Exchange Subscriber Syndicators List iView
KM Content Exchange Subscriber iView
KM Content Exchange Syndicator Offers iView
KM Content Exchange Syndicator Subcribers iView
KM Content Exchange Syndicator iView
KM Crawler Monitor iView
KM Crawler Monitor iView
KM Discussion Group Admin iView
KM Discussion Group Contributor iView
KM Discussions iView
KM Document iView
KM Document~ iView
KM Index Administration iView
KM Indexing Monitor iView
KM Navigation iView
KM Quickpoll Administration iView
KM Quickpoll iView
KM Recent Notifications iView
KM Search iView
KM Subscriptions iView
KM Taxonomy Query Builder iView
KM Taxonomy Trainer iView
KM Taxonomy Update Log iView
KM Transport Monitor iView
KM Transport Service Information iView
KM Trex Monitor iView
KM Upload iView
KM XML Forms Builder Check iView
KM XML Forms Builder iView
Proxy-to-Portlet iView(WSRP)
Related Services iView
SAP BSP iView
SAP IAC iView
SAP MiniApp iView
SAP RFC iView
SAP Transaction iView
SAP Web Dynpro for ABAP iView
Service Map iView
URL iView
Web Service iView
Workset Map iView
XML iView
thanks in advance
regards -
I would like to create i-views in SAP Netweaver Portal for MDM SP5 and Basis Consulatant told to me MDM and Portal connectivity establised.
Step 1:-Right-click your folder where you want to create your iView and from the context menu, select New u2192 iView to launch the iView Wizard.
Step 2:-Enter a Name (display name) and an ID for the iView (the ID name must be entered without blank spaces).
Step 3:-Select Allias for MDM Server from drodown List.
But instead of getting Step 3 , I got Summary to finished.
How will configure Step 3.Hi Jitesh
I have do exact same way and list of i-view are following .
Tell MDM relevant i-views exist or not ,If not what we need to do...
BEx Web Application iView
Col Room Navigation iView
Collaboration Configuration Template
CRM BW iView
CRM E-Commerce Document Overview
CRM Fact Sheet BW iView
CRM Fact Sheet Form iView
CRM Fact Sheet List iView
CRM Generic Internet Sales
CRM PCUI BSP iView
CRM Telephony
CRM Value Help iView
Crystal Enterprise Report
JDBC Stored Procedure iView
KM Application Log iView
KM Cache Monitor iView
KM Classification Inbox iView
KM Configuration iView
KM Content Exchange Subscriber iView
KM Content Exchange Syndicator iView
KM Content Exchange Syndicator Offers iView
KM Content Exchange Syndicator Subscriber iView
KM Crawler Monitor iView
KM Crawler Monitor iView (Legacy)
KM Discussion Group Admin iView
KM Discussion Group Contributors iView
KM Discussions iView
KM Document iView
KM Document iView Without Content Filter
KM Folder Settings Admin iView
KM Folder Settings Admin iView
KM Index Administration iView
KM Indexing Monitor iView
KM Navigation iView
KM Quick Poll Administration
KM Quick Poll iView
KM Recent Notifications iView
KM Search iView
KM Subscription iView
KM Taxonomy Query Builder
KM Taxonomy Trainer iView
KM Taxonomy Update Log iView
KM Trex Monitor iView
KM Upload iView
KM XML Forms Builder Check iView
KM XML Forms Builder iView
Navigation Destination
Object-Based Navigation
Page Navigation
Personalized SAP Web Dynpro iView
Portal Activity Report iView
Proxy-to-Portlet iView (WSRP)
Proxy-to-Remote iView
Related Services iView
SAP BSP iView
SAP CRM R/3 Transaction iView
SAP IAC iView
SAP MiniApp iView
SAP RFC iView
SAP Transaction iView
SAP Web Dynpro iView
Search
Service Map iView
URL iView
User Management
Web Service iView
Web Target iView
WorkProtect Mode
Workset Map iView
XML iView
Maybe you are looking for
-
Purple lines around an image icon
Hi all! Ive created some JButtons with a white background which have some ImageIcon's representing their use. Problem is a horrible purple border appears around the most recently selected image/text combination in the middle of the button. I've looke
-
I have 5 family members all with their own apple computers and all with their own itunes accounts. I would like to know how I can easily share music my wife and I have already bought under our Itunes accounts. Is there a better way to share for the
-
Word documents disappeared from iPad
Hi! I recently downloaded Office for iPad and continued a book I am writing in Word, since I find it easy to use. After two days of writing (before i saved a back-up), I wanted to open the document (I saved it on my iPad), but it had disappeared! Whe
-
Preconfigured Smartforms in ECC6.0
Hi, I would like to use preconfigured smartforms . I am using ECC6.0 . Can anyone tell me from where I can download preconfigured smartforms for ECC6.0. Is it already present in SAP software DVD. Regards, Vinod
-
Hello, Is it possible to use BI Beans to build a Presentation (crosstab) of lets say the Dow Jones Index where I have a table containing the dates and prices? Would I have to create metadata in order to do that?