SlideShare a Scribd company logo
1 of 105
IBM Global Services
© Copyright IBM Corporation 2006
Overview of ALE / IDOCs
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 2
Topics to cover
 What is ALE?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing
 Transactions For Monitoring and Processing IDocs.
 Questions
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 3
ALE Terminology
•ALE - Application Linking & Enabling
•IDoc - Intermediate Document
•EDI - Electronic Data Interchange
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 4
ALE Objective
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 5
ALE!! What is it ??
It is a set of
 Tools,
 programs and
 data definitions
that provides the mechanism for
distributing functionality and data across
multiple system.
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 6
What Data can be Exchanged ?
Transaction Data
–SD, MM, FI, CO, etc.
Master Data
–Material, Customer, Vendor, etc.
Control Data
–Organizational Reference Information
•Plants, Sales Orgs, etc.
Data required to enable tightly coupled,
distributed applications
–Separate HR, Separate Treasury, etc.
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 7
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 8
ALE Scenario
Document
SAP System R/3 SAP System R/3
IDoc
EDI Subsystem
EDI Subsystem
IDoc
IDoc
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 9
 What is ALE ?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing
 Transactions For Monitoring and Processing IDocs.
 Trouble Shooting
 Questions
Topics to cover
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 10
Components of ALE
Services:
Application Services
Distribution Services
Communication Services
Tools:
Customizing Tools
Development Tools
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 11
Application Services
Services:
Application Services
Distribution Services
Communication Services
Tools:
Customizing Tools
Development Tools
This is where the SAP
applications ( SD, FI,
MM etc. ) generate
their data and
documents
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 12
Distribution Services
Services:
Application Services
Distribution Services
Communication Services
Tools:
Customizing Tools
Development Tools
 Recipients
 Formats and
Filters the data
 Creates IDocs
