SlideShare a Scribd company logo
Overview of ALE / EDI / IDOCs
EDI  What is EDI? Type of EDI process Outbound EDI Process Inbound EDI Process
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.
Typical EDI/IDOC Scenario
Outbound Process With Message Control Directly -With out Message Control
Inbound Process With Function Module
EDI Configuration How to Set Up an RFC Destination in SAP The Port Definitions Configure Partner Profile Configure Message Control
Complete EDI/ ALE scenario
ALE What is ALE? Components of ALE. Anatomy of an IDoc. ALE Processing Transactions For Monitoring and Processing IDocs. Questions
ALE Terminology ALE  -  Application Linking & Enabling IDoc  -  Intermediate Document EDI  -  Electronic Data Interchange
ALE Objective
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 .
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
ALE Scenario  Document SAP System R/3 SAP System R/3 IDoc EDI Subsystem EDI Subsystem IDoc IDoc
What is ALE ? Components of ALE. Anatomy of an IDoc. ALE Processing Transactions For Monitoring and Processing IDocs. Trouble Shooting Questions Topics to cover
Components of ALE  Services: Application Services Distribution Services Communication Services
Application Services Services: Application Services Distribution Services Communication Services This is where the SAP applications ( SD, FI, MM etc. ) generate their data and documents
Distribution Services Services: Application Services Distribution Services Communication Services Recipients Formats and  Filters the data Creates IDocs  ( Intermediate Documents
Communication Services Services: Application Services Distribution Services Communication Services TCP/IP RFC tRFC etc
Determine Receipients Filter/Convert Data, Create IDOC Application  Functions Filter/Convert Data Carrier Application Layer Distribution/ ALE Layer Communication Layer Application In a Nut Shell Application Data Master IDOC Comm. IDOC Comm. IDOC
Topics to cover What is ALE ? Components of ALE . Anatomy of an IDoc. ALE Processing Transactions For Monitoring and Processing IDocs. Trouble Shooting Questions
IDoc Concept R/3 System  System 1 SAP Document EDI subsystem R/3 System R/2 System  3rd party software System 2 IDoc
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
Control record Data Record Status Record IDOC  “ Intermediate Document”
Control Record 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
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
Data Record 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.
Status Record Information about the IDoc status like: IDoc identification number Status number - table verified IDoc type Direction Data and time stamp; Structure: EDIDS
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'.
Idoc Segments TCODE: WE31
Idoc Types TCODE: WE30
How to Attach Segments
Message Types WE81 WE82
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.
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
Outbound Processing
Outbound processing: direct Application posting ALE layer Database Application document posted simultaneously with IDOCs Comm. layer asynch. RFC or EDI System call FM ( INBOUND_ IDOC_ PROCESS ) On destination Comm. layer Need to create IDOC? Create master IDOC Customer Distribution Model Receiver determination Segment filter Field value conversion Version change Dispatch control M C Links C
Dispatch control Application posting ALE layer Database Application document posted simultaneously with IDocs asynch. RFC or EDI asynch. RFC or EDI 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 Need to create IDOC? Create master IDOC Customer Distribution Model Receiver determination Segment filter Field value conversion Version change Dispatch control M C Links C C
Scenario analysis How does the IDOC look like ? How is data being sent ? How is the data being received ?
Outbound program development Program logic “ How is the IDOC being created ?” Triggering “ How is the IDOC creation kicked off ?”
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
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
Filling an EDIDD structure MOVE  “Z1SEG” to EDIDD-SEGNAM MOVE  “10” to Z1SEG-FIELD1 MOVE  “ABC” to Z1SEG-FIELD2 MOVE Z1SEG to EDIDD-SDATA Header (55bytes) SDATA (1000bytes) … .  SEGNAM  …. EDIDD Z1SEG Field1 Field2 Field3 Field4 “ 10” “ ABC”
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
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
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’
Basic Configuration Elements Define RFC Destinations Define Ports Maintain Customer Model Create Partner Profiles
Maintaining RFC Destinations TCODE: SM59
Displaying and Maintaining Ports A port is a logical representation of a communication channel in SAP with the data communicated being IDocs .   TCODE: WE21
Partner Profiles TCODE: WE20
Partner Profiles-Inbound
Partner Profiles-Outbound
ALE For Transactional data ---- Output Determination NACE
Output Determination  -- Output Types
Output Types  -- Details
Inbound Processing
Inbound Processing. Application posting ALE layer Input control Database Simultaneously update IDOC's status Field value conversion A Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
Input Control Application posting ALE layer Input control Database Simultaneously update IDOC's status 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 Field value conversion A Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
Application Input Application posting ALE layer Input control Database Simultaneously update IDOC's status Inbound IDOCs are passed to the application via a standardized function interface Field value conversion A Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
Serialization Application posting ALE layer Input control Database Simultaneously update IDOC's status 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) Field value conversion A Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
FM Assignment to Message Type and IDoc type TCODE: WE57
Process Codes WE41 WE42
Process Codes in Inbound and Outbound TCODE: WE64
FM For Inbound EDI  TCODE: BD67
Inbound Program Development INBOUND_IDOC_PROCESS 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 Call function Return Variables If ERROR, trigger Version change Segment filter Field conversion IDOC Workflow Task
Basic Scenario Direct Method Call Transaction Method
Advanced Scenario Mass processing  Serialization Advanced Workflow
Flow Of Program Read IDOC-Lock IDOC-Call Inbound Program-Write Status-Commit Work-Unlock IDOC
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
Topics to cover What is ALE ? Components of ALE . Anatomy of an IDoc. ALE Processing Transactions For Monitoring and Processing IDocs. Questions
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.
List Of All IDocs Created. (Default, Additional, EDI)-- WE02/ WE05
Selection Program For Issuing Output  -- WE15
Test Tool For Idoc Processing (WE19)
Idoc Search For Business Contents (Database). WE09
Questions

More Related Content

PPT
IDOC , ALE ,EDI
PDF
PPT
PPTX
SAP ALE Idoc
PDF
Idocs
PPT
Ale Idoc Edi
PDF
PDF
I doc packaging and mapping techniques.doc
IDOC , ALE ,EDI
SAP ALE Idoc
Idocs
Ale Idoc Edi
I doc packaging and mapping techniques.doc

What's hot (20)

PPT
Electronic data interchange (edi)
DOCX
Idocs tcodes and others , sap idoc
PPTX
Ale idoc training kit sap Anilkumar chowdary
PPT
IDOCS ALE
PDF
I doc creation documentation
DOCX
Edit idoc , reprocess and test idoc
PPT
Ale edi
PDF
Sap edi idoc
PPT
PPT
Sap abap ale idoc
DOC
Docslide.net how ale-and-idocs-affect-sap-in-house-cash-configuration
PDF
How to extend an outbound i doc
DOCX
All about idoc definition architecture, implementation
PPTX
SAP Adobe forms
DOCX
Functional module
DOC
Edi,idoc,ale
DOCX
Fi dev fs_84_rcm liability
DOC
Fi tds report
DOCX
What is edi
DOC
Fi vendor ageing functional spec.
Electronic data interchange (edi)
Idocs tcodes and others , sap idoc
Ale idoc training kit sap Anilkumar chowdary
IDOCS ALE
I doc creation documentation
Edit idoc , reprocess and test idoc
Ale edi
Sap edi idoc
Sap abap ale idoc
Docslide.net how ale-and-idocs-affect-sap-in-house-cash-configuration
How to extend an outbound i doc
All about idoc definition architecture, implementation
SAP Adobe forms
Functional module
Edi,idoc,ale
Fi dev fs_84_rcm liability
Fi tds report
What is edi
Fi vendor ageing functional spec.
Ad

Viewers also liked (20)

PDF
05 internal tables
PPT
Chapter 05 adding structures1
PPT
Chapter 02 abap dictionary objects1
PPT
Chapter 04 abap dictionary tables in relational databases1
PPT
data modelling1
PPT
Chapter 07 abap dictionary changes1
PPT
cardinality1
PPT
Lecture02 abap on line
PPT
Chapter 01 overview of abap dictionary1
PPT
Chapter 06 abap repository information system1
PPT
Chapter 08 abap dictionary objects views1
PPT
Chapter 10 online help & documentation1
PPT
0106 debugging
PDF
Sujith ~ cross applications
PDF
Bapi jco[1]
PPT
0104 abap dictionary
PPT
Chapter 03 foreign key relationships1
PPT
PPT
table maintenance generator1
PPT
Abap function module help
05 internal tables
Chapter 05 adding structures1
Chapter 02 abap dictionary objects1
Chapter 04 abap dictionary tables in relational databases1
data modelling1
Chapter 07 abap dictionary changes1
cardinality1
Lecture02 abap on line
Chapter 01 overview of abap dictionary1
Chapter 06 abap repository information system1
Chapter 08 abap dictionary objects views1
Chapter 10 online help & documentation1
0106 debugging
Sujith ~ cross applications
Bapi jco[1]
0104 abap dictionary
Chapter 03 foreign key relationships1
table maintenance generator1
Abap function module help
Ad

Similar to Ale Idoc (20)

PPT
ALE IDOC configuration documents FIC.ppt
PDF
15. ALE IDOC.pdf
PDF
ALE EDI.pdf
PDF
AL_IDOC for Functional consultants-1.pdf
PPT
ALE IDOC EDI.ppt
PPT
ALE IDOC EDI.ppt
PPTX
SAP IDoc Overview and Outbound IDoc.pptx
PPTX
SAP+IDoc+Overview+and+Outbound+IDoc.pptx
PPTX
SAP Inbound IDoc.pptx
DOCX
All about idoc definition architecture, implementation
DOCX
I doc in SAP
PDF
IDOC.pdf
PDF
SAP Material management IDoc concept for data migration
PPT
PPT
PPT
SAP IDOC implementation document for .ppt
PDF
IDoc_Guide.pdf
PDF
ALE IDOC - FOR SAP sales order and payments
PDF
Introduction to EDI & ALE Details On the full proces
PDF
IDOC_handy_document.pdf
ALE IDOC configuration documents FIC.ppt
15. ALE IDOC.pdf
ALE EDI.pdf
AL_IDOC for Functional consultants-1.pdf
ALE IDOC EDI.ppt
ALE IDOC EDI.ppt
SAP IDoc Overview and Outbound IDoc.pptx
SAP+IDoc+Overview+and+Outbound+IDoc.pptx
SAP Inbound IDoc.pptx
All about idoc definition architecture, implementation
I doc in SAP
IDOC.pdf
SAP Material management IDoc concept for data migration
SAP IDOC implementation document for .ppt
IDoc_Guide.pdf
ALE IDOC - FOR SAP sales order and payments
Introduction to EDI & ALE Details On the full proces
IDOC_handy_document.pdf

Recently uploaded (20)

PDF
MSPs in 10 Words - Created by US MSP Network
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PDF
Unit 1 Cost Accounting - Cost sheet
PDF
Reconciliation AND MEMORANDUM RECONCILATION
DOCX
unit 1 COST ACCOUNTING AND COST SHEET
PDF
Roadmap Map-digital Banking feature MB,IB,AB
PPTX
Lecture (1)-Introduction.pptx business communication
PDF
How to Get Business Funding for Small Business Fast
PPTX
Probability Distribution, binomial distribution, poisson distribution
PDF
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
PDF
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
PDF
Stem Cell Market Report | Trends, Growth & Forecast 2025-2034
PPTX
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
PDF
WRN_Investor_Presentation_August 2025.pdf
PDF
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
PDF
IFRS Notes in your pocket for study all the time
PDF
Ôn tập tiếng anh trong kinh doanh nâng cao
PDF
Training And Development of Employee .pdf
PDF
How to Get Funding for Your Trucking Business
PPTX
5 Stages of group development guide.pptx
MSPs in 10 Words - Created by US MSP Network
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
Unit 1 Cost Accounting - Cost sheet
Reconciliation AND MEMORANDUM RECONCILATION
unit 1 COST ACCOUNTING AND COST SHEET
Roadmap Map-digital Banking feature MB,IB,AB
Lecture (1)-Introduction.pptx business communication
How to Get Business Funding for Small Business Fast
Probability Distribution, binomial distribution, poisson distribution
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
Stem Cell Market Report | Trends, Growth & Forecast 2025-2034
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
WRN_Investor_Presentation_August 2025.pdf
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
IFRS Notes in your pocket for study all the time
Ôn tập tiếng anh trong kinh doanh nâng cao
Training And Development of Employee .pdf
How to Get Funding for Your Trucking Business
5 Stages of group development guide.pptx

Ale Idoc

  • 1. Overview of ALE / EDI / IDOCs
  • 2. EDI What is EDI? Type of EDI process Outbound EDI Process Inbound EDI Process
  • 3. 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.
  • 5. Outbound Process With Message Control Directly -With out Message Control
  • 6. Inbound Process With Function Module
  • 7. EDI Configuration How to Set Up an RFC Destination in SAP The Port Definitions Configure Partner Profile Configure Message Control
  • 8. Complete EDI/ ALE scenario
  • 9. ALE What is ALE? Components of ALE. Anatomy of an IDoc. ALE Processing Transactions For Monitoring and Processing IDocs. Questions
  • 10. ALE Terminology ALE - Application Linking & Enabling IDoc - Intermediate Document EDI - Electronic Data Interchange
  • 12. 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. 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. ALE Scenario Document SAP System R/3 SAP System R/3 IDoc EDI Subsystem EDI Subsystem IDoc IDoc
  • 15. 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. Components of ALE Services: Application Services Distribution Services Communication Services
  • 17. 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. Distribution Services Services: Application Services Distribution Services Communication Services Recipients Formats and Filters the data Creates IDocs ( Intermediate Documents
  • 19. Communication Services Services: Application Services Distribution Services Communication Services TCP/IP RFC tRFC etc
  • 20. Determine Receipients Filter/Convert Data, Create IDOC Application Functions Filter/Convert Data Carrier Application Layer Distribution/ ALE Layer Communication Layer Application In a Nut Shell Application Data Master IDOC Comm. IDOC Comm. IDOC
  • 21. 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. IDoc Concept R/3 System System 1 SAP Document EDI subsystem R/3 System R/2 System 3rd party software System 2 IDoc
  • 23. 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. Control record Data Record Status Record IDOC “ Intermediate Document”
  • 25. Control Record 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
  • 26. 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. Data Record 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.
  • 28. 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. 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'.
  • 32. How to Attach Segments
  • 34. 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. 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
  • 37. Outbound processing: direct Application posting ALE layer Database Application document posted simultaneously with IDOCs Comm. layer asynch. RFC or EDI System call FM ( INBOUND_ IDOC_ PROCESS ) On destination Comm. layer Need to create IDOC? Create master IDOC Customer Distribution Model Receiver determination Segment filter Field value conversion Version change Dispatch control M C Links C
  • 38. Dispatch control Application posting ALE layer Database Application document posted simultaneously with IDocs asynch. RFC or EDI asynch. RFC or EDI 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 Need to create IDOC? Create master IDOC Customer Distribution Model Receiver determination Segment filter Field value conversion Version change Dispatch control M C Links C C
  • 39. Scenario analysis How does the IDOC look like ? How is data being sent ? How is the data being received ?
  • 40. Outbound program development Program logic “ How is the IDOC being created ?” Triggering “ How is the IDOC creation kicked off ?”
  • 41. 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. 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. Filling an EDIDD structure MOVE “Z1SEG” to EDIDD-SEGNAM MOVE “10” to Z1SEG-FIELD1 MOVE “ABC” to Z1SEG-FIELD2 MOVE Z1SEG to EDIDD-SDATA Header (55bytes) SDATA (1000bytes) … . SEGNAM …. EDIDD Z1SEG Field1 Field2 Field3 Field4 “ 10” “ ABC”
  • 44. 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. 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. 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. Basic Configuration Elements Define RFC Destinations Define Ports Maintain Customer Model Create Partner Profiles
  • 49. Displaying and Maintaining Ports A port is a logical representation of a communication channel in SAP with the data communicated being IDocs .   TCODE: WE21
  • 53. ALE For Transactional data ---- Output Determination NACE
  • 54. Output Determination -- Output Types
  • 55. Output Types -- Details
  • 57. Inbound Processing. Application posting ALE layer Input control Database Simultaneously update IDOC's status Field value conversion A Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
  • 58. Input Control Application posting ALE layer Input control Database Simultaneously update IDOC's status 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 Field value conversion A Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
  • 59. Application Input Application posting ALE layer Input control Database Simultaneously update IDOC's status Inbound IDOCs are passed to the application via a standardized function interface Field value conversion A Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
  • 60. Serialization Application posting ALE layer Input control Database Simultaneously update IDOC's status 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) Field value conversion A Comm. layer asynch. RFC or EDI Version change Segment filter C A Post application document Process IDOC Serialization
  • 61. FM Assignment to Message Type and IDoc type TCODE: WE57
  • 63. Process Codes in Inbound and Outbound TCODE: WE64
  • 64. FM For Inbound EDI TCODE: BD67
  • 65. Inbound Program Development INBOUND_IDOC_PROCESS 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 Call function Return Variables If ERROR, trigger Version change Segment filter Field conversion IDOC Workflow Task
  • 66. Basic Scenario Direct Method Call Transaction Method
  • 67. Advanced Scenario Mass processing Serialization Advanced Workflow
  • 68. Flow Of Program Read IDOC-Lock IDOC-Call Inbound Program-Write Status-Commit Work-Unlock IDOC
  • 69. 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. Topics to cover What is ALE ? Components of ALE . Anatomy of an IDoc. ALE Processing Transactions For Monitoring and Processing IDocs. Questions
  • 71. 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. List Of All IDocs Created. (Default, Additional, EDI)-- WE02/ WE05
  • 73. Selection Program For Issuing Output -- WE15
  • 74. Test Tool For Idoc Processing (WE19)
  • 75. Idoc Search For Business Contents (Database). WE09