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 ...
随机推荐
- NumPy学习12
今天学习了 22, NumPy矩阵乘法 23, NumPy IO操作 numpy_test12.py : import numpy as np ''' 22, NumPy矩阵乘法 矩阵乘法是将两个矩阵 ...
- 对象命名为何需要避免'-er'和'-or'后缀
之前写过两篇关于软件工程中对象命名的文章:开发中对象命名的一点思考与对象命名怎么上手?从现实世界,但感觉还是没有说透, 在软件工程中,如果问我什么最重要,我的答案是对象命名.良好的命名能够反映系统的本 ...
- PVE虚拟平台常用简明操作,三分钟搞定虚拟机更换安装配置
Proxmox Virtual Environment是一个基于QEMU/KVM和LXC的开源服务器虚拟化管理解决方案,本文简称PVE,与之相类似的虚拟化平台是VMWARE的ESXi虚拟平台,相较于商 ...
- oracle 添加白名单- 重启监听
由于oracle中存在白名单,有新增主机需要访问,添加白名单需要重启监听 1.添加白名单 登陆oracle主机,su - grid 切到grid用户, vi $ORACLE_HOME/network/ ...
- Pydantic Mixin:构建可组合的验证系统体系
title: Pydantic Mixin:构建可组合的验证系统体系 date: 2025/3/22 updated: 2025/3/22 author: cmdragon excerpt: Pyda ...
- 内部类--匿名内部类--java进阶day03
1.匿名内部类 在介绍匿名内部类前,先引用一段代码材料,通过这段代码来理解匿名内部类 如下图,我们定义了接口和一个方法,方法中调用该接口的抽象方法,这时我们要调用use方法,但是该怎么传参呢? 我们将 ...
- SQL 和 PL/SQL 的区别
不经意看到2个ORA错误,一个提示PL/SQL ORA-错误,另一个提示SQL ORA-错误,好奇这2货啥区别?留爪. PL/SQL也是一种程序语言,叫做过程化SQL语言(Procedural Lan ...
- C# 窗口过程消息处理 WndProc
C# 窗口过程消息处理 WndProc WinForm WndProc 在 WinForm 中一般采用重写 WndProc 的方法对窗口或控件接受到的指定消息进行处理 示例:禁止通过关闭按钮或其他发送 ...
- springAPI对事物支持之注解式配置
一.无Spring核心配置文件:applicationContext.xml下开启注解式事物 @Configuration @EnableTransactionManagement public cl ...
- VScode前端代码编辑器:修改默认打开的浏览器和代码提示设置
一.修改默认打开的浏览器 二.代码提示设置