( Intermediate
Documents
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 13
Communication Services
Services:
Application Services
Distribution Services
Communication Services
Tools:
Customizing Tools
Development Tools
•TCP/IP
•RFC
•tRFC
• etc
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 14
Development Tools
Services:
Application Services
Distribution Services
Communication Services
Tools:
Customizing Tools
Development Tools
 Model Maintenance Tool.
(for configuring the flow of data
between systems )
Shared Master Data(SMD)tools
(for distributing master data )
 Customization parameters
(within SAP for IDoc filtering and
conversion. )
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 15
Customizing Tools
Services:
Application Services
Distribution Services
Communication Services
Tools:
Customizing Tools
Development Tools Tools for creating
and modifying
IDocs
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 16
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 17
Topics to cover
 What is ALE ?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing
 Transactions For Monitoring and Processing IDocs.
 Trouble Shooting
 Questions
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 18
IDoc Concept
 R/3 System
System 1
SAP
Document
 EDI subsystem
 R/3 System
 R/2 System
 3rd party software
System 2
IDoc
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 19
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 20
Control record
Data Record
Status Record
IDOC
“Intermediate
Document”
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 21
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 22
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 23
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 24
Status Record
Information about the IDoc status like:
IDoc identification number
Status number - table verified
IDoc type
Direction
Data and time stamp; Structure:
EDIDS
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 25
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'.
 Status confirmation when using port type 'File':
The external system writes the status records in a status file, which is
read by the R/3 System. In this case, the confirmation always refers to
outbound IDocs.
 Status confirmation using IDoc type SYSTAT01:
The system sending the confirmation writes the status records as data
records of IDoc type SYSTAT01. All port types and both directions can
be entered.
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 26
Idoc Segments
TCODE:
WE31
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 27
Idoc Types
TCODE:
WE30
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 28
How to Attach Segments
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 29
Message Types
WE81
WE82
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 30
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.
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 31
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 32
Outbound Processing
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 33
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
C
Links
C
Comm. layer
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 34
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
Links
C
Querying the Model
asynch. RFC
or
EDI
Comm. layer
C
- ALE supplies APIs (function modules) to
allow applications to query the model
 Is anybody interested in my message type?
 Optional: what filter objects are they
interested in?
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 35
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
- The application creates the IDOC
- Technically it is stored as an
internal table
- Passed to ALE via an API
(function module)
Links
C
Handover IDoc to ALE
asynch. RFC
or
EDI
C
Comm. layer
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 36
Receiver determination
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
asynch. RFC
or
EDI
Links
C
asynch. RFC
or
EDI
C
Comm. layer
- If the application has no specified
recipients
 ALE refers to the customer
distribution model to determine
them
 Data not relevant to receiver
(according to model) is removed
in ALE layer.
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 37
Segment filter
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
asynch. RFC
or
EDI
Links
C
asynch. RFC
or
EDI
C
Comm. layer
- The filter is data-independent
- IDOC segments that are not
required can be removed
- The filter is message and receiver-
specific
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 38
Field value conversion
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
asynch. RFC
or
EDI
Links
C
asynch. RFC
or
EDI
C
Comm. layer
- The contents of individual
fields can be
 translated to new values
 suppressed
- The filter is message and
receiver-specific
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 39
Version change
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
Links
C
asynch. RFC
or
EDI
C
Comm. layer
- IDOCs can be changed to older
versions
- Systems with different release
levels can communicate
without additional application
logic
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 40
Make Links
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
C
Links
asynch. RFC
or
EDI
C
Comm. layer
- Links are written between IDOC
and
 Application object contained
in IDOC
 Communication-Layer's
"Transaction-ID"
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 41
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 42
Scenario analysis
• How does the IDOC look like ?
• How is data being sent ?
• How is the data being received ?
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 43
Outbound program development
• Program logic
– “How is the IDOC being created ?”
• Triggering
– “How is the IDOC creation kicked off ?”
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 44
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 45
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 46
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 47
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 48
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 49
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’
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 50
Basic Configuration Elements
 Create and allocate Logical System
 Define Ranges (Idocs, Ports, etc )
 Define RFC Destinations
 Define Ports
 Maintain Customer Model
 Create Partner Profiles
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 51
Logical System
TCODE:
BD54; Stored in
table T000
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 52
Allocate Logical System to the client
SALE > BASIC SETTINGS > SET UP
LOGICAL SYSTEM > ASSIGN LOGICAL
SYSTEM TO THE CLIENT
TCODE:
SCC4
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 53
Number Ranges
 Maintain number ranges for ports
 Maintain number ranges for IDocs
 Maintain number ranges for IDoc types and segment version
 Maintain number range for change pointers
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 54
Maintaining RFC Destinations
TCODE:
SM59
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 55
Displaying and Maintaining Ports
A port is a logical representation of a
communication channel in SAP with
the data communicated being IDocs.
TCODE:
WE21
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 56
Partner Profiles
TCODE:
WE20
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 57
Partner Profiles-Outbound
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 58
Partner Profiles-Inbound
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 59
Distribution Model
TCODE:
BD64
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 60
Transfer of data
Transfer master data for material, customer, vendor to different client
or system with BALE
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 61
Filter Objects
BD95
BD59
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 62
Sending Master Data Idocs
Only send
objects that have
changed ?
Change
Pointer
available?
Master
data ?
Standalone with
custom logic to keep
track of changes
Change Pointer
based Program
y
N
Y
Standalone program
with user-definable
selection criteria
N
Y
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 63
Sending Transactional Data Idocs
Ensure trans-
actional
Integrity?
Output
Determinat
ion
available ?
Transaction
Data ?
hard coded ALE
layer
Modification
Output determination
based Program
y
N
Y
N
Y
User-Exit
available?
N
Hardcoded ALE layer
no Modification
Y
See Master data
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 64
Change Pointers
Application Posting
• Post Application document
• Create Change Document
• Are changes ALE relevant ?
•Write Change Pointers
• Commit Work
ALE configuration
• ALE relevant Fields
Batch Program
(RBDMIDOC)
IDOC Module
(Masteridoc_Create_
SMD_<MSGTYPE>)
• Read Change Pointers
• Fill IDOC
• Call ALE layer
• Update Change Pointer
Master data
Change pointers
ALE layer
Master_IDOC_DISTRIBUTE
• Determine IDOC module
• Call IDOC module
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 65
 Change Pointers
BD61
BD50
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 66
 Change Pointers… Continued
BD52
BD60
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 67
IDOC module
 IDOC module has to be implemented as function module
 Naming Convention: MASTERIDOC_CREATE_SMD_<msgtype>
 Function module reads change pointers information to get data that
needs to go into IDOC
 Function module logic:
 Read change pointers
 Fill IDOC structure
 Call ALE layer
 Update Change Pointer status
 Commit Work
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 68
ALE Configuration For Change Pointers
• Define change pointer creation
• Define which change document fields are to be logged
• Change pointer activation
• Activate generally
• Activate per message type
• “Publish” new function module
• Link message type to function module
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 69
ALE For Transactional data ---- Output Determination
NACE
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 70
Output Determination -- Access Sequence
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 71
Output Determination -- Output Types
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 72
Output Types -- Details
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 73
Output Types -- Partner Functions
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 74
Output Types -- Processing Routines
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 75
Output Types -- Procedures
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 76
Output Types -- Procedures Control
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 77
Output Types -- Condition records
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 78
Inbound Processing
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 79
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 80
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 81
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 82
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)
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 83
FM Assignment to Message Type and IDoc type
TCODE:
WE57
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 84
Process Codes
WE41
WE42
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 85
Process Codes in Inbound and Outbound
TCODE:
WE64
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 86
FM For Inbound EDI
TCODE:
BD67
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 87
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
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 88
ALE error handling
User action R/3 action
Execute Workitem
Fix error and reprocess IDoc
or
Flag IDoc for deletion
Error in inbound function module
ALE triggers error event
Workitem appears in user's Inbox
Display IDoc for user processing
(IDoc method "InputForeground")
ALE triggers end event
Workitem completed
input Error Occurred
input Finished
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 89
ALE error handling
 Necessary Steps:
 Create new object type in Business Object Repository for IDOC;
