Beginner’s Guide to ALE and IDocs – a step-by-step approach
来源:互联网 发布:mysql怎么清空数据库 编辑:程序博客网 时间:2024/06/11 03:16
http://www.riyaz.net/sap/beginners-guide-to-ale-and-idocs-a-step-by-step-approach/18/
Beginner’s Guide to ALE and IDocs – a step-by-step approach
This article will help you understand the basics of ALE and IDocs via a simple do-it-yourself example. We will create a custom IDoc in one SAP system and then post some business data through it to another SAP system. Business data will be picked up from custom data dictionary tables.
ALE – Application Link Enabling is a mechanism by which SAP systems communicate with each other and with non-SAP EDI subsystems. Thus it helps integration of distributed systems. It supports fail-safe delivery which implies that sender system does not have to worry about message not reaching the source due to unavoidable situations. ALE can be used for migration and maintenance of master data as well as for exchanging transactional data.
The messages that are exchanged are in the form of IDocs or Intermediate Documents. IDocs act like a container or envelope for the application data. An IDOC is created as a result of execution of an Outbound ALE. In an Inbound ALE an IDOC serves as an input to create application document. In the SAP system IDocs are stored in the database tables. They can be used for SAP to SAP and SAP to non-SAP process communication as long as the participating processes can understand the syntax and semantics of the data. Complete documentation on IDOC is obtained by using transaction WE60.
Every IDoc has exactly one control record along with a number of data records and status records. Control record has the details of sender/receiver and other control information. Data records contain the actual business data to be exchanged while the status records are attached to IDoc throughout the process as the IDoc moves from one step to other.
Now, let us understand the ALE Configuration by means of an example scenario below:
The Scenario
Data from custom tables (created in customer namespace) is to be formatted into an IDoc and sent from one SAP R/3 system to another using ALE service. We need to have two instances of SAP R/3 systems or we can simulate this on two clients of the same SAP R/3 system.
Create three tables as shown below.
Creating Custom IDoc type and Message type
All the objects created should be present on both source as well as target system(s).
1. Create segments – Transaction WE31
- Create a segment ZRZSEG1
- Add all fields of table ZCUSTOMERS to it
- Save the segment and go back
- Release it using the menu path Edit -> Set Release
- Similarly create two more segments given below
- Seg. ZRZSEG2 – to hold all fields of table ZSOHEADERS
- Seg. ZRZSEG3 – to hold all fields of table ZSOITEMS
2. Create Basic IDoc type – Transaction WE30
- Create a Basic type ZRZORDER
- Add the created segments in the hierarchy shown
- Maintain attributes for each of the segments
- Save the object and go back
- Release the object using the menu path Edit -> Set Release
3. Create/Assign Message type – Transactions WE81/WE82
- Go to WE81
- Create a new Message type ZRZSO_MT
- Save the object
- Go to WE82 and create new entry
- Assign the message type ZRZSO_MT to the basic type ZRZORDER
- Also specify the Release Version
- Save the object
Thus we have defined the IDoc structure which will hold the data to be transferred. In the next part of the article we will understand the outbound settings, i.e. the settings to be done in the source system.
- Beginner’s Guide to ALE and IDocs – a step-by-step approach
- Beginner’s Guide to ALE and IDocs – Part II
- Beginner’s Guide to ALE and IDocs – Part III
- Mastering Debugging in Visual Studio 2010 - A Beginner's Guide Step by Step
- ALE STEP BY STEP
- How to Read and Understand a Scientific Paper: A Step-by-Step Guide for Non-Scientists
- Counter Hack Reloaded: A Step-by-Step Guide to Computer Attacks and Effective Defenses
- CGAL Arrangements and Their Applications: A Step-By-Step Guide
- A step-by-step guide to the use of the Intel OpenCV library and the Microsoft DirectShow technology
- Mac OS X - A step-by-step guide to installing Go and building your first web service
- Step by step guide to set up master and slave machines
- Step By Step Guide To Create Physical Standby Database Using RMAN Backup and Restore
- A beginner's guide to search engine optimization and promotion
- A Beginner's Guide to Recurrent Networks and LSTMs
- A Beginner’s Guide to Recurrent Networks and LSTMs
- A Simple Step-By-Step Guide To Apache Tomcat SSL Configuration
- A Simple Step-By-Step Guide To Apache Tomcat SSL Configuration
- Step by Step Guide to Add a SQL Job in SQL Server 2005
- 关于大型网站技术演进的思考(四)--存储的瓶颈(4)
- 关于大型网站技术演进的思考(五)--存储的瓶颈(5)
- C++代码中 栈溢出错误 chkstk.asm 一则
- 类CCmdTarget
- 源码安装xen虚拟机
- Beginner’s Guide to ALE and IDocs – a step-by-step approach
- Fragment小记
- 关于大型网站技术演进的思考(六)--存储的瓶颈(6)
- iOS删除指定类型的文件
- Android平台如何获得屏幕尺寸?
- Robotium学习地址
- Arduino现在才玩起,初尝试
- C++ 中list容器,stl中sort自定义排序规则 注意事项
- OpenSSL与KeyStore指令小集