Overview
R/3 Release
Name
Course Objectives
After completing this course, you will be able to:
Understand the concept of distributed and it’s pros & cons
SAP Interface technologies and scenarios
IDOC and it’s structure
Detailed overview on ALE/EDI concepts and technology
Perform simple master data distribution using ALE scenario
Agenda
2
SAP AG 1999 IDocEnjoy (Th. Becker) / 5
Distributed Applications
Technical bottlenecks
Too much time required for a group-wide implementation of R/3
central systems
Influences on the market
Company units become independent
Optimization of cross-company business processes
Integrated information exchange across system frontiers
Profiting from a high degree of freedom in a homogeneous
system environment
Comprehensible step by step implementation of complex SAP
R/3 projects
3
SAP AG 1999 IDocEnjoy (Th. Becker) / 6
Distributed Applications
What is Distributed?
Master Data
Control/Customizing Data
Transaction Data
Statistical Data (Infosystem)
Master Data
Control Data
(Customizing)
9
SAP AG 1999 IDocEnjoy (Th. Becker) / 7
Electronic Commerce
Document
IDoc
SAP System R/3 SAP System R/3
IDoc IDoc
Transaction
EDI Subsystem Message EDI Subsystem
12
X T
EDIFICE
ELFE
AC
IF
HL7 E D CEFIC
PHOENIX
ARUA
GALIA EANCOM
ODETTE GENCOD
VDA TRADACOMS
UCS II, WINS
SEDAS
BAI, BAI2
ATA SPEC2000 MultiCash
AECMA SPEC2000M S.W.I.F.T.
HBCI
SAP AG 1999 IDocEnjoy (Th. Becker) / 9
IDOC
IDoc is the SAP standard interface to link application systems via messaging.
Whereas one system is asumed to be SAP system R/3, the other system
could be
EDI subsystem,
system R/3,
system R/2 or
any third-party application software.
Asynchronous
Document-related
System 1 System 2
SAP Document
Document
IDoc Transaction
Message
Control Record
Data Records
E1HDDOC E1TLSUM
M 1 C 1
E1HDADR E1ITDOC
C 5 M 1
E1ITSCH
Tree of Segments C 99 C 5
Status Records
MM
Application SD
Application
...
SAP Application
Document
IDoc
4
SAP AG 1999 IDocEnjoy (Th. Becker) / 23
ALE Objectives
5
SAP AG 1999 IDocEnjoy (Th. Becker) / 24
ALE Technique
6
SAP AG 1999 IDocEnjoy (Th. Becker) / 25
Messaging with ALE
BLAORD-
BLAOCH
HEAD QUARTERS
BLAREL •Financials
EKSEKS •Central purchasing
•Purchasing Info. system
FIDCMT
FIROLL
7
SAP AG 1999 IDocEnjoy (Th. Becker) / 26
Communication between Applications
8
SAP AG 1999 IDocEnjoy (Th. Becker) / 27
The Distribution Model
The model tells the applications which messages are to be sent to which
partner systems.
SAP supplies a distribution reference model, the documents that may be
distributed
From the reference model the customer distribution model is derived. This
model defines what will be distributed
The customer distribution model is created in one R/3 system and distributed
from there to the other systems
The model directly controls distribution
10
SAP AG 1999 IDocEnjoy (Th. Becker) / 28
Distribution Reference Model
Filter
Object type Material
Material Div
Div BusArea
BusArea Plant
Plant
Application Inventory
Inventory Inventory
Inventory
type
Controlling
Controlling Management
Management
Function analyse
type change stock
stock change
Message
type INVCON
INVCON
11
SAP AG 1999 IDocEnjoy (Th. Becker) / 29
Customer Distribution Model
Inventory
Inventory Inventory
Inventory
Control
Control Control
Control
01 1000
Div
Div BusArea
BusArea
KU OR
INVCON INVCON CH
INVCON
Inventory
Inventory Inventory
Inventory Inventory
Inventory
Management
Management Management
Management Management
Management
12
SAP AG 1999 IDocEnjoy (Th. Becker) / 30
Scenarios supported by ALE
16
SAP AG 1999 IDocEnjoy (Th. Becker) / 31
ALE Features Summary
37
SAP AG 1999 IDocEnjoy (Th. Becker) / 32
Message Handling: Output processing: direct
Need to Customer
create IDOC? Distribution Model
asynch. RFC
Create master or
M Receiver determination
IDOC EDI
Segment filter
Input
control A
A Serialization Process IDOC
Simultaneously update
IDOC's status
Post application
Database document
4711 9876
IDOC C IDOC
1234 5678
Plant1
Link to CRS Link to Plant1 IDOC: Link to Plant1
1234
appl. doc. 9876 appl. doc. 4711 appl. doc. 4711
Application data
SAP Applications
communication message
structures default
pass suggest
condition
element evaluate output relation
condition determination
tables write
Message table
Control TNAPR
call
formatting program
Check NAST-Reord R
S
Read Partner Profile
N
A
Call Selection Module
S
(application) T
E
Call ALE Service D
Transfer according
to output mode
42
01 37 39 24 04
29
06 05
26
08 07
25
10 09
30
40 41 12 11
03 02
22
18 20
14 15
16 17
31
IDoc
IDoc +
Process
Document
SAP Application
74
50 56
65
Notifications
60 from the
61 EDI subsystem
prior to
64 IDoc creation,
can be received via
66
message TXTRAW.
62 63
52 51
53 68
SAP Application
Process Partner
Port
Code Profile
System 2
e.g. EDI subsystem
General
Partner
Recipient of notifications
Outbound Inbound
Partner Partner
Logical message Logical message
Port Process code
IDoc type Recipient of notifications
EDI structure
NAST-Key
Recipient of notifications
Partner
Message
Process code
Logical message
SAP Application
File
tRFC CPI-C MIME ABAP XML
+ RFC
EDI ALE EC
R/2 Internet Any
Any Any Any
2.1 on 3.1 on 4.5 on 4.6 on
3.0 on 3.0 on
IDoc Interface
Write RFC 4 3
1 2 Read RFC
rfcexec startrfc
IDoc file
IDoc file in.script
Status report
out.script status.script
Read Call 1 2
4 3 Write Call
EDI subsystem
IDoc Interface
IDOC_INBOUND_ASYNCHRONOUS
Own_function Own_program
?
SAP AG 1999 IDocEnjoy (Th. Becker) / 46
Port Type „XML“
SAP application
Document
Message w/
EDIN NAST record
Message Control
EDIM Message
NAST
Record
IDoc w/
EDIX syntax error
IDoc Interface
EDIO IDoc
IDoc
EDIP IDoc batch
Message for
EDI subsystem EDIL Status report
EDIS
Status report
EDIR
Customer
IDoc
EDIM Message
IDoc w/
EDIY syntax error
IDoc
IDoc w/o
SAP application Application application document
All application tasks can be found by the logical message as search term!
Outbound !?
!?
M C
asynch. RFC
or
EDI
Error-processing
Workflow
Inbound !?
!?
A C
Errors are processed locally within the system in that the error occurred
Standard tasks exist for all ALE errors
If an error occurs, an event triggers the standard task which starts the error
processing workflow
The responsible people obtain a workitem in their inbox
The standard tasks supplied by SAP have got the default name '<message type>_error'.
Org. unit
Responsible
Responsible
Partner profile
Transaction: OOOE