Edi / Idoc Overview: Training Requirements
Edi / Idoc Overview: Training Requirements
Revision: 01
Training requirements
EDI Coordinator:
EDI Technology
SAP EDI \ IDoc configuration, Partner profiles
SAP ABAP IDoc development, Data dictionary, Function Modules, ABAP workbench, SAP,
Inbound Process Codes
Purpose
This document attempts to describe the EDI / IDoc interface as provided for by SAP. It
gives a broad overview of the capabilities of the IDoc technology together with an idea as
to where to find them in SAP in order to take advantage of them.
Audience
The primary audience of this document is intended to be the EDI support staff, but the
intention is that the explanations provided in this document will be explicit enough that
anyone should be able to come away with an understanding of the EDI / IDoc
technology.
Scope
This document covers the following:
SAP IDoc / EDI Configuration
SAP IDoc Development
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 5 of 25
IDoc Structure
Using SE16 you can view the IDoc in the SAP tables
EDIDC
EDID4
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 6 of 25
The last field is actually a field called SDATA. It is too large to display in SE16. It is of
the same structure as the segment name. E.g. E1EDK01 is the segment and sdata has the
structure e1edk01 as follows (use SE11 and E1EDK01 as data type to view):
EDIDS
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 7 of 25
Double clicking on a row in the right hand box will bring up a list of IDoc for a particular
type in a particular status.
Inbound
The process code is linked to a specific function module that is used to read in the IDoc
data and process it in to SAP.
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 10 of 25
Outbound
The Port links this message to the applicable RFC destination which refers it to the
applicable EDI translator service. The basic IDoc type tells us what structure we are
expecting to send.
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 11 of 25
The message control tab holds the “triggering” information for this message. The SAP
application document uses condition records and output types to decide when to create an
IDoc and of what type. This is the section that links the application to the partner profile
message.
The EDI tab stores data that could be used by the translator to automatically determine
exactly which map to choose to translate an IDoc produced through this partner profile.
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 12 of 25
Process Codes
WE41 - Outbound process code
This transaction tells us which message types are applicable for an outbound process
code. Message Function and Message Code are also part of the key and can be used to
process the same IDoc type differently depending on these values.
Click RFC destination to see the detail. This is where we will make the connection to the
EDI server using the ALE method.
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 15 of 25
The program ID is a registered service on the DORADO server. This will equate to the
service created using the SAP Adaptor for TLE.
File ports are used for traditional EDI file interfacing. This method creates the IDocs in a
specified directory on the application server that can then be moved to the EDI server for
processing.
The TLE SAP Adaptor allows us to use ALE to transfer IDocs to and from TLE using the
RFC interface. Hence, we will use a tRFC port linked to an RFC Destination.
IDoc Documentation
WE60 – IDoc type documentation
This is the transaction to use when you need to find out what values are available in the
IDoc itself. You need to know the IDoc segments and then you can see what fields are
available in them to understand what you are looking at when going through an IDoc.
The EDI_DC40 segment is stored in table EDIDC and is the control record for the IDoc
The EDI_DD40 segment is stored in table EDID4 and is the data record for the IDoc. It
has a field called SDATA that contains the data of all the fields in that segment. The
segment name is used to define the structure (structure has the same name as SEGNAM)
of this data.
EDI_DS40 is stored in table EDIDS and contains all the status records for the IDoc. The
latest status number is stored in EDIDC as well for quick searching.
Click Inbound function module to specify your own function module for debugging
purposes. Use Standard Inbound if you wish to let the IDoc run through the partner
profile configuration.
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 21 of 25
IDoc development
WE31 – IDoc segments
Use this transaction to create a new segment that you will then incorporate in to you IDoc
type. A segment consists of 1 – many fields and needs to be released before it can be
used.
The segment can have multiple versions. Make sure the version you create is released.
For each segment you define the fields together with the data element that describes their
format.
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 22 of 25
There is a test function in this transaction that ensures that your IDoc type has been
correctly configured. Run it to check before using it.
Message Control
NACE Links to all the message control transactions via the application area
Delivery
V/36 Maintain output determination for deliveries (Output determination procedures)
V10000 (Header output) has condition type LAVA (usually with requirement 1
NB: Use V/84 – V7ALLE – SHAD for grouped ASNs. I.e. Group deliveries into
shipments
VV21 Create output condition records for shipping.
LAVA – WE (Partner function) - We must add each new partner with VV21
VL71 Reissue output for deliveries
Invoice
V/54 Maintain access sequence for billing documents
VV31 Create condition records for billing documents. (RD00 – RE Billing party)
VF31 Reissue output for billing documents
IT Document, Work Instructions, Designs Document number: EDIOVERVIEW
Document deemed to be current on date printed: 08/20/20 Rev:
CONFIDENTIAL – DO NOT DUPLICATE Page 25 of 25
Order response
V/30 Sales document output types (BA00)
V/48, V/32, Maintain access sequence for sales documents
V/43
VV11 Create condition records for sales documents. (BA00 – SP Sold to
party)
Requirements coding
V/27 Create code to check requirements for output control. Used to check ZBA0 against
BA00 output.
General
The following section provides detail on other useful SAP areas.
SE38 / SE80 ABAP Editor. Used to modify ABAP programs.
SM01 Transaction list. Lock transactions in the system. Also a good tool to see what
transactions are available.
SHDB Transaction recorder (BDC).
CMOD User exit \ project tool. Coordinates your changes into projects for the purpose of
activating all user exits for a particular project. A user exit needs to be modified
before it will work.
SE16 Table contents display
search_sap_menu Displays path to a transaction
Useful Tables
S a le s O r d e r D e liv e r y In v o ic e
VBAK L IK P VBRK
H eader H eader
VBELN - SO
H eader
V B E L N - D e liv e r y V B E L N - I n v o ic e
VBAP
L in e ite m
VBELN - SO
L IP S VBRP
P S O N R - L in e L in e ite m L in e it e m
V B E L N - D e liv e r y V B E L N - I n v o ic e
P S O N R - L in e P O S N R - L in e
VBEP A U B E L /A U P O S - S O /lin e
V G B E L /V G B E L - D e liv e r y /lin e
S c h e d u le lin e s
M _VM VAA
P O - > S O V ie w ta b le
V B F A ( D o c F lo w ) , V B U K ( H d r s t a t u s ) , V B U P ( L in e s t a t u s )
B K P F ( A c c o u n tin g d o c )