0% found this document useful (0 votes)
43 views27 pages

ALE Manual 01

This document provides instructions on how to distribute application data between two R/3 systems using ALE. It describes the process of creating a message flow to send material master data between two clients. The document explains how to set up clients, define logical system names, configure communication parameters, model the distribution, generate partner profiles, distribute the model, and send material master data.

Uploaded by

charlielinsoe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views27 pages

ALE Manual 01

This document provides instructions on how to distribute application data between two R/3 systems using ALE. It describes the process of creating a message flow to send material master data between two clients. The document explains how to set up clients, define logical system names, configure communication parameters, model the distribution, generate partner profiles, distribute the model, and send material master data.

Uploaded by

charlielinsoe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 27

Technical Documentation

Purpose: Page:
ALE Quick Start – Material Master
1/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

Contents

Preface
___________________________________________________________________

Unit 0 Introductions

Unit 1 Setting up Clients

Unit 2 Defining Logical System Names for Clients

Unit 3 Defining the Communication Parameters

Unit 4 Modeling the Distribution

Unit 5 Generating Partner Profiles in the Sending System

Unit 6 Maintain Partner Profile Manually

Unit 7 Distributing the Distribution Model

Unit 8 Sending Material Master Data

Appendix A SAP Note 624163


___________________________________________________________________
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
2/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

0. Introductions

這份文件的目的, 在描述如何將 application data 透過 ALE 傳送到 R/3 系統中. 以下將用 Material Master 為例,
說明在兩個 client 中建立 message flow 來傳送資料的過程.

閱讀這份文件時, 請同時參考 R/3 Library 中 ALE Quick Start.


SAP Library
Cross-Application Functions  (Business Framework Architecture)  ALE Business Process Library  ALE
Quick Start
在以下內容中, 若 SAP 有提供相關的文件, 其路徑均如上例所示, 標明在灰色框內, 以供參考.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
3/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

1. Setting up Clients: 首先, 必須要有兩個 client, 讓 logical systems 間做 communication. 這兩個


client,可能是屬於同一個 R/3 system, 或者分屬於不同的 R/3 system.

1.1 SAP standard menu


Tools  Administration 
Administration  Client
administration  Client
maintenance
(T-Code: SCC4)

1.2 Maintain Clients


以下的操作, 將以 client 777 及
client 620 為例.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
4/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

2. Defining Logical System Names for Clients: 在 distributed environment 中, 為了避免混淆, 每個參與
的系統都必須要建立唯一的 logical system name 做為辦認的 ID.
R/3 Implementation Guide
Basis  Application Link Enabling (ALE) under Sending and Receiving Systems  Logical Systems
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
5/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

2.1 IMG
Basis Components 
Distribution (ALE)  Sending
and Receiving Systems 
Logical System  Define
Logical System

2.2 Define Logical system


Logical system 777DEV will be
used for client 777 of SHD.
Logical system will be used for
client 620 of MER.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
6/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

2.3.
本例中, 兩個 client 是分屬不同的
R/3 system, 因此必須確定兩邊
系統的設定是一樣的

由於 logical system 的設定是


client independent 的, 如果兩個
client 是在同一個 R/3 system 中
時, 只需設定一次即可.

2.4 IMG
Basis Components 
Distribution (ALE)  Sending
and Receiving Systems 
Logical System  Assign
Logical System
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
7/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

2.4 Assign Logical System to


Client
定義好需要的 logical system
name 之後, 接下來要將 client 指
定給 logical system.
注意, 這裡的 Client 是屬於此系
統的.

2.5
一個 client 只能指派一個 logical
system.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
8/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

3. Defining the Communication Parameters: 為了讓 logical system 間進行 communicate, 必須要
定義彼此 connect 的方式.
3.1 IMG
Basis Component  Distribution
(ALE) Sending and Receiving
Systems  Systems in Network
 Define Target Systems for
RFC Calls

3.2 Maintain RFC Destination


在兩個 client 中, 分別將對方的
logical system 指派給 RFC
destination.
例如: 在 client 777 中, 設定一個
RFC destination for client 620
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
9/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

3.3
決定 Target host 時, 也決定了
receiving system application
server 要用哪一種方式進行
communication. 如: UNIX host
name, the host name in DNS
format, IP address, or SAP
router name(可以參考 SAP
logon 中的設定). 儲存設定後, 可
以用 Test connection 及 Remote
logon 來測試.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
10/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

4. Modeling the Distribution: 建立 Model 的主要目的, 是讓系統分辨出哪些 message 要被 distributed,


並且決定 message distribution 的源頭及目的地.
R/3 Implementation Guide
Basis  Application Link Enabling (ALE)  Modeling and Implementing Business Processes  Maintain
Distribution Model

4.1 IMG
Basis Component  Distribution
(ALE) Modeling and
Implementing Business
Processes  Maintain
Distribution Model and Distribute
Views.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
11/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

4.2 Create model view


以 Material master 為例, 建立一
個 model view:
“Maint. system” 表示在哪個
logical system (client)中維護
model..

4.3 Add message type


在 model 中建立所需要的
message.
(Material master 所需要的
message type 為 MATMAS)
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
12/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

4.4 Display distribution model


Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
13/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

5. Generating Partner Profiles in the Sending System: 藉由建立 partner profile, 告知 sending system ALE 傳送
資料的方式.
5.1 Generate Partner Profiles

5.2 Execute the program


Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
14/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

5.3 Result message


Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
15/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