object is child of IDOCAPPL
 Create new customer task
 Create event-couplings linking
 Event ‘inputErrorOccured’ linked to standard task
 Event ‘inputFinished’ to function module
 To support mass processing:
 Create new object type as child of IDOCPACKET
 Maintain process code to refer the above objects and events
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 90
Advanced Inbound Topics
• Data consistency
• Serialization
• Individual vs. mass processing
• Call transaction function modules
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 91
Data Consistency
• Problem:
– Ensure transactional integrity
• Don’t process and IDOC twice
• Allow for IDOC reprocessing after rollback of
application document posting
• Solution:
– Application document must be posted in the same
LUW as the IDOC status records
– IDOC function module must not use a ‘Commit Work’
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 92
Data Consistency
ALE Layer Application
function module
Read IDoc(s)
Commit Work
Unlock IDoc(s) and
application objects
Lock IDoc(s)
Write IDoc(s) status
Write links
Optional:
Write serialization data
Trigger event(s)
Lock application objects
Optional: Serialization check
Process IDoc data
Write application data to DB
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 93
Serialization
Receiver
1
2
1
2
Object X,
changed twice:
First IDOC
overtaken
Comm. Layer
Sender
!?
Input from IDOC 1
must be prevented
in order not to lose
information from
IDOC 2
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 94
Serialization
 Check, if IDOC has been overtaken
 Use function module ‘IDOC_SERIALIZATION_CHECK’
 react to overtaken IDOCs according to your needs
 Prerequisite is the definition of a serialization
object
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 95
Mass Processing
 Processing more than one IDOC can improve
throughput:
 more than one IDOC is processed per Commit Work
 the function can be coded to add multiple entries to a table
with one update command (‘array insert’)
 Function module has to be coded in a way that it
supports mass processing
 Attribute of delivered function module specifies if
mass processing is supported or not
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 96
Call Transaction
 Pros:
 Error reprocessing in foreground
 Easy to program
 Cons:
 Call Transaction has significant performance overhead
 Automatic Commit work, no data consistency
 Recommendation:
 Try to use function modules that update database directly
 If you want to use ‘Call transaction’, they have been ‘ALE-
enabled’ to guarantee data concistency
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 97
Topics to cover
 What is ALE ?
 Components of ALE.
 Anatomy of an IDoc.
 ALE Processing
 Transactions For Monitoring and Processing IDocs.
 Questions
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 98
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.
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 99
List Of All IDocs Created. (Default, Additional, EDI)-- WE02/ WE05
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 100
Selection Program For Issuing Output -- WE15
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 101
Process All Selected IDocs. WE14
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 102
Test Tool For Idoc Processing (WE19)
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 103
Select IDocs BD87
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 104
Idoc Search For Business Contents (Database). WE09
IBM Global Services
© Copyright IBM Corporation 2006
ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022
Slide 105
Status Conversion With Trfc Execution. BD75

More Related Content

Similar to ALE IDOC EDI.ppt

