Use the BI Java SDK in a Web Dynpro Application Version 1.01 July 2005

Similar documents
Install TREX for CAF Version 1.00 March 2006

Do Exception Broadcasting

link SAP BPC Excel from an enterprise portal Version th of March 2009

configure an anonymous access to KM

Configure UD Connect on the J2EE Server for JDBC Access to External Databases

MDM Syndicator Create Flat Syndication File

How to Upgr a d e We b Dynpro Them e s from SP S 9 to SP S 1 0

Visual Composer - Task Management Application

How To Configure the Websocket Integration with SAP PCo in SAP MII Self Service Composition Environment Tool

Create Partitions in SSAS of BPC Version 1.00 Feb 2009

SAP GRC Access Control: Configuring compliant user provisioning (formerly Virsa Access Enforcer) into CUA Systems

How To Troubleshoot SSL with BPC Version 1.01 May 2009

How to Create a New SAPUI5 Development Component

How To Extend User Details

Consuming Web Dynpro components in Visual Composer.

Transport in GP. How-to Guide Beginning with SAP NetWeaver 2004s SPS06. Version 2.00 January 2006

Configure TREX 6.1 for Efficient Indexing. Document Version 1.00 January Applicable Releases: SAP NetWeaver 04

What s New / Release Notes SAP Strategy Management 10.1

How To Set up NWDI for Creating Handheld Applications in SAP NetWeaver Mobile 7.1

How to Set Up and Use the SAP OEE Custom UI Feature

Configure SSO in an SAP NetWeaver 2004s Dual Stack

A Step-By-Step Guide on File to File Scenario Using Xslt Mapping

How To Develop a Simple Web Service Application Using SAP NetWeaver Developer Studio & SAP XI 3.0

Integrate a Forum into a Collaboration Room

Work with Variables in SAP NetWeaver Visual Composer Version 1.00 May 2006

How to Use Function Keys in Mobile Applications for Handhelds

How To... Reuse Business Objects and Override Operations of a Business Object

How To Configure IDoc Adapters

Extract Archived data from R3

Cache Settings in Web Page Composer

Process Control 2.5 Implementation Checklist

How to Set Up and Use the SAP OEE Custom KPI Andons Feature

How To... Promote Reports and Input Schedules Through Your System Landscape

Visual Composer Build Process

Data Validation in Visual Composer for SAP NetWeaver Composition Environment

Create Monitor Entries from a Transformation routine

How To... Configure Integrated Configurations in the Advanced Adapter Engine

How To... Master Data Governance for Material: BADI USMD_SSW_SYSTEM_METHOD_CALLER to create successor change request

How To Recover Login Module Stack when login to NWA or Visual Administrator is impossible

Simplified Configuration of Single System Update in Maintenance Optimizer

SAP NetWeaver How-To Guide

Quick Reference Guide SAP GRC Access Control Compliant User Provisioning (formerly Virsa Access Enforcer): HR Triggers

Web Page Composer anonymous user access

Enterprise Portal Logon Page Branding

Create Monitor Entries from an update routine

How To...Configure Integration of CUP with SPM

How To... Master Data Governance for Material: BADI USMD_SSW_PARA_RESULT_HANDLER to merge result of parallel workflow tasks

Configure Peripheral Drivers with Mobile Infrastructure

How to View Dashboards in the Self Service Composition Environment with Additional Metadata

Setup an NWDI Track for Composition Environment Developments

WDA - Custom themes for Web Dynpro ABAP applications without SAP Enterprise Portal integration

How to Browse an Enterprise Services Registry in Visual Composer

How To...Use a Debugging Script to Easily Create a Test Environment for a SQL-Script Planning Function in PAK

How to Translate a Visual Composer Model Part I

How To Generate XSD Schemas from Existing MDM Repositories

View Time Security for crystalreports.com

How To... Master Data Governance for Material: File Down- and Upload

SAP MII: Leveraging the Data Buffering Feature for Connection Error Handling.

Introducing SAP Enterprise Services Explorer for Microsoft.NET

Building a Tax Calculation Application

SDN Contribution HOW TO CONFIGURE XMII BUILD 63 AND IIS 6.0 FOR HTTPS

SAP Composite Application Framework. Creating a Content Package Object

The test has been performed using a 64 Bit SAP NetWeaver Application Server Java 7.1 Enhancement Package 1 SP4 or greater system.

Use Business Objects Planning and Consolidation (version for the Microsoft platform) BPF services in Xcelsius

Building a Composite Business Process from Scratch with SAP NetWeaver BPM Guide 2

SAP NetWeaver How-To Guide How to use Process Execution Manager Using SAP Test Data Migration Server

Line Items in BI Integrated Planning

SAP NetWeaver 04. Unification Terminology

How-To... Add Sensitive Content into an Area

Integrating a Web Service in a Composite Application. SAP Composite Application Framework

Handle. How-to Guide SAP NetWeaver 2004s. Version 1.00 Sept 2006

SAP Composite Application Framework. Creating an External Service type Callable Object in Guided Procedures

Installation Guide Business Explorer

Visual Composer for NetWeaver CE: Getting Started with a Typical Workflow

Using Business Graphics

Value Help in Web Dynpro ABAP - Tutorial.

Extracting Product Attributes in XML using Web Service

How To Use Surveys with Mobile Sales for handheld Version 1.00 January 2007

Send Multiple IDocs Within One XI Message

Tutorial: Consuming Web Services in Web Dynpro Java

SAP NetWeaver How-To Guide

Working with Select Options in Web Dynpro for ABAP

Consuming Directory API in ABAP

Setting Up an Environment for Testing Applications in a Federated Portal Network

xmii UDS Overview and Troubleshooting

How to receive and convert PDF-documents with SAP XI

Authentication of a WS Client Using a SAP Logon Ticket

Use the J2EE SOAP Adapter

Modeling Considerations for BPC Time Dimensions

How To Build the Carry Forward and Account Transformation Business Rules

How To Customize the SAP User Interface Using Theme Editor

Preview of Web Services Reliable Messaging in SAP NetWeaver Process Integration 7.1

SAP NetWeaver How-To Guide. SAP NetWeaver Gateway Virtualization Guide

How to Use Definitions in Rules Composer

Backup & Restore with SAP BPC (MS SQL 2000)

Optimize the RFC performance for mysap CRM Mobile Sales Version 1.00 April Applicable Releases: SAP CRM Mobile Sales and Service 4.0 and 5.

Setting up Single Sign On Between xmii and Enterprise Portal

BusinessObjects Enterprise XI 3.0 with Complex NAT Networks

Hardware Requirements

SAP Composite Application Framework. Creating a Callable Object in Group: Miscellaneous

Transcription:

How-to Guide SAP NetWeaver 04 How To Use the BI Java SDK in a Web Dynpro Application Version 1.01 July 2005 Applicable Releases: SAP NetWeaver 04

Copyright 2004-2005 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iseries, pseries, xseries, zseries, z/os, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. These materials are provided as is without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. SAP NetWeaver How-to Guides are intended to simplify the product implementation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using SAP NetWeaver. Should you wish to receive additional information, clarification or support, please refer to SAP Consulting. Any software coding and/or code lines / strings ( Code ) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the

SAP, R/3, mysap, mysap.com, xapps, xapp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent.

1 Scenario You want to build a Java application that performs analytics on data in an XMLA provider and displays this data in a Web Dynpro application. You use the BI Java SDK to custom build this application and you establish the connection with the BI XMLA Connector. All you need for this scenario is included in SAP NetWeaver 04. 2 Introduction This document provides detailed instructions on how to use the BI Java SDK and its BI Java Connectors in a Web Dynpro Application. It contains step-by-step instructions for adding the required library references required to use the BI Java SDK, and for establishing a connection using one of the BI Java Connectors in the Web Dynpro and J2EE environment. After you establish this connection, refer to the tutorials and documentation for the BI Java SDK and Web Dynpro to expand upon your scenarios.

3 The Step By Step Solution In the first section below you prepare your system, and in the second step you create your Web Dynpro application. 3.1 Prepare the System To prepare the system, you first look up the JNDI name of your connector in the J2EE Visual Administrator, and then configure the connection properties. In this example, we use the BI XMLA Connector to connect to an SAP BW system and retrieve a list of schemas. Use the J2EE Visual Administrator to determine the JNDI name of the BI XMLA Connector: 1. Select <server node> Services JNDI Registry. On the Runtime tab, in the registry list, locate deployedadapters SDK_XMLA shareable SDK_XMLA. This path, from the root to the SDK_XMLA leaf node, indicates the fully-qualified JNDI name of the BI XMLA Connector, which is: deployedadapters/sdk_xmla/s hareable/sdk_xmla

Configure the connection properties using the J2EE Visual Administrator: 2. Select the server node, and choose <server node> Services Connector Container. 3. Locate and double-click the entry for the BI XMLA Connector, sap.com/com.sap.ip.bi.sdk.d ac.connector.xmla.bi_sdk_xm LA, to open the connector definition. 4. Select Managed Connection Factory Properties, and set the required connection properties as shown to the right. Refer to the documentation for the BI XMLA Connector in its howto.html file or in the BW Installation Guide for more information on the properties. Property DataSource Statefulness Language Password UserName URL Setting default false EN (password) (username) http://server:port/sap/bw/xml/soap/xmla 5. Save the settings.

3.2 Create the Sample Web Dynpro Application 6. In the SAP NetWeaver Developer Studio, use the New Project wizard to create a Web Dynpro project. To use the BI Java SDK to create a Web Dynpro application, you need to add library references and a sharing reference: 7. In the Web Dynpro Explorer, select your Web Dynpro project, right-click, and choose Properties from the context menu.

8. To add the library references, select Web Dynpro References, and select the Library references tab. Add the libraries listed below: tc/conn/connectorframework com.sap.ip.bi.sdk bi~mmr~jmi bi~mmr~core bi~mmr~db bi~mmr~cwm_1.0_library 9. To add the sharing reference to the BI XMLA Connector, select the Sharing references tab, and add the reference listed below: sap.com/com.sap.ip.bi.sdk.dac.connector.xmla

10. Use the code below to get the connection and retrieve schemas, using the JNDI name retrieved in Step 1, above. Note: The BI Java SDK libraries are required to compile this scenario, and can be found in <your NetWeaver Developer Studio installation folder>\eclipse\tools\bi_sdk\bi_sdk.zip, or can be downloaded from the SAP Developer Network at http://www.sdn.sap.com/. IConnectionFactory connectionfactory = null; IConnectionSpec connectionspec = null; IBIConnection connection = null; try { Context initctx = new InitialContext(); // perform JNDI lookup to obtain connection factory connectionfactory = (IConnectionFactory) initctx.lookup( "deployedadapters/sdk_xmla/shareable/sdk_xmla"); connectionspec = connectionfactory.getconnectionspec(); // establish connection using default connection properties connection = (IBIConnection) connectionfactory.getconnectionex(null); IBIOlap olap = ((IBIConnection) connection).getolap(); List schemas = olap.getschema(); Schema schema = null; for (int i = 0; i < schemas.size(); i++) { schema = (Schema) schemas.get(i); message += schema.getname(); } } catch (Exception e) { message += e.getmessage(); e.printstacktrace(); } finally { connection.close(); } 11. Deploy and test your Web Dynpro application. When you run it, you should retrieve a list of schemas in your system.

www.sap.com/netweaver