Informatica PowerConnect for SAP R3与PowerCenter安装配置说明

更新时间:2023-12-13 09:12:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

Informatica

PowerConnect for SAP R3与PowerCenter

安装配置说明

Version 1.0

2004-06-10

1 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

更改记录

版本 1.0 1.2 日期 2004-06-10 2004-08-04 作者 简述 主要介绍了POWERCENTER 安装和配置说明 补充了关于POWERCENTER 和POWERCONNECT FOR SAP R/3的连接,安装和配置说明 增加了PowerConnect For SAP R/3 从SAP R/3系统抽取数据的方法,配置和DEMO等内容 1.5

2004-08-17 2 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

目 录

目 录 ...................................................................................................................................................... 3 1 简介 ................................................................................................................................................ 1 1.1 目标 ........................................................................................................................................ 1 1.2 读者对象 ................................................................................................................................ 1 1.3 主要参考资料 ........................................................................................................................ 1 2 PowerConnect for SAP R/3安装前准备 ....................................................................................... 2 2.1 安装前 .................................................................................................................................... 2 2.2 安装和配置PowerConnect for SAP R/3 ............................................................................... 2 3 安装和配置SAP R/3 ..................................................................................................................... 2 3.1 step1:Transport Development Objects ................................................................................ 2 3.2 step2:set Unicode attributes for transport modules and programs ....................................... 2 3.3 step3: run transport programs ............................................................................................. 2 3.4 step4:create users ................................................................................................................. 2 3.5 step5:create profiles ............................................................................................................. 2 3.6 step6:create a development class ......................................................................................... 2 4 PowerConnect for SAP R/3在PowerCenter上的安装和配置 .................................................... 3 4.1 PowerConnect for SAP R/3在PowerCenter Server上的安装和配置 ................................. 3

4.1.1 在WINDOWNS安装步骤 ........................................................................................... 3 4.1.2 在UNIX上安装步骤 .................................................................................................... 4 4.2 PowerConnect for SAP R/3在PowerCenter Client上的安装和配置 ................................. 4

4.2.1 在WINDOWNS安装步骤 ........................................................................................... 4 4.3 PowerConnect for SAP R/3在PowerCenter Repository Server上的安装和配置 .............. 4

4.3.1 PowerConnect for SAP R/3 FOR WINDOWS在PowerCenter Repository Server上的安装和配置 .................................................................................................................................... 4 4.3.2 PowerConnect for SAP R/3 FOR UNIX /LIUNX在PowerCenter Repository Server上的安装和配置 ................................................................................................................................ 5 4.4 配置SIDEINFO文件 ............................................................................................................ 5

4.4.1 SIDEINFO文件配置内容描述 ..................................................................................... 5 4.4.2 SIDEINFO文件举例 ..................................................................................................... 6 4.5 配置SAPRFC.ini文件 .......................................................................................................... 6

4.5.1 SAPRFC.ini文件配置项描述 ....................................................................................... 6 4.5.2 SAPRFC.ini文件配置项举例 ....................................................................................... 7 4.6 WINDOWS下设置RFC_INI环境变量 .............................................................................. 7 4.7 在powercenter repository server中注册powerconnect plug-in .......................................... 8 4.8 配置连接对象访问SAP R/3 ................................................................................................. 9 5 连接对象配置样例 ...................................................................................................................... 10 5.1 Informatical client 开发人员需要怎么配置? .................................................................. 10 5.2 配置文件由谁负责提供 ...................................................................................................... 15 5.3 配置连接对象 ...................................................................................................................... 16 6 运用PowerConnect for SAP R/3 从SAP R/3系统抽取数据 ................................................... 16 6.1 环境和准备 .......................................................................................................................... 16

3 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

6.1.1 需要准备环境 .............................................................................................................. 16 6.1.2 需要SAP系统人员分配帐号和访问授权 ................................................................. 16 6.1.3 需要修改一些配置文件 .............................................................................................. 16 6.2 配置步骤 .............................................................................................................................. 21

6.2.1 PowerCenter Designer里的配置 ................................................................................. 21 6.2.2 PowerCenter WorkFlower Manager里的配置 ............................................................ 22 6.2.3 SAP R/3系统管理员进行的必要的配置 ................................................................... 25 6.3 从SAP R/3 系统抽取数据实例 ......................................................................................... 25

