Escolar Documentos
Profissional Documentos
Cultura Documentos
What is ALE?
Co+ponents o A"#%
Anato+y o an I,oc%
A"# Processing
./estions
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e (
ALE Terminology ALE Terminology
0A"# 1 Application "in2ing 3 #nabling
0I,oc 1 Inter+e!iate ,oc/+ent
0#,I 1 #lectronic ,ata Interchange
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *
ALE Obective ALE Obective
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &
ALE!! What is it ??
It is a set of It is a set of
Tools!
programs an"
"ata "efinitions
that provi"es the mechanism for that provi"es the mechanism for
"istrib#ting f#nctionality an" "ata across "istrib#ting f#nctionality an" "ata across
m#ltiple system$ m#ltiple system$
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 6
What Data can be E%change" ? What Data can be E%change" ?
Transaction Data
4S,, MM, $I, C5, etc%
&aster Data
4Material, C/sto+er, 6en!or, etc%
Control Data
45rgani7ational 8eerence Inor+ation
0Plants, Sales 5rgs, etc%
8eliable co++/nication
Chat is A"# D
Components of ALE$
Anato+y o an I,oc%
A"# Processing
-ro/ble Shooting
./estions
Topics to cover Topics to cover
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )0
Components of ALE Components of ALE
*ervices. *ervices.
Application *ervices Application *ervices
Distrib#tion *ervices Distrib#tion *ervices
Comm#nication *ervices Comm#nication *ervices
Tools. Tools.
C#stomi/ing Tools C#stomi/ing Tools
Development Tools Development Tools
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e ))
Application Services Application Services
*ervices. *ervices.
Application *ervices Application *ervices
Distrib#tion *ervices Distrib#tion *ervices
Comm#nication *ervices Comm#nication *ervices
Tools. Tools.
C#stomi/ing Tools C#stomi/ing Tools
Development Tools Development Tools
-his is ;here the SAP
applications E S,, $I,
MM etc% F generate
their !ata an!
!oc/+ents
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )2
Distribution Services Distribution Services
*ervices. *ervices.
Application *ervices Application *ervices
Distrib#tion *ervices Distrib#tion *ervices
Comm#nication *ervices Comm#nication *ervices
Tools. Tools.
C#stomi/ing Tools C#stomi/ing Tools
Development Tools Development Tools
8ecipients
$or+ats an!
$ilters the !ata
Creates I,ocs
E Inter+e!iate
,oc/+ents
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )(
Communication Services Communication Services
*ervices. *ervices.
Application *ervices Application *ervices
Distrib#tion *ervices Distrib#tion *ervices
Comm#nication *ervices Comm#nication *ervices
Tools. Tools.
C#stomi/ing Tools C#stomi/ing Tools
Development Tools Development Tools
0
-CP'IP
0
8$C
0
t8$C
0
etc
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )*
Development Tools Development Tools
*ervices. *ervices.
Application *ervices Application *ervices
Distrib#tion *ervices Distrib#tion *ervices
Comm#nication *ervices Comm#nication *ervices
Tools. Tools.
C#stomi/ing Tools C#stomi/ing Tools
Development Tools Development Tools
C#stomi/ation parameters
E;ithin SAP or I,oc iltering an!
conversion% F
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )&
Customizing Tools Customizing Tools
*ervices. *ervices.
Application *ervices Application *ervices
Distrib#tion *ervices Distrib#tion *ervices
Comm#nication *ervices Comm#nication *ervices
Tools. Tools.
C#stomi/ing Tools C#stomi/ing Tools
Development Tools Development Tools
-ools or creating
an! +o!iying
I,ocs
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )6
Application
Data
&aster
IDOC
Determine
,eceipients
Determine
,eceipients
(ilter/Convert
Data! Create IDOC
(ilter/Convert
Data! Create IDOC
Comm$
IDOC
Application
(#nctions
Application
(#nctions
(ilter/Convert
Data
(ilter/Convert
Data
Comm$
IDOC
Carrier
Carrier
Application
Layer
Distribution/ ALE
Layer
Communication
Layer
Application
Application
In a 2#t *hell In a 2#t *hell
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e ):
Topics to cover Topics to cover
Chat is A"# D
Co+ponents o A"#%
Anato+y o an I,oc%
A"# Processing
-ro/ble Shooting
./estions
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )A
IDoc Concept IDoc Concept
,/- *ystem
*ystem 3
*A+
Doc#ment
EDI s#bsystem
,/- *ystem
,/4 *ystem
-r" party software
*ystem 4
IDoc
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )B
IDoc *tr#ct#re IDoc *tr#ct#re
*tat#s ,ecor"
I,oc1I,
Stat/s inor+ation
Data ,ecor"
I,oc1I,
SeG/ence'9ierarchy
Seg+ent $or+at !einition or
0 hea!er !ata
0 ite+ !ata
Control ,ecor"
I,oc1I,
Sen!er1I,
8eceiver1I,
I,oc type an! logical +essage
#>ternal str/ct/re
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 20
Control record
Data Record
Status Record
IDOC
Intermediate
Document
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 2)
The very first record of an IDoc package is always
a control record. The
structure of this control record of the structure
EDIDC and describes the contents of the data
contained in the package. The control record goes to
table EDIDC
Control Record Control Record
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 22
Message Type Message Type
Message -ype in!icates 9o; to Hno; ;hat the !ata Means
,ata #>change! by I,5C an! #,I is 2no;n as Messages
Message o sa+e 2in! belong to the sa+e +essage type
Message types are store! in table #,MSG
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 2(
All records in the IDoc, which come after the
control record, are the IDoc data. They are all
structured alike, with a segment information part
and a data part, which is !!! character in
length, filling the rest of the line. Data "
#egment info is stored in EDID$ for release $.%
and EDID& for release '.% and &.%.
Data Record Data Record
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 2*
Status Record Status Record
Information about the IDoc status like:
IDoc identification number
Status number - table verified
IDoc tye
Direction
Data and time stam! Structure:
EDIDS
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 2&
Status of IDC Status of IDC
-he stat/ses or o/tbo/n! I,ocs are bet;een I0)I an! I*BI, ;hile the
stat/ses or inbo/n! I,ocs begin ;ith I&0I%
Chat is A"# D
Co+ponents o A"#%
Anato+y o an I,oc%
A"# Processing%
i$O#tbo#n" +rocessing
ii$Inbo#n" +rocessing
-ro/ble Shooting
./estions
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e (2
O#tbo#n" +rocessing
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e ((
O#tbo#n" processing. "irect O#tbo#n" processing. "irect
Application
posting
2ee" to
create IDOC?
Create master
IDOC
C#stomer
Distrib#tion &o"el
,eceiver "etermination
*egment filter
(iel" val#e conversion
6ersion change
ALE layer
Dispatch
control
Database
&
Application !oc/+ent
poste! si+/ltaneo/sly
;ith I,5Cs
Comm. layer
asynch$ ,(C
or
EDI
C Lin7s
C
Comm. layer
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e (*
Application
posting
2ee" to
create IDOC?
Create master
IDOC
C#stomer
Distrib#tion &o"el
,eceiver "etermination
*egment filter
(iel" val#e conversion
6ersion change
ALE layer
Dispatch
control
Database
&
Application !oc/+ent
poste! si+/ltaneo/sly
;ith I,ocs
Comm. layer
asynch$ ,(C
or
EDI
Lin7s
C
8#erying the &o"el 8#erying the &o"el
asynch$ ,(C
or
EDI
Comm. layer
C
-
ALE s#pplies A+Is 0f#nction mo"#les1 to
allow applications to '#ery the mo"el
s#ppresse" s#ppresse"
-
The filter is message an" The filter is message an"
receiver9specific receiver9specific
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e (B
6ersion change 6ersion change
Application
posting
2ee" to
create IDOC?
Create master
IDOC
C#stomer
Distrib#tion &o"el
,eceiver "etermination
*egment filter
(iel" val#e conversion
6ersion change
ALE layer
Dispatch
control
Database
&
Application !oc/+ent
poste! si+/ltaneo/sly
;ith I,ocs
Comm. layer
asynch$ ,(C
or
EDI
Lin7s
C
asynch$ ,(C
or
EDI
C
Comm. layer
-
IDOCs can be change" to ol"er IDOCs can be change" to ol"er
versions versions
-
*ystems with "ifferent release *ystems with "ifferent release
levels can comm#nicate levels can comm#nicate
witho#t a""itional application witho#t a""itional application
logic logic
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *0
&a7e Lin7s &a7e Lin7s
Application
posting
2ee" to
create IDOC?
Create master
IDOC
C#stomer
Distrib#tion &o"el
,eceiver "etermination
*egment filter
(iel" val#e conversion
6ersion change
ALE layer
Dispatch
control
Database
&
Application !oc/+ent
poste! si+/ltaneo/sly
;ith I,ocs
C
C
Lin7s
asynch$ ,(C
or
EDI
C
Comm. layer
-
Lin7s are written between IDOC Lin7s are written between IDOC
an" an"
Comm#nication9Layer:s Comm#nication9Layer:s
;Transaction9ID; ;Transaction9ID;
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *)
Dispatch control Dispatch control
Application
posting
2ee" to
create IDOC?
Create master
IDOC
C#stomer
Distrib#tion &o"el
,eceiver "etermination
*egment filter
(iel" val#e conversion
6ersion change
ALE layer
Dispatch
control
Database
&
Application !oc/+ent
poste! si+/ltaneo/sly
;ith I,ocs
C
asynch$ ,(C
or
EDI
Lin7s
C
asynch$ ,(C
or
EDI
C
Comm. layer
-
Technical comms parameters are Technical comms parameters are
"efine" "efine"
-
EDI or a,(C 0asynch$ remote EDI or a,(C 0asynch$ remote
f#nction call1 f#nction call1
-
*en" imme"iately or c#m#late *en" imme"iately or c#m#late
an" sen" via batch ob an" sen" via batch ob
#>porting
+asterLi!ocLcontrolJ I,5C control recor!
-ables
co++/nicationLi!ocLcontrolJ ret/rne! inor+ation
abo/t the !istrib/tion
+asterLi!ocL!ataJ I,5C !ata seg+ents
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *6
(illing an EDIDD str#ct#re (illing an EDIDD str#ct#re
5ea"er 0CCbytes1 *DATA 03DDDbytes1
N% S#GOAM N%
EDIDD
Z1SEG
(iel"3 (iel"4 (iel"- (iel"E
?)0@ ?ABC@
&O6E <F3*EG= to EDIDD9*EG2A&
&O6E <3D= to F3*EG9(IELD3
&O6E <A@C= to F3*EG9(IELD4
&O6E F3*EG to EDIDD9*DATA
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *:
General +rogramming r#les General +rogramming r#les
Character fiel"s.
a#tomatic
2on9character fiel"s.
>Con"enseB statement m#st be #se"
Chec7 IDOC "oc#mentation to fin" o#t which fiel"s
re'#ire a >con"enseB
All types #ne'#al to >charB! >c#7yB! >clntB! >accpB! >n#mcB!
>"atsB! >timsB or >#nitB re'#ire a con"ense
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *B
Co"e Conversions Co"e Conversions
,eine Ports
Commit Wor7
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 6A
ALE Config#ration (or Change +ointers ALE Config#ration (or Change +ointers
0
Define change pointer creation
0
Define which change "oc#ment fiel"s are to be logge"
0
Change pointer activation
0
Activate generally
0
Activate per message type
0
<+#blish= new f#nction mo"#le
0 Lin7 message type to f#nction mo"#le
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 6B
ALE (or Transactional "ata 9999 O#tp#t Determination ALE (or Transactional "ata 9999 O#tp#t Determination
OAC#
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :0
O#tp#t Determination 99 Access *e'#ence O#tp#t Determination 99 Access *e'#ence
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :)
O#tp#t Determination 99 O#tp#t Types O#tp#t Determination 99 O#tp#t Types
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :2
O#tp#t Types 99 Details O#tp#t Types 99 Details
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :(
O#tp#t Types 99 +artner (#nctions O#tp#t Types 99 +artner (#nctions
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :*
O#tp#t Types 99 +rocessing ,o#tines O#tp#t Types 99 +rocessing ,o#tines
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :&
O#tp#t Types 99 +roce"#res O#tp#t Types 99 +roce"#res
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :6
O#tp#t Types 99 +roce"#res Control O#tp#t Types 99 +roce"#res Control
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e ::
O#tp#t Types 99 Con"ition recor"s O#tp#t Types 99 Con"ition recor"s
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :A
Inbo#n" +rocessing
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :B
Inbo#n" +rocessing$ Inbo#n" +rocessing$
Application
posting
(iel" val#e conversion
ALE layer
Inp#t
control
Database
A
Si+/ltaneo/sly /p!ate
I,5CIs stat/s
Comm. layer
asynch$ ,(C
or
EDI
6ersion change
*egment filter
C
A
+ost application
"oc#ment
+rocess IDOC *eriali/ation
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A0
Inp#t Control Inp#t Control
Application
posting
(iel" val#e conversion
ALE layer
Inp#t
control
Database
A
Si+/ltaneo/sly /p!ate
I,5CIs stat/s
Comm. layer
asynch$ ,(C
or
EDI
6ersion change
*egment filter
C
A
+ost application
"oc#ment
+rocess IDOC *eriali/ation
-
(or each message type an" sen"er (or each message type an" sen"er
one can "efine one can "efine
who sho#l" get wor7 items in who sho#l" get wor7 items in
case of error case of error
-
Incoming IDOC pac7ets are passe" to Incoming IDOC pac7ets are passe" to
application application
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A)
Application Inp#t Application Inp#t
Application
posting
(iel" val#e conversion
ALE layer
Inp#t
control
Database
A
Si+/ltaneo/sly /p!ate
I,5CIs stat/s
Comm. layer
asynch$ ,(C
or
EDI
6ersion change
*egment filter
C
A
+ost application
"oc#ment
+rocess IDOC *eriali/ation
-
Inbo#n" IDOCs are passe" to Inbo#n" IDOCs are passe" to
the application via a the application via a
stan"ar"i/e" f#nction stan"ar"i/e" f#nction
interface interface
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A2
*eriali/ation *eriali/ation
Application
posting
(iel" val#e conversion
ALE layer
Inp#t
control
Database
A
Si+/ltaneo/sly /p!ate
I,5CIs stat/s
Comm. layer
asynch$ ,(C
or
EDI
6ersion change
*egment filter
C
A
+ost application
"oc#ment
+rocess IDOC *eriali/ation
-
When processing the When processing the
inbo#n" IDOC! the inbo#n" IDOC! the
application can call an ALE application can call an ALE
A+I 0f#nction mo"#le1 to A+I 0f#nction mo"#le1 to
chec7 that the IDOC has not chec7 that the IDOC has not
been overta7en been overta7en
2ecessary *teps.
+ros.
Easy to program
Cons.
,ecommen"ation.
Chat is A"# D
Co+ponents o A"#%
Anato+y o an I,oc%
A"# Processing
./estions
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e BA
&onitoring IDocs &onitoring IDocs
0 -he I,oc interace oers 2 !ierent approaches or trac2ing o !ata
loa! an! !ata lo;J
8eports or +onitoring
Cor2lo; or notiications
0 Both approaches are base! on the concept o stat/s transitions, i%e%
an I,oc changes its stat/s ro+ a given val/e to another val/e%
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e BB
List Of All IDocs Create"$ 0Defa#lt! A""itional! EDI199 WED4/ WEDC List Of All IDocs Create"$ 0Defa#lt! A""itional! EDI199 WED4/ WEDC
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )00
*election +rogram (or Iss#ing O#tp#t 99 WE3C *election +rogram (or Iss#ing O#tp#t 99 WE3C
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )0)
+rocess All *electe" IDocs$ WE3E +rocess All *electe" IDocs$ WE3E
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )02
Test Tool (or I"oc +rocessing 0WE3N1 Test Tool (or I"oc +rocessing 0WE3N1
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )0(
*elect IDocs @DOP *elect IDocs @DOP
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )0*
I"oc *earch (or @#siness Contents 0Database1$ WEDN I"oc *earch (or @#siness Contents 0Database1$ WEDN
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )0&
*tat#s Conversion With Trfc E%ec#tion$ @DPC *tat#s Conversion With Trfc E%ec#tion$ @DPC
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )06
8#estions 8#estions
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e )0: