Você está na página 1de 107

IBM Global Services

Copyright IBM Corporation 2006


Overview of ALE / IDOCs
March, 2006
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 2
Topics to cover Topics to cover

What is ALE?

Co+ponents o A"#%

Anato+y o an I,oc%

A"# Processing

-ransactions $or Monitoring an! Processing I,ocs%

./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%

Data re'#ire" to enable tightly co#ple"!


"istrib#te" applications
4Separate 98, Separate -reas/ry, etc%
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e :
(eat#res )ALE / IDocs (eat#res )ALE / IDocs

,istrib/te! Syste+ yet integrate! ;ith SAP 8'(

Base! on <Application1to1Application integration /sing <Message


Architect/re=

8eliable co++/nication

,ata is e>change! /sing ?I,ocs@

S/pport both 8'2, 8'( an! #>ternal syste+

I net;or2 proble+, +essage is b/ere!

A"# s/pport bac2;ar! co+patibility

A"# ens/re that , !ata is transerre! only once



IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A
ALE *cenario ALE *cenario
Doc#ment
*A+ *ystem ,/- *A+ *ystem ,/-
IDoc
EDI *#bsystem EDI *#bsystem
IDoc
IDoc
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B

Chat is A"# D

Components of ALE$

Anato+y o an I,oc%

A"# Processing

-ransactions $or Monitoring an! Processing I,ocs%

-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

&o"el &aintenance Tool%


Eor conig/ring the lo; o !ata
bet;een syste+s F
*hare" &aster Data0*&D1tools
Eor !istrib/ting +aster !ata F

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

-ransactions $or Monitoring an! Processing I,ocs%

-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

A t;o1!igit stat/s is assigne! to an I,oc to allo; the processing to


be +onitore!%

-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%

Stat/s conir+ation ;hen /sing port type I$ileIJ


-he e>ternal syste+ ;rites the stat/s recor!s in a stat/s ile, ;hich is
rea! by the 8'( Syste+% In this case, the conir+ation al;ays reers to
o/tbo/n! I,ocs%

Stat/s conir+ation /sing I,oc type SKS-A-0)J


-he syste+ sen!ing the conir+ation ;rites the stat/s recor!s as !ata
recor!s o I,oc type SKS-A-0)% All port types an! both !irections can
be entere!%
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 26
I"oc *egments I"oc *egments
-C5,#J
C#()
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 2:
I"oc Types I"oc Types
-C5,#J
C#(0
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 2A
5ow to Attach *egments 5ow to Attach *egments
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 2B
Message -ypes Message -ypes
C#A)
C#A2
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e (0
IDC Type! Message Type! "rocessing #unction Module IDC Type! Message Type! "rocessing #unction Module
6ali! co+bination o Message type an! I,5C type are store! in table
#,IMSG
Co+bination o +essage type an! I,5C type !eter+ine the
processing algorith+% -his is /s/ally a /nction +o!/le an! is set /p in
table #,I$C-%
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%
i$O#tbo#n" +rocessing
ii$Inbo#n" +rocessing

-ransactions $or Monitoring an! Processing I,ocs%

-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

Is anybo"y intereste" in my message type?

Optional. what filter obects are they


intereste" in?
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
-
The application creates the IDOC The application creates the IDOC
-
Technically it is store" as an Technically it is store" as an
internal table internal table
-
+asse" to ALE via an A+I +asse" to ALE via an A+I
0f#nction mo"#le1 0f#nction mo"#le1
Lin7s
C
5an"over IDoc to ALE 5an"over IDoc to ALE
asynch$ ,(C
or
EDI
C
Comm. layer
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e (6
,eceiver "etermination ,eceiver "etermination
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
asynch$ ,(C
or
EDI
Lin7s
C
asynch$ ,(C
or
EDI
C
Comm. layer
-
If the application has no specifie" If the application has no specifie"
recipients recipients

ALE refers to the c#stomer ALE refers to the c#stomer


"istrib#tion mo"el to "etermine "istrib#tion mo"el to "etermine
them them

Data not relevant to receiver Data not relevant to receiver


0accor"ing to mo"el1 is remove" 0accor"ing to mo"el1 is remove"
in ALE layer$ in ALE layer$
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e (:
*egment filter *egment filter
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
asynch$ ,(C
or
EDI
Lin7s
C
asynch$ ,(C
or
EDI
C
Comm. layer
-
The filter is "ata9in"epen"ent The filter is "ata9in"epen"ent
-
IDOC segments that are not IDOC segments that are not
re'#ire" can be remove" re'#ire" can be remove"
-
The filter is message an" receiver9 The filter is message an" receiver9
specific specific
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e (A
(iel" val#e conversion (iel" val#e conversion
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
asynch$ ,(C
or
EDI
Lin7s
C
asynch$ ,(C
or
EDI
C
Comm. layer
-
The contents of in"ivi"#al The contents of in"ivi"#al
fiel"s can be fiel"s can be

translate" to new val#es translate" to new val#es

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"

Application obect containe" Application obect containe"


in IDOC in IDOC

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

If batch! pac7et si/e is If batch! pac7et si/e is


"etermine" "etermine"
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *2
*cenario analysis *cenario analysis
0 5ow "oes the IDOC loo7 li7e ?
0 5ow is "ata being sent ?
0 5ow is the "ata being receive" ?
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *(
O#tbo#n" program "evelopment
0 +rogram logic
4 <5ow is the IDOC being create" ?=
0 Triggering
4 <5ow is the IDOC creation 7ic7e" off ?=
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e **
+rogram logic +rogram logic
0 Select !ata ro+ application tables
0 $ill !ata into I,5C
0 Pass I,5C to A"# layer
ECall /nction MAS-#8LI,5CL,IS-8IBM-#F
0 Co++it Cor2
0 8eceiver !eter+ination
0 Seg+ent iltering
0 6ersion Control
0 ,ispatch Control
IDOC program
ALE layer
MAS-#8LI,5CL,IS-8IBM-#
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *&
MASTER_IDOC_DISTRIBUTE MASTER_IDOC_DISTRIBUTE
Call f#nction >&A*TE,?IDOC?DI*T,I@ATEB

#>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

Design G#i"elines for creating IDOC "ata recor"s.


0 Left9#stifie" filing of IDOC (iel"s
0
,eplacing *A+ co"es with I*O co"es
c#rrency 7eys
co#ntry 7eys
#nit of meas#re
shipping instr#ctions
0
Converting C#rrency Amo#nts
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e *A
Left9#stifie" (illing Left9#stifie" (illing

All fiel"s m#st be left9#stifie"

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

,eplacing *A+ co"es with I*O co"es


4
C#rrency 7eys. >c#rrency?co"e?sap?to?isoB
4
Co#ntry 7eys. >co#ntry?co"e?sap?to?isoB
4
Anits of meas#re. >#nit?of?meas#re?sap?to?isoB
4 *hipping instr#ctions. sap?iso?pac7age?type?co"eB
0
Conversion of c#rrency amo#nts
4 >c#rrency?amo#nt?sap?to?isoB
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &0
@asic Config#ration Elements @asic Config#ration Elements

Create an! allocate "ogical Syste+

,eine 8anges EI!ocs, Ports, etc F

,eine 8$C ,estinations

,eine Ports

Maintain C/sto+er Mo!el

Create Partner Proiles


IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &)
"ogical Syste+ "ogical Syste+
-C5,#J
B,&*P Store! in
table -000
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &2
Allocate Logical *ystem to the client Allocate Logical *ystem to the client
SALE > BASIC SETTINGS > SET UP
LOGICAL SYSTEM > ASSIGN LOGICAL
SYSTEM TO THE CLIENT
-C5,#J
SCC*
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &(
2#mber ,anges 2#mber ,anges

Maintain n/+ber ranges or ports

Maintain n/+ber ranges or I,ocs

Maintain n/+ber ranges or I,oc types an! seg+ent version

Maintain n/+ber range or change pointers


IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &*
&aintaining ,(C Destinations &aintaining ,(C Destinations
-C5,#J
SM&B
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &&
,isplaying an! Maintaining Ports ,isplaying an! Maintaining Ports

A port is a logical representation o a A port is a logical representation o a
co++/nication channel in SAP ;ith co++/nication channel in SAP ;ith
the !ata co++/nicate! being I,ocs the !ata co++/nicate! being I,ocs%


-C5,#J
C#2)
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &6
Partner Proiles Partner Proiles
-C5,#J
C#20
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &:
Partner Proiles15/tbo/n! Partner Proiles15/tbo/n!
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &A
Partner Proiles1Inbo/n! Partner Proiles1Inbo/n!
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e &B
,istrib/tion Mo!el ,istrib/tion Mo!el

-C5,#J
B,6*
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 60
Transfer of data Transfer of data
-ranser +aster !ata or +aterial, c/sto+er, ven!or to !ierent client
or syste+ ;ith BA"#
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 6)
$ilter 5bQects $ilter 5bQects
B,B&
B,&B
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 62
*en"ing &aster Data I"ocs *en"ing &aster Data I"ocs
5nly sen!
obQects that have
change! D
Change
Pointer
availableD
Master
!ata D
Stan!alone ;ith
c/sto+ logic to 2eep
trac2 o changes
Change Pointer
base! Progra+
y
O
K
Stan!alone progra+
;ith /ser1!einable
selection criteria
O
K
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 6(
*en"ing Transactional Data I"ocs *en"ing Transactional Data I"ocs
#ns/re trans1
actional
IntegrityD
5/tp/t
,eter+inat
ion
available D
-ransaction
,ata D
har! co!e! A"#
layer
Mo!iication
5/tp/t !eter+ination
base! Progra+
y
O
K
O
K
Mser1#>it
availableD
O
9ar!co!e! A"# layer
no Mo!iication
K
See Master !ata
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 6*
Change +ointers Change +ointers
Application Posting
0
Post Application !oc/+ent
0 Create Change ,oc/+ent
0 Are changes A"# relevant D
0Crite Change Pointers
0 Co++it Cor2
ALE configuration
0 A"# relevant $iel!s
Batc Program
!"BD#IDOC$
IDOC &o"#le
0&asteri"oc?Create?
*&D?H&*GTI+EJ1
0 8ea! Change Pointers
0 $ill I,5C
0 Call A"# layer
0 Mp!ate Change Pointer
&aster "ata
Change pointers
ALE layer
#aster%IDOC%DIS&"IB'&E
0 ,eter+ine I,5C +o!/le
0 Call I,5C +o!/le
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 6&

Change Pointers Change Pointers


B,6)
B,&0
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 66

Change PointersN Contin/e! Change PointersN Contin/e!


B,&2
B,60
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e 6:
IDOC mo"#le IDOC mo"#le

IDOC mo"#le has to be implemente" as f#nction mo"#le

2aming Convention. &A*TE,IDOC?C,EATE?*&D?HmsgtypeJ

(#nction mo"#le rea"s change pointers information to get "ata that


nee"s to go into IDOC

(#nction mo"#le logic.

,ea" change pointers

(ill IDOC str#ct#re

Call ALE layer

Ap"ate Change +ointer stat#s

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

when to process when to process


0imme"iate/batch1 0imme"iate/batch1

whether to call application whether to call application


"irectly or start c#stomer "irectly or start c#stomer
wor7flow wor7flow

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

If change 2o$ 3 arrives If change 2o$ 3 arrives


after change 2o$ 4! the after change 2o$ 4! the
IDOC containing it has IDOC containing it has
been overta7en 0by the been overta7en 0by the
IDOC containing the IDOC containing the
later change1 later change1
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A(
$M Assign+ent to Message -ype an! I,oc type $M Assign+ent to Message -ype an! I,oc type
-C5,#J
C#&:
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A*
Process Co!es Process Co!es
C#*)
C#*2
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A&
Process Co!es in Inbo/n! an! 5/tbo/n! Process Co!es in Inbo/n! an! 5/tbo/n!
-C5,#J
C#6*
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A6
$M $or Inbo/n! #,I $M $or Inbo/n! #,I
-C5,#J
B,6:
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e A:
Inbo#n" +rogram Development Inbo#n" +rogram Development
IOB5MO,LI,5CLP85C#SS
I,5C
ALE layer
I,5CLIOPM-LRMSG-KP#S
0 8ea! I,5C !ata
0 Post Application !ata
0 Sen! S/ccess ino bac2 to A"# layer
A"# conig/ration
0 Partner Proiles
0 Process Co!e
0 $/nction +o!/le attrib/te
0 $/nction +o!/le registry
Cor2lo; -as2
Call /nction
8et/rn 6ariables
I #8858, trigger
0 6ersion change
0 Seg+ent ilter
0 $iel! conversion
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e AA
ALE error han"ling ALE error han"ling
Aser action
,/- action
E%ec#te Wor7item
(i% error an" reprocess IDoc
or
(lag IDoc for "eletion
Error in inbo#n" f#nction mo"#le
ALE triggers error event
Wor7item appears in #ser:s Inbo%
Display IDoc for #ser processing
0IDoc metho" ;Inp#t(oregro#n";1
ALE triggers en" event
Wor7item complete"
inp/t #rror 5cc/rre!
inp/t $inishe!
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e AB
ALE error han"ling ALE error han"ling

2ecessary *teps.

Create new obect type in @#siness Obect ,epository for IDOCK


obect is chil" of IDOCA++L

Create new c#stomer tas7

Create event9co#plings lin7ing


Event >inp#tErrorOcc#re"B lin7e" to stan"ar" tas7
Event >inp#t(inishe"B to f#nction mo"#le

To s#pport mass processing.


Create new obect type as chil" of IDOC+ACLET

&aintain process co"e to refer the above obects an" events


IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B0
A"vance" Inbo#n" Topics A"vance" Inbo#n" Topics
0 Data consistency
0
*eriali/ation
0
In"ivi"#al vs$ mass processing
0
Call transaction f#nction mo"#les
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B)
Data Consistency Data Consistency
0
+roblem.
4
Ens#re transactional integrity
0
DonBt process an" IDOC twice
0
Allow for IDOC reprocessing after rollbac7 of
application "oc#ment posting
0 *ol#tion.
4 Application "oc#ment m#st be poste" in the same
LAW as the IDOC stat#s recor"s
4 IDOC f#nction mo"#le m#st not #se a >Commit Wor7B
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B2
Data Consistency Data Consistency
ALE Layer
Application
f#nction mo"#le
,ea" IDoc0s1
Commit Wor7
Anloc7 IDoc0s1 an"
application obects
Loc7 IDoc0s1
Write IDoc0s1 stat#s
Write lin7s
Optional.
Write seriali/ation "ata
Trigger event0s1
Loc7 application obects
Optional. *eriali/ation chec7
+rocess IDoc "ata
Write application "ata to D@
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B(
*eriali/ation *eriali/ation
,eceiver
3
4
3
4
5bQect T,
change! t;iceJ
$irst I,5C
overta2en
Comm$ Layer *en"er
M?

M?

Inp/t ro+ I,5C )
+/st be prevente!
in or!er not to lose
inor+ation ro+
I,5C 2
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B*
*eriali/ation *eriali/ation

Chec7! if IDOC has been overta7en

Ase f#nction mo"#le >IDOC?*E,IALIFATIO2?C5ECLB

react to overta7en IDOCs accor"ing to yo#r nee"s

+rere'#isite is the "efinition of a seriali/ation


obect
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B&
&ass +rocessing &ass +rocessing

+rocessing more than one IDOC can improve


thro#ghp#t.

more than one IDOC is processe" per Commit Wor7

the f#nction can be co"e" to a"" m#ltiple entries to a table


with one #p"ate comman" 0>array insertB1

(#nction mo"#le has to be co"e" in a way that it


s#pports mass processing

Attrib#te of "elivere" f#nction mo"#le specifies if


mass processing is s#pporte" or not
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B6
Call Transaction Call Transaction

+ros.

Error reprocessing in foregro#n"

Easy to program

Cons.

Call Transaction has significant performance overhea"

A#tomatic Commit wor7! no "ata consistency

,ecommen"ation.

Try to #se f#nction mo"#les that #p"ate "atabase "irectly

If yo# want to #se >Call transactionB! they have been >ALE9


enable"B to g#arantee "ata concistency
IBM Global Services
Copyright IBM Corporation 2006 ABAP | Coni!ential | A"# $or ABAPers %ppt | 0&'0(')* Sli!e B:
Topics to cover Topics to cover

Chat is A"# D

Co+ponents o A"#%

Anato+y o an I,oc%

A"# Processing

-ransactions $or Monitoring an! Processing I,ocs%

./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:

Você também pode gostar