6. Maintain Partner Profile Manually: 系統產生 partner profile 後, 根據不同的需要, 可再修改其中的內


容.
6.1 SAP standard menu
Tools  Business
Communication  IDoc  Port
Definition
(T-Code: WE21)

6.2 Create a Port


在 “Transaction RFC”下建立一
個 Port, 將先前在 3.2 中定義的
RFC destination 輸入.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
16/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

6.3 SAP standard menu


Tools  Business
Communication  IDoc 
Partner Profile
(T-Code: WE20)

6.4 Display partner profile


Partner  Partner type LS, 點
選 Receiving system, 進入
distributed message type 的內
容中.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
17/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

6.5 Check partner profile


檢查: Receiver port 及 Basic
type 是否正確, 並將 Output
mode 設為”Transfer IDoc
immed.”.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
18/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

7. Distributing the Distribution Model: 將 model view 從 sending system 傳送到 receiving system, 讓 receiving
system 被告知所有的 message flow, 並產生 communication interface.
7.1 Distribute model view
將 sending system 中建立的
model view 傳送到 receiving
system.

7.2 IMG
在 receiving system 中, Basis
Component  Distribution
(ALE) Modeling and
Implementing Business
Processes  Maintain
Distribution Model and Distribute
Views
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
19/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

7.3 Generate partner profile


Sending system 將 distribution
model 傳送到 receiving system
後, 可根據此 model 在 receiving
system 中產生 partner profile.

7.4 Execute the program


Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
20/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

7.5
在這個例子中, 資料的傳輸方式
只開放從 client 777client 620;
而沒有開放資料從 client 620
client 777. 故不同 5.3, 產生
partner profile 時, 系統無法建立
client 620  client 777 的 port.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
21/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

7.6 SAP standard menu


Tools  Business
Communication  IDoc 
Partner Profile
(T-Code: WE20)

7.7
Partner  Partner type LS, 點
選 Receiving system, 進入
distributed message type 的內容
中.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
22/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

7.8 Check partner profile


若兩個 client 是雙向
communication, 請參考 6.
Maintain Partner Profile
Manually, 檢查: Receiver port
及 Basic type 是否正確, 並將
Output mode 設為”Transfer
IDoc immed.”
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
23/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

8. Sending Material Master Data


8.1 SAP standard menu
Tools  ALE  Master Data
Distribution  Cross-application
Material  Send
(T-Code: BD10)

8.2. Send
Enter a message type and
execute program to send
Material.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
24/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

8.3. SAP standard menu


Tools  ALE  ALE
Administration  Monitoring
Display IDoc list
(T-Code: WE05)

8.4. Check export IDoc status


Data is successfully exported
from client 777 of SEMT r/3
system.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
25/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

8.5. Check IDoc import status


Data is successfully imported
into client 620 of Merge r/3
system.
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
26/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

Appendix A. SAP Note 624163: 如果照上述步驟操作後, 仍有錯誤, 可參考是否跟 Note 624163 有關.

Symptom

You can display IDoc of message type MATMAS via the object links as a link to the material. However, this
does not work, since the Customizing references to the business object BUS1001, but only the business
object BUS1001006 is published for the object links in the material master.

Additional key words

WE57, BDA4, BD67, MATMAS, TBD14, TBD52, VEDIEDIFCT, EDIFCT, B1252, B1 252, B1 (252)

Cause and preconditions

This is due to an incorrect Customizing.

Solution

Up to Note 452424, the object links for the business object BUS1001 were still published in Release 4.6B
and 4.6C.If your system already contains Note 452424, you can also use Note 553246 with which both
business objects are published in the material master. This way, old IDoc, which have still been assigned
to business, object BUS1001 can also be found via the object links for the material.

For the correction, you must carry out the following Customizing changes:

1. Using Transaction WE57 change the object type to BUS1001006 for the following entries.
For this purpose you must copy the existing entry and afterwards delete the original entry.
a) Function module: IDOC_INPUT_MATMAS01
Function type: F
Basic type: MATMAS01
Enhancement:
Message type: MATMAS
Message code:
Message function:
Object type: BUS1001
b) Function module: IDOC_INPUT_MATMAS01
Function type: F
Technical Documentation
Purpose: Page:
ALE Quick Start – Material Master
27/27
Application level:
BASIS/SD
Lecturer: Date of Creation: Author: Date of Modification:
2003/10/31 上午 10:57 Christine Chao 11/21/2003 02:48:00 PM

Basic type: MATMAS02


Enhancement:
Message type: MATMAS
Message code:
Message function:
Object type: BUS1001
c) Function module: IDOC_INPUT_MATMAS01
Function type: F
Basic type: MATMAS03
Enhancement:
Message type: MATMAS
Message code:
Message function:
Object type: BUS1001
d) In addition for Release 4.70:
Function module: IDOC_INPUT_MATMAS01
Function type: F
Basic type: MATMAS05
Enhancement:
Message type: MATMAS
Message code:
Message function:
Object type: BUS1001
Caution: The change for basic type MATMAS05 is only delivered for a later Support
Package than the other Customizing changes. In the ALE inbound processing, this might
cause error message B1252 ('Function module not allowed: IDOC_INPUT_MATMAS01.').
2. Using Transaction BDA4 change the object type to BUS1001006 for message type MATMAS.
3. Using Transaction BD67 change the object type to BUS1001006 for the process code (inbound)
MATM.
Caution: The change in Transaction BD67 cannot be delivered via Support Package for Release
4.6B and 4.6C and must be made manually if required.

You might also like