Idoc
Idoc
Slide 1
HCL
EDI OVERVIEW
EDI
Senders
Information
System
HCL
Slide 2
Receivers
Information
System
EDI?
HCL
Slide 3
Purpose
HCL
Slide 4
Use
HCL
Slide 5
Basics of EDI
What?
The technology of transmitting documents
electronically
Why?
For Electronic Data Interchange between a
company and trading partners
How?
By means of an electronic document - the IDoc
HCL
Slide 6
SAP R/3
R/3
Message Control
Workflow
LEVEL
EDI/ALE Interface
EDI/ALE Interface
Intermediate
Document
Intermediate
Document
O/S
LEVEL
EDI Subsystem
Communication layer
HCL
Slide 7
EDI
HCL
Slide 8
HCL
Slide 9
Know Me
IDoc (Intermediate Document)
An IDoc is simply a data container that is used to exchange
information between any two systems.
In the SAP system, IDOCs are stored in database tables.
IDOCs are independent of the sending and receiving systems.
IDOCs are independent of the direction of data exchange
ALE and EDI communication requires Idoc interface
HCL
Slide 10
10
Know Me
Process of IDocs: The two available process for IDOCs are
Outbound Process: IDocs are transferred from the R/3
System to the EDI subsystem i.e. sending out the data from
our system. The IDOC which is called as Outbound IDOC.
(Direction: 1)
Process flow:
1.Application document is created.
2.IDOC is generated
3.IDoc is transferred from SAP to Operating system layer
4.Idoc is converted into EDI standards
5.EDI document is transmitted to the business partner
6.The EDI Subsystem report status to SAP
HCL
Slide 11
11
Contd..
Inbound Process: IDocs are transferred from the EDI
subsystem to the R/3 System i.e. when the data is coming in,
the process is called Inbound Process and the IDoc is known
as Inbound IDoc. (Direction: 2)
Process Flow:
1.EDI transmission received
2.EDI document is converted into an IDOC
3.IDOC is transferred to the SAP layer
4.The application document is created
5.The application document can be viewed.
HCL
Slide 12
12
Know Me
Contents or structure of IDOC:The data in every IDoc is exchanged between the
SAP system and a subsystem in the following three record types, irrespective
of the IDoc type.
1. Control record (Table: EDIDC): Contains information about Sender and
Receiver. There is only one control record per IDoc. It consists of
IDoc Number
Sender and Receiver information
IDoc Message Type* / Port.
IDoc Type / Direction / Current status / Partner No / Partner Type
(Vendor/customer)
HCL
Slide 13
13
Contents of IDOC
2. Data Record (Table: EDID4): Contains the message to be exchanged between Sender and Receiver. An IDoc
can contain multiple data records with Segments and Qualifiers, as defined by the IDoc structure.
Data records store application data such as
Purchase order
Sales order details like sales doc #, Material / Qty and other relevant information.
Segments:
Data record consists of Segments and Qualifiers, which carries actual data. You can take them as records in the
IDOC. Each individual segment will come to you as a record in the IDOC.
Example: Dates related information is stored in E1EDK03
(Go to EDID4, provide an IDOC # and it will list all included segments as records.)
Qualifiers:
Inside the segments, there are fields that can carry actual data often signified by use of qualifiers.
A qualifier for a segment field would provide the exact meaning of the data.
Example: E1EDK03 segment is configured for dates related data. Segment field IDDAT qualifies the date type
and the DATUM field gives out the actual date. So you may see a date qualified as 002 , which can be
interpreted as requested delivery date.
HCL
Slide 14
14
Description
E1EDK01
E1EDK02
E1EDK03
E1EDK04
E1EDK05
E1EDK14
E1EDK18
E1EDKA1
E1EDL01
Delivery
E1EDP01
E1EDP02
E1EDP03
HCL
Slide 15
Contents of IDOC
3. Status record (Table: EDIDS): The EDI subsystem sends a status report to the
R/3 System on the progress of the processing of the Idoc. It Contains Status of
IDoc at various stages, during the transmission of IDoc between Sender and
Receiver. Multiple status records are usually attached to an IDoc. Status records
are attached to an IDoc throughout the process like status code, date and time
at every stage
01 - 49 for Outbound Process
50 - 75 for Inbound Process
when IDoc is processed the messages are:
01 - IDoc is created
30 - IDoc is ready for dispatch
03 - IDoc is processed
53 - Application document posted
HCL
Slide 16
16
Know Me
1. Basic Type:
The form of IDOC type that is originally created in the system. Basic
type used for ORDERS are ORDERS01/02/ etc (Version dependent)...
type IDOC for order messages.
Extension Idoc
Extending the functionality by adding more segments or fields to
existing Basic IDOCs.
So that you would be able to enhance them to suit new
requirements within the same IDOC structure.
IDOC type and Basic type is the same thing that would be referred
to interchangeably.
Transaction Code:
WE30 To create, change or display the IDOC type and the
extension.
WE31 To create the Segment
HCL
Slide 17
17
Know Me
2. Message type: Defines the type of data in the IDOC.
A message type is assigned to the Basic type.
Here, logical messages are assigned to the basic type to reflect a business
message being transacted.
For example, ORDERS is the message type for a purchase order sent by buyer to
vendor. The use of which Basic type in this message will differ from buyer to
vendor. Also, one may come up with a custom built IDOC type (or basic type as
you can say)...But it is essential to associate a message type with a basic type
IDOC. This feature will enable the same IDOC type to be used for a related
message.
ORDERS01 can be used for message ORDERS for posting an order, the same IDOC
can be associated with message ORDCHG to indicate that the message is an order
change and so the processing of this IDOC will change accordingly
Transaction Code:
WE81 To create, change or display the Message type and the extension.
WE82 Using this transaction you can link Message Type, IDOC Type,
IDOC Extension and version
11/5/2014
Slide 18
HCL
18
Know Me
3.
Function Module:
Most important player in the IDOC processing.
This is nothing but an ABAP program to process the IDOC.
SAP has supplied function modules to process all standard Basic IDocs and
Messages.
A function module is determined based on the Basic IDOC type and the Message
type.
T Codes:
SE37 To view Function Module
WE57 Assignment of FM to Logical Message and Basic Type.
Few instance for Message type/ Function module:
1. ORDERS: Purchase order ------------------ IDOC_OUTPUT_ORDERS
2. ORDCHG: Purchase order change -------- IDOC_OUTPUT_ORDCHG
3. ORDRSP: Sales order confirmation ------- IDOC_OUTPUT_ORDRSP
4. DELVRY01: Delivery -------------------------- IDOC_OUTPUT_DELVRY
5. SHPMNT: Transport --------------------------- IDOC_OUTPUT_SHPMNT
6. INVOIC: Invoice --------------------------------- IDOC_OUTPUT_INVOIC
11/5/2014
Slide 19
HCL
19
Know Me
4. Process Code: Function Module is linked to a
process code. This function module is executed for
Inbound or Outbound IDOC.
Transaction Codes:
WE41 Outbound Process Code
WE42 Inbound Process Code
Relationship is Message Type is linked to a Process
Code which is linked to a Function Module.
11/5/2014
Slide 20
HCL
20
Know Me
5. Maintaining Partner Profile: It is a gateway for IDOC to enter or exit SAP
system.
Transaction Code: WE20
Types of Partners.
LS is the partner type used in ALE where as all others will be used in EDI and
other Technologies.
Creating new partner profile requires partner name, type and processing
agent details.
HCL
Slide 21
Partner Profile
HCL
Slide 22
Know Me
6. Port: Port defines a location where the IDOC or the IDOC file has to be copied.
Transaction: WE21
Port defines a location where the IDOC or the IDOC file has to be copied.
In EDI: It is a file port. This means the IDOC is stored as an IDOC file on the
server defined in RFC port.
HCL
Slide 23
Know Me
7. RFC Destination: System definition of destination.
Transaction Code: SM59
RFC destination identifies the destination of IDOC.
In case of ALE:
In ALE the communication mode is IDOC to IDOC, hence the type used is R/3 Connections.
It is the destination SAP system which will receive the IDOC.
In RFC destination you define the destination SAP system details like System, Login and Password.
Type of connection used here is R/3 Connections.
In case of EDI:
In EDI, commonly File is used as a medium of transmission. IDOC is converted to IDOC file and
send to EDI sub-system. Hence in EDI mostly File port is used.
It is the server where the transfer or FTP script has to run. This server in most cases is the
application server or the File system.
In EDI, IDOC is downloaded on server as a file. This file is then sent to EDI sub-system. EDI subsystem then translates this file into EDI standard file format and is sent to the recipient.
Type of destination is TCP/IP connection.
You define the server name and code to be executed on this server. Normally it is RFCEXEC.
RFCEXEC is nothing but a RFC call from SAP, which triggers a script on the server location defined.
The script name and location is provided in port definition.
11/5/2014
Slide 24
HCL
24
Custom?
Remark
1. Message Type
Yes
2. IDOC Type
Yes
3. IDOC Extension
Yes
4. Port
Yes
5. RFC Destination
Yes
6. Process Code
Yes
7. Function Module
Yes
Slide 25
Summary of T codes
Component
T Code
WE02 /
WE09/we05
WE30
Create Segments
WE31
WE81
WE82
Process code--Outbound
WE41
Process code--Inbound
WE42
RFC Destination
SM59
Defining PORT
WE21
WE20
WE57
Slide 26
11/5/2014
Slide 27
HCL
27
Message
Type
Idoc Type
QUOTES
ORDERS01
ORDERS02
ORDERS03
ORDERS04
ORDERSP
ORDERS01
ORDERS02
ORDERS03
ORDERS04
Invoice
INVOIC
INVOIC01
INVOIC02
Invoice List
INVOIC
INVOIC01
INVOIC02
INVOIC
EXPINV01
EXPINV02
Quotation
Slide 28
11/5/2014
Slide 29
Inquiries
Sales orders
Order changes
Forecast delivery schedules
JIT delivery schedules
Credit memos
Pick-up sheets
External agent delivery notes
HCL
29
Message Type
Idoc Type
REQOTE
ORDERS01
ORDERS02
ORDERS03
ORDERS04
ORDERS
ORDERS01
ORDERS02
ORDERS03
ORDERS04
ORDCHG
ORDERS01
ORDERS02
ORDERS03
ORDERS04
Delivery order
DELORD
ORDERS03
ORDERS04
DELINS
DELFOR01
DELJIT
DELFOR01
GSVERF
GSVERF01
EDLNOT
DESADV01
Inquiry
Sales Order
Slide 30
Transaction
EDI Interface
Direction
Purchase order
850
Inbound
Order confirmation
855
Outbound
ASN
856
Inbound
214
Inbound
Invoice
810
Outbound
Slide 31
T code: WEDI
Slide 32
HCL
Slide 33
33
HCL
Slide 34
34
Slide 35
HCL
35
Slide 36
HCL
36
11/5/2014
Slide 37
HCL
37
11/5/2014
Slide 38
HCL
38
11/5/2014
Slide 39
HCL
39
HCL
Slide 40
40
HCL
Slide 41
41
HCL
Slide 42
42
Slide 43
HCL
43
HCL
Slide 44
44
Slide 45
HCL
45
11/5/2014
Slide 46
HCL
46
47
Slide 47
HCL
Slide 48
48
11/5/2014
Slide 49
HCL
49
11/5/2014
Slide 50
HCL
50
Navigate to Partner Functions tab at Header level and maintain the partner functions.
Path: Goto -> Header -> Partner
Note: If any partner function with 0- Zero value, replace the zero value with Sold to Party or Ship to Party
partner function value.
And press Enter button, System will accepts the data entered.
HCL
Slide 51
Slide 52
HCL
52
Slide 53
HCL
- (Folder path to save the download the file followed with Back slash)
HCL
Slide 54
54
11/5/2014
Slide 55
HCL
55
Slide 56
HCL
56
T. Code: ZSD_CNFRM_DISP
Enter the Sales order number and click on Execute icon.
Select the Order line and click on Process button, system will display the status of Shipment for the Order in
various stages.
1. Awaiting for process
2. Confirm successful
Slide 57
HCL
57
System display the document flow for the order with delivery number if the shipment created successfully.
Note: Capture the outbound delivery number for further process
HCL
Slide 58
58
Slide 59
Slide 60
HCL
Slide 61
If the order processed successfully from SAP to Insight it will display with relevant details and Asset numbers.
Slide 62
HCL
HCL
Slide 63
HCL
Slide 64
Slide 65
HCL
Slide 66
HCL
Slide 67
HCL
PO created 4500017195
Slide 68
HCL
Slide 69
HCL
Slide 70
HCL
Slide 71
HCL
Slide 72
HCL
Standard Order
12111 created
Slide 73
HCL
Slide 74
HCL
Slide 75
HCL
Idoc created
761745:-Outbound Idoc for PO
761746:-Inbound Idoc for order creation
761747:-Outbound for Order creation
confirmation from ordering system
761748:-Inbound Idoc for order creation
confirmation Purchasing system
Slide 76
HCL
Slide 77
HCL
Slide 78
HCL
Slide 79
HCL
HCL
Slide 80
Idoc created
761749:-Outbound Idoc created for
outbound Delivery
761750:-Inbound Idoc created for inbound
delivery
HCL
Slide 81
HCL
Slide 83
Idoc Created
761751:- Outbound Idoc created for
shipment notification from Customer system
761752:-Inbound Idoc created in supplier
system for shipment notification
HCL
Slide 84
POD Notification
Access T.code :VLPOD and confirm material
successfully delivered and Click on save
HCL
Slide 85
HCL
Slide 86
HCL
Slide 87
HCL
Slide 88
Thank you
HCL
Slide 89
89