6.3.1 导入 SAP R/3 Source 源定义 .................................................................................... 25 6.3.2 设计MAPPING ........................................................................................................... 26 6.3.3 生成ABAP程序 ......................................................................................................... 26 6.3.4 配置SESSION和运行数据工作流 ............................................................................ 29

4 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

1 简介

1.1

本文档说明了MIS项目中ETL工具Informatica Powercenter 7.1的安装和初步配置的详细过程和规范,有一定基础的读者可根据本文说述对开发、测试和生产环境进行Informatica Powercenter 7.1产品的安装和初步配置。

本文档还就Informatica PowerConnect for sap r/3 的安装配置以及其与Informatica Powercenter 7.1的互连做了简要说明。供ETL项目开发过程中使用和参考。

1.2 读者对象

本文档主要阅读对象为MIS ETL软件系统管理员,也可供相关的ETL开发人员,DBA,ETL运行操作和支持人员,项目经理等参考。

1.3 主要参考资料

《User and Administrator Guide》Informatica PowerConnect for SAP R/3 Version 7.1 《Install and Configuration Guide》 Informatica PowerCenter Version 7.1 《Informatica PowerConnect for SAP R/3 help》:文件名为,《SAPR3.chm》

目标

1 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

2 PowerConnect for SAP R/3安装前准备

2.1 安装前

在安装和配置之前:

? 在安装和配置PowerConnect for SAP R/3产品之前,需要你安装和配置好PowerCenter

和SAP R/3系统。

? 强烈建议你熟悉并理解该产品。

? 需要和SAP R/3系统管理元进行交流并理解你的工作目标和任务。 ? 注意:该产品在SAP R/3系统和PowerCenter系统中都要安装。

? 每个系统(SAP R/3系统和PowerCenter系统)都需要你理解其要响应的任务和要求。 ? 需要你学习并理解《User and Administrator Guide》Informatica PowerConnect for SAP R/3

Version 7.1。

? 熟悉并了解你要安装的产品是什么操作系统上。

2.2 安装和配置PowerConnect for SAP R/3 主要的6个安装和配置步骤:

? 在PowerCenter 安装PowerConnect for SAP R/3:install PowerConnect for SAP R/3 on

PowerCenter

? 配置sideinfo文件:Confgiure the sideinfo file ? 配置saprfc.ini文件:Configure the saprfc.ini file

? 设置RFC_INI环境变量:Set the RFC_INI environment variable

? 在PowerCenter repository注册插件:Register the PowerConnect for SAP R/3 repsitory

plug-ins in the PowerCenter repository

? 配置workflow manager.连接信息:Configure connections in the workflow manager.

3 安装和配置SAP R/3

由于SAP R/3系统在该项目中已经安装和配置好,这里主要介绍一下SAP R/3的几个主要步骤,仅供对该手册的使用人员提供参考和帮助。详细内容请你和SAP R/3系统管理员联系。

3.1 step1:Transport Development Objects 在开发环境部署开发对象。

3.2 step2:set Unicode attributes for transport modules and programs 3.3 step3: run transport programs 3.4 step4:create users 3.5 step5:create profiles

3.6 step6:create a development class

详细内容参见《user and administrator guide》 informatica powerconnect for sap r/3。

2 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

4 PowerConnect for SAP R/3在PowerCenter上的安装和配置

为了使你的PowerConnect for SAP R/3能够正确地被安装和执行,你需要做以下的一些步骤的工作:

? 安装PowerConnect for SAP R/3到服务器端 ? 安装PowerConnect for SAP R/3到客户端 ? 注册插件到repository. 下面是详细的步骤。

4.1 PowerConnect for SAP R/3在PowerCenter Server上的安装和配置

4.1.1 在WINDOWNS安装步骤

? 登陆到powercenter服务器计算机上

? 运行..\\ informatica\\powerconnect7.1\\Launch.exe

? 选择powerconnect for windows,将上图

? 出现欢迎界面,选择:powerconnect for sap r/3 server组件。如下图

3 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

