Inbound and Outbound Idoc Configuration Steps
Inbound and Outbound Idoc Configuration Steps
Go to start of metadata
This document explains about inbound and outbound Idoc configuration with simple
steps. Download Detail Document in Word Format .
1. What is Idoc?
IDocs are structured ASCII files (or a virtual equivalent). They are the file format used by SAP R/3 to
exchange data with foreign systems.
IDocs is the acronym for Interchange Document (Intermediate Document). This indicates a set of
(electronic) information which builds a logical entity. An IDoc is e.g. all the data of a single customer
in your customer master data file, or the IDoc is all the data of a single invoice.
The information which is exchanged by IDocs is called a message and the IDoc is the physical
representation of such a message. The name “messages” for the information sent via IDocs is used in
the same ways as other EDI standards.
1. For new IDOC type select the radio button Basic type and press Create button.
2. Then select the IDOC option to create and press Enter. Give segment name, minimum and
maximum number for and save it. Check if this is mandatory segment.
3. If you want Header and Item create the segment tree according to that, you can view as
follows then press Save.
4. Then go back and set release the IDOC type for using it further. Idoc type will be created
successfully once we release that status. We have to release the segments (in WE31) and IDOC type
as well.
Click the node define logical system from SPRO -> SAP Reference IMG -> SAP customizing
Implementation Guide -> SAP xApp Resource and Portfolio Management (SAP xRPM) -> Base
system Interfaces -> SAP Human Capital Management Integration -> Common system configuration
and SAP HCM ALE setup -> Application link enabling (ALE) -> Basic Settings -> Logical Systems ->
Define Logical System
Else go to transaction SALE then go to Basic settings-> logical system then Define logical system.
We can create the same.
b. Then Click Connection test icon after marking the current user checkbox in logon and
security tab.
2. Go to transaction WE31 -> create segments as shown before. Here you have to mention all the
fields mentioned in the database table.
3. Go to transaction WE30 -> create basic IDOC type and release the segments and basic type.
5. Go to transaction WE82 -> assign message type to basic Idoc type.
9. Select your model view -> click edit -> Add message type
10. In dialog box specify sender, receiver, and message type and continue.
12. It will show the following screen. Select your model view and click on execute.
14. Click on back button 2 times it will take to distribution model screen.
16. In displayed dialog box select the partner system and continue.
19. Then write the report program in SE38 to create IDOC control records and transfer it to
destination partner system.
IDocs are text encoded documents with a rigid structure that are used to exchange
data between R/3 and a foreign system. Instead of calling a program in the destination
system directly, the data is first packed into an IDoc and then sent to the receiving
system, where it is analyzed and properly processed. Therefore an IDoc data
exchange is always an asynchronous process. The significant difference between
simple RFC-calls and IDoc data exchange is the fact, that every action performed on
IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one
of the message steps.
While IDocs have to be understood as a data exchange protocol, EDI and ALE are
typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to
the receiving system. ALE is basically the scheduling mechanism that defines when
and between which partners and what kind of data will be exchanged on a regular or
event triggered basis. Such a set-up is called an ALE-scenario.
IDOC types are templates for specific message types depending on what is the
business document, you want to exchange.
Creating a Segment
Go to transaction code WE31
Enter the name for your segment type and click on the Create icon
Type the short text
Enter the variable names and data elements
Save it and go back
Go to Edit -> Set Release
Follow steps to create more number of segments
An IDOC with data, will have to be triggered by the application that is trying to
send out the data.
Try this:
SAP ALE & IDOC<<<<
Steps to configuration(Basis) >>
1. Create Logical System (LS) for each applicable ALE-enabled client
2. Link client to Logical System on the respective servers
3. Create background user, to be used by ALE(with authorizaton for ALE postings)
4. Create RFC Destinations(SM59)
5. Ports in Idoc processing(WE21)
6. Generate partner profiles for sending system