[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

时间:2021-09-15 16:53:20

1. 登陆进入SAP Business Objects Data Services Designer中

2. 创建Data store SAP HANA(SAP HANA的连接)

SAP HANA http://www.cnblogs.com/omygod/archive/2013/05/23/3094306.html

3. 文件准备

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

 

4. 在左下侧Files 标签页中,选择DTDs,右键新建

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

输入相应的参数,及DTD文件地址

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

4. 双击刚刚新建的STS文件,得到如下文件结构信息

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

 

5. 创建相应的project、batach job及data flow

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

6. 将STS拖动到data flow中,并选择Make XML File Source

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

双击data flow中的sts,设置参数如下,指定XML文件地址:

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

7. 预览xml文件的数据信息

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

8 新建一个query transform,名为Unnest

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

 

双击Unnest,进入Query的设计界面:

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

将MTRL_MASTER拖动到Unnest中

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

选中MTRL_MASTER,并右键设置为Make Cureent

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

同样右键设置为Unnest with sub-schemas

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

9. 新建一个新的query transform,名为query,建立相应的关系:

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

双击Query,并将左侧所有的列拖入到右侧Query下面:

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

选中query中的MTRL_ID,右键,并设置为Primary Key

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

10 创建一个template table,并创建关系:

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

11. 运行job

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

 

查看job log

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

查看job monitor:

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

12. 在data flow中查看导入的数据:

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)

 

13. 在SAP HANA Studio中查看导入的数据:

[Step By Step]使用SAP Business Objects Data Services将XML数据导入到SAP HANA中(XML DTD)