? 点击下一步。提示是否覆盖saprfc.ini文件。选择覆盖该文件。 ? 安装完成。

4.1.2 在UNIX上安装步骤

? 登陆到powercenter server 系统主机

? 插入CD,到powerconnect 所在的目录。 ? 执行 ./install 运行安装程序。

? 选择informactica powerconnect for sap r/3 –server ? 输入你要安装的目录。如:/home/powerc/pconn

? 设置环境变量:将powerconnect所在的目录加入SHLIB_PATH环境变量。 ? 安装完毕。 4.2

PowerConnect for SAP R/3在PowerCenter Client上的安装和配置 4.2.1 在WINDOWNS安装步骤

? 登陆到你要安装powerconnect for sap r/3 client所在计算机 ? 执行informatica\\powerconnect7.1\\ Launch.exe ? 出现欢迎界面,选择client组件。 ? 选择覆盖你要覆盖的saprfc.ini 文件。 ? 完成。

4.3 PowerConnect for SAP R/3在PowerCenter Repository Server上的安装和配置

4.3.1

PowerConnect for SAP R/3 FOR WINDOWS在PowerCenter Repository Server上的安装和配置

使用下面的步骤安装并注册PowerConnect for SAP R/3 plug-in XML文件到Repository Windows

4 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

平台上。主要的步骤如下:

? 登录到你的PowerCenter Repository Server 所在的主机系统上。

? 插入CD,如果光盘不是自动启动,请你运行:launch.exe文件。系统将出现欢迎界面。 ? 点击powerconnect for windows。 ? 点击下一步。

? 选择informatical powerconnect for sap r/3 –repository plug-in,点击下一步。 ? 确认你要安装的目录。 ? 点击下一步。 ? 完成。

4.3.2 PowerConnect for SAP R/3 FOR UNIX /LIUNX在PowerCenter Repository Server上

的安装和配置

使用下面的步骤安装并注册PowerConnect for SAP R/3 plug-in XML文件到Repository UNIX/LINUX平台上。主要的步骤如下:

? 登录到UNIX主机。

? 插入CD,到powerconnect安装文件所在目录。 ? 确定你要安装软件平台,定位安装文件所在目录。 ? 执行./install安装程序。

? 选择informatical powerconnect for sap r/3 –repository plug-in

? 输入并确认你要安装的powerconnect for sap r/3 –repository plug-in目录。 ? 输入你想要安装的repository plug-in目录。 ? 安装完成。

4.4 配置SIDEINFO文件

关于SIDEINFO配置文件,需要SAP R/3的系统管理员充分的协助。只有在理解其之后才能够很好明白为什么这样配置。

4.4.1 SIDEINFO文件配置内容描述 下面是配置文件配置项详细描述。

5 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

4.4.2 SIDEINFO文件举例

下面是配置文件举例,详细内容及具体描述参见相关文件和请求SAP R/3系统管理员支持。

4.5

配置SAPRFC.ini文件

4.5.1 SAPRFC.ini文件配置项描述

6 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

4.5.2

SAPRFC.ini文件配置项举例

4.6 WINDOWS下设置RFC_INI环境变量

注意:在UNIX下不需要设置这个环境变量。在WIN下必须设置这个环境变量。 设置环境变量步骤如下:

7 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

4.7 在powercenter repository server中注册powerconnect plug-in

注意:注册PLUG-IN是在repository server administrator console中进行的。 下面是一些步骤和举例:

? 打开repository server administrator console

? 连接到你想要配置PLUG-IN的repository server 计算机 ? 如果repository 是运行状态,请STOP或者DISBALE

? 在repository server administrator console树中,选择available package 接点 ? 在这个包中,你可以看到可以让你注册的插件列表。

8 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

? 选择您想要注册的插件,并注册 ? 注册插件弹出对话框

? 选择‘update existing pluin registration’,输入用户和帐号密码

? 点击OK。重复前面的步骤,注册其他需要注册的组件或者插件(根据你的需要和你购

买的许可)。

4.8 配置连接对象访问SAP R/3

关于配置连接对象,需要根据你项目开发需要由SAP R/3管理员来确定。关于这部分详细内容,你可以参考相关手册进行。

