Escolar Documentos
Profissional Documentos
Cultura Documentos
Avidypta Guha
IDocs Training, SAP Practice
Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
What is an IDOC?
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
What is an IDOC? (contd)
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
IDOC Structure
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
IDOC Type Documentation
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
IDOC Components :
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
IDOC Components :
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
IDOC Run-Time Components
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
IDOC Runtime components (Contd)
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.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Where and How an IDOC is created?
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Creating Outbound Process Code (WE41)
Process Code
Partner
Function Module
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Snapshot of WE41
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Creating Partner Profile (WE20)
• What is Partner Profile ?
We must maintain the business partners with whom we communicate
via IDocs, in Partner Profiles.
• Steps to create Partner Profile
- Goto Transaction WE20.
- Click on Create Button.
- Enter the Number of Vendor Created in Partner No. and ‘LI’ in Partner
Type fields.
- Save the Data.
- For Outbound Partner Profile we have to create Outbound
Parameters
- Specify Partner Function, Message type created, Port (create a port in
WE21),Basic Type and Output Mode.
- Goto “Message Control” Tab and link the Message Type and Process
Code created.
- Save.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Snapshots of WE20
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Change Application Data to be Transmitted
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Summary: IDOC Workflow
The sequence:
2. Checks whether Partner profile exists or not
3. Whether that PP has a outbound parameter
4. Whether NEU message type is there or not (message control)
5. Checks the process code (gives the name of Function module)
6. Checks immediate transfer or batch transfer
7. Based on that it checks the receiver port
8. Then it will trigger the RFC destination
9. Then it triggers the event on subsystem/customer system
10. Transfer the IDOC to a port and transfer the Idoc in terms of file and it
triggers the customer system
11. Customer knows from where it should pick up the file ….it picks up the
file.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
we82
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
we21
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
ALE Intro
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Extending an Existing IDOC Type
F3
Extension Child Segs
F4
F5
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Inbound v/s Outbound processing -- Similarities
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Inbound v/s Outbound processing -- Differences
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Steps
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Creating a partner -- customer
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Associating the partners
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Create a Inbound process code
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Function module
• 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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Assign Idoc type – Message type (Transaction we57)
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Defining the process code – we42
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Creating a partner profile -- Tcode we20
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Testing the inbound function module – we19
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
EDI
Contents
• Evolution and Need of EDI
• What is EDI ?
• EDI Architecture
• Advantages of EDI
• The Two Types of EDI Processes
- Outbound Process
- Inbound Process
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Disadvantages of Conventional Business Documents Exchange
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Evolution of EDI
Data Exchanged through Floppy Disk
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
What is EDI ?
• 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.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
EDI Architecture
MM SD
(Customer) (Vendor)
IDOC IDOC
Communication
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Advantages of the EDI Process
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Outbound EDI Process
Database Data Flow
Repository Process Flow
EDI-Enabled
Application
Application
Selection Document
VAN
Program Value
IDoc added
Network
Outbound
Trigger IDoc
File EDI
Program EDI
Subsystem Document
Operating
System
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Inbound EDI Process
Database Data Flow
Repository Process Flow
EDI-Enabled
Application
Application
Posting Document
Program
IDoc VAN
Value
added
Inbound Network
Trigger IDoc
File
Program EDI
Subsystem EDI
Document
Operating
System
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Message Exchange Between Distributed Application
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Steps Involved in the Configuration of ALE
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Setting Up The Client
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Defining Logical Systems
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Logical Systems Contd…
• 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.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Logical Systems Contd…
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Assigning Client To Logical System
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Defining the Communication Parameters
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
RFC Destinations Contd…
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
RFC Destinations Contd…
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
RFC Destinations Contd…
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Modeling The Distribution
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Modeling Distribution Contd…
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Generating Partner Profiles for Sending System
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Generate Partner Profiles Contd…
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Distributing the Distribution Model
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Configuration In Receiving System
• 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.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
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.
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Examples
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Change Pointers
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Master Data Distribution through 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 Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Configuration
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Configuration – BD61
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Configuration – BD50
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Configuration – BD52
Change a field in the master data and then execute program RBDMOIND
To process the change pointers
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Points Of Failure in the Outbound Process
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Filtering
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Questions?
Contact info:
Avidypta
6646 (Mangalore)
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore
Introduction to IDOC
SAP R/3 & ABAP/4 Training
SAP Practice, Enterprise Solutions, Mangalore