Professional Documents
Culture Documents
EDI 46 Full
EDI 46 Full
Thomas C. Becker
SAP AG
Document
IDoc
SAP System R/3 SAP System R/3
IDoc IDoc
Transaction
EDI Subsystem Message EDI Subsystem
1 2
X T
EDIFICE
ELFE
A C
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) / 4
IDoc Concept
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
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
access sequence
...
access to condition table
Communication structures
Application
Application filter KOMKyy, KOMPyy
1
n
Procedure
m
n
Message type
m
1
Access sequence
m
n
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
„1“/„2“ „3“/„4“
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
Output Description
Mode
Transfer of single IDoc and start
1 of the EDI subsystem (trigger)
1 Status 4
report IDoc
IDoc Interface
EDI subsystem
2 startrfc 3
startrfc.exe
IDoc
IDoc
IDoc Interface
EDI subsystem
IDoc
IDoc Interface
IDOC_INBOUND_ASYNCHRONOUS
Own_function Own_program
?
SAP AG 1999 IDocEnjoy (Th. Becker) / 27
Port Type „XML“
Business Connector:
R/3 to R/3 and R/3 to non-R/3 internet XML SAP/XML
communication via IDocs, BAPIs and RFCs.
ITS:
Advanced internet enablement of R/3
business transactions.
Internet
XML/HTML via
HTTP(S)
Representation/Validation
Flow (Mapping,Routing)
RFC Coder/Decoder
RFC
tRFC
IDoc BAPI
R/3
SBC XML
CALL HTML
Parameter Internet
Stable and generic Stable and generic
Connector
Target Determination
Unicode Conversion
Administration GUI
Mapping Service
Security Service
Services
HTML Service
tRFC Service
BAPI Service
XML-Service
IDoc Service
...
Service
Service
100
80
60
40
20
Statistic
„RSEIDOCM“
4711 Active Monitoring
4712
4713
List 4718
Display
7 purchase orders
were created and wait
for their transfer to an
EDI subsystem.
5 purchase orders
were transferred to an
EDI subsystem.
4 purchase orders
were confirmed by an
EDI subsystem via
IDoc msg. STATUS.
7 purchase orders
were created and wait
for their transfer to an
EDI subsystem.
5 purchase orders
were transferred to an
EDI subsystem.
4 purchase orders
were confirmed by an
EDI subsystem via
IDoc msg. STATUS.
7 purchase orders
were created and wait
for their transfer to an
EDI subsystem.
5 purchase orders
were transferred to an
EDI subsystem.
4 purchase orders
were confirmed by an
EDI subsystem via
IDoc msg. STATUS.
An EDI administrator
searches for IDocs by
interchange and message
references reported by an
EDI subsystem.
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
Organizational Plan
Possible agents
Task
Partner profile
Permitted agents
Possible agents
General Task
Partner profile
Permitted agents
Possible agents
- Business Layer -
Organizational Plan
Task Selected
business agents
Possible agents
- Technical Layer -
General Administrator
(System profile)
Determination strategy
Partner Representative
(Partner profile w/o message)
All application tasks can be found by the logical message as search term!
A change of status is
triggered by an EDI
subsystem because of
translation error(s).
Application
s s
Report
c e
o
Pr
IDoc Type
s s d
e n
roc b o u
P Segment
In
n d
o u
b
O ut
Segment Segment
Type Name
IDoc Interface
r e
c t u
St ru
a t a
D
SAP AG 1999 IDocEnjoy (Th. Becker) / 68
Definition: IDoc Type
Basis Type
= IDoc Type
Basis Type
+ Extension
= IDoc Type
Segment Name
E2ccccc000
Segment Name
E2ccccc013 Segment Name
/partner/ccccc000
Segment Name
/partner/ccccc013
E1HDDOC E1TLSUM
M 1 C 1
E1HDADR E1ITDOC
C 5 M 1
E1ITSCH
Tree of Segments C 99 C 5
E2HDDOC* E2TLSUM*
M 1 C 1
E2HDADR* E2ITDOC*
C 5 M 1
E2ITSCH*
Tree of Segments C 99 C 5
Segment Segment
Type Name
IDoc Interface
Create project in
„project management, attributes“.
Select the „right“ customer-exit(s) in
„project management, SAP enhancements“.
Implement the selected customer-exit(s) in
„project management, enhancement components“.
Outbound: Read the SAP database and format
data into IDoc format.
Inbound: Write data from the IDoc format to the
database.
Activate project in „project management“.
SAP Application
Message Control
IDoc Interface
Customer-exit 1
Customer-exit x
IDoc Interface
EDI subsystem
EDI subsystem
IDoc Interface
Customer-exit 1
Customer-exit x
SAP Application
Segment Segment
Type Name
IDoc Interface
...
Begin typedef struct z2incodx000 “XML”
… { e.g. DTD
…
End } z2incodx000
Application
IDoc Interface
REQOTE
Customer
QUOTES Vendor
PRICAT
ORDERS/ORDCHG
ORDRSP
TXTRAW
IMPINV DESADV
TXTRAW STPPOD
INVOIC EXPINV
REMADV
Bank
PAYEXT CREADV
DEBADV LOCKBX
FINSTA FINSTA
DESADV
ACCSTA
TRXSTA ACCSTA
GSVERF/SBINV
INVOIC
REMADV
Bank
PAYEXT
DEBADV CREADV
ORDRSP
ORDCHG
ORDRSP
DESADV
INVOIC
REMADV
Bank
PAYEXT
DEBADV CREADV
EDI subsystem
mappings communication
Certified process
Purchase Order, out
Customer order, in
Order confirmation, out
P.O. Acknowledgement, in
Certified functionality
file interface w/ RFC
outbound IDoc
Document
status report
inbound IDoc System R/3 System R/3
IDoc IDoc
Transaction
Subsystem Subsystem
SAP AG 1999 IDocEnjoy (Th. Becker) / 109
Questions ...
Overview in 11 Slides
What is an IDoc ?
Overview in 24 Slides
What is an IDoc ?
Monitoring and
Notification by Workflow
Processing
Monitor
Notification
Monitoring and
Notification by Workflow
Processing
Monitor
Notification
Monitoring and
Notification by Workflow
Processing
Monitor
Notification
Test Utilities
Outbound
Inbound
Status
Definitions
How to Extend ?
Definitions
How to Extend ?
Definitions
How to Extend ?
Message Control
Generals