9 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

5 连接对象配置样例

下面是笔者在COSCON项目中关于配置和连接的一些举例,其中文档主要就配置连接的一些注意事项会说明的比较重点一些,至于其他与SAP R/3系统相关的内容需要读者仔细阅读相关文件手册。

5.1 Informatical client 开发人员需要怎么配置?

? 开发人员要安装和配置好informatical client 产品和组件

? 能够连接到你要连接的informatical repository server 产品,有一定的权限

? 从informatical 管理员那里获得sideinfo 和saprfc.ini文件。这个配置文件由sap r/3管理员

产生。

? 将这两个文件放置到’c:\\winnt\\system32\\’下 ? 下面是举例:

saprfc.ini文件位置:

10 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

下面是两个文件用编辑器打开看到的情况:

——————————————————————————————————————

saprfc.ini

——————————————————————————————————————

/*===================================================================*/ /* Type R: Register a RFC server program at a SAP gateway */ /* or connect to an already registered RFC server program */ /* The PowerCenter Integration Server for BW uses */ /* this information */

/*===================================================================*/ DEST= TYPE=

PROGID= GWHOST= GWSERV=

/*===================================================================*/ /* Type A: R/3 system - specific application server */ /* The PowerCenter server writer process uses */ /* this information */

/*===================================================================*/ /*DEST=*/

/*Type=*/

11 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

/*ASHOST=*/ /*SYSNR=*/ DEST=TST Type=A

ASHOST=172.32.236.8 SYSNR=00

——————————————————————————————————————

sideinfo文件

