ALE EDI IDoc Training
ALE EDI IDoc Training
1. IDoc Introduction................................................................................................................................................................................................. 1
2. Standard Inbound/Outbound IDoc......................................................................................................................................................................3
a. Sample Scenario for Standard Inbound/Outbound IDoc..................................................................................................................................3
b. Inbound Standard (Sales Order ORDERS against customer - KU).....................................................................................................................3
c. Outbound Standard (Sales Order INVOIC customer - KU)................................................................................................................................5
d. Test cases created in D19 System for standard Inbound / Outbound IDoc....................................................................................................12
3. Change Pointers (Example Material Master – Message Type MATMAS)...........................................................................................................12
4. Custom Inbound / Outbound IDoc..................................................................................................................................................................... 15
a. Sample Scenario for Custom Inbound / Outbound IDoc................................................................................................................................15
b. Custom Inbound IDoc.................................................................................................................................................................................... 15
c. Custom Outbound IDoc.................................................................................................................................................................................. 17
d. Test cases created for custom Inbound & Outbound IDoc in D19 system.....................................................................................................20
5. Miscellaneous T-codes & useful points for IDocs...............................................................................................................................................20
6. EDI standards..................................................................................................................................................................................................... 20
7. Miscellaneous.................................................................................................................................................................................................... 21
1. IDoc Introduction
2. Methods of transfer:
a. ALE - ALE stands for Application Link Enabling. Application Link Enabling is a very common technology used in SAP to transfer
master and transactional data between different Logical Systems. ALE is a proprietary SAP technology.
b. EDI - EDI stands for Electronic Data Interchange. EDI is a much older term and has been used in existence much before SAP. EDI
is a generic technology that has been standardized using ANSI and EDIFACT standards. EDI is a very standard Industry standard
used for business communication across partners.
Note: EDI is used to communicate with Partner Systems, while ALE is used to communicate between Logical Systems. Please do
however observe that a Partner System could also be a logical system.
3. Message type: A message type represents the application message exchanged between R/3 systems and R/3 and an external system. A
message type characterizes the data sent across systems and relates to the structure of the data called an IDOC type. For example,
MATMAS is a message type for Material Master, and INVOIC is a message type for an Invoice (Billing Document).
4. Basic type (IDoc Type): Basic/IDoc type represents the structure and sequence of the data transferred from one system to another
system.
5. IDoc structure
a. Control Record
b. Data Record
c. Status Record
6. Types of IDoc:
a. Outbound
b. Inbound
2. Standard Inbound/Outbound IDoc
10. Additional T-codes needed and points to be noted for Inbound IDoc with extension
a. WE31 - To create segment (ZE1EDK01)
b. WE30 - To create extension (ZORDERS05)
c. WE82 - To link the extension to the existing standard message type and IDoc/Basic type (ORDERS -> ORDERS05 ->
ZORDERS05)
d. WE42 - To create new custom process code if needed. The new custom FM to be attached should have same parameters as
of any standard inbound IDoc processing FM.
- If going with standard process code, check the attached FM to the process code and see the customer exits available to
read the data from the Z segment and implement the necessary functionality
5. Identify the outbound process code and see the FM attached to the process code for IDoc processing
WE41 - Outbound Process Code (SD09)
6. Decide on the method of IDoc triggering
a. Report/FM/Module Pool Program - Write the logic to fill the IDoc control data and IDoc data and
i. call the Standard FM to send the IDoc - IDOC_OUTPUT_INVOIC identified from the process code
ii. call the FM: MASTER_IDOC_DISTRIBUTE followed by FM's: DB_COMMIT (to change the status of IDoc from 30 to 03),
EDI_DOCUMENT_DEQUEUE_LATER (call inside the loop of date received in table parameter
COMMUNICATION_IDOC_CONTROL from FM: MASTER_IDOC_DISTRIBUTE) and commit and wait to send the IDoc.
b. Via Output Type - Identify the right output type and do the necessary NACE configuration with the help of functional
11. Additional T-codes needed and points to be noted for Inbound IDoc with extension
a. WE31 - To create segment (ZE1EDK01)
b. WE30 - To create extension (ZINVOIC02)
c. WE82 - To link the extension to the existing standard message type and IDoc/Basic type (INVOIC -> INVOIC02 -> ZINVOIC02)
d. WE20 - Partner Profile
e. WE41 - To create new custom process code if needed. The new custom FM to be attached should have same parameters as
of any standard outbound IDoc processing FM.
- If going with standard process code, check the attached FM to the process code and see the customer exits available to fill
the data in the Z segment
d. Test cases created in D19 System for standard Inbound / Outbound IDoc
Use the t-codes listed in standard inbound/outbound case to identify the correct message type, IDoc type and do the necessary partner
profile set up before triggering the change pointer IDocs.
Budget (Reward)
Customer 3 (Excel)
SEEBURGER
Budget Utilization
1. Create Segments
WE31 - Create Segments (ZBUDGET_HDR)
5. Create FM to process the inbound IDoc. The new custom FM to be attached should have same parameters as of any standard
outbound IDoc processing FM.
SE37 - FM to process the inbound FM. (ZBUDGET_IDOC_INPUT)
6. Create an entry of the above FM in BD51 so that the function Module can be attached to process code in WE42.
BD51 - Characteristics of Inbound FM. (ZBUDGET_IDOC_INPUT)
7. Create an entry of the Function Module in WE57. This step attaches the FM with Inbound IDoc type and the message type.
WE57 - Assignment of FM to Message and IDoc Type (ZBUDGET_IDOC_INPUT -> ZBUDGET_IN -> ZBUDGET)
8. Create new inbound process code and attach the new custom FM to the process code for IDoc processing and the message type
under logical messages.
WE42 - Inbound Process Code (ZBUD)
9. To set up the partner profile for receiving the IDoc
WE20 - Partner Profile
1. Create Segments
WE31 - Create Segments (ZBUDGET_HDR, ZBUDGET_UTIL)
d. Test cases created for custom Inbound & Outbound IDoc in D19 system
6. EDI standards
Refer the below link to know more about each EDI standards
https://www.edibasics.com/edi-resources/document-standards/#ansi
Refer the blow line to know about top EDI third service providers
https://www.youredi.com/blog/25-great-edi-service-providers
o EDIFACT
7. Miscellaneous
Output Management via BRF+ - With SAP S/4 HANA a new Output Management approach is in place.
The complete configuration differs from the configuration that is used when output management is based on NAST (condition
technique). The configuration is based on BRF+.
https://blogs.sap.com/2016/04/01/output-management-via-brf/
Table Used -
o APOC_D_OR_ITEM - Output Request Item (replacement for NAST)
o APOC_I_OUTP_TYPE - Output Type