How to Transfer Data from AS400 to BW using DB Connect

Similar documents
Server Connectivity and Data Load from Non SAP System to BW

DB Connect with Delta Mechanism

Data Flow During Different Update Mode in LO Cockpit

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Using Query Extract to Export Data from Business warehouse, With Pros and Cons Analyzed

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

Linking Documents with Web Templates

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

POWL: Infoset Generation with Web Dynpro ABAP

Generate Export Data Source

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Open Hub Destination - Make use of Navigational Attributes

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Step by Step Method for File Archival in BW

Load Info Cube in SCM 5.0 (BI 7.0)

Using Radio Buttons in Web Template

Step By Step Procedure to Implement Soap to JDBC Scenario

Step-By-Step guide to Virtual InfoCube Implementation

Loading the Data for Time Dependent Hierarchy in SAP BI

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

Step by Step Procedure for DSO Creation

Standalone BW System Refresh

Graphical Mapping Technique in SAP NetWeaver Process Integration

Easy Lookup in Process Integration 7.1

Cut Over Activities Specific for LIS* Data Sources

Step By Step: the Process of Selective Deletion from a DSO

SDN Community Contribution

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

Data Source Replication and Activation of Transfer Structures

Replacement Path: Explained with an Illustrated Example

Data Mining: Scoring (Linear Regression)

Steps to Activate ALE Delta for Custom Master Datasource Created on ZTable

Step by Step Guide How to Use BI Queries in Visual Composer

Data Extraction & DS Enhancement in SAP BI Step by Step

Real Time Data Acquisition (RDA) Overview and Step-by-Step Guide (SAPI and Web Services)

Displaying SAP Transaction as Internet Application in Portal

Information Broadcasting Part 3 Scheduling the First Report

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

E-Sourcing System Copy [System refresh from Production to existing Development]

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Database Statistics During ODS Activation

Material Master Archiving in Simple Method

MDM Syndicator: Custom Items Tab

Setting up Connection between BW and R/3 for Data Load

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

Currency Translation in SAP BI Step by step Guide

ecatt Part 6 System Data Container

Data Mining: Decision Trees

Role and Scope of ABAP in SAP BI

Limitation in BAPI Scheduling Agreement (SA) Create or Change

Recreating BIA Indexes to Address the Growth of Fact Index Table

SAP Net Weaver 400s BI 7.0For more information, visit the Business Intelligence homepage.

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

Solution to the Challenges in Pivoting

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Freely Programmed Help- Web Dynpro

SAP BI Analysis Authorization (Customer Exit Variables)

SUP: Personalization Keys and Synchronize Parameter

Errors while Sending Packages from OLTP to BI (One of Error at the Time of Data Loads through Process Chains)

Reporting Duplicate Entries

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

How to Create and Schedule Publications from Crystal Reports

Table Row Popup in Web Dynpro Component

Federated Portal Network Remote Role Assignment Step-by- Step Configuration

Customizing Characteristic Relationships in BW-BPS with Function Modules

Hierarchy in Business Objects with Expanded Hierarchy Logic

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

Validity Table in SAP BW/BI

SDN Community Contribution

Web Dynpro: Coloring Table Conditionally

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Developing Crystal Reports on SAP BW

Universal Worklist - Delta Pull Configuration

How to Display Result Row in One Line While Reporting On Multiproviderer

Material Listing and Exclusion

Step by Step Guide on How to Use Cell Definition in BEx Query

Process Chain Log Deletion

SAP BW Copy Existing DTP for Data Targets

Implying Security on Business Object XI 3.1 Universe having SAP BW as Source

SAP QM-IDI Interface. SDN Contribution. Applies to: Summary. Author Bio. SAP QM Interfaces

Restricting F4 (Input Help) Values While Running a SAP BW Query

Routines in SAP BI 7.0 Transformations

How to Display Traffic Lights for Exceptions in BI Web Reports

Using Nested Exception Aggregation in BEx Reports- Scenario

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

Creation of Key Figures with Higher Decimal Place Precision

How to Configure User Status in mysap SRM

Step by Step Guide for PI Server Start and Stop Procedure

Using Rule Group in SAP-BI. Part - 1

How to Default Variant Created for Report Developed In Report Painter/Writer

How to Check BW system Before Go-Live

Add /Remove Links on ESS Home Page in Business Package 1.5

Triggering the Process Chains at Particular Date using Events

Creation of Sets in SAP-ABAP, How to Read them INI SAP-ABAP Reports

Upload Image file from system in Web dynpro view

Custom Process types Remote Trigger and End Time

External Driver Configuration for Process Integration 7.0

Web Dynpro ABAP: Dynamic Table

Performance Management in Data Loading: an Overview

Transcription:

How to Transfer Data from AS400 to BW using DB Connect Applies to: SAP Netweaver 2004 and SAP Netweaver 2004s. BW 3.5 & BI 7.0 Summary This document describes how to use DB Connect to connect AS400 system to BW system running on MSSQL. A logistic application runs on a system based on a AS400 DB2 database. To be able to analyze data for the logistic application, the data must be loaded into a BW system that is based on a DBMS MSSQL. DB Connect allows to connect the DBMS for the logistic application, and to extract data from the database tables or views and transfer it to the BW system. DB Connect specifically deals with AS400 and BW running on MSSQL. However, we can use the same steps when primary database ( i.e the data base on which BW has been installed ) is different from the Source Database system. Author: Nerusu Lakshminarayana Company: Tata Consultancy Services Created on: 07 June 2007 Author Bio My self Nerusu Lakshminarayana BI 7 Certified Solution Consultant working with Tata consultancy services as IT analyst for the last 7 years. 2007 SAP AG 1

Table of Contents Introduction... 3 DB Connect Architecture... 4 Step by Step Procedure... 5 Installing the Database Shared Library (DBSL)... 5 Installing Client Software... 5 Installing XDA Database Interface... 6 Configuring Communication... 6 Creating DBCON Entry... 6 Conclusion... 10 Related Content... 11 Disclaimer and Liability Notice... 12 2007 SAP AG 2

Introduction DB Connect from BW offers flexible options for extracting data directly into the BW from tables and views in the database management systems that are connected to the BW in addition to the default connection. Data Sources are used to make data known to the BW. The data is then processed in the BW in the same way as data from all other sources. With DB Connect, we can load data from a database system that is supported by SAP, by Linking a database to the BW as a source system, thereby creating a direct point of access to external Relational Database Management Systems (RDBMS). Making metadata known to the BW by generating a Data Source. Figure 1: Example of DB connect A logistic application runs on a system based on DBMS X(AS400) database. To be able to analyze data for the logistic application, the data must be loaded into a BW system that is based on a DBMS Y( MSSQL). Note: DBMS Y can be same as DBMS X or different. When they are same no additional software installations are requiredwhen DBMS X is differnet from DBMS Y, install database-specific client and database-specific DBSL. DB Connect allows to connect the DBMS for the logistic application, and to extract data from the database tables or views and transfer it into the BW. 2007 SAP AG 3

DB Connect Architecture To be able to use the DB Connect functions, a database-specific DB Client for the respective sourcedatabase management system (DBMS) on the BW Application Server must be installed. Note: Installation must be done only if the BW DBMS and the source DBMS are different. In addition, the SAP-specific part of the database interface- the Database Shared Library (DBSL) must be installed for the corresponding source database management system on the BW Application Server. Figure 2: DB Connect Architecture 2007 SAP AG 4

Step by Step Procedure Installing the Database Shared Library (DBSL) To transfer DB Connect data into a BW, install the SAP-specific part of the database interface the DBSL for the corresponding source-database management system for each BW application server. (Only when BW system is not running on iseries ) Please follow SAP Note 445872 to include Dynamilc Link Library DLL to access the data from DB2 UDB of iseries. This is a Windows DLL that can be found in the SAP Service Marketplace in the link: http://service.sap.com/patches The LIB_DBSL archive should be extracted to: Windows: X:\usr\sap\<SID>\<INST>\exe LinuxPPC: /usr/sap/<sid>/<inst>/exe using: sapcar -x -f LIB_DBSL_XXXXX.car Installing Client Software 1. Install the iseries client software and the database interface (DBSL) for DB2 UDB for iseries on the Windows application server. 2. Based on OS/400, install the 'iseries Client Access for Windows' software on the Windows server.the Version of the ISeries Client Software and the installation.exe files can be confirmed with AS400 technical team. 3. Install the latest support package from the following URL: (access to IBM server is required) http://www-03.ibm.com/servers/eserver/iseries/access/casp.html iseries Access for Windows (5722-XE1) Release Level Latest Service Pack PTF Number Server Maintenance Date PTF was Available Installed File Date Target for Next Service Pack V5R4M0 SI24893 Coreq and Server Notes August 31, 2006 September 3, 2006 December 22, 2006 V5R3M0 SI24723 Coreq and Server Notes August 9, 2006 June 9, 2005 February 9, 2007 V5R2M0 SI23978 Coreq and Server Notes May 31, 2006 August 12, 2002 None planned 2007 SAP AG 5