—————————————————————————————————————— * @(#)sideinfo.txt 20.5 SAP 94/04/20

************************************************************************ ******

* SIDEINFO EXAMPLE *

* This sideinfo-file contains 3 examples for different kinds of CPIC- * communications and brief descriptions of the necessary parameters. Please

* look into the CPIC documentation for a detailed information about the * side info. *

* 1. Communication C-program <--> C-Program

* 2. Communication C-program <--> ABAP/4-report (R/3) * 3. Communication C-program <--> ABAP/4-report (R/2)

* 4. Communication C-program <--> ABAP/4-report (R/2) with VMS

************************************************************************ ******

************************************************************************ ******

* 1. Entry for the example programs ccpict1t and ccpict2t *

* Description: ccpict1t will communicate with ccpict2t * *

* Before invoking this example please make the following adjustments: *

* Host : hostname of the computer where ccpict2t * should be started *

* GwHost : actual hostname of the SAP-Gateway

12 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

*

* GwService : TCP/IP service name of the SAP gateway *

* Call 'ccpict1t -dest example1'

************************************************************************ ******

DEST=example1 LU=Host TP=ccpict2t

GWHOST=GwHost GWSERV=GwService PROTOCOL=E

************************************************************************ ******

* 2. Entry for the example program ccpict1t and ABAP/4-report acpict2 *

* Description: ccpict1t will communicate with ABAP/4-report acpict2 * running in an R/3 environment *

* Before invoking this example please make the following adjustments: *

* R3Host : actual hostname of the R/3 server *

* DispatcherService: TCP/IP-Service of the R/3-Dispatcher (normaly * sapdp00) *

* GwHost : actual hostname of the SAP-Gateway *

* GwService : TCP/IP service name of the SAP gateway *

* Call 'ccpict1t -dest example2 -abap -usr -pwd ' *

* For your test, you can use the R/3-user 'SAPCPIC' with password 'ADMIN'.

************************************************************************ ******

DEST=example2 LU=R3Host

TP=DispatcherService GWHOST=GwHost

13 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

GWSERV=GwService PROTOCOL=I

DEST=SAPR LU=SAPR TP=sapdp00

GWHOST=SAPR GWSERV=sapgw00 PROTOCOL=I

************************************************************************ ******

* 3. Entry for the example program ccpict1s and ABAP/4-report acpict2 *

* Describtion: ccpict1s will communicate with ABAP/4-report acpict2 * running in an R/2 environment *

* Before invoking this example please make the following adjustments: *

* RemoteLU : Name of the LU6.2 LU to establish the connection *

* RemoteTP : Name of the remote Transaktion Program, normaly X1SA *

* Call 'ccpict1s -dest example3 -abap -conv -usr -pwd '

************************************************************************ ******

DEST=example3 LU=RemoteLU TP=RemoteTP

************************************************************************ ******

* 4. Entry for the example program ccpict1s and ABAP/4-report acpict2 *

* Describtion: ccpict1s will communicate with ABAP/4-report acpict2 * running in an R/2 environment *

* Before invoking this example please make the following adjustments: *

* RemoteTP : Name of the remote Transaktion Program, normaly

14 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

X1SA *

* snagw : DECnet/SNA Gateway *

* accname : Access name for DECnet/SNA *

* Call 'ccpict1s -dest example4 -abap -conv -usr -pwd '

************************************************************************ ******

DEST=example3 TP=RemoteTP GATEWAY=snagw ACCESS=accname

************************************************************************ ******

DEST=SAPR3 LU=pdsap TP=sapdp00

GWHOST=pdsap GWSERV=sapgw00 PROTOCOL=I

************************************************************************ ******

* Entry to connect to COSCON TST

************************************************************************ ******

DEST=TST

LU=172.32.236.8 TP=sapdp00

GWHOST=172.32.236.8 GWSERV=sapgw00 PROTOCOL=I

5.2 配置文件由谁负责提供

配置文件由SAP R/3系统管理员负责提供,他需要确认访问连接者对对象访问权限控制加以考虑。

15 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

5.3

配置连接对象,是需要看你是通过SA P R/3 的 ABAP还是其他方式访问来确认,需要导的对象,这些内容对于仅仅需要从SAP R/3 系统读数据的开发人员来讲是不需要做详细的理解的。

配置连接对象

6 运用PowerConnect for SAP R/3 从SAP R/3系统抽取数据

纵所知,使用PowerConnect for SAP R/3连接和从SAP R/3系统集成抽取数据有三种办法:

? 使用ABAP来集成数据 ? 使用ALE来集成数据

? 使用RFC/BAPI函数来集成数据

由于本次COSCON项目开发,主要使用ABAP来从SAP R/3系统抽取数据,所以本部分内容以使用ABAP方法集成数据为线索书写,读者如果对其他方法感兴趣,请参见SAP 系统管理资料、PowerConnect for SAP R/3系统管理员指南等相关资料。

6.1 环境和准备

6.1.1 需要准备环境

在使用PowerConnect for SAP R/3从SAP R/3系统抽取数据时候,你需要具备必要的PowerCenter设计和开发知识,必要的数据库知识。

需要在你的环境里安装和配置相关客户端产品。

6.1.2 需要SAP系统人员分配帐号和访问授权

由于使用ABAP方式从SAP R/3系统抽取数据过程中要有PowerCenter工具自动生成ABAP程序,这些程序要有一定的权限,这些程序在SAP 系统的对应的表等对象也需要SAP 系统人员予以授权。PowerCenter设计和开发人员的ABAP程序要能够被生成到你的SAP 系统中去。

6.1.3 需要修改一些配置文件 如果你powercenter server 、powercenter repository server、powercenter client、powerconnect for sap r/3在同一windows环境,在c:\\winnt\\system32\\driver\\etc\\services文件中系统将自动加入配置文件内容。

这个文件中’sap’开头的内容是一些协议和地址影射。

如果你是在UNIX环境,你需要系统管理员加入配置文件到/etc/services内容。下面是笔者windows配置文件内容,供参考: 环境 c:\\winnt\\system32\\driver\\etc\\services文件内容 WINDOWS sapdp00 3200/tcp sapdp01 3201/tcp 和 UNIX sapdp02 3202/tcp sapdp03 3203/tcp sapdp04 3204/tcp sapdp05 3205/tcp sapdp06 3206/tcp

16 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

sapdp07 3207/tcp sapdp08 3208/tcp sapdp09 3209/tcp sapdp10 3210/tcp sapdp11 3211/tcp sapdp12 3212/tcp sapdp13 3213/tcp sapdp14 3214/tcp sapdp15 3215/tcp sapdp16 3216/tcp sapdp17 3217/tcp sapdp18 3218/tcp sapdp19 3219/tcp sapdp20 3220/tcp sapdp21 3221/tcp sapdp22 3222/tcp sapdp23 3223/tcp sapdp24 3224/tcp sapdp25 3225/tcp sapdp26 3226/tcp sapdp27 3227/tcp sapdp28 3228/tcp sapdp29 3229/tcp sapdp30 3230/tcp sapdp31 3231/tcp sapdp32 3232/tcp sapdp33 3233/tcp sapdp34 3234/tcp sapdp35 3235/tcp sapdp36 3236/tcp sapdp37 3237/tcp sapdp38 3238/tcp sapdp39 3239/tcp sapdp40 3240/tcp sapdp41 3241/tcp sapdp42 3242/tcp sapdp43 3243/tcp sapdp44 3244/tcp sapdp45 3245/tcp sapdp46 3246/tcp sapdp47 3247/tcp sapdp48 3248/tcp sapdp49 3249/tcp sapdp50 3250/tcp

17 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

sapdp51 3251/tcp sapdp52 3252/tcp sapdp53 3253/tcp sapdp54 3254/tcp sapdp55 3255/tcp sapdp56 3256/tcp sapdp57 3257/tcp sapdp58 3258/tcp sapdp59 3259/tcp sapdp60 3260/tcp sapdp61 3261/tcp sapdp62 3262/tcp sapdp63 3263/tcp sapdp64 3264/tcp sapdp65 3265/tcp sapdp66 3266/tcp sapdp67 3267/tcp sapdp68 3268/tcp sapdp69 3269/tcp sapdp70 3270/tcp sapdp71 3271/tcp sapdp72 3272/tcp sapdp73 3273/tcp sapdp74 3274/tcp sapdp75 3275/tcp sapdp76 3276/tcp sapdp77 3277/tcp sapdp78 3278/tcp sapdp79 3279/tcp sapdp80 3280/tcp sapdp81 3281/tcp sapdp82 3282/tcp sapdp83 3283/tcp sapdp84 3284/tcp sapdp85 3285/tcp sapdp86 3286/tcp sapdp87 3287/tcp sapdp88 3288/tcp sapdp89 3289/tcp sapdp90 3290/tcp sapdp91 3291/tcp sapdp92 3292/tcp sapdp93 3293/tcp sapdp94 3294/tcp

18 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

sapdp95 3295/tcp sapdp96 3296/tcp sapdp97 3297/tcp sapdp98 3298/tcp sapdp99 3299/tcp sapgw00 3300/tcp sapgw01 3301/tcp sapgw02 3302/tcp sapgw03 3303/tcp sapgw04 3304/tcp sapgw05 3305/tcp sapgw06 3306/tcp sapgw07 3307/tcp sapgw08 3308/tcp sapgw09 3309/tcp sapgw10 3310/tcp sapgw11 3311/tcp sapgw12 3312/tcp sapgw13 3313/tcp sapgw14 3314/tcp sapgw15 3315/tcp sapgw16 3316/tcp sapgw17 3317/tcp sapgw18 3318/tcp sapgw19 3319/tcp sapgw20 3320/tcp sapgw21 3321/tcp sapgw22 3322/tcp sapgw23 3323/tcp sapgw24 3324/tcp sapgw25 3325/tcp sapgw26 3326/tcp sapgw27 3327/tcp sapgw28 3328/tcp sapgw29 3329/tcp sapgw30 3330/tcp sapgw31 3331/tcp sapgw32 3332/tcp sapgw33 3333/tcp sapgw34 3334/tcp sapgw35 3335/tcp sapgw36 3336/tcp sapgw37 3337/tcp sapgw38 3338/tcp

19 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

sapgw39 3339/tcp sapgw40 3340/tcp sapgw41 3341/tcp sapgw42 3342/tcp sapgw43 3343/tcp sapgw44 3344/tcp sapgw45 3345/tcp sapgw46 3346/tcp sapgw47 3347/tcp sapgw48 3348/tcp sapgw49 3349/tcp sapgw50 3350/tcp sapgw51 3351/tcp sapgw52 3352/tcp sapgw53 3353/tcp sapgw54 3354/tcp sapgw55 3355/tcp sapgw56 3356/tcp sapgw57 3357/tcp sapgw58 3358/tcp sapgw59 3359/tcp sapgw60 3360/tcp sapgw61 3361/tcp sapgw62 3362/tcp sapgw63 3363/tcp sapgw64 3364/tcp sapgw65 3365/tcp sapgw66 3366/tcp sapgw67 3367/tcp sapgw68 3368/tcp sapgw69 3369/tcp sapgw70 3370/tcp sapgw71 3371/tcp sapgw72 3372/tcp sapgw73 3373/tcp sapgw74 3374/tcp sapgw75 3375/tcp sapgw76 3376/tcp sapgw77 3377/tcp sapgw78 3378/tcp sapgw79 3379/tcp sapgw80 3380/tcp sapgw81 3381/tcp sapgw82 3382/tcp

20 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

sapgw83 3383/tcp sapgw84 3384/tcp sapgw85 3385/tcp sapgw86 3386/tcp sapgw87 3387/tcp sapgw88 3388/tcp sapgw89 3389/tcp sapgw90 3390/tcp sapgw91 3391/tcp sapgw92 3392/tcp sapgw93 3393/tcp sapgw94 3394/tcp sapgw95 3395/tcp sapgw96 3396/tcp sapgw97 3397/tcp sapgw98 3398/tcp sapgw99 3399/tcp

6.2 配置步骤

在配置前,需要正确连接到SAP R/3和PowerCenter系统,能够正确连接到你的设计开发所在的资料库和资料库服务器。

笔者注:本部分是以笔者自己的计算机系统配置为例。有关如何连接和配置到SAP系统,如何安装配置连接到你的SAP R/3系统,笔者已经在前面部分做了详细介绍。

6.2.1 PowerCenter Designer里的配置 连接到你的资料库:repository.

在你正确安装和配置好PowerConenct for SAP R/3系统产品,配置好客户端后,你将看到在PowerCenter Designer的source端多出了对SAP应用连接产品的支持。见下图:

21 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

6.2.2 PowerCenter WorkFlower Manager里的配置

PowerCenter WorkFlower Manager里,连接到你的资料库:repository。 按照下列步骤配置:

? 菜单:connection——application,选择此,表示你的数据源来自一些应用系统如SAP R/3

而非其他。

22 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

? 点击application,点击新增,配置

? 配置连接串

23 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

? 假如你需要将数据LOAD SYBASE IQ中,需要配置加载目标数据库连接信息

? 继续配置连接信息

24 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

6.2.3 SAP R/3系统管理员进行的必要的配置

你需要SAP R/3系统管理人员知道,你可以访问哪些对象和对这些对象进行必要的授权。

6.3

从SAP R/3 系统抽取数据实例 6.3.1 导入 SAP R/3 Source 源定义

? 选择informcatica Powercenter design ——sources——import sap….连接到SAP ,选择

import metedata

? 选择对象列表作为数据源对象

25 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

6.3.2 设计MAPPING

这里以目标生成为文件和目标到SYBASE IQ DEMO数据库为例: 导入源——选择数据源透视表——创建MAPPING:

6.3.3 生成ABAP程序

编辑source qurlify——属性菜单:选择生成ABAP程序方式。有关生成ABAP程序生成方式,你需要查看相关SAP资料。

26 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

点击”program flow”,根据你选择生成ABAP程序方式不同生成你需要的ABAP程序。

点击OK,检查并保存MAPPING。

注意:这里和数据源是关系型数据库做为数据源所不同的是,SAP R/3应用系统作为数据源,在ETL设计过程中,你必须生成并将ABAP程序install到SAP 系统中。在保存MAPPING到资料库repository后,注意必须有这个步骤:

选择菜单:如下图

27 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

生成并安装ABAP程序如下图:

选择生成和导入ABAP程序后,在MAPPING设计保存过程中将有系统LOG提示,你的“ABAP

28 / 33

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊

程序INSTALL成功等字样。”

恭喜你,你的MAPPING设计完成。

6.3.4 配置SESSION和运行数据工作流

? 创建WORKFLOWS ? 创建SESSION

29 / 33

本文来源:https://www.bwwdw.com/article/1rq5.html

Top