Professional Documents
Culture Documents
Introduction To Idocs: Vimal Balaji Idocs Training
Introduction To Idocs: Vimal Balaji Idocs Training
Vimal Balaji
IDocs Training
Agenda
• What is an IDOC?
• IDOC Structure
• IDOC Type Documentation
• IDOC Components
– Basic IDOC Type
– Segments
• IDOC Run-Time Components
– Control Records
– Data Records
– Status Records
• Where and How an IDOC is created?
• Process Code
• Partner Profile
• Summary: IDOC Workflow
• Inbound processing of IDOC
• EDI
• ALE
Agenda
• What is an IDOC?
• IDOC Structure
• IDOC Type Documentation
• IDOC Components
– Basic IDOC Type
– Segments
• IDOC Run-Time Components
– Control Records
– Data Records
– Status Records
• Where and How an IDOC is created?
• Process Code
• Partner Profile
• Summary: IDOC Workflow
• Inbound processing of IDOC
• EDI
• ALE
What is an IDOC?
• What is an IDOC?
• IDOC Structure
• IDOC Type Documentation
• IDOC Components
– Basic IDOC Type
– Segments
• IDOC Run-Time Components
– Control Records
– Data Records
– Status Records
• Where and How an IDOC is created?
• Process Code
• Partner Profile
• Summary: IDOC Workflow
• Inbound processing of IDOC
• EDI
• ALE
IDOC Structure
Segments
• Segment defines the format and structure of a data record.
Segments are reusable components.
• For each segment SAP creates
– Segment Type (version independent)
– Segment Definition (version dependent)
– Segment Documentation
• The last 3 characters is the version of the segment
• Definitions keep changing as per the version but the segment
type remains the same
Agenda
• What is an IDOC?
• IDOC Structure
• IDOC Type Documentation
• IDOC Components
– Basic IDOC Type
– Segments
• IDOC Run-Time Components
– Control Records
– Data Records
– Status Records
• Where and How an IDOC is created?
• Process Code
• Partner Profile
• Summary: IDOC Workflow
• Inbound processing of IDOC
• EDI
• ALE
IDOC Run-Time Components
Control Record
• All control record data is stored in EDIDC table. The key to this table is
the IDOC Number
• It contains information like IDOC number, sender, recipient information,
channel it is using, which port it is using etc.
Data Record
• Data record contains application data like employee header info,
weekly details, client details etc
• All data record data is stored in EDI_DD40 table and EDI_DD
Status Record
• Status record are attached to an IDOC at every milestone or when it
encounter errors.
• All status record data is stored in EDID8 table.
Agenda
• What is an IDOC?
• IDOC Structure
• IDOC Type Documentation
• IDOC Components
– Basic IDOC Type
– Segments
• IDOC Run-Time Components
– Control Records
– Data Records
– Status Records
• Where and How an IDOC is created?
• Process Code
• Partner Profile
• Summary: IDOC Workflow
• Inbound processing of IDOC
• EDI
• ALE
Where and How an IDOC is created?
Process Code
Function Module
Partner
Snapshot of WE41
Agenda
• What is an IDOC?
• IDOC Structure
• IDOC Type Documentation
• IDOC Components
– Basic IDOC Type
– Segments
• IDOC Run-Time Components
– Control Records
– Data Records
– Status Records
• Where and How an IDOC is created?
• Process Code
• Partner Profile
• Summary: IDOC Workflow
• Inbound processing of IDOC
• EDI
• ALE
Creating Partner Profile (WE20)
The sequence:
1. Checks whether Partner profile exists or not
2. Whether that PP has a outbound parameter
3. Whether NEU message type is there or not (message control)
4. Checks the process code (gives the name of Function module)
5. Checks immediate transfer or batch transfer
6. Based on that it checks the receiver port
7. Then it will trigger the RFC destination
8. Then it triggers the event on subsystem/customer system
9. Transfer the IDOC to a port and transfer the Idoc in terms of file and it
triggers the customer system
10. Customer knows from where it should pick up the file ….it picks up the
file.
we82
we21
ALE Intro
Extending an Existing IDOC Type
F3
Extension Child Segs
F4
F5
Agenda
• What is an IDOC?
• IDOC Structure
• IDOC Type Documentation
• IDOC Components
– Basic IDOC Type
– Segments
• IDOC Run-Time Components
– Control Records
– Data Records
– Status Records
• Where and How an IDOC is created?
• Process Code
• Partner Profile
• Summary: IDOC Workflow
• Inbound processing of IDOC
• EDI
• ALE
Inbound v/s Outbound processing -- Similarities
• This function has a basic functionality of posting the document into its
respective format from the idoc
• It is basically a bdc
• The functionality is to
– Read control record and data records
– Fill bdc table, call transaction
– Change status record
Assign Idoc type – Message type (Transaction we57)
Contents
• Evolution and Need of EDI
• What is EDI ?
• EDI Architecture
• Advantages of EDI
• The Two Types of EDI Processes
- Outbound Process
- Inbound Process
Disadvantages of Conventional Business Documents Exchange
3. The EDI subsystem: This converts the IDoc types into EDI
message types and vice versa. This component of the EDI
architecture is not supplied by SAP.
EDI Architecture
MM SD
(Customer) (Vendor)
IDOC IDOC
Communication
Advantages of the EDI Process
Application
Selection Document VAN
Program Value added
Network
IDoc
Outbound
Trigger IDoc
Program File EDI EDI
Subsystem Document
Operating
System
Inbound EDI Process
Database Data Flow
Repository Process Flow
EDI-Enabled
Application
Application
Posting Document
Program
IDoc VAN
Value added
Network
Inbound
Trigger IDoc
Program File EDI
Subsystem EDI
Operating Document
System
Agenda
• What is an IDOC?
• IDOC Structure
• IDOC Type Documentation
• IDOC Components
– Basic IDOC Type
– Segments
• IDOC Run-Time Components
– Control Records
– Data Records
– Status Records
• Where and How an IDOC is created?
• Process Code
• Partner Profile
• Summary: IDOC Workflow
• Inbound processing of IDOC
• EDI
• ALE
Purpose And Implementation Considerations
PURPOSE
ALE supports the distribution of the business functions and process
across loosely coupled R/3 systems. Connections from R/2 and non
SAP systems is also supported.
IMPLEMENTATION CONSIDERATIONS
• Distributing business applications and at the same time ensuring data
consistency is practical because:
– The increasing globalization of markets has led to the physical division of
organizational units.
– Business processes are not restricted to one organization only and an increasing
number of customers and vendors are involved.
– The performance of an R/3 System can be improved by distributing the business
applications.
Features
• ALE supports:
– Distribution of applications between different releases of R/3 Systems
– Continued data exchange after a release upgrade without requiring special
maintenance
– Customer-specific extensions.
– Communication interfaces that allow connections to non-SAP systems.
– Coupling of R/3 and R/2 Systems.
ALE has functions for controlling messages flows (Audit) and for
eliminating malfunctions.
Message Exchange Between Distributed Application
Steps Involved in the Configuration of ALE
• If you are using two clients in different systems, make sure your
settings are the same in both systems. When using two clients in one
physical R/3 System, you only have to make the settings once, since
the entries are client-independent.
• Assign the respective logical system to both the clients. Choose Assign
Logical System to Client.
• Execute the function in both clients (Fig 1.1).
• To display the client maintenance screen (Fig 1.2), double-click on a
client.
• In the Logical system field, enter the logical system to be assigned to
the individual client and save your entry.
Logical Systems Contd…
Assigning Client To Logical System
Defining the Communication Parameters
• The next step after this is, we have to generate the partner profile for
the receiving system. Which is very much similar to the procedure as
that of Generating the partner profile in the Sending system (The
Partner profile must be generated for inbound parameters) .
• Here technically, the configuration of ALE is over. Only the job left is to
create a material or a purchase order or a sales order or any entry for
that matter and send that particular entry to the receiving system
through the newly configured ALE Configuration Model.
Distribution of material
• Go to the respective master data transaction and then send the data in
this case BD10.
• Go to SE38 and run the program RBDMOIND for the status of the
IDOC which is generated to be changed to 12 i.e. Dispatch OK
• The IDOC with the status 53 have to posted in the target service.
Examples
Change Pointers
Create or Change
Master data
Create change
Master
Document Data
Change
Pointers
Program RBDMIDOC
•Analyze change Pointers
•Generate Idocs
•Update Status of Change Pointers
Communication
To destination system
Souurce:Ale,EDI,&IDOC Idocs
technologies forSAP
Configuration
Change a field in the master data and then execute program RBDMOIND
To process the change pointers
Points Of Failure in the Outbound Process