引自: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的更多相关文章

  1. 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 ...

  2. 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 ...

  3. Step By Step(Lua元表与元方法)

    Step By Step(Lua元表与元方法) Lua中提供的元表是用于帮助Lua数据变量完成某些非预定义功能的个性化行为,如两个table的相加.假设a和b都是table,通过元表可以定义如何计算表 ...

  4. Linkerd 2.10(Step by Step)—配置代理并发

    Linkerd 2.10 系列 快速上手 Linkerd v2 Service Mesh(服务网格) 腾讯云 K8S 集群实战 Service Mesh-Linkerd2 & Traefik2 ...

  5. Step by step Dynamics CRM 2011升级到Dynamics CRM 2013

    原创地址:http://www.cnblogs.com/jfzhu/p/4018153.html 转载请注明出处 (一)检查Customizations 从2011升级到2013有一些legacy f ...

  6. Step by Step 创建一个新的Dynamics CRM Organization

    原创地址:http://www.cnblogs.com/jfzhu/p/4012833.html 转载请注明出处 前面演示过如何安装Dynamics CRM 2013,参见<Step by st ...

  7. 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 ...

  8. Step by step Dynamics CRM 2013安装

    原创地址:http://www.cnblogs.com/jfzhu/p/4008391.html 转载请注明出处   SQL Server可以与CRM装在同一台计算机上,也可安装在不同的计算机上.演示 ...

  9. Step by step 活动目录中添加一个子域

    原创地址:http://www.cnblogs.com/jfzhu/p/4006545.html 转载请注明出处 前面介绍过如何创建一个域,下面再介绍一下如何在该父域中添加一个子域. 活动目录中的森林 ...

  10. SQL Server 维护计划实现数据库备份(Step by Step)(转)

    SQL Server 维护计划实现数据库备份(Step by Step) 一.前言 SQL Server 备份和还原全攻略,里面包括了通过SSMS操作还原各种备份文件的图形指导,SQL Server  ...

随机推荐

  1. 编写你的第一个 Django 应用程序,第1部分

    让我们通过示例来学习. 在本教程中,我们将引导您完成基本投票应用程序 它将由两部分组成: 一个公共网站,允许人们查看投票并在其中投票. 允许您添加.更改和删除投票的管理网站. 一.开发环境搭建 第一步 ...

  2. CSRF的理解及Flask和Django的解决方案

    CSRF 攻击的原理 1. 用户正常登录 网站A 2. 网站A 向用户浏览器写入cookies(包含登录信息) 3. 用户在没有登出的情况下,访问了网站B(攻击网站) 4. 网站B 伪造了一个 网站A ...

  3. arthas定位接口的耗时排查问题

    下载Arthas的jar包 https://arthas.aliyun.com/ 上传jar包到你的服务器启动 启动 arthas 在命令行下面执行(使用和目标进程一致的用户启动,否则可能 attac ...

  4. SSH登录方式及如何防止SSH端口被扫

    ssh登录服务器的方式有三种:密码登录,公钥登录,证书登录.同时,密码登录有被破解的风险,网络上也有很多在扫描ssh端口的主机. 比如: 这里175.178.62.36是一个来自广东的服务器,17次尝 ...

  5. 探秘Transformer系列之(18)--- FlashAttention

    探秘Transformer系列之(18)--- FlashAttention 目录 0x00 概述 0.1 问题 0.2 其它解决方案 0.3 Flash Attention 0x01 背景知识 1. ...

  6. BUUCTF--Dangeous RSA(小e)

    对于e很小,可以直接采取爆破的手段,直接上代码 点击查看代码 #python3 ## -*- coding: utf-8 -*-# import binascii from gmpy2 import ...

  7. AspNetCore Json序列化设置

    AspNetCore 中的Json序列化处理已经默认使用Newtonsoft.Json库了... 比如像MVC中: public I 不过使用过程中会发现一些问题,其实这算默认设置吧: Json序列化 ...

  8. JavaScript Library – Embla Carousel

    前言 2022 年 4 月,我写了一篇 Swiper 介绍. Swiper 是当时前端最多人使用的 Slider 库,没有之一,一骑绝尘. 但是!时过境迁,这两年已经有一匹神秘的黑马悄悄杀上来了. 它 ...

  9. Mybatis搭建环境时需要注意事项

  10. Linux防火墙操作指令

    firewall-cmd --list-ports # 查看开放的端口号 firewall-cmd --zone=public --add-port=8888/tcp --permanent # 开放 ...