SlideShare a Scribd company logo
1 of 76
3/5/2024 Overview of ALE/IDOCs 1
Overview of ALE /
EDI / IDOCs
Overview of ALE/IDOCs 2
3/5/2024
EDI
 What is EDI?
 Type of EDI process
• Outbound EDI Process
• Inbound EDI Process
Overview of ALE/IDOCs 3
3/5/2024
What is EDI?
 EDI is electronic exchange of business documents
between the computer systems of business partner
using a standard format over a communication network
EDI is also called a paperless exchange.
Overview of ALE/IDOCs 4
3/5/2024
Typical EDI/IDOC Scenario
Overview of ALE/IDOCs 5
3/5/2024
Outbound Process
 With Message Control
 Directly -With out Message Control
Overview of ALE/IDOCs 6
3/5/2024
Inbound Process
 With Function Module
Overview of ALE/IDOCs 7
3/5/2024
EDI Configuration
 How to Set Up an RFC Destination in SAP
 The Port Definitions
 Configure Partner Profile
 Configure Message Control
Overview of ALE/IDOCs 8
3/5/2024
Complete EDI/ ALE scenario
Overview of ALE/IDOCs 9
3/5/2024
ALE
 What is ALE?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing
 Transactions For Monitoring and Processing IDocs.
 Questions
Overview of ALE/IDOCs 10
3/5/2024
ALE Terminology
•ALE - Application Linking & Enabling
•IDoc - Intermediate Document
•EDI - Electronic Data Interchange
Overview of ALE/IDOCs 11
3/5/2024
ALE Objective
Overview of ALE/IDOCs 12
3/5/2024
ALE!! What is it ??
It is a set of
 Tools,
 programs and
 data definitions
Provides distribution model and technology
that enables SAP Customer to interconnect
programs across various platforms and
systems.
Overview of ALE/IDOCs 13
3/5/2024
Features –ALE / IDocs
 Distributed System yet integrated with SAP R/3
 Based on ‘Application-to-Application integration using ‘Message
Architecture’
 Reliable communication
 Data is exchanged using “IDocs”
 Support both R/2, R/3 and External system
 If network problem, message is buffered
 ALE support backward compatibility
 ALE ensure that , data is transferred only once
Overview of ALE/IDOCs 14
3/5/2024
ALE Scenario
Document
SAP System R/3 SAP System R/3
IDoc
EDI Subsystem
EDI Subsystem
IDoc
IDoc
Overview of ALE/IDOCs 15
3/5/2024
 What is ALE ?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing
 Transactions For Monitoring and Processing IDocs.
 Trouble Shooting
 Questions
Topics to cover
Overview of ALE/IDOCs 16
3/5/2024
Components of ALE
Services:
Application Services
Distribution Services
Communication Services
Overview of ALE/IDOCs 17
3/5/2024
Application Services
Services:
Application Services
Distribution Services
Communication Services
This is where the SAP
applications ( SD, FI,
MM etc. ) generate
their data and
documents
Overview of ALE/IDOCs 18
3/5/2024
Distribution Services
Services:
Application Services
Distribution Services
Communication Services
 Recipients
 Formats and
Filters the data
 Creates IDocs