Sap abap ale idoc
Sap abap ale idocSap abap ale idoc
Sap abap ale idocBunty Jain
 
Seminar Accelerating Business Using Microservices Architecture in Digital Age...
Seminar Accelerating Business Using Microservices Architecture in Digital Age...Seminar Accelerating Business Using Microservices Architecture in Digital Age...
Seminar Accelerating Business Using Microservices Architecture in Digital Age...PT Datacomm Diangraha
 
apidays Paris 2022 - Blurred Lines, Denis Jannot, Solo.io
apidays Paris 2022 - Blurred Lines, Denis Jannot, Solo.ioapidays Paris 2022 - Blurred Lines, Denis Jannot, Solo.io
apidays Paris 2022 - Blurred Lines, Denis Jannot, Solo.ioapidays
 
15. ALE IDOC.pdf
15. ALE IDOC.pdf15. ALE IDOC.pdf
15. ALE IDOC.pdfkumar623891
 
Convergence of Integration and Application Development
Convergence of Integration and Application DevelopmentConvergence of Integration and Application Development
Convergence of Integration and Application DevelopmentKim Clark
 
Flex360 Milan 2008 - Flex & Webservices
Flex360 Milan 2008 - Flex & WebservicesFlex360 Milan 2008 - Flex & Webservices
Flex360 Milan 2008 - Flex & Webservicesivascucristian
 
IDOC , ALE ,EDI
IDOC , ALE ,EDIIDOC , ALE ,EDI
IDOC , ALE ,EDIAmit Khari
 
Autonomous Platform with AIML Document Intelligence Capabilities to Handle Se...
Autonomous Platform with AIML Document Intelligence Capabilities to Handle Se...Autonomous Platform with AIML Document Intelligence Capabilities to Handle Se...
Autonomous Platform with AIML Document Intelligence Capabilities to Handle Se...IRJET Journal
 
apidays LIVE JAKARTA - Take control of your microservices with App Mesh by Ak...
apidays LIVE JAKARTA - Take control of your microservices with App Mesh by Ak...apidays LIVE JAKARTA - Take control of your microservices with App Mesh by Ak...
apidays LIVE JAKARTA - Take control of your microservices with App Mesh by Ak...apidays
 
Coming Up to Speed with XML Authoring in Adobe FrameMaker
Coming Up to Speed with XML Authoring in Adobe FrameMakerComing Up to Speed with XML Authoring in Adobe FrameMaker
Coming Up to Speed with XML Authoring in Adobe FrameMakerdclsocialmedia
 
Nrb Mainframe Day z Data and AI - Leif Pedersen
Nrb Mainframe Day z Data and AI - Leif PedersenNrb Mainframe Day z Data and AI - Leif Pedersen
Nrb Mainframe Day z Data and AI - Leif PedersenNRB
 
ibm-zconnect-mule.pdf
ibm-zconnect-mule.pdfibm-zconnect-mule.pdf
ibm-zconnect-mule.pdfLaLa788688
 
