Step-by-step FTP to ABAP Proxy
引自:https://wiki.scn.sap.com/wiki/display/XI/Step-by-step+FTP+to+ABAP+Proxy
ABAP Server Proxy
Area: SAP NetWeaver Process Integration
CONTENT
1. Foreword.
2. Preface.
3. Predefined configuration required on the SAP ECC side.
3.1 Create HTTP connection in the business system.
3.2 Configuration Business system as local Integration Engine.
3.3 Checking activation the XI Service in transaction SICF Maintain Services.
4. Tasks in the Integration Builder (Design time) and SAP ECC Proxy Framework.
4.1 Import RFC metadata into Integration Repository.
4.2 Creation Message Interface for Receiver.
4.3 Generation ABAP Server proxy.
4.4 Integration Repository objects for sender.
4.5 Message transformation rule.
5. Configuration time.
5.1 Communication channels.
5.2 Receiver and sender agreements.
5.3 Receiver and Interface determination.
6. Example of execution & Useful SDN Blog permanent links.
1. Foreword
As part of Integration Project, I was responsible for integrating Legacy system with SAP System using Server ABAP Proxies. ABAP Server (Inbound) Proxies enable adapterless integration with SAP Applications on WAS 6.20 and above. Below in this document we look at real life example of implementation ABAP Server Proxy.
2. Preface
This document describes how to send list of materials (specification) from FTP in XML format to SAP ECC system. The solution is based on SAP ECC 6.0 and PI 7.0.
We execute all actions in our integration scenario within customer LAN.
3. Predefined configuration required on the SAP ECC side:
3.1 Create HTTP connection in the business system.
Configuration Details:
Technical Setting:
1. Following Inputs are required for technical setting
1 Connection Type: H
2 Target Host: System name
3 Service Number: HTTPPort name
4 Path Prefix: /sap/XI/engine/?type=entry
Logon Security
On the Logon/Security tab page, enter the following logon data:
1 User: XIAPPLUSER (for example); this user should represent the sending business system see also the SAP PI Security Guide under Service Users for Message Exchange).
2 Password: the password you have specified for this user
3 Client: SAP PI Integration server
4 Language: Language required
3.2 Configuration Business system as local Integration Engine.
1. Goto Transaction SXMB_ADM
2. Choose Edit --> Change Global Configuration Data.
3. Select Role of Business System: Application system
4. Corresponding Integration server: dest://<HTTPDESTINATION> created on previous step. Here <HTTPDESTINATION> SAP_E03_TO_NW2_PROXY created in step 1. Dest://SAP_E03_TO_NW2_PROXY.
5. Under Specific Configuration Data you can specify additional configuration data
1.Select the relevant category under Specific Configuration Data.
2.Choose Change Specific Configuration Data.
For ABAP Proxies, Add the following configuration:
1.Category RUNTIME
2.Parameters: IS_URL
3.Current Value: dest://SAP_E03_TO_NW2_PROXY
3.3 Checking activation the XI Service in transaction SICF Maintain Services.
For purpose of checking activation the xi service you have to execute transaction SICF and if no then invoke context menu on xi service and Press "Activate".
4. Tasks in the Integration Builder (Design time) and SAP ECC Proxy Framework.
Open the Repository (Design) of the PI Integration Builder. You may start the application by executing transaction SXMB_IFR in PI system. (Further information can be found in the PI documentation -> Design and Configuration Time -> Design).) Choose your Software Component in the tree and open it with double-click: here we use: SC_PROD_FOR_E03 Enter the system data of the SAP ECC system that you want to connect.
4.1 Import RFC metadata into Integration Repository
Choose "Import RFC/IDOC" in the context menu of "Imported Objects" and enter your user data to logon to the SAP ERP system. Select the function module ZMGW1_CREATE_BOM Press "Continue" Press "Start". ZMGW1_CREATE_BOM it's remote-enabled module instead of SAP standard function module MGW1_CREATE_BOM.
4.2 Creation Message Interface for Receiver
Select your namespace, here: "http://rea_ksp_e03/" is used Choose "Interface Objects" and then "Message Interface" Create a Message Interface there by choosing "New" from the context menu Press "Create"
Choose the settings like this:
Direction: Inbound
Mode: Asynchronous
Select the imported RFC Message and by executing the value help ZMGW1_CREATE_BOM for Input Message Name
Select the Fault Message: Object Type: "RFC Message" Choose the Name via value help, here: "ZMGW1_CREATE_BOM.Exception" in the namespace "urn:sapcom: document:sap:rfc:functions" Save the Message Interface.
4.3 Generation ABAP Server proxy
Start transaction SPROXY and Refresh the tree Double-click on the Message Interface "MI_PROXY_MGW1" in your Software Component in your namespace (here: "http://rea_ksp_e03/") Choose a package (e.g. $tmp) Choose a prefix (we use "Z" here) Activate the Proxy.
Navigate to the implementing class ZCL_MI_PROXY_MGW1 by double clicking Navigate to the method "EXECUTE_ASYNCHRONOUS" by double-clicking. Choose the change mode.
Save and activate the method and all class and interface components
Result:
The SAP ECC is now ready to receive data from the Integration Server via the Proxy Framework and the implemented Proxy. Data which is running through PI may now be transferred to the SAP ECC system according to routings and mappings that still have to be created.
4.4 Integration Repository objects for sender
Also we should develop necessary repository objects for sender during the design phase. The outbound Data type, Message type and the corresponding Message interface are shown below.
Outbound Data type.ROOT
Outbound Message type ROOT.
Outbound Message interface ROOT
4.5 Message transformation rule
Now we have to specify transformation rule between message types ROOT and ZMGW1_CREATE_BOM. For the purpose create message mapping MM_PROXY_XML2RFC.
It's important that material wich you pass to field STRUC_MATERIAL in function module ZMGW1_CREATE_BOM exist in SAP ECC system.
Create Interface Mapping IM_MI_PROXY_XML2RFC.It's very important set as target interface message interface MI_PROXY_MGW1 instead of message type ZMGW1_CREATE_BOM.
Save and activate all your changes in Integration Reposytory.
5. Configuration time
Open the Integration Directory (Configuration) of the PI Integration Builder. You may start the application by executing transaction SXMB_IFR in PI system. Create configuration scenario CS_E03_MI_PROXY_XML2RFC.
5.1 Communication channels
After creation in our configuration scenario business services BS_MI_PROXY_S and BS_MI_PROXY_R we have to create two communication channels type FILE and PROXY. Below configuration parameters for both channels.
Sender communication channel CC_MI_PROXY_S.
Receiver communication channel CC_MI_PROXY_R.
5.2 Receiver and sender agreements
Next step we have to create receiver and sender agreement.
Sender agreement.
Receiver agreement.
5.3 Receiver and Interface determination
Last step we have to create receiver and interface determination like providing on screenshots below.
Receiver determination.
Interface determination
Save and activate all your changes in Integration Directory.
Now we able to run our configuration scenario by putting XML file in proper directory at FTP server. Transaction SXMB_MONI (or SXI_MONITOR) can be used for checking technical successfully execution of scenario. For checking business successfully execution of scenario you have to run transaction CS03 Display material BOM.
6. Example of execution & Useful SDN Blog permanent links
Putting XML file in proper directory at FTP server with simple business content.
Then go to SAP ECC system to CS03 transaction and input material which you mapped to field STRUC_MATERIAL in function module ZMGW1_CREATE_BOM and press 'Enter'
Now you can see result of execution our scenario
At the end i would like to provide useful SDN Blog permanent links which were extremely helpful for me.
ABAP Server Proxies
https://weblogs.sdn.sap.com/pub/wlg/1457
How do you activate ABAP Proxies?
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3022
Monitoring for Processed XML messages in ABAP Proxy
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2884
Step-by-step FTP to ABAP Proxy的更多相关文章
- Step by step Process of creating APD
Step by step Process of creating APD: Business Scenario: Here we are going to create an APD on top o ...
- Tomcat Clustering - A Step By Step Guide --转载
Tomcat Clustering - A Step By Step Guide Apache Tomcat is a great performer on its own, but if you'r ...
- Step By Step(Lua元表与元方法)
Step By Step(Lua元表与元方法) Lua中提供的元表是用于帮助Lua数据变量完成某些非预定义功能的个性化行为,如两个table的相加.假设a和b都是table,通过元表可以定义如何计算表 ...
- Linkerd 2.10(Step by Step)—配置代理并发
Linkerd 2.10 系列 快速上手 Linkerd v2 Service Mesh(服务网格) 腾讯云 K8S 集群实战 Service Mesh-Linkerd2 & Traefik2 ...
- Step by step Dynamics CRM 2011升级到Dynamics CRM 2013
原创地址:http://www.cnblogs.com/jfzhu/p/4018153.html 转载请注明出处 (一)检查Customizations 从2011升级到2013有一些legacy f ...
- Step by Step 创建一个新的Dynamics CRM Organization
原创地址:http://www.cnblogs.com/jfzhu/p/4012833.html 转载请注明出处 前面演示过如何安装Dynamics CRM 2013,参见<Step by st ...
- Step by step Install a Local Report Server and Remote Report Server Database
原创地址:http://www.cnblogs.com/jfzhu/p/4012097.html 转载请注明出处 前面的文章<Step by step SQL Server 2012的安装 &g ...
- Step by step Dynamics CRM 2013安装
原创地址:http://www.cnblogs.com/jfzhu/p/4008391.html 转载请注明出处 SQL Server可以与CRM装在同一台计算机上,也可安装在不同的计算机上.演示 ...
- Step by step 活动目录中添加一个子域
原创地址:http://www.cnblogs.com/jfzhu/p/4006545.html 转载请注明出处 前面介绍过如何创建一个域,下面再介绍一下如何在该父域中添加一个子域. 活动目录中的森林 ...
- SQL Server 维护计划实现数据库备份(Step by Step)(转)
SQL Server 维护计划实现数据库备份(Step by Step) 一.前言 SQL Server 备份和还原全攻略,里面包括了通过SSMS操作还原各种备份文件的图形指导,SQL Server ...
随机推荐
- Flask应用实战经验总结:使用工厂函数创建app与uWSGI服务部署启动失败解决方案
在 Flask 应用开发中,使用工厂函数创建应用实例,并借助 uWSGI 服务进行部署,是常见且高效的组合. 然而,在实际操作过程中,uWSGI 配置文件与应用启动函数之间的关系复杂,容易引发各种问题 ...
- NumPy学习6
今天学习 NumPy位运算 12, NumPy位运算NumPy 中提供了以下按位运算函数:numpy按位运算函数序号 函数 位运算符 描述说明1 bitwise_and & 计算数组元素之间的 ...
- vue学习一(指令1.v-text,v-html,插值表达式{{msg}})
一.1.v-text,v-html,插值表达式{{msg}} 注:v-text解决差值表达式闪烁问题,因为他是属性不是差值表达式 1.1.v-text: 是没有闪烁问题的,会覆盖标签的元素中原本的内容 ...
- StarRocks 升级注意事项
前段时间升级了生产环境的 StarRocks,从 3.3.3 升级到了 3.3.9,期间还是踩了不少坑所以在这里记录下. 因为我们的集群使用的是存算分离的版本,也是使用官方提供的 operator 部 ...
- BUUCTF---BabyRSA(简单求解n)
题目 p+q : 0x1232fecb92adead91613e7d9ae5e36fe6bb765317d6ed38ad890b4073539a6231a6620584cea5730b5af83a3e ...
- BUUCTF---还原大师(MD5)
1.题目 我们得到了一串神秘字符串:TASC?O3RJMV?WDJKX?ZM,问号部分是未知大写字母,为了确定这个神秘字符串,我们通过了其他途径获得了这个字串的32位MD5码.但是我们获得它的32位M ...
- 学习EXTJS6(10)面向对象的基础框架-2【统一的组件模型】很重要
用到ExtJS,UNIGUI是以ExtJS为基础的框架.因此掌握基础组件模型太重要了.确实就是让自己知道其所以然. Ext中所有可视组件都继承自Ext.Component. 1.Ext.Compone ...
- Vue3 中的5种常见的组件传值方式,Vue3事件总线(无需插件)
Vue3 中常见的组件传值方式: Props:这是 Vue 中最常见的组件传值方式,即在父组件中定义 prop 并将数据传递给子组件. Event Bus:可以通过事件总线在两个组件之间进行通信,即定 ...
- Git错误,fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream
问题:当我执行git push命令的时候,报错如下: fatal: The current branch master has no upstream branch. To push the curr ...
- .net6 Api添加跨域
参照:(7条消息) .net6使用最小api(8)- 开启跨域模式,通过扩展服务实现_hailang2ll的博客-CSDN博客 步骤: 一.在appsetting.json里添加配置文件 //配置文件 ...