Académique Documents
Professionnel Documents
Culture Documents
EDI / IDOCs
09/16/15
Overview of ALE/IDOCs
EDI
What is EDI?
Type of EDI process
Outbound EDI Process
Inbound EDI Process
09/16/15
Overview of ALE/IDOCs
What is EDI?
09/16/15
Overview of ALE/IDOCs
09/16/15
Overview of ALE/IDOCs
Outbound Process
09/16/15
Overview of ALE/IDOCs
Inbound Process
09/16/15
Overview of ALE/IDOCs
EDI Configuration
09/16/15
Overview of ALE/IDOCs
09/16/15
Overview of ALE/IDOCs
ALE
What is ALE?
Components of ALE.
Anatomy of an IDoc.
ALE Processing
Transactions For Monitoring and Processing IDocs.
Questions
09/16/15
Overview of ALE/IDOCs
ALE Terminology
ALE - Application Linking & Enabling
IDoc - Intermediate Document
EDI - Electronic Data Interchange
09/16/15
Overview of ALE/IDOCs
10
ALE Objective
09/16/15
Overview of ALE/IDOCs
11
ALE!! What is it ??
It is a set of
Tools,
programs and
data definitions
Overview of ALE/IDOCs
12
Reliable communication
09/16/15
Overview of ALE/IDOCs
13
ALE Scenario
Document
IDoc
IDoc
IDoc
EDI Subsystem
09/16/15
EDI Subsystem
Overview of ALE/IDOCs
14
Topics to cover
What is ALE ?
Components of ALE.
Anatomy of an IDoc.
ALE Processing
Transactions For Monitoring and Processing IDocs.
Trouble Shooting
Questions
09/16/15
Overview of ALE/IDOCs
15
Components of ALE
Services:
Application Services
Distribution Services
Communication Services
09/16/15
Overview of ALE/IDOCs
16
Application Services
Services:
Application Services
Distribution Services
Communication Services
09/16/15
Overview of ALE/IDOCs
17
Distribution Services
Services:
Distribution Services
Communication Services
09/16/15
Recipients
Formats and
Filters the data
Creates IDocs
( Intermediate
Documents
Application Services
Overview of ALE/IDOCs
18
Communication Services
Services:
Application Services
Distribution Services
Communication Services
TCP/IP
RFC
tRFC
etc
09/16/15
Overview of ALE/IDOCs
19
In a Nut Shell
Application
Layer
Application
Application
Master
IDOC
Distribution/ALE
Layer
Determine
Determine
Receipients
Receipients
Filter/Convert
Filter/Convert
Data,
Data, Create
Create IDOC
IDOC
Communication
Layer
Comm.
IDOC
Carrier
Carrier
Application
Data
09/16/15
Application
Application
Functions
Functions
Filter/Convert
Filter/Convert
Data
Data
Overview of ALE/IDOCs
Comm.
IDOC
20
Topics to cover
What is ALE ?
Components of ALE.
Anatomy of an IDoc.
ALE Processing
Transactions For Monitoring and Processing IDocs.
Trouble Shooting
Questions
09/16/15
Overview of ALE/IDOCs
21
IDoc Concept
System 1
SAP
Document
R/3 System
09/16/15
System 2
IDoc
EDI subsystem
R/3 System
R/2 System
3rd party software
Overview of ALE/IDOCs
22
IDoc Structure
Control Record
IDoc-ID
Sender-ID
Receiver-ID
IDoc type and logical message
External structure
Data Record
IDoc-ID
Sequence/Hierarchy
Format definition for
Segment
header data
item data
Status Record
09/16/15
IDoc-ID
Status information
Overview of ALE/IDOCs
23
Control record
Data Record
Status Record
IDOC
Intermediate
Document
09/16/15
Overview of ALE/IDOCs
24
Control Record
09/16/15
Overview of ALE/IDOCs
25
Message Type
Message Type indicates How to Know what the data Means
Data Exchanged by IDOC and EDI is known as Messages
Message of same kind belong to the same message type.
Message types are stored in table EDMSG
09/16/15
Overview of ALE/IDOCs
26
Data Record
09/16/15
Overview of ALE/IDOCs
27
Status Record
09/16/15
Overview of ALE/IDOCs
28
Status of IDOC
A two-digit status is assigned to an IDoc to allow the processing to
be monitored.
The statuses for outbound IDocs are between '01' and '49', while the
statuses for inbound IDocs begin with '50'.
09/16/15
Overview of ALE/IDOCs
29
Idoc Segments
TCODE:
WE31
09/16/15
Overview of ALE/IDOCs
30
Idoc Types
TCODE:
WE30
09/16/15
Overview of ALE/IDOCs
31
09/16/15
Overview of ALE/IDOCs
32
Message Types
WE81
09/16/15
Overview of ALE/IDOCs
WE82
33
09/16/15
Overview of ALE/IDOCs
34
Topics to cover
What is ALE ?
Components of ALE.
Anatomy of an IDoc.
ALE Processing.
i.Outbound Processing
ii.Inbound Processing
09/16/15
Overview of ALE/IDOCs
35
Outbound Processing
09/16/15
Overview of ALE/IDOCs
36
ALE layer
Need to
create IDOC?
Create master
IDOC
Comm. layer
Customer
Distribution Model
asynch. RFC
or
EDI
Receiver determination
System call FM
( INBOUND_
IDOC_
PROCESS )
On destination
Segment filter
Field value conversion
Application document
posted simultaneously
with IDOCs
Database
09/16/15
Version change
Links
Dispatch
control
Overview of ALE/IDOCs
37
Dispatch control
Application
posting
ALE layer
Need to
create IDOC?
Create master
IDOC
Comm. layer
Customer
Distribution Model
Receiver determination
-
Segment filter
-
09/16/15
Version change
Links
Dispatch
control
Overview of ALE/IDOCs
asynch. RFC
or
EDI RFC
asynch.
Technical comms parameters are
or
defined
EDI or aRFCEDI
(asynch. remote
function call)
Send immediately or cumulate
and send via batch job
If batch, packet size is
determined
38
Scenario analysis
How does the IDOC look like ?
How is data being sent ?
How is the data being received ?
09/16/15
Overview of ALE/IDOCs
39
Program logic
How is the IDOC being created ?
Triggering
How is the IDOC creation kicked off ?
09/16/15
Overview of ALE/IDOCs
40
Program logic
IDOC program
Select data from application tables
Fill data into IDOC
Pass IDOC to ALE layer
(Call function MASTER_IDOC_DISTRIBUTE)
Commit Work
MASTER_IDOC_DISTRIBUTE
Receiver determination
Segment filtering
Version Control
Dispatch Control
09/16/15
Overview of ALE/IDOCs
ALE layer
41
MASTER_IDOC_DISTRIBUTE
Call function MASTER_IDOC_DISTRIBUTE
Exporting
09/16/15
master_idoc_control:
Tables
communication_idoc_control:
returned information
about the distribution
master_idoc_data:
Overview of ALE/IDOCs
42
Z1SEG
Header (55bytes)
. SEGNAM .
Field1
Field2
10
ABC
SDATA (1000bytes)
Field3
Field4
Overview of ALE/IDOCs
43
currency keys
country keys
unit of measure
shipping instructions
09/16/15
Overview of ALE/IDOCs
44
Left-justified Filling
All fields must be left-justified
Character fields:
09/16/15
automatic
Non-character fields:
Overview of ALE/IDOCs
45
Code Conversions
Replacing SAP codes with ISO codes
Currency keys:
currency_code_sap_to_iso
Country keys:
country_code_sap_to_iso
Units of measure:
unit_of_measure_sap_to_iso
Shipping instructions: sap_iso_package_type_code
09/16/15
Overview of ALE/IDOCs
46
09/16/15
Overview of ALE/IDOCs
47
09/16/15
Overview of ALE/IDOCs
48
TCODE:
WE21
09/16/15
Overview of ALE/IDOCs
49
Partner Profiles
TCODE:
WE20
09/16/15
Overview of ALE/IDOCs
50
Partner Profiles-Inbound
09/16/15
Overview of ALE/IDOCs
51
Partner Profiles-Outbound
09/16/15
Overview of ALE/IDOCs
52
NACE
09/16/15
Overview of ALE/IDOCs
53
09/16/15
Overview of ALE/IDOCs
54
09/16/15
Overview of ALE/IDOCs
55
Inbound Processing
09/16/15
Overview of ALE/IDOCs
56
Inbound Processing.
Comm. layer
ALE layer
Application
posting
C
Version change
asynch. RFC
or
EDI
Segment filter
Field value conversion
Input
control
Serialization
A
Process IDOC
Simultaneously update
IDOC's status
Database
09/16/15
Overview of ALE/IDOCs
Post application
document
57
Input Control
Comm. layer
ALE layer
Application
posting
C
Version change
For each message type and sender
one can define
Segment filter
when
asynch.
RFCto process
or(immediate/batch)
whether to call application Field value conversion
EDIdirectly or start customer
workflow
Input
who should get work items in
control
case of error
Incoming IDOC packets are passed to
A
application
Serialization
-
A
Process IDOC
Simultaneously update
IDOC's status
Database
09/16/15
Overview of ALE/IDOCs
Post application
document
58
Application Input
Comm. layer
ALE layer
Application
posting
C
Version change
Segment filter
asynch. RFC
or
EDI
Input
Inbound IDOCs are passed
to
control
the application via a
standardized function
A
Serialization
interface
A
Process IDOC
Simultaneously update
IDOC's status
Database
09/16/15
Overview of ALE/IDOCs
Post application
document
59
Serialization
Comm. layer
ALE layer
Application
posting
C
Version change
-
Segment filter
asynch. RFC
inbound IDOC, the
or
application
can call an ALE Field value conversion
EDI
API (function module) to
check that the IDOC has not
been overtaken
If change No. 1 arrives
after change No. 2, the
IDOC containing it has
been overtaken (by the
IDOC containing the
later change)
09/16/15
Input
control
Serialization
A
Process IDOC
Simultaneously update
IDOC's status
Database
Overview of ALE/IDOCs
Post application
document
60
TCODE:
WE57
09/16/15
Overview of ALE/IDOCs
61
Process Codes
WE41
09/16/15
Overview of ALE/IDOCs
WE42
62
TCODE:
WE64
09/16/15
Overview of ALE/IDOCs
63
TCODE:
BD67
09/16/15
Overview of ALE/IDOCs
64
Version change
Segment filter
Field conversion
Call function
Return Variables
ALE configuration
Partner Profiles
Process Code
Function module attribute
Function module registry
IDOC_INPUT_<MSGTYPE>
Read IDOC data
Post Application data
Send Success info back to ALE layer
If ERROR, trigger
Workflow Task
ALE layer
09/16/15
Overview of ALE/IDOCs
65
Basic Scenario
Direct Method
Call Transaction Method
09/16/15
Overview of ALE/IDOCs
66
Advanced Scenario
Mass processing
Serialization
Advanced Workflow
09/16/15
Overview of ALE/IDOCs
67
Flow Of Program
09/16/15
Overview of ALE/IDOCs
68
Interface of Inbound FM
Importing Parameter
-Input Method
-Mass_processing
EXPORT parameter .
-Workflow_result
-Application_variable
-In_Update_task
-Call_transaction_done
Tables parameter :
IDOC_Control
IDOC_DATA
IDOC_STATUS
Return_variable
09/16/15
Overview of ALE/IDOCs
69
Topics to cover
What is ALE ?
Components of ALE.
Anatomy of an IDoc.
ALE Processing
Transactions For Monitoring and Processing IDocs.
Questions
09/16/15
Overview of ALE/IDOCs
70
Monitoring IDocs
The IDoc interface offers 2 different approaches for tracking of data
load and data flow:
Reports for monitoring
Workflow for notifications
09/16/15
Overview of ALE/IDOCs
71
09/16/15
Overview of ALE/IDOCs
72
09/16/15
Overview of ALE/IDOCs
73
09/16/15
Overview of ALE/IDOCs
74
09/16/15
Overview of ALE/IDOCs
75
Questions
09/16/15
Overview of ALE/IDOCs
76