IDOCs
Idoc is a container used to exchange data between 2 sap systems.
1.BASIC IDOC---Defines the structure and format of data.
2.EXTENDED IDOC---Extending the functionality of the basic idoc
by adding more no. of segments.
Sap system can understand only idoc format when it is communicating with other
systems.
It contains 3 records
1. control records (edidc)
2. data records (edidd/4)
3. status records (edids)
Control records :-
1. control records specify sender as well as receiver
information
2. it generates only one control record
3. this information will be saved in “edidc” table
Data records :-
1. data record specify the data which is send by the sender
system.
2. it generates any no.of data records
3.data in the form of segments
4. this information will be saved on “edidd/edid4” table
Status record :-
1. it generates the status codes for each and every
stage of transferring the data
2. it generate any no.of status records
3. this information will be saved on “edids” table.
i Standard idoc :- to send as well as receives the
standard database tables information then we use
standard idoc.
kna1
kunnr
name1
ii. Custom idoc :- to send as well as receives the
custom table information then we use custom idoc.
to create the segment WE31.
SAP defined segments always start with E1.
User defined segments must start with Z1.
EVERY SEGMENT REPRESENTS A DATABASE TABLE.
Based on the given input one outbound program will be triggered, and
fetch data from the database and generate the master idoc.
Master idoc is nothing but data in an internal table . Master idoc is not
saved any where in the sap.
IDOCTYPE(WE30) : Defines the structure and format of data which has to
be sent.
material VENDOR
MATMAS01 CREMAS01
CREMAS02
MATMAS02
CREMAS03
MATMAS03 CREMAS04
MATMAS04 CREMAS05
MATMAS05
CUSTOMER
PURCHASE ORDERS
DEBMAS01 ORDERS01
DEBMAS02 ORDERS02
DEBMAS03 ORDERS03
ORDERS04
DEBMAS04 ORDERS05
DEBMAS05
MESSAGE TYPE(WE81) : Defines the type of the
document which has to be sent.
Material :MATMAS
Customer :DEBMAS
Vendor :CREMAS
Purchase order:ORDERS
Note : edimsg is the standard db table which contains
all the message types & idoc types.