Installing XDA Database Interface The driver delivered with Client Access may not be the most current. This section describes the method to be used for Downloading and installing the latest driver Determining whether XDA is the most recent version Install the latest XDA database interface -> QXDAEDRS.DLL (according to SAP Note: #751451): The official location for information relating to the XDA client is: http://www.ibm.com/servers/eserver/iseries/access/xda/ - for a connection to V5R4: Win64, qxdaedrs.dll: Version 10.64.0.4 - for a connection to V5R3: Win64, qxdaedrs.dll: Version 10.64.0.4 - for a connection to V5R3: Win32, qxaedrs.dll: Version 10.0.0.7 URL: http://www-03.ibm.com/servers/eserver/iseries/access/xda/ NOTE: After installation of 'iseries Client Access for Windows' (or an installation of any support package of this product) replace the QXDAEDRS.DLL version as it is part of each 'iseries Client Access for Windows' update. Configuring Communication Check whether the QXDAEDRSQL job is running on the iseries containing the source database. This job receives remote queries on the iseries database and answers these. If this job does not run, a) On the remote-db server, execute the following command: STRTCPSVR SERVER (*EDRSQL) b) Make sure that the job is started WRKACTJOB SBS(QSYSWRK) Request AS400 Job scheduler to run the job all the time, and also check the timings of Maintanence down time, so that the extraction will not be scheduled during that time. Creating DBCON Entry Each connection that wants to call a source system ( AS400 ) using the DB Connect must be described by a record in the DBCON table. This entry is generated when the source system is created in the Administrator workbench. Alternatively, transaction SM30 can be used to create this entry in advance. For the connection with an iseries database, set the attributes of the DBCON table as follows: DB connection (CON_NAME): a connection name of own choice. This is also the name of the source system. DBMS: DB4 User name (USER_NAME): User name on the iseries. NOTE: For the DB Connect in BW, a restriction applies whereby the user name (USER_NAME) and source database library (AS4_DB_LIBRARY) must be identical. DB password (PASSWORD): The password of the iseries user. The password must be entered in upper case. 2007 SAP AG 6

Verb.Info (CON_ENV): This field contains information that is required to set up a connection. The details of which are as follows: AS4_HOST: The host name of the remote DB server. AS4_DB_LIBRARY: The name of the library in the source database that contains the required data. Figure 3: DBCON Entry SM30 After connecting the AS400 database, ensure that the required tables and views are present in the AS4_DB_LIBRARY. This will help the user to pull data from it. Then generate the DataSource for each table or view depending on the requirement. To transfer data from a database source system, the metadata (that is,the tables or view and field information in BW) has to first exist in the form of a DataSource. Generate a DataSource for a database source system using the context menu for a database source system _ Select Database Tables. 1. Make a table selection for a database source system. 2. Create a connection to the database source system. 3. Select the table fields for a specific table for the database source system and specify whether these need to be available for selection in the BW system. 4. Generate the DataSource. This includes the set of fields that need to be read from the database source system during extraction. From the steps 5 to 10 describes the procdure to generate the datasource with screen shots. 5. Right click on the Source Systems and select the Select Database Tables as shown in figure 4. 2007 SAP AG 7

6. Click Execute to list out the table Figure 4: Select database tables Figure 5: Execute to get View/ Table List Figure 6: Table/View List 7. Double click on the table for which Data source needs to be generated. It will show all the fields in the table, select the fields according to the requirement. 2007 SAP AG 8

Figure 7: Selected Table / View with the fields 8. Click Display Table Contents. A maximum of 20 data records are displayed for field selection. 9. Click Check DataSource The field names are checked for upper and lower case, special characters, and field length. The system also checks whether an assignment for an ABAP data type exists for the fields. 10. Click Generate Data Source A DataSource is generated from the table/view, whose technical name is composed of the prefix 6DB_ plus the technical name of the table/view. Since the DataSource name in BW is limited to 30 characters, the technical name of the database tables/views cannot be longer than 26 characters. Tables/views with longer technical names are therefore not available for extraction. For the DataSource to be generated, specify the source system tree for the AWB under which it should be classified. For the database source system, this application component hierarchy corresponds to the hierarchy in the InfoSource tree. In the standard setting, the DataSource is assigned to the application component NODESNOTCONNECTED (non-assigned nodes). 2007 SAP AG 9

Conclusion The DataSource is generated and is visible in the DataSource overview for a database source system in the AWB. After assigning the DataSource to an existing or a new InfoSource, and the DataSource fields to InfoObjects, activate the transfer rules and create an InfoPackage by defining the selections for the data request. Note: Data can be loaded only via a PSA. We cannot use the Delta Update method with DB Connect. In this case, a delta request is possible using the selections (time stamp, for example). 2007 SAP AG 10

Related Content Please include at least three references to SDN documents or web pages. Note 523381 - BW: External DB connect for an iseries database as of 3.0B Note 445872 - iseries: DB multiconnect from Windows / LinuxPPC to iseries Note 751451 - iseries: XDA Database client for Windows and LinuxPPC Note 146624 - AS/400: Database Multiconnect with EXEC SQL and ADBC Note 743113 - iseries: Known Issues with V5R3M0 2007 SAP AG 11

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2007 SAP AG 12