ISO 15926 - Enabling a consumer view of data, Glen Worrall, Bentley Systems (...
ISO 15926 - Enabling a consumer view of data, Glen Worrall, Bentley Systems (...ISO 15926 - Enabling a consumer view of data, Glen Worrall, Bentley Systems (...
ISO 15926 - Enabling a consumer view of data, Glen Worrall, Bentley Systems (...BCS Data Management Specialist Group
 
Workshop: Develop Serverless Applications with IBM Cloud Functions
Workshop: Develop Serverless Applications with IBM Cloud FunctionsWorkshop: Develop Serverless Applications with IBM Cloud Functions
Workshop: Develop Serverless Applications with IBM Cloud FunctionsDaniel Krook
 
Intra mart accel platform 2021winter-en
Intra mart accel platform 2021winter-enIntra mart accel platform 2021winter-en
Intra mart accel platform 2021winter-enNTTDATA INTRAMART
 

Similar to ALE IDOC EDI.ppt (20)

Sap abap ale idoc
Sap abap ale idocSap abap ale idoc
Sap abap ale idoc
 
Seminar Accelerating Business Using Microservices Architecture in Digital Age...
Seminar Accelerating Business Using Microservices Architecture in Digital Age...Seminar Accelerating Business Using Microservices Architecture in Digital Age...
Seminar Accelerating Business Using Microservices Architecture in Digital Age...
 
apidays Paris 2022 - Blurred Lines, Denis Jannot, Solo.io
apidays Paris 2022 - Blurred Lines, Denis Jannot, Solo.ioapidays Paris 2022 - Blurred Lines, Denis Jannot, Solo.io
apidays Paris 2022 - Blurred Lines, Denis Jannot, Solo.io
 
15. ALE IDOC.pdf
15. ALE IDOC.pdf15. ALE IDOC.pdf
15. ALE IDOC.pdf
 
Convergence of Integration and Application Development
Convergence of Integration and Application DevelopmentConvergence of Integration and Application Development
Convergence of Integration and Application Development
 
Evolve18 | Carmen Sutter & Sarah Xu | Accelerate your Digital Experience with...
Evolve18 | Carmen Sutter & Sarah Xu | Accelerate your Digital Experience with...Evolve18 | Carmen Sutter & Sarah Xu | Accelerate your Digital Experience with...
Evolve18 | Carmen Sutter & Sarah Xu | Accelerate your Digital Experience with...
 
EDI
EDIEDI
EDI
 
Flex360 Milan 2008 - Flex & Webservices
Flex360 Milan 2008 - Flex & WebservicesFlex360 Milan 2008 - Flex & Webservices
Flex360 Milan 2008 - Flex & Webservices
 
Industrial IoT bootcamp
Industrial IoT bootcampIndustrial IoT bootcamp
Industrial IoT bootcamp
 
IDOC , ALE ,EDI
IDOC , ALE ,EDIIDOC , ALE ,EDI
IDOC , ALE ,EDI
 
Ale Idoc
Ale IdocAle Idoc
Ale Idoc
 
Autonomous Platform with AIML Document Intelligence Capabilities to Handle Se...
Autonomous Platform with AIML Document Intelligence Capabilities to Handle Se...Autonomous Platform with AIML Document Intelligence Capabilities to Handle Se...
Autonomous Platform with AIML Document Intelligence Capabilities to Handle Se...
 
apidays LIVE JAKARTA - Take control of your microservices with App Mesh by Ak...
apidays LIVE JAKARTA - Take control of your microservices with App Mesh by Ak...apidays LIVE JAKARTA - Take control of your microservices with App Mesh by Ak...
apidays LIVE JAKARTA - Take control of your microservices with App Mesh by Ak...
 
Ale IDOC
Ale IDOCAle IDOC
Ale IDOC
 
Coming Up to Speed with XML Authoring in Adobe FrameMaker
Coming Up to Speed with XML Authoring in Adobe FrameMakerComing Up to Speed with XML Authoring in Adobe FrameMaker
Coming Up to Speed with XML Authoring in Adobe FrameMaker
 
Nrb Mainframe Day z Data and AI - Leif Pedersen
Nrb Mainframe Day z Data and AI - Leif PedersenNrb Mainframe Day z Data and AI - Leif Pedersen
Nrb Mainframe Day z Data and AI - Leif Pedersen
 
ibm-zconnect-mule.pdf
ibm-zconnect-mule.pdfibm-zconnect-mule.pdf
ibm-zconnect-mule.pdf
 
ISO 15926 - Enabling a consumer view of data, Glen Worrall, Bentley Systems (...
ISO 15926 - Enabling a consumer view of data, Glen Worrall, Bentley Systems (...ISO 15926 - Enabling a consumer view of data, Glen Worrall, Bentley Systems (...
ISO 15926 - Enabling a consumer view of data, Glen Worrall, Bentley Systems (...
 
Workshop: Develop Serverless Applications with IBM Cloud Functions
Workshop: Develop Serverless Applications with IBM Cloud FunctionsWorkshop: Develop Serverless Applications with IBM Cloud Functions
Workshop: Develop Serverless Applications with IBM Cloud Functions
 
Intra mart accel platform 2021winter-en
Intra mart accel platform 2021winter-enIntra mart accel platform 2021winter-en
Intra mart accel platform 2021winter-en
 

Recently uploaded

Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 

Recently uploaded (20)

Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 

ALE IDOC EDI.ppt

  • 1. IBM Global Services © Copyright IBM Corporation 2006 Overview of ALE / IDOCs
  • 2. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 2 Topics to cover  What is ALE?  Components of ALE.  Anatomy of an IDoc.  ALE Processing  Transactions For Monitoring and Processing IDocs.  Questions
  • 3. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 3 ALE Terminology •ALE - Application Linking & Enabling •IDoc - Intermediate Document •EDI - Electronic Data Interchange
  • 4. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 4 ALE Objective
  • 5. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 5 ALE!! What is it ?? It is a set of  Tools,  programs and  data definitions that provides the mechanism for distributing functionality and data across multiple system.
  • 6. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 6 What Data can be Exchanged ? Transaction Data –SD, MM, FI, CO, etc. Master Data –Material, Customer, Vendor, etc. Control Data –Organizational Reference Information •Plants, Sales Orgs, etc. Data required to enable tightly coupled, distributed applications –Separate HR, Separate Treasury, etc.
  • 7. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 7 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
  • 8. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 8 ALE Scenario Document SAP System R/3 SAP System R/3 IDoc EDI Subsystem EDI Subsystem IDoc IDoc
  • 9. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 9  What is ALE ?  Components of ALE.  Anatomy of an IDoc.  ALE Processing  Transactions For Monitoring and Processing IDocs.  Trouble Shooting  Questions Topics to cover
  • 10. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 10 Components of ALE Services: Application Services Distribution Services Communication Services Tools: Customizing Tools Development Tools
  • 11. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 11 Application Services Services: Application Services Distribution Services Communication Services Tools: Customizing Tools Development Tools This is where the SAP applications ( SD, FI, MM etc. ) generate their data and documents
  • 12. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 12 Distribution Services Services: Application Services Distribution Services Communication Services Tools: Customizing Tools Development Tools  Recipients  Formats and Filters the data  Creates IDocs ( Intermediate Documents
  • 13. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 13 Communication Services Services: Application Services Distribution Services Communication Services Tools: Customizing Tools Development Tools •TCP/IP •RFC •tRFC • etc
  • 14. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 14 Development Tools Services: Application Services Distribution Services Communication Services Tools: Customizing Tools Development Tools  Model Maintenance Tool. (for configuring the flow of data between systems ) Shared Master Data(SMD)tools (for distributing master data )  Customization parameters (within SAP for IDoc filtering and conversion. )
  • 15. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 15 Customizing Tools Services: Application Services Distribution Services Communication Services Tools: Customizing Tools Development Tools Tools for creating and modifying IDocs
  • 16. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 16 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
  • 17. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 17 Topics to cover  What is ALE ?  Components of ALE.  Anatomy of an IDoc.  ALE Processing  Transactions For Monitoring and Processing IDocs.  Trouble Shooting  Questions
  • 18. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 18 IDoc Concept  R/3 System System 1 SAP Document  EDI subsystem  R/3 System  R/2 System  3rd party software System 2 IDoc
  • 19. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 19 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
  • 20. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 20 Control record Data Record Status Record IDOC “Intermediate Document”
  • 21. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 21 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
  • 22. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 22 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
  • 23. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 23 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
  • 24. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 24 Status Record Information about the IDoc status like: IDoc identification number Status number - table verified IDoc type Direction Data and time stamp; Structure: EDIDS
  • 25. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 25 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'.  Status confirmation when using port type 'File': The external system writes the status records in a status file, which is read by the R/3 System. In this case, the confirmation always refers to outbound IDocs.  Status confirmation using IDoc type SYSTAT01: The system sending the confirmation writes the status records as data records of IDoc type SYSTAT01. All port types and both directions can be entered.
  • 26. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 26 Idoc Segments TCODE: WE31
  • 27. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 27 Idoc Types TCODE: WE30
  • 28. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 28 How to Attach Segments
  • 29. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 29 Message Types WE81 WE82
  • 30. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 30 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.
  • 31. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 31 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
  • 32. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 32 Outbound Processing
  • 33. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 33 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 C Links C Comm. layer
  • 34. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 34 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 Links C Querying the Model asynch. RFC or EDI Comm. layer C - ALE supplies APIs (function modules) to allow applications to query the model  Is anybody interested in my message type?  Optional: what filter objects are they interested in?
  • 35. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 35 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 - The application creates the IDOC - Technically it is stored as an internal table - Passed to ALE via an API (function module) Links C Handover IDoc to ALE asynch. RFC or EDI C Comm. layer
  • 36. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 36 Receiver determination 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 asynch. RFC or EDI Links C asynch. RFC or EDI C Comm. layer - If the application has no specified recipients  ALE refers to the customer distribution model to determine them  Data not relevant to receiver (according to model) is removed in ALE layer.
  • 37. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 37 Segment filter 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 asynch. RFC or EDI Links C asynch. RFC or EDI C Comm. layer - The filter is data-independent - IDOC segments that are not required can be removed - The filter is message and receiver- specific
  • 38. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 38 Field value conversion 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 asynch. RFC or EDI Links C asynch. RFC or EDI C Comm. layer - The contents of individual fields can be  translated to new values  suppressed - The filter is message and receiver-specific
  • 39. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 39 Version change 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 Links C asynch. RFC or EDI C Comm. layer - IDOCs can be changed to older versions - Systems with different release levels can communicate without additional application logic
  • 40. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 40 Make Links 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 C Links asynch. RFC or EDI C Comm. layer - Links are written between IDOC and  Application object contained in IDOC  Communication-Layer's "Transaction-ID"
  • 41. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 41 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
  • 42. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 42 Scenario analysis • How does the IDOC look like ? • How is data being sent ? • How is the data being received ?
  • 43. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 43 Outbound program development • Program logic – “How is the IDOC being created ?” • Triggering – “How is the IDOC creation kicked off ?”
  • 44. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 44 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
  • 45. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 45 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
  • 46. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 46 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
  • 47. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 47 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
  • 48. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 48 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
  • 49. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 49 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’
  • 50. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 50 Basic Configuration Elements  Create and allocate Logical System  Define Ranges (Idocs, Ports, etc )  Define RFC Destinations  Define Ports  Maintain Customer Model  Create Partner Profiles
  • 51. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 51 Logical System TCODE: BD54; Stored in table T000
  • 52. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 52 Allocate Logical System to the client SALE > BASIC SETTINGS > SET UP LOGICAL SYSTEM > ASSIGN LOGICAL SYSTEM TO THE CLIENT TCODE: SCC4
  • 53. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 53 Number Ranges  Maintain number ranges for ports  Maintain number ranges for IDocs  Maintain number ranges for IDoc types and segment version  Maintain number range for change pointers
  • 54. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 54 Maintaining RFC Destinations TCODE: SM59
  • 55. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 55 Displaying and Maintaining Ports A port is a logical representation of a communication channel in SAP with the data communicated being IDocs. TCODE: WE21
  • 56. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 56 Partner Profiles TCODE: WE20
  • 57. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 57 Partner Profiles-Outbound
  • 58. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 58 Partner Profiles-Inbound
  • 59. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 59 Distribution Model TCODE: BD64
  • 60. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 60 Transfer of data Transfer master data for material, customer, vendor to different client or system with BALE
  • 61. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 61 Filter Objects BD95 BD59
  • 62. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 62 Sending Master Data Idocs Only send objects that have changed ? Change Pointer available? Master data ? Standalone with custom logic to keep track of changes Change Pointer based Program y N Y Standalone program with user-definable selection criteria N Y
  • 63. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 63 Sending Transactional Data Idocs Ensure trans- actional Integrity? Output Determinat ion available ? Transaction Data ? hard coded ALE layer Modification Output determination based Program y N Y N Y User-Exit available? N Hardcoded ALE layer no Modification Y See Master data
  • 64. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 64 Change Pointers Application Posting • Post Application document • Create Change Document • Are changes ALE relevant ? •Write Change Pointers • Commit Work ALE configuration • ALE relevant Fields Batch Program (RBDMIDOC) IDOC Module (Masteridoc_Create_ SMD_<MSGTYPE>) • Read Change Pointers • Fill IDOC • Call ALE layer • Update Change Pointer Master data Change pointers ALE layer Master_IDOC_DISTRIBUTE • Determine IDOC module • Call IDOC module
  • 65. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 65  Change Pointers BD61 BD50
  • 66. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 66  Change Pointers… Continued BD52 BD60
  • 67. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 67 IDOC module  IDOC module has to be implemented as function module  Naming Convention: MASTERIDOC_CREATE_SMD_<msgtype>  Function module reads change pointers information to get data that needs to go into IDOC  Function module logic:  Read change pointers  Fill IDOC structure  Call ALE layer  Update Change Pointer status  Commit Work
  • 68. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 68 ALE Configuration For Change Pointers • Define change pointer creation • Define which change document fields are to be logged • Change pointer activation • Activate generally • Activate per message type • “Publish” new function module • Link message type to function module
  • 69. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 69 ALE For Transactional data ---- Output Determination NACE
  • 70. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 70 Output Determination -- Access Sequence
  • 71. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 71 Output Determination -- Output Types
  • 72. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 72 Output Types -- Details
  • 73. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 73 Output Types -- Partner Functions
  • 74. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 74 Output Types -- Processing Routines
  • 75. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 75 Output Types -- Procedures
  • 76. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 76 Output Types -- Procedures Control
  • 77. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 77 Output Types -- Condition records
  • 78. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 78 Inbound Processing
  • 79. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 79 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
  • 80. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 80 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
  • 81. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 81 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
  • 82. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 82 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)
  • 83. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 83 FM Assignment to Message Type and IDoc type TCODE: WE57
  • 84. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 84 Process Codes WE41 WE42
  • 85. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 85 Process Codes in Inbound and Outbound TCODE: WE64
  • 86. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 86 FM For Inbound EDI TCODE: BD67
  • 87. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 87 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
  • 88. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 88 ALE error handling User action R/3 action Execute Workitem Fix error and reprocess IDoc or Flag IDoc for deletion Error in inbound function module ALE triggers error event Workitem appears in user's Inbox Display IDoc for user processing (IDoc method "InputForeground") ALE triggers end event Workitem completed input Error Occurred input Finished
  • 89. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 89 ALE error handling  Necessary Steps:  Create new object type in Business Object Repository for IDOC; object is child of IDOCAPPL  Create new customer task  Create event-couplings linking  Event ‘inputErrorOccured’ linked to standard task  Event ‘inputFinished’ to function module  To support mass processing:  Create new object type as child of IDOCPACKET  Maintain process code to refer the above objects and events
  • 90. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 90 Advanced Inbound Topics • Data consistency • Serialization • Individual vs. mass processing • Call transaction function modules
  • 91. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 91 Data Consistency • Problem: – Ensure transactional integrity • Don’t process and IDOC twice • Allow for IDOC reprocessing after rollback of application document posting • Solution: – Application document must be posted in the same LUW as the IDOC status records – IDOC function module must not use a ‘Commit Work’
  • 92. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 92 Data Consistency ALE Layer Application function module Read IDoc(s) Commit Work Unlock IDoc(s) and application objects Lock IDoc(s) Write IDoc(s) status Write links Optional: Write serialization data Trigger event(s) Lock application objects Optional: Serialization check Process IDoc data Write application data to DB
  • 93. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 93 Serialization Receiver 1 2 1 2 Object X, changed twice: First IDOC overtaken Comm. Layer Sender !? Input from IDOC 1 must be prevented in order not to lose information from IDOC 2
  • 94. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 94 Serialization  Check, if IDOC has been overtaken  Use function module ‘IDOC_SERIALIZATION_CHECK’  react to overtaken IDOCs according to your needs  Prerequisite is the definition of a serialization object
  • 95. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 95 Mass Processing  Processing more than one IDOC can improve throughput:  more than one IDOC is processed per Commit Work  the function can be coded to add multiple entries to a table with one update command (‘array insert’)  Function module has to be coded in a way that it supports mass processing  Attribute of delivered function module specifies if mass processing is supported or not
  • 96. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 96 Call Transaction  Pros:  Error reprocessing in foreground  Easy to program  Cons:  Call Transaction has significant performance overhead  Automatic Commit work, no data consistency  Recommendation:  Try to use function modules that update database directly  If you want to use ‘Call transaction’, they have been ‘ALE- enabled’ to guarantee data concistency
  • 97. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 97 Topics to cover  What is ALE ?  Components of ALE.  Anatomy of an IDoc.  ALE Processing  Transactions For Monitoring and Processing IDocs.  Questions
  • 98. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 98 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.
  • 99. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 99 List Of All IDocs Created. (Default, Additional, EDI)-- WE02/ WE05
  • 100. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 100 Selection Program For Issuing Output -- WE15
  • 101. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 101 Process All Selected IDocs. WE14
  • 102. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 102 Test Tool For Idoc Processing (WE19)
  • 103. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 103 Select IDocs BD87
  • 104. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 104 Idoc Search For Business Contents (Database). WE09
  • 105. IBM Global Services © Copyright IBM Corporation 2006 ABAP | Confidential | ALE For ABAPers .ppt | 12/31/2022 Slide 105 Status Conversion With Trfc Execution. BD75