Professional Documents
Culture Documents
ALE IDoc Training PDF
ALE IDoc Training PDF
2 IDOCs
3 Components of ALE
4 ALE Configuration
6 Monitoring IDOCs
2
© 2010 Wipro Ltd – Internal and Restricted
1. Introduction to ALE, EDI, IDOC
3
© 2010 Wipro Ltd – Internal and Restricted
Why Distributed Applications?
MM-
GL
PUR
PS
PP
CO
SD-
MM- SHP
INV
SD-
ORD
MM-
INV
5
© 2010 Wipro Ltd – Internal and Restricted
Distributed Business Processes
Financials
Central controlling
Central SOP
Information Systems:
Inventory
Purchasing
Sales
Central purchasing Sales, shipping and
PP Reference system for billing
Inventory management Master Data and Control Purchasing of
Internal sales, shipping Data trading goods
and billing Inventory management
Local purchasing Local controlling
PM
Local SOP
6
© 2010 Wipro Ltd – Internal and Restricted
Why ALE?
7
© 2010 Wipro Ltd – Internal and Restricted
A Typical Business Scenario
BLAORD,
HEAD QUARTERS
BLAOCH Financials
Centralpurchasing
BLAREL
Purchasing info.
EKSEKS
system
FIDCMT
FIROLL
8
© 2010 Wipro Ltd – Internal and Restricted
Example
9
© 2010 Wipro Ltd – Internal and Restricted
What is EDI?
10
© 2010 Wipro Ltd – Internal and Restricted
EDI Process
The EDI enabling software converts the appropriate data into an EDI
format, conforming to the Standard agreed between the two
organizations
This EDI data is transmitted using a mutually agreed electronic
communications method
On receipt of the EDI data, the recipient organization, using its own
EDI enabling software, translates the data back into a format which
can be used by its own business application.
EDI subsystem – A software component that converts in house
formats to standard EDI structures. An EDI subsystem, therefore, is
a link in an EDI communication chain.
11
© 2010 Wipro Ltd – Internal and Restricted
Differences between ALE & EDI
ALE EDI
1. Used from SAP to SAP systems 1. Used from SAP to Non-SAP
systems
2. Uses tRFC ports 2. Uses File ports
3. Data stored in memory buffer 3. Data stored in files
4. Uses R/3 connection 4. Uses TCP/IP Connection
5. Uses IDOC to transfer data 5. Uses EDI subsystems to transfer
data
12
© 2010 Wipro Ltd – Internal and Restricted
IDoc’s
13
© 2010 Wipro Ltd – Internal and Restricted
IDoc
Intermediate Documents
14
© 2010 Wipro Ltd – Internal and Restricted
IDoc (Contd.).
Master IDoc
– Only 1 Master IDoc generated for any number of receivers for the same
data
Communication IDoc
15
© 2010 Wipro Ltd – Internal and Restricted
Structure of an IDoc
16
© 2010 Wipro Ltd – Internal and Restricted
Structure of an IDoc (Contd.).
17
© 2010 Wipro Ltd – Internal and Restricted
Runtime Components of an IDoc
18
© 2010 Wipro Ltd – Internal and Restricted
Record types in an IDoc
19
© 2010 Wipro Ltd – Internal and Restricted
Record types in an IDoc (Contd.).
20
© 2010 Wipro Ltd – Internal and Restricted
Record types in an IDoc (Contd.).
21
© 2010 Wipro Ltd – Internal and Restricted
3. Components of ALE
22
© 2010 Wipro Ltd – Internal and Restricted
ALE Components
Logical System
Message Type
IDoc Type and IDoc
Segment Type
RFC Destination
Ports
Partner Profiles
Process Codes
Customer Distribution Model
23
© 2010 Wipro Ltd – Internal and Restricted
Logical System
24
© 2010 Wipro Ltd – Internal and Restricted
Message Type
Examples
– MATMAS – Material Master
– DEBMAS – Customer Master
– CREMAS – Vendor Master
– GLMAST – General Ledger Master
– ORDERS – Sales Order
25
© 2010 Wipro Ltd – Internal and Restricted
IDoc Type & IDoc
27
© 2010 Wipro Ltd – Internal and Restricted
Segment (Contd.).
Segment Type
– Segment Type is the version independent name of the segment.
– SAP segment type starts with E1.
– Custom-defined segment types begin with Z1.
Segment definition
– Segment definition is the version dependent name.
– SAP segment definition starts with E2.
– Custom-defined segment definitions start with Z2.
– Automatically assigned by the system from Segment Type.
– The last three Characters represent the version of the segment.
28
© 2010 Wipro Ltd – Internal and Restricted
Example of Segment
TOTHOURS TOTAMOUNT
EISUMRY (3) (10)
29
© 2010 Wipro Ltd – Internal and Restricted
RFC Destination
30
© 2010 Wipro Ltd – Internal and Restricted
Ports
Types of Ports:
– tRFC ports used for ALE communication
– File ports used by EDI
– R/2 system ports - communicate with R/2 systems
– Internet ports - connect with Internet applications.
31
© 2010 Wipro Ltd – Internal and Restricted
Partner Profiles
Process Codes are used in ALE and EDI to identify the function
modules to be invoked for subsequent processing
33
© 2010 Wipro Ltd – Internal and Restricted
Customer Distribution Model
Two models cannot distribute the same message between the same
set of senders & receivers.
The client on which you create a model becomes the owner of the
model.
34
© 2010 Wipro Ltd – Internal and Restricted
4. ALE Configuration
35
© 2010 Wipro Ltd – Internal and Restricted
ALE Process Flow
Master
Master
IDOC
Master Determine Filter/Convert Comm.
IDOC
Receipients Data, Create IDOC IDOC
Application IDOC
Carrier
Application Application
Filter/Convert
Data Comm.
Functions
Data IDOC
36
© 2010 Wipro Ltd – Internal and Restricted
ALE Configuration
Inbound Configuration
Outbound Configuration
37
© 2010 Wipro Ltd – Internal and Restricted
Configuration Steps
38
© 2010 Wipro Ltd – Internal and Restricted
Defining Logical System - Outbound
39
© 2010 Wipro Ltd – Internal and Restricted
Allocate Logical System to Client - Outbound
40
© 2010 Wipro Ltd – Internal and Restricted
Create RFC Destination - Outbound
T Code SM59
Select ABAP Connections and click on Create
41
© 2010 Wipro Ltd – Internal and Restricted
Create RFC Destination (Contd.).
42
© 2010 Wipro Ltd – Internal and Restricted
Define Port Definition - Outbound
T Code WE21
Select Transactional RFC and click on Create
43
© 2010 Wipro Ltd – Internal and Restricted
Define Port Definition (Contd.).
Ports can be created in two ways:
44
© 2010 Wipro Ltd – Internal and Restricted
Define Partner Profiles - Outbound
T Code - WE20
Select Partner type LS and Create
45
© 2010 Wipro Ltd – Internal and Restricted
Define Partner Profiles (Contd.).
Enter the Message Type, Receiver port name, Output Mode & Basic
Type
46
© 2010 Wipro Ltd – Internal and Restricted
Defining Logical System - Inbound
47
© 2010 Wipro Ltd – Internal and Restricted
Assign Logical System to Client -
Inbound
T Code SALE OR SCC4
48
© 2010 Wipro Ltd – Internal and Restricted
Define Partner Profile - Inbound
T Code WE20
Configure the inbound parameters
Enter the Message Type and Process Code
49
© 2010 Wipro Ltd – Internal and Restricted
Maintain Distribution Model
Transaction BD64
Create Model View
Add Message Type
Generate Partner Profiles
Distribute Model View
50
© 2010 Wipro Ltd – Internal and Restricted
Maintain Distribution Model (Contd.).
Execute
51
© 2010 Wipro Ltd – Internal and Restricted
Maintain Distribution Model (Contd.).
52
© 2010 Wipro Ltd – Internal and Restricted
Standard Transactions – BD10, BD12,
BD14
53
© 2010 Wipro Ltd – Internal and Restricted
Check Idoc Status
Go to T Code WE05
Check for your IDOC
If the Output Mode
has been specified as
Transfer immediately,
the status will be 03.
If Collect IDOC’s has
been selected, the
status will be 30.
In that case the program
RSEOUT00 needs to
be executed to change
the status to 03
54
© 2010 Wipro Ltd – Internal and Restricted
IDoc Status Numbers
55
© 2010 Wipro Ltd – Internal and Restricted
Change Pointers
Change Pointers are R/3 objects that mark changes to SAP Master
data.
Internal mechanisms update table BDCP & BDCPS which host the
change pointer.
56
© 2010 Wipro Ltd – Internal and Restricted
Change Pointers - Configuration
57
© 2010 Wipro Ltd – Internal and Restricted
Change Pointers – Configuration
(Contd.).
Enable Change Pointer for a Message Type
Transaction BD50
58
© 2010 Wipro Ltd – Internal and Restricted
IDoc Processing – Change Pointers
Go to T Code SE38
Execute the program RBDMIDOC
Specify the Message Type
All the Changes associated with the message type are converted to
IDocs.
59
© 2010 Wipro Ltd – Internal and Restricted
Output Types / Message Control
60
© 2010 Wipro Ltd – Internal and Restricted
Output Types / Message Control
(Contd.).
Select the row “EF Purchase Order” and click on “Procedures”
61
© 2010 Wipro Ltd – Internal and Restricted
Output Types / Message Control
(Contd.).
62
© 2010 Wipro Ltd – Internal and Restricted
Output Types / Message Control
(Contd.).
Now click on “Processing Routines” on the left hand side
Ensure that there is an entry for Medium ‘A’ (Distribution ALE).
63
© 2010 Wipro Ltd – Internal and Restricted
Partner Profiles – Message Control
64
© 2010 Wipro Ltd – Internal and Restricted
Customized Approach
65
© 2010 Wipro Ltd – Internal and Restricted
Create Message Type - Outbound
Transaction WE81
66
© 2010 Wipro Ltd – Internal and Restricted
Create a Segment - Outbound
Transaction WE31
67
© 2010 Wipro Ltd – Internal and Restricted
Create a Segment – Outbound (Contd.).
68
© 2010 Wipro Ltd – Internal and Restricted
Create a Segment – Outbound (Contd.).
69
© 2010 Wipro Ltd – Internal and Restricted
Create an IDoc Type - Outbound
Transaction WE30
70
© 2010 Wipro Ltd – Internal and Restricted
Create an IDoc Type – Outbound
(Contd.).
71
© 2010 Wipro Ltd – Internal and Restricted
Create an IDoc Type – Outbound
(Contd.).
72
© 2010 Wipro Ltd – Internal and Restricted
Create an IDoc Type – Outbound
(Contd.).
73
© 2010 Wipro Ltd – Internal and Restricted
Assign IDoc Type to Message Type -
Outbound
Transaction WE82
74
© 2010 Wipro Ltd – Internal and Restricted
Other Configuration Steps - Outbound
75
© 2010 Wipro Ltd – Internal and Restricted
Standalone Program
76
© 2010 Wipro Ltd – Internal and Restricted
Inbound Configuration
Create Segment
Release Segment
77
© 2010 Wipro Ltd – Internal and Restricted
Create Function Module
Takes care of reading the data from the IDOC generated in the
receiver system
78
© 2010 Wipro Ltd – Internal and Restricted
Create Process Code
79
© 2010 Wipro Ltd – Internal and Restricted
IDoc Extension
Transaction: WE30.
80
© 2010 Wipro Ltd – Internal and Restricted
IDoc Extension (Contd.).
81
© 2010 Wipro Ltd – Internal and Restricted
IDoc Extension (Contd.).
82
© 2010 Wipro Ltd – Internal and Restricted
IDoc Extension (Contd.).
83
© 2010 Wipro Ltd – Internal and Restricted
IDoc Extension (Contd.).
84
© 2010 Wipro Ltd – Internal and Restricted
IDoc Reduction
Transaction: BD53.
Dynamic menu: transaction SALE; Distribution scenarios; Master
data distribution; Reduce IDoc types for master data.
85
© 2010 Wipro Ltd – Internal and Restricted
IDoc Reduction (Contd.).
86
© 2010 Wipro Ltd – Internal and Restricted
IDoc Reduction (Contd.).
87
© 2010 Wipro Ltd – Internal and Restricted
IDoc Reduction (Contd.).
88
© 2010 Wipro Ltd – Internal and Restricted
IDoc Reduction (Contd.).
89
© 2010 Wipro Ltd – Internal and Restricted
5. Filters & Conversion
90
© 2010 Wipro Ltd – Internal and Restricted
Conversions
91
© 2010 Wipro Ltd – Internal and Restricted
Define Conversion Rule
92
© 2010 Wipro Ltd – Internal and Restricted
Maintain Conversion Rule
93
© 2010 Wipro Ltd – Internal and Restricted
Maintain Conversion Rule (Contd.).
94
© 2010 Wipro Ltd – Internal and Restricted
Assign Conversion Rule
95
© 2010 Wipro Ltd – Internal and Restricted
Filters
96
© 2010 Wipro Ltd – Internal and Restricted
Filters in Distribution Model
97
© 2010 Wipro Ltd – Internal and Restricted
Filters in Distribution Model (Contd.).
98
© 2010 Wipro Ltd – Internal and Restricted
6. Monitoring IDoc’s
99
© 2010 Wipro Ltd – Internal and Restricted
Status Monitor of IDoc
Transaction BD87
100
© 2010 Wipro Ltd – Internal and Restricted
Transaction WE14
101
© 2010 Wipro Ltd – Internal and Restricted
Transaction WE19
102
© 2010 Wipro Ltd – Internal and Restricted
IDoc Status – WE47
103
© 2010 Wipro Ltd – Internal and Restricted
Thank You