Académique Documents
Professionnel Documents
Culture Documents
ALE - IDOC
Introduction
Procedure
Demonstration
Exercises
HelpMe
Introduction
Get familiarized with the jargons used in ALE, IDOC & EDI.
Know the concept of ALE and Idocs.
Know more about IDoc structure and its role in Data communication
Learn basic Outbound Processing of IDoc.
Learn basic Inbound Processing of IDoc.
Have a Quick Introduction to EDI.
Get your hands dirty on Demo Scenario
Q & A section
ALE - IDOC
Introduction
Procedure
Demonstration
Exercises
HelpMe
Procedure - contents
Business Utilization
IDoc
ALE
Industry Examples
Business Utilization
Business data
d
ss
ine
s
Bu
ata
Head Quarters
Suppliers
Business data
Business data
Business data
Customer
Sales Office
Production
SAP Business units (Sales Unit & production Unit) can use ALE for internal data
exchange.
ALE is SAP Technology to send and receive business data in SAP Systems.
Container for the data is Idoc.
When communicating with Business Partners (customers/suppliers on non-SAP
platforms) SAP business units can exchange data through EDI using idocs.
Idoc
Supplier
Idoc
Production (SAP)
Idoc
Idoc
Customer
Idoc
IDoc Type defines the structure and format in which the data is exchanged.
It is similar to a structure in SAP
IDoc data is an instance of IDoc Type
IDoc acts as a standard SAP interface to exchange business data through ALE.
From an SAP system, an IDoc can be sent to and received from
An SAP R/3 system
An SAP R/2 system
An EDI subsystem
Any third-party application software
Message
Message type is a name given , that tells us what type of business data is being
exchanged.
Eg: MATMAS (material master data) , DESADV (delivery Data)
Message type is always linked to an IDoc type .
Where the IDoc Type represents the data format. While the message tells us the
purpose of data being sent
Ex: In an organization. Employee details are needed for different purposes.
Like Payroll as well as Security department may need different details about the
same employee. A standard format for employee details is created (Idoc type
:EMPINFO01). Different messages , 1 for payroll (EMPSAL) and 1 for security
(EMPSEC) so that same employee details can be sent for different purposes.
An idoc Type defines the syntax of the data permitted segments and their arrangements
mandatory/optional segments.
IDoc Components
Control Record
IDoc#
Sending business system
Receiving business system
IDoc type and logical message
Creation date and time
Data Record
IDoc#
Sequence/Hierarchy
Segment
Format definition for
header data
item data
Status Record
IDoc
Data Records constitute of segments with a sequential segment number, a
segment type description and field containing the actual data of the segment
(to a max of 1000 bytes)
**Control and Status records are filled by the ALE services and is discussed later in the presentation
ALE is the technology used to transfer business data between different systems
using IDocs / BAPIs.
*IDoc is the container for the business data and ALE is the technology which builds
the road for data transfer.
For example to send Employee Data to Payroll department from HO, HO will
populate Employee detail into the EMPINFO01 format(IDoc). ALE settings will
determine who is the receiver, how to connect to the receiver and transmits the
data.
OutboundDetermine
IDoc
Head Quarters
Payroll Department
The business process shown above depicts an SAP cycle that involves ALE model
to exchange business data like
Purchase Order / Order
Order Confirmation
Order change
Advantages of ALE
The below are the basic configuration steps involved in exchanging the
business data between two systems in distribution service layer.
Logical Systems
( TCode SALE )
( TCode SALE )
RFC Connections
( TCode SM59 )
Distribution Model
( TCode BD64 )
( TCode WE82 )
( TCode WE20 )
Ports
( TCode WE21 )
Partner Type - Partner type are used to classify the business system.
Ex: Logical System (LS) for other SAP clients,
Customer (KU), Vendor (LI) etc..
Ports
R/3 defines four types of ports viz. tRFC (transactional Remote Function
Calls), File, R/2, and Internet.
Distribution Model
Distribution Model A model that describes the ALE message flow between logical
systems.
Applications and the ALE distribution service layer use the model to determine
receivers and to control the data distribution. The relationships between logical
systems, message types, BAPIs and filters are defined in the distribution model.
Ex: The screen shot depicts customer distribution mode ALE_TRNG_Mar07.
Process Codes
Process Codes are used to identify the function module or API (Application
Programming Interface) to be invoked for subsequent processing (Outbound
or Inbound) of the business application.
Inbound process Code - names the function module or workflow which reads
the IDoc data and transfers the data to the application document. (TCode
WE42)
Outbound process codes are stored in table TEDE1, while inbound process
codes are stored in TEDE2.
IDoc Processing
The IDoc Interface supports three types of data flow with the external system.
Outbound processing - IDocs are transferred to a receiving system from the
SAP System.
Inbound processing - IDocs are transferred to the SAP System from a
sender system.
Status processing - The follow-on system confirms the processing status of
outbound IDocs to the SAP System.
Outbound
Processing
Inbound
Processing
Each layer in ALE model has its own functionality starting from application layer ->
distribution layer -> communication layer in processing outbound IDocs when message
types are used to transfer data asynchronously.
Application Layer - An application FM creates
a master IDoc in outbound processing. This layer
fills the data record of IDOC.
ALE service Layer The Master-IDoc will travel
through ALE layer for Receiver Determination
Data Selection, Segment Filtering, Data Conversion,
Version Control and dispatch control. This layer
fills the control record of the IDoc and generates
a communication IDoc.
The format of the control record is similar for all IDoc types.
The status record shows the information regarding the processed stages and
processing stages of the IDoc. It attains appropriate statuses during its journey from
one system to another and it has identical format for each IDoc type.
Distribution service layer and Communication service layer add these statuses on
the status record, describing various phases of processing.
Status record in screen shot shows
the status of IDoc through its journey
from IDoc generation (status -42) ->
IDoc Passing through ALE layer
(status - 30) -> IDoc Sent out of R/3
system (Status - 03).
Partner Profile - Defines the partner type with whom you communicate
asynchronously via IDocs. This has to be maintained in the partner profiles
configuration TCode WE20.
Inbound processing
Process Flow
Function Module
Workflow (used mainly in EDI)
IDoc
EDI Subsystem
Translate IDoc to EDI Standard.
File
(Vendor
Format)
EDI is a standard format for exchanging business data between any 2 systems on different
networks .
Any two systems that use different data formats , and need to communicate with each other can
use EDI.
In case of EDI , EDI being a standard format .Any data format can be converted to universal EDI
format.
In case of SAP , Idocs from SAP can be converted to EDI format. This is useful and is widely used
for communication with customers and vendors (non-SAP ) who do not understand Idoc format .
EDI subsystem is needed for communication between 2 systems. This translates the data into
standard EDI format that is understood by receiver / sender system.
EDI uses either ANSI X12 or EDIFACT as standard formats in the data exchange.
In SAP communicating partners are not defined as logical systems for EDI. They have partner
types like KU-Customer, LI-Vendor etc...which uses a file port.
REQOTE
Vendor
QUOTES
PRICAT
ORDERS/ORDCHG
ORDRSP
IMPINV
TXTRAW
DESADV
STPPOD
TXTRAW
INVOIC
EXPINV
REMADV
LOCKBX
FINSTA
FINSTA
Supplier
DELINS
DELORD
DESADV
ACCSTA
TRXSTA
ACCSTA
GSVERF/SBINV
INVOIC
REMADV
Bank
PAYEXT
DEBADV
CREADV
PROACT
ORDRSP
ORDCHG
ORDRSP
DESADV
INVOIC
REMADV
PAYEXT
DEBADV
Bank
CREADV
Ex:
PRICAT Price List / Catalogue
PROACT Stock & Sales Data
ORDRSP Order Confirmation
ALE - IDOC
Introduction
Procedure
Demonstration
Exercises
HelpMe
Demo Scenario
Demo showing distribution of master data.
E.g. Synchronization of master data like customer / vendor / material
between 2 SAP systems.
Configuration Steps:
1. Creation of logical systems
2. Assign client to logical systems
3. Creating RFC destinations
4. Creating Distribution model & distributing the view.
5. Generating partner profiles.
6. Check partner profiles & ports generated.
7. Trigger master data and check the status of Idoc in sender and receiver
systems.
ALE - IDOC
Introduction
Procedure
Demonstration
Exercises
HelpMe
Exercise
Trigger distribution of master data.
E.g. Synchronization of master data like customer / vendor / material
between 2 SAP systems (Tcode BD10/ BD12/ BD14)
Assumptions:
All ALE configurations are already in place.
(ALE course 2 covers configurations in greater details)
Trigger master data and check the status of IDoc in sender and receiver
systems.
ALE - IDOC
Introduction
Procedure
Demonstration
Exercises
HelpMe
Logical Systems
( TCode SALE)
Clients (Appln.Systems) involved in data exchange ( TCode SALE)
RFC Connections
( TCode SM59)
Distribution Model
( TCode BD64)
Message Type
(TCode WE81)
Partners & Partner Profiles
(TCode WE20)
Ports
(TCode WE21)
IDOC Type
(TCode WE30)
IDOC Segment
(TCode WE30)
Messages / Message Type
(TCode WE81)
IDOC + Message Type
(TCode WE82)
IDOC Monitoring
(TCode WE02)
ALE Monitoring
(TCode BD87)