( Intermediate
Documents
Overview of ALE/IDOCs 19
3/5/2024
Communication Services
Services:
Application Services
Distribution Services
Communication Services •TCP/IP
•RFC
•tRFC
• etc
Overview of ALE/IDOCs 20
3/5/2024
Application
Data
Master
IDOC Determine
Receipients
Filter/Convert
Data, Create IDOC
Comm.
IDOC
Application
Functions
Filter/Convert
Data
Comm.
IDOC
Carrier
Application
Layer
Distribution/ ALE
Layer
Communication
Layer
Application
In a Nut Shell
Overview of ALE/IDOCs 21
3/5/2024
Topics to cover
 What is ALE ?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing
 Transactions For Monitoring and Processing IDocs.
 Trouble Shooting
 Questions
Overview of ALE/IDOCs 22
3/5/2024
IDoc Concept
 R/3 System
System 1
SAP
Document
 EDI subsystem
 R/3 System
 R/2 System
 3rd party software
System 2
IDoc
Overview of ALE/IDOCs 23
3/5/2024
IDoc Structure
Status Record IDoc-ID
Status information
Data Record IDoc-ID
Sequence/Hierarchy
Segment Format definition for
• header data
• item data
Control Record IDoc-ID
Sender-ID
Receiver-ID
IDoc type and logical message
External structure
Overview of ALE/IDOCs 24
3/5/2024
Control record
Data Record
Status Record
IDOC
“Intermediate
Document”
Overview of ALE/IDOCs 25
3/5/2024
The very first record of an IDoc package is always
a control record. The
structure of this control record of the structure
EDIDC and describes the contents of the data
contained in the package. The control record goes to
table EDIDC
Control Record
Overview of ALE/IDOCs 26
3/5/2024
Message Type
Message Type indicates How to Know what the data Means
Data Exchanged by IDOC and EDI is known as Messages
Message of same kind belong to the same message type.
Message types are stored in table EDMSG
Overview of ALE/IDOCs 27
3/5/2024
All records in the IDoc, which come after the
control record, are the IDoc data. They are all
structured alike, with a segment information part
and a data part, which is 1000 character in
length, filling the rest of the line. Data &
Segment info is stored in EDID4 for release 4.x
and EDID3 for release 2.x and 3.x.
Data Record
Overview of ALE/IDOCs 28
3/5/2024
Status Record Information about the IDoc status like:
IDoc identification number
Status number - table verified
IDoc type
Direction
Data and time stamp; Structure:
EDIDS
Overview of ALE/IDOCs 29
3/5/2024
Status of IDOC
 A two-digit status is assigned to an IDoc to allow the processing to
be monitored.
 The statuses for outbound IDocs are between '01' and '49', while the
statuses for inbound IDocs begin with '50'.
Overview of ALE/IDOCs 30
3/5/2024
Idoc Segments
TCODE:
WE31
Overview of ALE/IDOCs 31
3/5/2024
Idoc Types
TCODE:
WE30
Overview of ALE/IDOCs 32
3/5/2024
How to Attach Segments
Overview of ALE/IDOCs 33
3/5/2024
Message Types
WE81
WE82
Overview of ALE/IDOCs 34
3/5/2024
IDOC Type/ Message Type/ Processing Function
Module
Valid combination of Message type and IDOC type are stored in table
EDIMSG
Combination of message type and IDOC type determine the
processing algorithm. This is usually a function module and is set up in
table EDIFCT.
Overview of ALE/IDOCs 35
3/5/2024
Topics to cover
 What is ALE ?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing.
i.Outbound Processing
ii.Inbound Processing
 Transactions For Monitoring and Processing IDocs.
 Trouble Shooting
 Questions
Overview of ALE/IDOCs 36
3/5/2024
Outbound Processing
Overview of ALE/IDOCs 37
3/5/2024
Outbound processing: direct
Application
posting
Need to
create IDOC?
Create master
IDOC
Customer
Distribution Model
Receiver determination
Segment filter
Field value conversion
Version change
ALE layer
Dispatch
control
Database
M
Application document
posted simultaneously
with IDOCs
Comm. layer
asynch. RFC
or
EDI
System call FM
( INBOUND_
IDOC_
PROCESS )
On destination
C
Links
C
Comm. layer
Overview of ALE/IDOCs 38
3/5/2024
Dispatch control
Application
posting
Need to
create IDOC?
Create master
IDOC
Customer
Distribution Model
Receiver determination
Segment filter
Field value conversion
Version change
ALE layer
Dispatch
control
Database
M
Application document
posted simultaneously
with IDocs
C
asynch. RFC
or
EDI
Links
C
asynch. RFC
or
EDI
C
Comm. layer
- Technical comms parameters are
defined
- EDI or aRFC (asynch. remote
function call)
- Send immediately or cumulate
and send via batch job
 If batch, packet size is
determined
Overview of ALE/IDOCs 39
3/5/2024
Scenario analysis
• How does the IDOC look like ?
• How is data being sent ?
• How is the data being received ?
Overview of ALE/IDOCs 40
3/5/2024
Outbound program development
• Program logic
– “How is the IDOC being created ?”
• Triggering
– “How is the IDOC creation kicked off ?”
Overview of ALE/IDOCs 41
3/5/2024
Program logic
• Select data from application tables
• Fill data into IDOC
• Pass IDOC to ALE layer
(Call function MASTER_IDOC_DISTRIBUTE)
• Commit Work
• Receiver determination
• Segment filtering
• Version Control
• Dispatch Control
IDOC program
ALE layer
MASTER_IDOC_DISTRIBUTE
Overview of ALE/IDOCs 42
3/5/2024
MASTER_IDOC_DISTRIBUTE
Call function ‘MASTER_IDOC_DISTRIBUTE’
 Exporting
 master_idoc_control: IDOC control record
 Tables
 communication_idoc_control: returned information
about the distribution
 master_idoc_data: IDOC data segments
Overview of ALE/IDOCs 43
3/5/2024
Filling an EDIDD structure
Header (55bytes) SDATA (1000bytes)
…. SEGNAM ….
EDIDD
Z1SEG
Field1 Field2 Field3 Field4
“10” “ABC”
MOVE “Z1SEG” to EDIDD-SEGNAM
MOVE “10” to Z1SEG-FIELD1
MOVE “ABC” to Z1SEG-FIELD2
MOVE Z1SEG to EDIDD-SDATA
Overview of ALE/IDOCs 44
3/5/2024
General Programming rules
 Design Guidelines for creating IDOC data records:
• Left-justified filing of IDOC Fields
• Replacing SAP codes with ISO codes
 currency keys
 country keys
 unit of measure
 shipping instructions
• Converting Currency Amounts
Overview of ALE/IDOCs 45
3/5/2024
Left-justified Filling
 All fields must be left-justified
 Character fields:
 automatic
 Non-character fields:
 ‘Condense’ statement must be used
 Check IDOC documentation to find out which fields
require a ‘condense’
 All types unequal to ‘char’, ‘cuky’, ‘clnt’, ‘accp’, ‘numc’,
‘dats’, ‘tims’ or ‘unit’ require a condense
Overview of ALE/IDOCs 46
3/5/2024
Code Conversions
 Replacing SAP codes with ISO codes
– Currency keys: ‘currency_code_sap_to_iso’
– Country keys: ‘country_code_sap_to_iso’
– Units of measure: ‘unit_of_measure_sap_to_iso’
– Shipping instructions: sap_iso_package_type_code’
• Conversion of currency amounts
– ‘currency_amount_sap_to_iso’
Overview of ALE/IDOCs 47
3/5/2024
Basic Configuration Elements
 Define RFC Destinations
 Define Ports
 Maintain Customer Model
 Create Partner Profiles
Overview of ALE/IDOCs 48
3/5/2024
Maintaining RFC Destinations
TCODE:
SM59
Overview of ALE/IDOCs 49
3/5/2024
Displaying and Maintaining Ports
A port is a logical representation of a
communication channel in SAP with
the data communicated being IDocs.
TCODE:
WE21
Overview of ALE/IDOCs 50
3/5/2024
Partner Profiles
TCODE:
WE20
Overview of ALE/IDOCs 51
3/5/2024
Partner Profiles-Inbound
Overview of ALE/IDOCs 52
3/5/2024
Partner Profiles-Outbound
Overview of ALE/IDOCs 53
3/5/2024
ALE For Transactional data ---- Output
Determination
NACE
Overview of ALE/IDOCs 54
3/5/2024
Output Determination -- Output Types
Overview of ALE/IDOCs 55
3/5/2024
Output Types -- Details
Overview of ALE/IDOCs 56
3/5/2024
Inbound Processing
Overview of ALE/IDOCs 57
3/5/2024
Inbound Processing.
Application
posting
Field value conversion
ALE layer
Input
control
Database
A
Simultaneously update
IDOC's status
Comm. layer
asynch. RFC
or
EDI
Version change
Segment filter
C
A
Post application
document
Process IDOC
Serialization
Overview of ALE/IDOCs 58
3/5/2024
Input Control
Application
posting
Field value conversion
ALE layer
Input
control
Database
A
Simultaneously update
IDOC's status
Comm. layer
asynch. RFC
or
EDI
Version change
Segment filter
C
A
Post application
document
Process IDOC
Serialization
- For each message type and sender
one can define
 when to process
(immediate/batch)
 whether to call application
directly or start customer
workflow
 who should get work items in
case of error
- Incoming IDOC packets are passed to
application
Overview of ALE/IDOCs 59
3/5/2024
Application Input
Application
posting
Field value conversion
ALE layer
Input
control
Database
A
Simultaneously update
IDOC's status
Comm. layer
asynch. RFC
or
EDI
Version change
Segment filter
C
A
Post application
document
Process IDOC
Serialization
- Inbound IDOCs are passed to
the application via a
standardized function
interface
Overview of ALE/IDOCs 60
3/5/2024
Serialization
Application
posting
Field value conversion
ALE layer
Input
control
Database
A
Simultaneously update
IDOC's status
Comm. layer
asynch. RFC
or
EDI
Version change
Segment filter
C
A
Post application
document
Process IDOC
Serialization
- When processing the
inbound IDOC, the
application can call an ALE
API (function module) to
check that the IDOC has not
been overtaken
 If change No. 1 arrives
after change No. 2, the
IDOC containing it has
been overtaken (by the
IDOC containing the
later change)
Overview of ALE/IDOCs 61
3/5/2024
FM Assignment to Message Type and
IDoc type
TCODE:
WE57
Overview of ALE/IDOCs 62
3/5/2024
Process Codes
WE41
WE42
Overview of ALE/IDOCs 63
3/5/2024
Process Codes in Inbound and Outbound
TCODE:
WE64
Overview of ALE/IDOCs 64
3/5/2024
FM For Inbound EDI
TCODE:
BD67
Overview of ALE/IDOCs 65
3/5/2024
Inbound Program Development
INBOUND_IDOC_PROCESS
IDOC
ALE layer
IDOC_INPUT_<MSGTYPE>
• Read IDOC data
• Post Application data
• Send Success info back to ALE layer
ALE configuration
• Partner Profiles
• Process Code
• Function module attribute
• Function module registry
Workflow Task
Call function
Return Variables
If ERROR, trigger
• Version change
• Segment filter
• Field conversion
Overview of ALE/IDOCs 66
3/5/2024
Basic Scenario
 Direct Method
 Call Transaction Method
Overview of ALE/IDOCs 67
3/5/2024
Advanced Scenario
 Mass processing
 Serialization
 Advanced Workflow
Overview of ALE/IDOCs 68
3/5/2024
Flow Of Program
 Read IDOC-Lock IDOC-Call Inbound Program-
Write Status-Commit Work-Unlock IDOC
Overview of ALE/IDOCs 69
3/5/2024
Interface of Inbound FM
 Importing Parameter
-Input Method
-Mass_processing
EXPORT parameter .
-Workflow_result
-Application_variable
-In_Update_task
-Call_transaction_done
Tables parameter :
IDOC_Control
IDOC_DATA
IDOC_STATUS
Return_variable
Overview of ALE/IDOCs 70
3/5/2024
Topics to cover
 What is ALE ?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing
 Transactions For Monitoring and Processing IDocs.
 Questions
Overview of ALE/IDOCs 71
3/5/2024
Monitoring IDocs
• The IDoc interface offers 2 different approaches for tracking of data
load and data flow:
Reports for monitoring
Workflow for notifications
• Both approaches are based on the concept of status transitions, i.e.
an IDoc changes its status from a given value to another value.
Overview of ALE/IDOCs 72
3/5/2024
List Of All IDocs Created. (Default, Additional, EDI)-- WE02/
WE05
Overview of ALE/IDOCs 73
3/5/2024
Selection Program For Issuing Output --
WE15
Overview of ALE/IDOCs 74
3/5/2024
Test Tool For Idoc Processing (WE19)
Overview of ALE/IDOCs 75
3/5/2024
Idoc Search For Business Contents
(Database). WE09
Overview of ALE/IDOCs 76
3/5/2024
Questions

More Related Content

Similar to ALE IDOC configuration documents FIC.ppt

All about idoc definition architecture, implementation
All about idoc definition architecture, implementationAll about idoc definition architecture, implementation
All about idoc definition architecture, implementationmadaxx
 
All about idoc definition architecture, implementation
All about idoc definition architecture, implementationAll about idoc definition architecture, implementation
All about idoc definition architecture, implementationmadaxx
 
Sap abap ale idoc
Sap abap ale idocSap abap ale idoc
Sap abap ale idocBunty Jain
 
IDOC_handy_document.pdf
IDOC_handy_document.pdfIDOC_handy_document.pdf
IDOC_handy_document.pdfVimalArasan1
 
ALE IDOC EDI.ppt
ALE IDOC EDI.pptALE IDOC EDI.ppt
ALE IDOC EDI.pptmanju595301
 
SAP IDoc Overview and Outbound IDoc.pptx
SAP IDoc Overview and Outbound IDoc.pptxSAP IDoc Overview and Outbound IDoc.pptx
SAP IDoc Overview and Outbound IDoc.pptxAshwaniKumar207236
 
Ale idoc training kit sap Anilkumar chowdary
Ale idoc training kit sap Anilkumar chowdaryAle idoc training kit sap Anilkumar chowdary
Ale idoc training kit sap Anilkumar chowdaryANILKUMARPULIPATI1
 
Sujith ~ cross applications
Sujith ~ cross applicationsSujith ~ cross applications
Sujith ~ cross applicationsKranthi Kumar
 

Similar to ALE IDOC configuration documents FIC.ppt (20)

I doc in SAP
I doc in SAPI doc in SAP
I doc in SAP
 
All about idoc definition architecture, implementation
All about idoc definition architecture, implementationAll about idoc definition architecture, implementation
All about idoc definition architecture, implementation
 
All about idoc definition architecture, implementation
All about idoc definition architecture, implementationAll about idoc definition architecture, implementation
All about idoc definition architecture, implementation
 
Sap abap ale idoc
Sap abap ale idocSap abap ale idoc
Sap abap ale idoc
 
IDOC_handy_document.pdf
IDOC_handy_document.pdfIDOC_handy_document.pdf
IDOC_handy_document.pdf
 
SAP Inbound IDoc.pptx
SAP Inbound IDoc.pptxSAP Inbound IDoc.pptx
SAP Inbound IDoc.pptx
 
ALE IDOC EDI.ppt
ALE IDOC EDI.pptALE IDOC EDI.ppt
ALE IDOC EDI.ppt
 
Idocs
IdocsIdocs
Idocs
 
IDOCS ALE
IDOCS ALEIDOCS ALE
IDOCS ALE
 
EDI
EDIEDI
EDI
 
ALE IDOC EDI.ppt
ALE IDOC EDI.pptALE IDOC EDI.ppt
ALE IDOC EDI.ppt
 
IDOC.pdf
IDOC.pdfIDOC.pdf
IDOC.pdf
 
SAP IDoc Overview and Outbound IDoc.pptx
SAP IDoc Overview and Outbound IDoc.pptxSAP IDoc Overview and Outbound IDoc.pptx
SAP IDoc Overview and Outbound IDoc.pptx
 
Edi,idoc,ale
Edi,idoc,aleEdi,idoc,ale
Edi,idoc,ale
 
Ale idoc training kit sap Anilkumar chowdary
Ale idoc training kit sap Anilkumar chowdaryAle idoc training kit sap Anilkumar chowdary
Ale idoc training kit sap Anilkumar chowdary
 
Ale edi
Ale ediAle edi
Ale edi
 
An Introduction To EDI
An Introduction To EDIAn Introduction To EDI
An Introduction To EDI
 
Sujith ~ cross applications
Sujith ~ cross applicationsSujith ~ cross applications
Sujith ~ cross applications
 
Sap
SapSap
Sap
 
EDI_IDOC.pdf
EDI_IDOC.pdfEDI_IDOC.pdf
EDI_IDOC.pdf
 

Recently uploaded

Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service DewasVip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewasmakika9823
 
Call Girls In Kishangarh Delhi ❤️8860477959 Good Looking Escorts In 24/7 Delh...
Call Girls In Kishangarh Delhi ❤️8860477959 Good Looking Escorts In 24/7 Delh...Call Girls In Kishangarh Delhi ❤️8860477959 Good Looking Escorts In 24/7 Delh...
Call Girls In Kishangarh Delhi ❤️8860477959 Good Looking Escorts In 24/7 Delh...lizamodels9
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...lizamodels9
 
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCRsoniya singh
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst SummitHolger Mueller
 
Catalogue ONG NƯỚC uPVC - HDPE DE NHAT.pdf
Catalogue ONG NƯỚC uPVC - HDPE DE NHAT.pdfCatalogue ONG NƯỚC uPVC - HDPE DE NHAT.pdf
Catalogue ONG NƯỚC uPVC - HDPE DE NHAT.pdfOrient Homes
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfpollardmorgan
 
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCRsoniya singh
 
BEST Call Girls In BELLMONT HOTEL ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In BELLMONT HOTEL ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In BELLMONT HOTEL ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In BELLMONT HOTEL ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
FULL ENJOY - 9953040155 Call Girls in Chhatarpur | Delhi
FULL ENJOY - 9953040155 Call Girls in Chhatarpur | DelhiFULL ENJOY - 9953040155 Call Girls in Chhatarpur | Delhi
FULL ENJOY - 9953040155 Call Girls in Chhatarpur | DelhiMalviyaNagarCallGirl
 
Marketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet CreationsMarketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet Creationsnakalysalcedo61
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...lizamodels9
 
A.I. Bot Summit 3 Opening Keynote - Perry Belcher
A.I. Bot Summit 3 Opening Keynote - Perry BelcherA.I. Bot Summit 3 Opening Keynote - Perry Belcher
A.I. Bot Summit 3 Opening Keynote - Perry BelcherPerry Belcher
 
CATALOG cáp điện Goldcup (bảng giá) 1.4.2024.PDF
CATALOG cáp điện Goldcup (bảng giá) 1.4.2024.PDFCATALOG cáp điện Goldcup (bảng giá) 1.4.2024.PDF
CATALOG cáp điện Goldcup (bảng giá) 1.4.2024.PDFOrient Homes
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth MarketingShawn Pang
 

Recently uploaded (20)

Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service DewasVip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
 
Call Girls In Kishangarh Delhi ❤️8860477959 Good Looking Escorts In 24/7 Delh...
Call Girls In Kishangarh Delhi ❤️8860477959 Good Looking Escorts In 24/7 Delh...Call Girls In Kishangarh Delhi ❤️8860477959 Good Looking Escorts In 24/7 Delh...
Call Girls In Kishangarh Delhi ❤️8860477959 Good Looking Escorts In 24/7 Delh...
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
 
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst Summit
 
Catalogue ONG NƯỚC uPVC - HDPE DE NHAT.pdf
Catalogue ONG NƯỚC uPVC - HDPE DE NHAT.pdfCatalogue ONG NƯỚC uPVC - HDPE DE NHAT.pdf
Catalogue ONG NƯỚC uPVC - HDPE DE NHAT.pdf
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
 
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
 
BEST Call Girls In BELLMONT HOTEL ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In BELLMONT HOTEL ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In BELLMONT HOTEL ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In BELLMONT HOTEL ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
FULL ENJOY - 9953040155 Call Girls in Chhatarpur | Delhi
FULL ENJOY - 9953040155 Call Girls in Chhatarpur | DelhiFULL ENJOY - 9953040155 Call Girls in Chhatarpur | Delhi
FULL ENJOY - 9953040155 Call Girls in Chhatarpur | Delhi
 
Marketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet CreationsMarketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet Creations
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
 
KestrelPro Flyer Japan IT Week 2024 (English)
KestrelPro Flyer Japan IT Week 2024 (English)KestrelPro Flyer Japan IT Week 2024 (English)
KestrelPro Flyer Japan IT Week 2024 (English)
 
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
 
A.I. Bot Summit 3 Opening Keynote - Perry Belcher
A.I. Bot Summit 3 Opening Keynote - Perry BelcherA.I. Bot Summit 3 Opening Keynote - Perry Belcher
A.I. Bot Summit 3 Opening Keynote - Perry Belcher
 
CATALOG cáp điện Goldcup (bảng giá) 1.4.2024.PDF
CATALOG cáp điện Goldcup (bảng giá) 1.4.2024.PDFCATALOG cáp điện Goldcup (bảng giá) 1.4.2024.PDF
CATALOG cáp điện Goldcup (bảng giá) 1.4.2024.PDF
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
 

ALE IDOC configuration documents FIC.ppt

  • 1. 3/5/2024 Overview of ALE/IDOCs 1 Overview of ALE / EDI / IDOCs
  • 2. Overview of ALE/IDOCs 2 3/5/2024 EDI  What is EDI?  Type of EDI process • Outbound EDI Process • Inbound EDI Process
  • 3. Overview of ALE/IDOCs 3 3/5/2024 What is EDI?  EDI is electronic exchange of business documents between the computer systems of business partner using a standard format over a communication network EDI is also called a paperless exchange.
  • 4. Overview of ALE/IDOCs 4 3/5/2024 Typical EDI/IDOC Scenario
  • 5. Overview of ALE/IDOCs 5 3/5/2024 Outbound Process  With Message Control  Directly -With out Message Control
  • 6. Overview of ALE/IDOCs 6 3/5/2024 Inbound Process  With Function Module
  • 7. Overview of ALE/IDOCs 7 3/5/2024 EDI Configuration  How to Set Up an RFC Destination in SAP  The Port Definitions  Configure Partner Profile  Configure Message Control
  • 8. Overview of ALE/IDOCs 8 3/5/2024 Complete EDI/ ALE scenario
  • 9. Overview of ALE/IDOCs 9 3/5/2024 ALE  What is ALE?  Components of ALE.  Anatomy of an IDoc.  ALE Processing  Transactions For Monitoring and Processing IDocs.  Questions
  • 10. Overview of ALE/IDOCs 10 3/5/2024 ALE Terminology •ALE - Application Linking & Enabling •IDoc - Intermediate Document •EDI - Electronic Data Interchange
  • 11. Overview of ALE/IDOCs 11 3/5/2024 ALE Objective
  • 12. Overview of ALE/IDOCs 12 3/5/2024 ALE!! What is it ?? It is a set of  Tools,  programs and  data definitions Provides distribution model and technology that enables SAP Customer to interconnect programs across various platforms and systems.
  • 13. Overview of ALE/IDOCs 13 3/5/2024 Features –ALE / IDocs  Distributed System yet integrated with SAP R/3  Based on ‘Application-to-Application integration using ‘Message Architecture’  Reliable communication  Data is exchanged using “IDocs”  Support both R/2, R/3 and External system  If network problem, message is buffered  ALE support backward compatibility  ALE ensure that , data is transferred only once
  • 14. Overview of ALE/IDOCs 14 3/5/2024 ALE Scenario Document SAP System R/3 SAP System R/3 IDoc EDI Subsystem EDI Subsystem IDoc IDoc
  • 15. Overview of ALE/IDOCs 15 3/5/2024  What is ALE ?  Components of ALE.  Anatomy of an IDoc.  ALE Processing  Transactions For Monitoring and Processing IDocs.  Trouble Shooting  Questions Topics to cover
  • 16. Overview of ALE/IDOCs 16 3/5/2024 Components of ALE Services: Application Services Distribution Services Communication Services
  • 17. Overview of ALE/IDOCs 17 3/5/2024 Application Services Services: Application Services Distribution Services Communication Services This is where the SAP applications ( SD, FI, MM etc. ) generate their data and documents
  • 18. Overview of ALE/IDOCs 18 3/5/2024 Distribution Services Services: Application Services Distribution Services Communication Services  Recipients  Formats and Filters the data  Creates IDocs ( Intermediate Documents
  • 19. Overview of ALE/IDOCs 19 3/5/2024 Communication Services Services: Application Services Distribution Services Communication Services •TCP/IP •RFC •tRFC • etc
  • 20. Overview of ALE/IDOCs 20 3/5/2024 Application Data Master IDOC Determine Receipients Filter/Convert Data, Create IDOC Comm. IDOC Application Functions Filter/Convert Data Comm. IDOC Carrier Application Layer Distribution/ ALE Layer Communication Layer Application In a Nut Shell
  • 21. Overview of ALE/IDOCs 21 3/5/2024 Topics to cover  What is ALE ?  Components of ALE.  Anatomy of an IDoc.  ALE Processing  Transactions For Monitoring and Processing IDocs.  Trouble Shooting  Questions
  • 22. Overview of ALE/IDOCs 22 3/5/2024 IDoc Concept  R/3 System System 1 SAP Document  EDI subsystem  R/3 System  R/2 System  3rd party software System 2 IDoc
  • 23. Overview of ALE/IDOCs 23 3/5/2024 IDoc Structure Status Record IDoc-ID Status information Data Record IDoc-ID Sequence/Hierarchy Segment Format definition for • header data • item data Control Record IDoc-ID Sender-ID Receiver-ID IDoc type and logical message External structure
  • 24. Overview of ALE/IDOCs 24 3/5/2024 Control record Data Record Status Record IDOC “Intermediate Document”
  • 25. Overview of ALE/IDOCs 25 3/5/2024 The very first record of an IDoc package is always a control record. The structure of this control record of the structure EDIDC and describes the contents of the data contained in the package. The control record goes to table EDIDC Control Record
  • 26. Overview of ALE/IDOCs 26 3/5/2024 Message Type Message Type indicates How to Know what the data Means Data Exchanged by IDOC and EDI is known as Messages Message of same kind belong to the same message type. Message types are stored in table EDMSG
  • 27. Overview of ALE/IDOCs 27 3/5/2024 All records in the IDoc, which come after the control record, are the IDoc data. They are all structured alike, with a segment information part and a data part, which is 1000 character in length, filling the rest of the line. Data & Segment info is stored in EDID4 for release 4.x and EDID3 for release 2.x and 3.x. Data Record
  • 28. Overview of ALE/IDOCs 28 3/5/2024 Status Record Information about the IDoc status like: IDoc identification number Status number - table verified IDoc type Direction Data and time stamp; Structure: EDIDS
  • 29. Overview of ALE/IDOCs 29 3/5/2024 Status of IDOC  A two-digit status is assigned to an IDoc to allow the processing to be monitored.  The statuses for outbound IDocs are between '01' and '49', while the statuses for inbound IDocs begin with '50'.
  • 30. Overview of ALE/IDOCs 30 3/5/2024 Idoc Segments TCODE: WE31
  • 31. Overview of ALE/IDOCs 31 3/5/2024 Idoc Types TCODE: WE30
  • 32. Overview of ALE/IDOCs 32 3/5/2024 How to Attach Segments
  • 33. Overview of ALE/IDOCs 33 3/5/2024 Message Types WE81 WE82
  • 34. Overview of ALE/IDOCs 34 3/5/2024 IDOC Type/ Message Type/ Processing Function Module Valid combination of Message type and IDOC type are stored in table EDIMSG Combination of message type and IDOC type determine the processing algorithm. This is usually a function module and is set up in table EDIFCT.
  • 35. Overview of ALE/IDOCs 35 3/5/2024 Topics to cover  What is ALE ?  Components of ALE.  Anatomy of an IDoc.  ALE Processing. i.Outbound Processing ii.Inbound Processing  Transactions For Monitoring and Processing IDocs.  Trouble Shooting  Questions
  • 36. Overview of ALE/IDOCs 36 3/5/2024 Outbound Processing
  • 37. Overview of ALE/IDOCs 37 3/5/2024 Outbound processing: direct Application posting Need to create IDOC? Create master IDOC Customer Distribution Model Receiver determination Segment filter Field value conversion Version change ALE layer Dispatch control Database M Application document posted simultaneously with IDOCs Comm. layer asynch. RFC or EDI System call FM ( INBOUND_ IDOC_ PROCESS ) On destination C Links C Comm. layer
  • 38. Overview of ALE/IDOCs 38 3/5/2024 Dispatch control Application posting Need to create IDOC? Create master IDOC Customer Distribution Model Receiver determination Segment filter Field value conversion Version change ALE layer Dispatch control Database M Application document posted simultaneously with IDocs C asynch. RFC or EDI Links C asynch. RFC or EDI C Comm. layer - Technical comms parameters are defined - EDI or aRFC (asynch. remote function call) - Send immediately or cumulate and send via batch job  If batch, packet size is determined
  • 39. Overview of ALE/IDOCs 39 3/5/2024 Scenario analysis • How does the IDOC look like ? • How is data being sent ? • How is the data being received ?
  • 40. Overview of ALE/IDOCs 40 3/5/2024 Outbound program development • Program logic – “How is the IDOC being created ?” • Triggering – “How is the IDOC creation kicked off ?”
  • 41. Overview of ALE/IDOCs 41 3/5/2024 Program logic • Select data from application tables • Fill data into IDOC • Pass IDOC to ALE layer (Call function MASTER_IDOC_DISTRIBUTE) • Commit Work • Receiver determination • Segment filtering • Version Control • Dispatch Control IDOC program ALE layer MASTER_IDOC_DISTRIBUTE
  • 42. Overview of ALE/IDOCs 42 3/5/2024 MASTER_IDOC_DISTRIBUTE Call function ‘MASTER_IDOC_DISTRIBUTE’  Exporting  master_idoc_control: IDOC control record  Tables  communication_idoc_control: returned information about the distribution  master_idoc_data: IDOC data segments
  • 43. Overview of ALE/IDOCs 43 3/5/2024 Filling an EDIDD structure Header (55bytes) SDATA (1000bytes) …. SEGNAM …. EDIDD Z1SEG Field1 Field2 Field3 Field4 “10” “ABC” MOVE “Z1SEG” to EDIDD-SEGNAM MOVE “10” to Z1SEG-FIELD1 MOVE “ABC” to Z1SEG-FIELD2 MOVE Z1SEG to EDIDD-SDATA
  • 44. Overview of ALE/IDOCs 44 3/5/2024 General Programming rules  Design Guidelines for creating IDOC data records: • Left-justified filing of IDOC Fields • Replacing SAP codes with ISO codes  currency keys  country keys  unit of measure  shipping instructions • Converting Currency Amounts
  • 45. Overview of ALE/IDOCs 45 3/5/2024 Left-justified Filling  All fields must be left-justified  Character fields:  automatic  Non-character fields:  ‘Condense’ statement must be used  Check IDOC documentation to find out which fields require a ‘condense’  All types unequal to ‘char’, ‘cuky’, ‘clnt’, ‘accp’, ‘numc’, ‘dats’, ‘tims’ or ‘unit’ require a condense
  • 46. Overview of ALE/IDOCs 46 3/5/2024 Code Conversions  Replacing SAP codes with ISO codes – Currency keys: ‘currency_code_sap_to_iso’ – Country keys: ‘country_code_sap_to_iso’ – Units of measure: ‘unit_of_measure_sap_to_iso’ – Shipping instructions: sap_iso_package_type_code’ • Conversion of currency amounts – ‘currency_amount_sap_to_iso’
  • 47. Overview of ALE/IDOCs 47 3/5/2024 Basic Configuration Elements  Define RFC Destinations  Define Ports  Maintain Customer Model  Create Partner Profiles
  • 48. Overview of ALE/IDOCs 48 3/5/2024 Maintaining RFC Destinations TCODE: SM59
  • 49. Overview of ALE/IDOCs 49 3/5/2024 Displaying and Maintaining Ports A port is a logical representation of a communication channel in SAP with the data communicated being IDocs. TCODE: WE21
  • 50. Overview of ALE/IDOCs 50 3/5/2024 Partner Profiles TCODE: WE20
  • 51. Overview of ALE/IDOCs 51 3/5/2024 Partner Profiles-Inbound
  • 52. Overview of ALE/IDOCs 52 3/5/2024 Partner Profiles-Outbound
  • 53. Overview of ALE/IDOCs 53 3/5/2024 ALE For Transactional data ---- Output Determination NACE
  • 54. Overview of ALE/IDOCs 54 3/5/2024 Output Determination -- Output Types
  • 55. Overview of ALE/IDOCs 55 3/5/2024 Output Types -- Details
  • 56. Overview of ALE/IDOCs 56 3/5/2024 Inbound Processing
  • 57. Overview of ALE/IDOCs 57 3/5/2024 Inbound Processing. Application posting Field value conversion ALE layer Input control Database A Simultaneously update IDOC's status Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
  • 58. Overview of ALE/IDOCs 58 3/5/2024 Input Control Application posting Field value conversion ALE layer Input control Database A Simultaneously update IDOC's status Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization - For each message type and sender one can define  when to process (immediate/batch)  whether to call application directly or start customer workflow  who should get work items in case of error - Incoming IDOC packets are passed to application
  • 59. Overview of ALE/IDOCs 59 3/5/2024 Application Input Application posting Field value conversion ALE layer Input control Database A Simultaneously update IDOC's status Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization - Inbound IDOCs are passed to the application via a standardized function interface
  • 60. Overview of ALE/IDOCs 60 3/5/2024 Serialization Application posting Field value conversion ALE layer Input control Database A Simultaneously update IDOC's status Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization - When processing the inbound IDOC, the application can call an ALE API (function module) to check that the IDOC has not been overtaken  If change No. 1 arrives after change No. 2, the IDOC containing it has been overtaken (by the IDOC containing the later change)
  • 61. Overview of ALE/IDOCs 61 3/5/2024 FM Assignment to Message Type and IDoc type TCODE: WE57
  • 62. Overview of ALE/IDOCs 62 3/5/2024 Process Codes WE41 WE42
  • 63. Overview of ALE/IDOCs 63 3/5/2024 Process Codes in Inbound and Outbound TCODE: WE64
  • 64. Overview of ALE/IDOCs 64 3/5/2024 FM For Inbound EDI TCODE: BD67
  • 65. Overview of ALE/IDOCs 65 3/5/2024 Inbound Program Development INBOUND_IDOC_PROCESS IDOC ALE layer IDOC_INPUT_<MSGTYPE> • Read IDOC data • Post Application data • Send Success info back to ALE layer ALE configuration • Partner Profiles • Process Code • Function module attribute • Function module registry Workflow Task Call function Return Variables If ERROR, trigger • Version change • Segment filter • Field conversion
  • 66. Overview of ALE/IDOCs 66 3/5/2024 Basic Scenario  Direct Method  Call Transaction Method
  • 67. Overview of ALE/IDOCs 67 3/5/2024 Advanced Scenario  Mass processing  Serialization  Advanced Workflow
  • 68. Overview of ALE/IDOCs 68 3/5/2024 Flow Of Program  Read IDOC-Lock IDOC-Call Inbound Program- Write Status-Commit Work-Unlock IDOC
  • 69. Overview of ALE/IDOCs 69 3/5/2024 Interface of Inbound FM  Importing Parameter -Input Method -Mass_processing EXPORT parameter . -Workflow_result -Application_variable -In_Update_task -Call_transaction_done Tables parameter : IDOC_Control IDOC_DATA IDOC_STATUS Return_variable
  • 70. Overview of ALE/IDOCs 70 3/5/2024 Topics to cover  What is ALE ?  Components of ALE.  Anatomy of an IDoc.  ALE Processing  Transactions For Monitoring and Processing IDocs.  Questions
  • 71. Overview of ALE/IDOCs 71 3/5/2024 Monitoring IDocs • The IDoc interface offers 2 different approaches for tracking of data load and data flow: Reports for monitoring Workflow for notifications • Both approaches are based on the concept of status transitions, i.e. an IDoc changes its status from a given value to another value.
  • 72. Overview of ALE/IDOCs 72 3/5/2024 List Of All IDocs Created. (Default, Additional, EDI)-- WE02/ WE05
  • 73. Overview of ALE/IDOCs 73 3/5/2024 Selection Program For Issuing Output -- WE15
  • 74. Overview of ALE/IDOCs 74 3/5/2024 Test Tool For Idoc Processing (WE19)
  • 75. Overview of ALE/IDOCs 75 3/5/2024 Idoc Search For Business Contents (Database). WE09
  • 76. Overview of ALE/IDOCs 76 3/5/2024 Questions