Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Overview
ALE and EDI
Components used in ALE/EDI.
Differences between ALE and EDI
Inbound process
Outbound process
Master Data Distribution
Transactions
Periodic Processing
Idoc Archiving
16-May-08
16-May-08
Data communication between SAP and Non SAP systems, vice versa.
EDI is about doing business and carrying out transactions with your trading partners
electronically.
EDI documents such as an invoice, purchase order are industry based.
Most Commonly Used Standards
ANSI X12- American National Standards Institute (North America, Australia)
EDIFACT - Electronic Data Interchange for Administration, Commerce, and
Transport (Europe).
EDI provides connectivity with business partners such as bank, customer and vendors
16-May-08
ANSI Sample
ISA*00*0000000000*00*0000000000*08*6111470100 *01*002521359
*071008*2211*U*00401*000013021*0*P*>~
GS*PO*6111470100*002521359*20071008*2211*4319*X*004010~
ST*850*286614458~
BEG*00*SA*0056-9304975-0551**20071008*D~
REF*IA*3787061*PHILIPS CONSUMER ELECTRON~
REF*DP*056~
FOB*DF*DE*STORE~
CSH*N~
ITD*01*2*****30~
DTM*037*20071014~
DTM*038*20071015~
TD5*B*92*PREPAID AMERICAN FRT~
N1*BY*TARGET DC
0551*92*0551~
N3*7120 HWY 65 N. E.~
N4*FRIDLEY*MN*55432*US~
PO1*1*16*EA*187*WE*CB*056010231*VA*SHS3201/37*UP*609585143449~
CTP*RS*RES*279.99********1~
PID*F*08***10.2"PHILIPS~
PO4*6*************1~
CTT*1*16~
SE*19*286614458~
GE*1*4319~
IEA*1*000013021~
16-May-08
EDIFACT - Sample
UNB+UNOA:2+3012901500000:14+3025610000100:14+070528:0818+308191131633++INVOIC
UNH+1+INVOIC:D:96A:UN:EAN008
BGM+380+6185912994+9
DTM+171:20070529:102
NAD+BY+3025610071001::9++FNAC SA
C/O FNAC LOGISTIQUE+2 A 3 RUE DES CHAMPARTS+MASSY CEDEX++91742+FR
RFF+GN:775661390
NAD+IV+3025610081000::9++FNAC SA
C/O FNAC LOGISTIQUE+2 A 3 RUE DES CHAMPARTS+MASSY CEDEX++91742+FR
RFF+GN:775661390
NAD+DP+3025610011007::9++FNAC SA
C/O FNAC LOGISTIQUE+2 A 3 RUE DES CHAMPARTS+MASSY CEDEX++91742+FR
NAD+SE+3012901500000::9++PHILIPS France:Division P.E.G.P - PCE+64, rue Carnot - BP301+Suresnes Cedex++92156+FR
RFF+GN:402805527
LIN+1++8710895738125:EN
IMD+E+ANM+:::TV DVD36CM 4/3
ALC+C+3001000002138+6+1+TX:::Tape Tax
MOA+23:3
TAX+7+VAT++6.00+:::19.600+S
ALC+C+3001000002336+6+1+TX:::Battery Tax
MOA+23:5
TAX+7+VAT++10.00+:::19.600+S
ALC+C+3001000002459+6+1+TX:::Environmental charge
MOA+23:0.84
TAX+7+VAT++1.68+:::19.600+S
ALC+A++2+1+TD:::remises commerciales
PCD+1:13.04
MOA+204:60.00
MOA+204:90.00
UNS+S
16-May-08
16-May-08
16-May-08
16-May-08
16-May-08
10
16-May-08
11
16-May-08
12
16-May-08
13
16-May-08
14
Data container
Inbound and outbound messages
Unique number
Stored in SAP database.
Idocs are based on EDI Standard - EDIFACT
ALE and EDI Integration.
Idocs are independent of sending and receiving system.
Idocs are independent of the direction of data exchange.
Idocs can be viewed as text editor. Data is stored in character format.
An Idoc consists of 3 record types
Structure Table
1. Control record (one per IDOC)
EDI_DC EDIDC
2. Data record (Several)
EDI_DD EDID2
3. Status record (Several)
EDI_DS EDIDS
16-May-08
15
Structure of an Idoc
Control Record
IDoc-ID
Sender-ID
Receiver-ID
IDoc and message type
Data Record
IDoc-ID
Sequence/Hierarchy
Segment
Format definition for
header data
item data
Status Record
IDoc-ID
Status information
16-May-08
16
Idoc Type
16-May-08
17
ZMONREP04
SEGMENTS
IDOC type
Z1EMHDR
Z1WKDET
Z1CLDET
(M,1,1)
(O,1,999
999)
(O,1,1)
LNAME
(10)
WEEKNO
(1)
CLSITE
(20)
FNAME
(10)
SSN
(11)
TOTHOURS
(3)
DOB
(8)
HRLYRATE
(3)
WORKDESC
(40)
M - Mandatory
O - Optional
ZISUMRY
(O,1,1)
TOTHOURS
(3)
TOTAMOUNT
(10)
16-May-08
18
16-May-08
19
16-May-08
20
Idoc Records
Control record
Contains all of the control information about an idoc.
Idoc number
Sender/Receiver
Message type and basic IDOC type
Data records
Idoc contains the application data.
Comprise the basic IDOC type or container
Name and version
Contain data fields
Structured and Nested segments
Qualifiers
A data record has 2 types
(1) An administrative section
(2) A data section
16-May-08
21
Idoc Records
Data Record
Idoc number Segment No Segment Name
Administrative section
Administrative Section : Contains segment name, segment number and Hierarchy level
Data Section is a stream of 1000 bytes where actual data resides
Status Records
- Contain processing information
- Are never transmitted
16-May-08
22
Advantages
Loose coupling processes
Exception handling
Monitoring and test tools
Create and extend Idocs
16-May-08
23
16-May-08
24
16-May-08
25
16-May-08
26
16-May-08
27
16-May-08
28
16-May-08
29
16-May-08
30
16-May-08
31
16-May-08
32
16-May-08
33
16-May-08
34
16-May-08
35
16-May-08
36
16-May-08
37
16-May-08
38
16-May-08
39
ALE/EDI differences
ALE
Source SAP system
Destination SAP system
Data transfer via memory
EDI
Source SAP system destination external
Source external destination SAP system
Data transfer via file
Similar inbound and outbound process
16-May-08
40
16-May-08
41
IDOC
ALE/EDI interface
IDOC
- Application Layer
Communication Layer
Port
16-May-08
42
16-May-08
43
EDI Enabled
Application
Selection
Program
Inbound
Trigger
Program
EDI Subsystem/
Translator
EDI message
(ANSI X.12,
EDIFACT )
16-May-08
44
16-May-08
45
MASTER_IDOC_DISTRIBUTE
NAST
RSNASTED
RSEOUT00
IDOC
Port
16-May-08
46
16-May-08
47
Selection
Program
Outbound
Trigger
Program
EDI Subsystem/
Translator
EDI message
(ANSI X.12,
EDIFACT )
16-May-08
48
Application
Procedure
Access Sequence
Condition Table
Procedure
Active Procedure
Access Sequence
Access Sequence
Condition Table
Data Field
Condition Table
Data Field
Data Field
Condition Table
Data Field
16-May-08
49
16-May-08
50
16-May-08
51
16-May-08
52
16-May-08
53
16-May-08
54
16-May-08
55
EDI Scenario
Customer
Invoice SD09
Purchase Order
ME10
Vendor
Invoice
Verification
INVM
Payment
Payment
Advice
REMA
Payment Order
Bank
16-May-08
56
16-May-08
57
16-May-08
58
16-May-08
59
16-May-08
60
16-May-08
61
Description
Idoc Created
Data passed to port OK
Translation OK
Syntax check OK
Interchange handling OK
Idoc ready for dispatch
Idoc added
Error Application document not posted
Application document not fully posted
Application document posted
Idoc ready to be passed to application
16-May-08
62
Periodic Processing
SAP Provides several programs to maintain ALE and EDI Interfaces.
These programs can be scheduled as job to run periodically (If required online).
1. Outbound Processing
a> RBDMIDOC : Create Master data Idocs based on change pointers.
Input : Message Type.
Flag would be updated as Processed in BDCPS table
This program can be scheduled periodically to process change
pointers for that message type.
b>RBDSE* : Can be used to create master data IDOCs. [Eg. RBDSEMAT: Creates
material master idocs]
The parameters and selection options vary based on application.
Message type is mandatory.
Eg. RBDSEDEB, RBDSEBOM, RBDSEGLM
This program can be scheduled as batch job in order to refresh or sync
up the data in the other R/3 Systems.
16-May-08
63
Periodic Processing
c> RSNAST00 : Used to create idocs from NAST table.
Used for SD and MM applications.
Supported by message control mechanism
This program is applicable only for timing 4 (Immediate)
Parameters : Application, output type and output medium.
Ensure message control parameters in PP (Output type and Process
code).
This can be scheduled periodically to capture trans data [
created/changed ] to create Idocs.
d>RSEOUT00 : Used to dispatch O/B idoc from 30 status to 03 status (Port).
processing option is collect idocs in PP.
In order to move from status 30 to 03.
Parameters : Message type, receiver info. Idoc number etc
This program can be scheduled periodically to send idocs to out of
the system to another R/3 or external system.
16-May-08
64
Periodic Processing
c> RBDAGAIN : Used for processing idocs with errors.
Valid Statuses : 26 Error during transmitting data to port.
04 Error in EDI subsystem control information
05 Error during translation
25 continue processing despite syntax error
29 Error in ALE service
This program reprocesses these idocs.
Based on processing option status would be moved to 30
or 03.
Parameters: Idoc number, creation date, time, message type etc.
There is checkbox Import in Background
Program attempts to reprocess them in background flagged
Idocs would be processed one after the other not flagged
Generate new idoc with status 30 or 03 based on original idoc.
Original idoc is then placed in status 33 (original of an idoc edited)
16-May-08
65
Periodic Processing
2. Inbound Processing
a>Program RSEINB00
It is used to import files containing idocs into R/3.
This program is used only for inbound idoc.
Parameter : path and file name.
Based on processing option idocs are created in status 64.
b>Program RBDAPP01
It is used to process the idocs that have not been posted to the application.
Valid status : 64
This program posts Idoc data to the application.
Parameter : Idoc number, date, message type, partner details.
16-May-08
66
Periodic Processing
c>Program RBDMANIN
Reprocessing inbound idocs.
Valid status : 51.
This program attempts to post the data to the application.
Parameters: Idoc number, date, time, message type and partner
details.
Import in background Idocs processed in background. If the flag
is checked.
Idocs are displayed and processed individually. If the flag is
unmarked.
16-May-08
67
Periodic Processing
c>Program RBDMANIN
Reprocessing inbound idocs.
Valid status : 51.
This program attempts to post the data to the application.
Parameters: Idoc number, date, time, message type and partner
details.
Import in background Idocs processed in background. If the flag
is checked.
Idocs are displayed and processed individually. If the flag is
unmarked.
16-May-08
68
Periodic Processing
d>Program RBDAGAI2
Reprocessing inbound idocs with errors.
Valid status : 56 Idoc containing errors.
61 Continue processing despite syntax error.
63 Error passing Idoc to the application
65 Error in ALE service
Parameters : Idoc number, date, time, message type and partner
details.
This program has a flag for Importing in background which process
the idocs in background.
If the checkbox is unmarked Idocs are displayed for individual
processing.
16-May-08
69
Idoc Archiving
Overview.
16-May-08
70
Idoc Archiving
Preliminary configuration
16-May-08
71
Idoc Archiving
Archiving Programs
An archiving object (IDOC) comprises of 4 programs
1.
Archiving program
2.
Deletion program
3.
Analysis program
4.
Reload program
1 Archiving Program
-Selection of documents and write those documents into a file
-Documents are present in SAP.
RSEXARCA and RSEXARCB are archiving programs.
RSEXARCB is designed for periodic schedules.
16-May-08
72
Idoc Archiving
2. Deletion Program
Input : archive file
Reads various documents in archive file and documents are then get deleted from
SAP System.
RSEXARCR Reads from archive file
RSEXARCD Deletion program
3. Analysis program
Input : archive file
Analyze the data stored in archive file and generate report.
4. Reload Program
Input : Archive file
Allows you to reload one or more objects from archive back to SAP DB table
RSEXAECL Reload program
16-May-08
73
Thank You
16-May-08
74