<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Idoc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153812#M750023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To Create Idoc we need to follow these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Segment ( WE31)&lt;/P&gt;&lt;P&gt;Create Idoc Type ( WE30 )&lt;/P&gt;&lt;P&gt;Create Message Type ( WE81 )&lt;/P&gt;&lt;P&gt;Assign Idoc Type to Message Type ( WE82 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a Segment&lt;/P&gt;&lt;P&gt;Go to transaction code WE31&lt;/P&gt;&lt;P&gt;Enter the name for your segment type and click on the Create icon&lt;/P&gt;&lt;P&gt;Type the short text&lt;/P&gt;&lt;P&gt;Enter the variable names and data elements&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set Release&lt;/P&gt;&lt;P&gt;Follow steps to create more number of segments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create IDOC Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE30&lt;/P&gt;&lt;P&gt;Enter the Object Name, select Basic type and click Create icon&lt;/P&gt;&lt;P&gt;Select the create new option and enter a description for your basic IDOC type and press enter&lt;/P&gt;&lt;P&gt;Select the IDOC Name and click Create icon&lt;/P&gt;&lt;P&gt;The system prompts us to enter a segment type and its attributes&lt;/P&gt;&lt;P&gt;Choose the appropriate values and press Enter&lt;/P&gt;&lt;P&gt;The system transfers the name of the segment type to the IDOC editor.&lt;/P&gt;&lt;P&gt;Follow these steps to add more number of segments to Parent or as Parent-child relation&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Message Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE81&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign Message Type to IDoc Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE82&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter.&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type.&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reward points if found helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 16:36:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-19T16:36:28Z</dc:date>
    <item>
      <title>Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153807#M750018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls tell me brief&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the use of Idoc give me some links for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ammu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 08:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153807#M750018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T08:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153808#M750019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;idoc is used to transfer data from sap to sap or&lt;/P&gt;&lt;P&gt;sap to non sap system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale2.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale2.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap.html" target="test_blank"&gt;http://www.sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward points if helpfull&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 08:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153808#M750019</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-12-19T08:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153809#M750020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALE (Application Linking and Enabling)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ale Technology is SAP&amp;#146;s technology to support distributed yet integrated processes across several SAP systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distributed Process:&lt;/P&gt;&lt;P&gt;A distributed process is one in which part of a business process is carried out on one system and part on another. The two systems would exchange data with each other at appropriate points to stay synchronized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need for Distributed Process:&lt;/P&gt;&lt;P&gt;&amp;#149;	Business in Different Geographical Locations.&lt;/P&gt;&lt;P&gt;&amp;#149;	Non availability of dedicated network.&lt;/P&gt;&lt;P&gt;&amp;#149;	Cultural and language differences in Geographical locations.&lt;/P&gt;&lt;P&gt;&amp;#149;	Running of Mission-critical Applications (Like Maintenance downtime etc.).&lt;/P&gt;&lt;P&gt;&amp;#149;	Separate up gradation of Modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distributed SAP SYSTEM &amp;#150; CHALLENGES&lt;/P&gt;&lt;P&gt;&amp;#149;	A system that understands the syntax and semantics of the data. It was important from the very beginning to base the distribution of data on business rules, not on database replication techniques.&lt;/P&gt;&lt;P&gt;&amp;#149;	Distributed systems that can maintain their autonomy while being integrated as one logical SAP system. The systems should be able to operate independently and support logical processing of transactions and data.&lt;/P&gt;&lt;P&gt;&amp;#149;	Distributed systems that can handle different data models. A local implementation should be able to customize the system to meet its local needs.&lt;/P&gt;&lt;P&gt;&amp;#149;	Receiving systems that can handle their own problems and not tie up the sending system.&lt;/P&gt;&lt;P&gt;&amp;#149;	Systems that maintain continued operation in spite of network failure. Changes made to either system should be synchronized after the network connection is restored.&lt;/P&gt;&lt;P&gt;&amp;#149;	A sound technology and methodology that can be used in all distribution scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Distributed environment:&lt;/P&gt;&lt;P&gt;ALE allows for efficient and reliable communication between distributed processes across physically separate SAP systems.&lt;/P&gt;&lt;P&gt;ALE is based on application to application integration using messaging architecture. A message defines data that is exchanged between two processes. IDocs are containers that hold data exchanged between the two systems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benefits of ALE:&lt;/P&gt;&lt;P&gt;&amp;#149;	Integration with non-SAP systems: ALE architecture allows third party applications to integrate with SAP system.&lt;/P&gt;&lt;P&gt;&amp;#149;	Reliable Distribution: Once message type created and the receiver of the message is determined, ALE delivers the message to the recipient. If there is any network problem it will buffer the message and delivers the message once the network is restored. It also ensures that the message is not delivered twice.&lt;/P&gt;&lt;P&gt;&amp;#149;	Release Upgrade: Any of the distributed system can be upgraded to the new release of SAP without affecting the functionality. The ALE layer ensures backward compatibility of messages exchanged between systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE Architecture:&lt;/P&gt;&lt;P&gt;It consists of an Outbound process, an Inbound process, and an Exception &amp;#150; Handling process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound Process:&lt;/P&gt;&lt;P&gt;ALE Outbound Process in SAP sends data to one or more SAP Systems. It involves four steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Identify the need of IDoc:  This step starts upon creating a application document, can relate to a change to a master data object.&lt;/P&gt;&lt;P&gt;2.	Generate the Master IDoc: The document or master data to be sent is read from the database and formatted into an IDoc format. This IDoc is called as a Master IDoc.&lt;/P&gt;&lt;P&gt;3.	Generate the Communication IDoc: The ALE Service layer generates a separate IDoc from the Master IDoc for each recipient who is interested in the data. Separate IDocs are generated because each recipient might demand a different version or a subset of the Master IDoc. These recipient-specific IDocs are called Communication IDocs and are stored in the database.&lt;/P&gt;&lt;P&gt;4.	Deliver the Communication IDoc: The IDoc is delivered to the recipients using an asynchronous communication method. This allows the sending system to continue its processing without having to wait for the destination system to receiver or process the IDoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inbound Process:&lt;/P&gt;&lt;P&gt;The inbound process receives an IDoc and creates a document in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Store the IDoc in the database: The IDoc is received from the sending system and stored in the database. Then the IDoc goes through a basic integrity check and syntax check.&lt;/P&gt;&lt;P&gt;2.	Invoke the Posting Module: The control information in the IDoc and configuration tables are read to determine the posting program. The IDoc is then transferred to its posting program.&lt;/P&gt;&lt;P&gt;3.	Create the Document: The posting program reads the IDoc data and then creates a document in the system. The results are logged in the IDoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over view of IDocs:&lt;/P&gt;&lt;P&gt;IDoc is a container that is used to exchange data between any two processes. The document represented in an IDoc is independent of the complex structure SAP uses to store application data. This type of flexibility enables SAP to rearrange its internal structure without affecting the existing interface.&lt;/P&gt;&lt;P&gt;IDoc interface represents an IDoc Type or IDoc data. IDoc Type represents IDoc&amp;#146;s definition and IDoc Data is an instance of the IDoc Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDoc Types:&lt;/P&gt;&lt;P&gt;IDoc type structure can consist of several segments, and each segment can consist of several data fields. The IDoc structure defines the syntax of the data by specifying a list of permitted segments and arrangement of the segments. Segments define a set of fields and their format.&lt;/P&gt;&lt;P&gt;An IDoc is an instance of an IDoc Type and consists of three types of records.&lt;/P&gt;&lt;P&gt;i.	One Control record: each IDoc has only one control record. The control record contains all the control information about an IDoc, including the IDoc number, the sender and recipient information, and information such as the message type it represents and IDoc type. The control record structure is same for all IDocs.&lt;/P&gt;&lt;P&gt;ii.	One or Many Data records: An IDoc can have multiple data records, as defined by the IDoc structure. Segments translate into data records, which store application data, such as purchase order header information and purchase order detail lines.&lt;/P&gt;&lt;P&gt;iii.	One or Many Status records: An IDoc can have multiple status records. Status record helps to determine whether an IDoc has any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message in IDoc Type:&lt;/P&gt;&lt;P&gt;A Message represents a specific type of document transmitted between two partners. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound Process in IDocs:&lt;/P&gt;&lt;P&gt;Outbound process used the following components to generate an IDoc. A customer model, and IDoc structure, selection programs, filter objects, conversion rules, a port definition, an RFC destination, a partner profile, service programs, and configuration tables.&lt;/P&gt;&lt;P&gt;The Customer Model:&lt;/P&gt;&lt;P&gt;A customer model is used to model a distribution scenario. In a customer model, you identify the systems involved in a distribution scenario and the message exchanged between the systems.&lt;/P&gt;&lt;P&gt;Message control:&lt;/P&gt;&lt;P&gt;Message control is a cross application technology used in pricing, account determination, material determination, and output determination.  The output determination technique of Message control triggers the ALE for a business document. Message control separates the logic of generating IDocs from the application logic.&lt;/P&gt;&lt;P&gt;Change Pointers:&lt;/P&gt;&lt;P&gt;The change pointers technique is based on the change document technique, which tracks changes made to key documents in SAP, such as the material master, customer master and sales order. &lt;/P&gt;&lt;P&gt;Changes made to a document are recorded in the change document header table CDHDR, and additional change pointers are written in the BDCP table for the changes relevant to ALE.&lt;/P&gt;&lt;P&gt;IDoc Structure:&lt;/P&gt;&lt;P&gt;A message is defined for data that is exchanged between two systems. The message type is based on one or more IDoc structures.&lt;/P&gt;&lt;P&gt;Selection Program:&lt;/P&gt;&lt;P&gt;Is typically implemented as function modules, are designed to extract application data and create a master IDoc. A selection program exists for each message type. A selection program&amp;#146;s design depends on the triggering mechanism used in the process.&lt;/P&gt;&lt;P&gt;Filter Objects;&lt;/P&gt;&lt;P&gt;Filter Objects remove unwanted data for each recipient of the data basing on the recipients requirement.&lt;/P&gt;&lt;P&gt;Port Definition:&lt;/P&gt;&lt;P&gt;A port is used in an outbound process to define the medium in which documents are transferred to the destination system. ALE used a Transactional RFC port, which transfers data in memory buffers.&lt;/P&gt;&lt;P&gt;RFC Destination:&lt;/P&gt;&lt;P&gt;The RFC destination is a logical name used to define the characteristics of a communication link to a remote system on which a function needs to be executed.&lt;/P&gt;&lt;P&gt;Partner Profile:&lt;/P&gt;&lt;P&gt;A partner profile specifies the components used in an outbound process(logical name of the remote SAP system, IDoc Type, message type, TRFC port), an IDoc&amp;#146;s packet size, the mode in which the process sends an IDoc (batch versus immediate), and the person to be notified in case of error.&lt;/P&gt;&lt;P&gt;Service Programs and Configuration Tables:&lt;/P&gt;&lt;P&gt;The outbound process, being asynchronous, is essentially a sequence of several processes that work together. SAP provides service programs and configuration tables to link these programs and provide customizing options for an outbound process.&lt;/P&gt;&lt;P&gt;Process flow for Distributing Transactional Data:&lt;/P&gt;&lt;P&gt;Transactional data is distributed using two techniques: with Message control and without message control. &lt;/P&gt;&lt;P&gt;Process flow for Distributing Master Data:&lt;/P&gt;&lt;P&gt;Master data between SAP systems is distributed using two techniques: Stand alone Programs and Change Pointers.&lt;/P&gt;&lt;P&gt;Triggering the Outbound Process via Stand-Alone Programs:&lt;/P&gt;&lt;P&gt;Stand-Alone programs are started explicitly by a user to transmit data from one SAP system to another. Standard Programs for several master data objects exist in SAP.  Ex. The material master data can be transferred using the RBDSEMAT program or transaction BD10.&lt;/P&gt;&lt;P&gt;The stand-alone programs provide a selection screen to specify the objects to be transferred and the receiving system. After the stand-alone program is executed, it calls the IDoc selection program with the specified parameters.&lt;/P&gt;&lt;P&gt;Triggering the Outbound Process via Change Pointers:&lt;/P&gt;&lt;P&gt;The change pointer technique is used to initiate the outbound process automatically when master data is created or changed.&lt;/P&gt;&lt;P&gt;A standard program, RBDMIDOC, is scheduled to run on a periodic basis to evaluate the change pointers for a message type and start the ALE process for distributing the master data to the appropriate destination. The RBDMIDOC program reads the table TBDME to determine the IDoc selection program for a message type.&lt;/P&gt;&lt;P&gt;Processing in the Application Layer:&lt;/P&gt;&lt;P&gt;The customer distribution model is consulted to make sure that a receiver has been defined for the message to be transmitted. If not, processing ends. If at least one receiver exists, the IDoc selection program reads the master data object from the database and creates a master IDoc from it. The master IDoc is stored in memory. The program then calls the ALE service layer by using the function module MASTER_IDOC_DISTRIBUTE, passing the master IDoc and the receiver information. &lt;/P&gt;&lt;P&gt;Processing in the ALE Interface Layer:&lt;/P&gt;&lt;P&gt;Processing in the ALE Layer consists of the following steps:&lt;/P&gt;&lt;P&gt;&amp;#149;	Receiver Determination: The determination of the receiver is done through Customer Distribution Model.&lt;/P&gt;&lt;P&gt;&amp;#149;	IDoc Filtering: if an IDoc filter is specified in the distribution model for a receiver, values in the filter are compared against the values in the IDoc data records. If a data record does not meet the filter criteria, it is dropped.&lt;/P&gt;&lt;P&gt;&amp;#149;	Segment Filtering: For each sender and receiver combination, a set of segments that are not required can be filtered out.&lt;/P&gt;&lt;P&gt;&amp;#149;	Field conversion: Field values in data records are converted by using the conversion rules specified for the segment.&lt;/P&gt;&lt;P&gt;&amp;#149;	Version change for segments: Segments are version-controlled. A new version of a segment always contains fields from the preceding version and fields added for the new version. Release in IDoc type field of the partner profile to determine the version of the segment to be generated.&lt;/P&gt;&lt;P&gt;&amp;#149;	Version change for IDocs: IDocs are also version controlled. The version is determined from the Basic Type field of the partner profile.&lt;/P&gt;&lt;P&gt;&amp;#149;	Communication IDocs generated: The final IDoc generated for a receiver after all the conversions and filtering operations is the communication IDoc. One master IDoc can have multiple communication IDocs depending on the number of receivers identified and the filter operations performed. IDoc gets the status record with a status code of 01 (IDoc Created).&lt;/P&gt;&lt;P&gt;&amp;#149;	Syntax check performed: IDoc goes through a syntax check and data integrity validation. If errors found the IDoc get the status of 26 (error during syntax check of IDoc &amp;#150; Outbound). If no errors found the IDoc gets the status 30 (IDoc ready for dispatch &amp;#150; ALE Service).&lt;/P&gt;&lt;P&gt;&amp;#149;	IDoc dispatched to the communication Layer: In the ALE process, IDocs are dispatched using the asynchronous RFC method, which means that the sending system does not await for data to be received or processed on the destination system. After IDocs have been transferred to the communication layer, they get a status code 01 (Data Passed to Port OK).&lt;/P&gt;&lt;P&gt;Processing in the Communication Layer: &lt;/P&gt;&lt;P&gt;To dispatch an IDoc to a destination system, the system reads the port definition specified in the partner profile to determine the destination system, which is then used to read the RFC destination. The RFC destination contains communication settings to log o to the remote SAP system. The sending system calls the INBOUND_IDOC_PROCESS function module asynchronously on the destination system and passes the IDoc data via the memory buffers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inbound Process in IDocs:&lt;/P&gt;&lt;P&gt;An inbound process used IDoc structure, posting programs, filter objects, conversion rules, a partner profile, service programs, and configuration tables to post an application document from an IDoc.&lt;/P&gt;&lt;P&gt;Posting Program:&lt;/P&gt;&lt;P&gt;Posting programs, which are implemented as function modules, read data from an IDoc and create an application document from it. A posting program exists for each message. Each posting program is assigned a process code. A process code can point to a function module or a work flow. In the standard program process codes always point to a function module.&lt;/P&gt;&lt;P&gt;Ex. The posting program for message type MATMAS is IDOC_INPUT_MATMAS which has a process code MATM.&lt;/P&gt;&lt;P&gt;Workflow:&lt;/P&gt;&lt;P&gt;A workflow represents a sequence of customized steps to be carried out for a process. The workflow management system is used to model the sequence, identify information required to carry out the steps and identify the person responsible for the dialog steps.&lt;/P&gt;&lt;P&gt;Partner Profile;&lt;/P&gt;&lt;P&gt;A partner profile specifies the components used in an inbound process (partner number, message type, and process code), the mode in which IDocs are processed (batch versus immediate), and the person to be notified in case of errors.&lt;/P&gt;&lt;P&gt;Process flow for the Inbound process via a Function Module:&lt;/P&gt;&lt;P&gt;In this process, IDocs are received from another system and passed to the posting function module directly. &lt;/P&gt;&lt;P&gt;1.	Processing in the communication Layer:&lt;/P&gt;&lt;P&gt;The IDOC_INBOUND_ASYCHRONOUS program, triggered as a result of an RFC from the sending system, acts as the entry point for all inbound ALE processes. The IDoc to be processed is passed as an input parameter. Control is transferred to the ALE/EDI layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.	Processing in the ALE/EDI Interface Layer:&lt;/P&gt;&lt;P&gt;&amp;#149;	Basic integrity check: A basic integrity check is performed on the control record.&lt;/P&gt;&lt;P&gt;&amp;#149;	Segment Filtering and conversion: Filtering out unwanted segments and carry out any required conversion of field values.&lt;/P&gt;&lt;P&gt;&amp;#149;	Creation of Application IDoc: The application IDoc is created and stored in the database and a syntax check is performed. If there are errors it gets status code of 60 (Error during Syntax check of IDoc &amp;#150; Inbound). At this point a tangible IDoc, which can be monitored via one of the monitoring transactions, is created and the IDoc gets status code 50 (IDoc Added).&lt;/P&gt;&lt;P&gt;&amp;#149;	IDoc Marked ready for Dispatch: IDoc gets the status code 64 (IDoc ready to be passed to application).&lt;/P&gt;&lt;P&gt;&amp;#149;	IDoc is passed to the posting program: The partner profile table is read. If the value of the Processing field is set to Process Immediately, the IDoc is passed to the posting program immediately using the program RBDAPP01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.	Processing in the Posting Module:&lt;/P&gt;&lt;P&gt;The process code in the partner profile points to a posting module for the specific message in the IDoc. The posting program implemented as a function module either calls a standard SAP transaction by using the Call Transaction command for posting the document or invokes a direct input function module. &lt;/P&gt;&lt;P&gt;The results of execution are passed back via the function module&amp;#146;s output parameters. If the posting is successful IDoc gets the status code 53 (Application Document Posted) or it gets status code 51 (Error: Application Document Not Posted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating an IDoc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic Type:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic IDoc type defines the structure and format of the business document that is to be exchanged between two systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segments form the basic building blocks of an IDoc type and are used to store the actual datta. A segment type is the name of a segment and is independent of the SAP elease. A segment definition is the release-specific name of a segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps in creating Segments:&lt;/P&gt;&lt;P&gt;T.Code WE31&lt;/P&gt;&lt;P&gt;Enter the name for your segment type and click on the create icon.&lt;/P&gt;&lt;P&gt;Type the Short text.&lt;/P&gt;&lt;P&gt;Enter the variable names and data elements.&lt;/P&gt;&lt;P&gt;Save and Go back.&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set Release.&lt;/P&gt;&lt;P&gt;Repeat the steps to create more segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC TYPE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business data is exchanged with an external system using the IDoc Interface.&lt;/P&gt;&lt;P&gt;IDoc types (Special Structures) An IDoc type is defined through its permitted segments. Segments can be dependent on each other (parent and child segments). The IDoc interface can check for each IDoc whether thhe segments contained are compatible with thhe definitiion of its type. This systax check is activated or deactivated in the Partner Profiles.&lt;/P&gt;&lt;P&gt;Steps in creating IDoc Type:&lt;/P&gt;&lt;P&gt;T.Code WE30 to create IDoc Type.&lt;/P&gt;&lt;P&gt;Enter the Object Name, Select Basic Type and click Create Icon&lt;/P&gt;&lt;P&gt;Select the create new option and enter a description for your basic IDOC type and press enter&lt;/P&gt;&lt;P&gt;Select the IDoc name and click Create icon&lt;/P&gt;&lt;P&gt;The system prompts us to enter a segment type and its attributes&lt;/P&gt;&lt;P&gt;Choose the appropriate values and press enter&lt;/P&gt;&lt;P&gt;The system transfers the name of the segment type to the IDoc editor.&lt;/P&gt;&lt;P&gt;Follow these steps to add more number of segments to Parent or as Parent-child relation.&lt;/P&gt;&lt;P&gt;Save it and go back.&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set Release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message Type:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps in Creating Message Type:&lt;/P&gt;&lt;P&gt;T.Code WE81.&lt;/P&gt;&lt;P&gt;change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message "The table is cross client (See help for further info)". Press enter.&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type.&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign Message Type to IDoc Type:&lt;/P&gt;&lt;P&gt;T.Code WE82&lt;/P&gt;&lt;P&gt;Change the details from Display mode to change mode.&lt;/P&gt;&lt;P&gt;After selection, the system will give this message "The table is cross client (See help for further info)". Press enter.&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type.&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 09:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153809#M750020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153810#M750021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i hope that ur prob will be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://idocs.de/www3/cookbooks/idoc/cb10_idoc_03_firstlook/idoc_20_getafeeling/frameset.htm" target="test_blank"&gt;http://idocs.de/www3/cookbooks/idoc/cb10_idoc_03_firstlook/idoc_20_getafeeling/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regard&lt;/P&gt;&lt;P&gt;mukesh goyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153810#M750021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T11:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153811#M750022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bujji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDocs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDoc is a intermediate document to exchange data between two SAP Systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information in details on the same along with the examples can be viewed on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/presentation.html" target="test_blank"&gt;http://www.sappoint.com/presentation.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_search.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_search.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.erpgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ALE/ IDOC&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale2.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale2.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap.html" target="test_blank"&gt;http://www.sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale2.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale2.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap.html" target="test_blank"&gt;http://www.sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reward points if found helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 16:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153811#M750022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153812#M750023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To Create Idoc we need to follow these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Segment ( WE31)&lt;/P&gt;&lt;P&gt;Create Idoc Type ( WE30 )&lt;/P&gt;&lt;P&gt;Create Message Type ( WE81 )&lt;/P&gt;&lt;P&gt;Assign Idoc Type to Message Type ( WE82 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a Segment&lt;/P&gt;&lt;P&gt;Go to transaction code WE31&lt;/P&gt;&lt;P&gt;Enter the name for your segment type and click on the Create icon&lt;/P&gt;&lt;P&gt;Type the short text&lt;/P&gt;&lt;P&gt;Enter the variable names and data elements&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set Release&lt;/P&gt;&lt;P&gt;Follow steps to create more number of segments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create IDOC Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE30&lt;/P&gt;&lt;P&gt;Enter the Object Name, select Basic type and click Create icon&lt;/P&gt;&lt;P&gt;Select the create new option and enter a description for your basic IDOC type and press enter&lt;/P&gt;&lt;P&gt;Select the IDOC Name and click Create icon&lt;/P&gt;&lt;P&gt;The system prompts us to enter a segment type and its attributes&lt;/P&gt;&lt;P&gt;Choose the appropriate values and press Enter&lt;/P&gt;&lt;P&gt;The system transfers the name of the segment type to the IDOC editor.&lt;/P&gt;&lt;P&gt;Follow these steps to add more number of segments to Parent or as Parent-child relation&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Message Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE81&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign Message Type to IDoc Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE82&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter.&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type.&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reward points if found helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 16:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153812#M750023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153813#M750024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bujji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to configuration(Basis) &amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;1. Create Logical System (LS) for each applicable ALE-enabled client &lt;/P&gt;&lt;P&gt;2. Link client to Logical System on the respective servers &lt;/P&gt;&lt;P&gt;3. Create background user, to be used by ALE(with authorizaton for ALE postings) &lt;/P&gt;&lt;P&gt;4. Create RFC Destinations(SM59) &lt;/P&gt;&lt;P&gt;5. Ports in Idoc processing(WE21) &lt;/P&gt;&lt;P&gt;6. Generate partner profiles for sending system &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functional configuration(Tcode: SALE) &lt;/P&gt;&lt;P&gt;&amp;#149; Create a Customer Distribution Model (CDM); &lt;/P&gt;&lt;P&gt;&amp;#149; Add appropriate message types and filters to the CDM; &lt;/P&gt;&lt;P&gt;&amp;#149; Generate outbound partner profiles; &lt;/P&gt;&lt;P&gt;&amp;#149; Distribute the CDM to the receiving systems; and &lt;/P&gt;&lt;P&gt;&amp;#149; Generate inbound partner profiles on each of the clients. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to customize a new IDoc &amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;1. Define IDoc Segment (WE31) &lt;/P&gt;&lt;P&gt;2. Convert Segments into an IDoc type (WE30) &lt;/P&gt;&lt;P&gt;3. Create a Message Type (WE81) &lt;/P&gt;&lt;P&gt;4. Create valid Combination of Message &amp;amp; IDoc type(WE82) &lt;/P&gt;&lt;P&gt;5. Define Processing Code(WE41 for OUT / WE42 for IN) &lt;/P&gt;&lt;P&gt;6. Define Partner Profile(WE20) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important Transaction Codes: &lt;/P&gt;&lt;P&gt;SALE - IMG ALE Configuration root &lt;/P&gt;&lt;P&gt;WE20 - Manually maintain partner profiles &lt;/P&gt;&lt;P&gt;BD64 - Maintain customer distribution model &lt;/P&gt;&lt;P&gt;BD71 - Distribute customer distribution model &lt;/P&gt;&lt;P&gt;SM59 - Create RFC Destinations &lt;/P&gt;&lt;P&gt;BDM5 - Consistency check (Transaction scenarios) &lt;/P&gt;&lt;P&gt;BD82 - Generate Partner Profiles &lt;/P&gt;&lt;P&gt;BD61 - Activate Change Pointers - Globally &lt;/P&gt;&lt;P&gt;BD50 - Activate Change Pointer for Msg Type &lt;/P&gt;&lt;P&gt;BD52 - Activate change pointer per change.doc object &lt;/P&gt;&lt;P&gt;BD59 - Allocation object type -&amp;gt; IDOC type &lt;/P&gt;&lt;P&gt;BD56 - Maintain IDOC Segment Filters &lt;/P&gt;&lt;P&gt;BD53 - Reduction of Message Types &lt;/P&gt;&lt;P&gt;BD21 - Select Change Pointer &lt;/P&gt;&lt;P&gt;BD87 - Status Monitor for ALE Messages &lt;/P&gt;&lt;P&gt;BDM5 - Consistency check (Transaction scenarios) &lt;/P&gt;&lt;P&gt;BD62 - Define rules &lt;/P&gt;&lt;P&gt;BD79 - Maintain rules &lt;/P&gt;&lt;P&gt;BD55 - Defining settings for IDoc conversion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WEDI - ALE IDoc Administration &lt;/P&gt;&lt;P&gt;WE21 - Ports in Idoc processing &lt;/P&gt;&lt;P&gt;WE60 - IDoc documentation &lt;/P&gt;&lt;P&gt;SARA - IDoc archiving (Object type IDOC) &lt;/P&gt;&lt;P&gt;WE47 - IDoc status maintenance &lt;/P&gt;&lt;P&gt;WE07 - IDoc statistics &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BALE - ALE Distribution Administration &lt;/P&gt;&lt;P&gt;WE05 - IDoc overview &lt;/P&gt;&lt;P&gt;BD87 - Inbound IDoc reprocessing &lt;/P&gt;&lt;P&gt;BD88 - Outbound IDoc reprocessing &lt;/P&gt;&lt;P&gt;BDM2 - IDoc Trace &lt;/P&gt;&lt;P&gt;BDM7 - IDoc Audit Analysis &lt;/P&gt;&lt;P&gt;BD21 - Create IDocs from change pointers &lt;/P&gt;&lt;P&gt;SM58 - Schedule RFC Failures &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic config for Distributed data: &lt;/P&gt;&lt;P&gt;BD64: Maintain a Distributed Model &lt;/P&gt;&lt;P&gt;BD82: Generate Partner Profile &lt;/P&gt;&lt;P&gt;BD64: Distribute the distribution Model &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programs &lt;/P&gt;&lt;P&gt;RBDMIDOC &amp;#150; Creating IDoc Type from Change Pointers &lt;/P&gt;&lt;P&gt;RSEOUT00 &amp;#150; Process all selected IDocs (EDI) &lt;/P&gt;&lt;P&gt;RBDAPP01 - Inbound Processing of IDocs Ready for Transfer &lt;/P&gt;&lt;P&gt;RSARFCEX - Execute Calls Not Yet Executed &lt;/P&gt;&lt;P&gt;RBDMOIND - Status Conversion with Successful tRFC Execution &lt;/P&gt;&lt;P&gt;RBDMANIN - Start error handling for non-posted IDocs &lt;/P&gt;&lt;P&gt;RBDSTATE - Send Audit Confirmations &lt;/P&gt;&lt;P&gt;FOr testing you can use WE19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reward points if found helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 16:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153813#M750024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153814#M750025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ammu , check this material so that u can hav e an clear idea on IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Intermediate Document&lt;/P&gt;&lt;P&gt;An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data. IDoc is not a process.&lt;/P&gt;&lt;P&gt;-         IDocs are stored in the database.&lt;/P&gt;&lt;P&gt;-         In the SAP system, IDocs are stored in database tables.&lt;/P&gt;&lt;P&gt;-         IDocs are independent of the sending and receiving systems.&lt;/P&gt;&lt;P&gt;-         IDocs are independent of the direction of data exchange.&lt;/P&gt;&lt;P&gt;Creation of IDOCs&lt;/P&gt;&lt;P&gt;?         Transaction code: WE 30&lt;/P&gt;&lt;P&gt;Defining Segment:&lt;/P&gt;&lt;P&gt;Creating Segment : Tcode - WE31&lt;/P&gt;&lt;P&gt;Creating Message Type : Tcode - we81&lt;/P&gt;&lt;P&gt;Assigning Message type to Idoc type: Tcode - we82&lt;/P&gt;&lt;P&gt;Process&lt;/P&gt;&lt;P&gt;The two processes for IDoc are Outbound Process and Inbound Process.&lt;/P&gt;&lt;P&gt;  Outbound Process&lt;/P&gt;&lt;P&gt;When the data is sent out from the system, the process is called Outbound Process and the IDoc is known as Outbound IDoc.&lt;/P&gt;&lt;P&gt;Inbound Process&lt;/P&gt;&lt;P&gt;When the data is coming in, the process is called Inbound Process and the IDoc is known as Inbound IDoc.&lt;/P&gt;&lt;P&gt;Outbound Process (Sending System) Steps :&lt;/P&gt;&lt;P&gt;1) Goto Tcode SALE:&lt;/P&gt;&lt;P&gt;Click on Sending &amp;amp; Receiving Systems à Select Logical Systems&lt;/P&gt;&lt;P&gt;Here Define the Logical Systems à Click on Execute Button&lt;/P&gt;&lt;P&gt;Go for New Entries&lt;/P&gt;&lt;P&gt;1)       System Name : LOG1&lt;/P&gt;&lt;P&gt;Description: Sending System&lt;/P&gt;&lt;P&gt;2)       System Name : LOG2&lt;/P&gt;&lt;P&gt;Description: Receiving System&lt;/P&gt;&lt;P&gt;Press Enter &amp;amp; Save it will ask for Request if you want new request create new request or press continue for transferring the objects.&lt;/P&gt;&lt;P&gt;Assigning Client to the Logical System:&lt;/P&gt;&lt;P&gt;Select Assign Client to Logical Systems -à Execute&lt;/P&gt;&lt;P&gt;Ø      100 à Double click on this and give the following information&lt;/P&gt;&lt;P&gt;           Client                   : Sending System&lt;/P&gt;&lt;P&gt;           City                      : Chennai&lt;/P&gt;&lt;P&gt;           Logical System    : LOG1&lt;/P&gt;&lt;P&gt;            Currency                   :&lt;/P&gt;&lt;P&gt;            Client role                  :&lt;/P&gt;&lt;P&gt;Ø      250 à Double click on this and give the following information&lt;/P&gt;&lt;P&gt;Client                     : Receiving System&lt;/P&gt;&lt;P&gt;City                        :&lt;/P&gt;&lt;P&gt;Logical System    : LOG2&lt;/P&gt;&lt;P&gt;Save this Data.&lt;/P&gt;&lt;P&gt;Step 2) For RFC Creation:&lt;/P&gt;&lt;P&gt;-         Goto Tcode SM59 à Select R/3 Connects&lt;/P&gt;&lt;P&gt;Click on create Button&lt;/P&gt;&lt;P&gt;RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles&lt;/P&gt;&lt;P&gt;Give the information for required fields:&lt;/P&gt;&lt;P&gt;RFC Destination    : LOG2&lt;/P&gt;&lt;P&gt;Connection type     : 3&lt;/P&gt;&lt;P&gt;Target Host              : sappdc.wipro.com&lt;/P&gt;&lt;P&gt;System No              : 00&lt;/P&gt;&lt;P&gt;Client                       : 210&lt;/P&gt;&lt;P&gt;User                            : Login user name&lt;/P&gt;&lt;P&gt;Password                   :&lt;/P&gt;&lt;P&gt;Save this &amp;amp; Test it and Remote Login&lt;/P&gt;&lt;P&gt;Step 3) Goto Tcode BD64: - Click on the change button&lt;/P&gt;&lt;P&gt;Click on the create model view&lt;/P&gt;&lt;P&gt;Short Text: model view&lt;/P&gt;&lt;P&gt;Technical Name: LMOD&lt;/P&gt;&lt;P&gt;Save this &amp;amp; press ok&lt;/P&gt;&lt;P&gt;Select just created model view&lt;/P&gt;&lt;P&gt;Name: "LMOD"&lt;/P&gt;&lt;P&gt;Goto add message type&lt;/P&gt;&lt;P&gt;Model Name  : LMOD&lt;/P&gt;&lt;P&gt;Sender           : LOG1&lt;/P&gt;&lt;P&gt;Receiver          : LOG2&lt;/P&gt;&lt;P&gt;Message type: ZAZHARMESS&lt;/P&gt;&lt;P&gt;Save and press Enter.&lt;/P&gt;&lt;P&gt;4) Goto Tcode BD82:&lt;/P&gt;&lt;P&gt;Give Model View   : LMOD&lt;/P&gt;&lt;P&gt;Partner system      : LOG2&lt;/P&gt;&lt;P&gt;Execute this by pressing F8&lt;/P&gt;&lt;P&gt;It will gives you sending system port No:  A00000000089 (Like)&lt;/P&gt;&lt;P&gt;5) Goto Tcode BD64:&lt;/P&gt;&lt;P&gt;Select the model view&lt;/P&gt;&lt;P&gt;Goto à Edit à model view à Distribute&lt;/P&gt;&lt;P&gt;Press ok &amp;amp; Press Enter.&lt;/P&gt;&lt;P&gt;Run your Zprogram&lt;/P&gt;&lt;P&gt;REPORT  ZIDOC1                             .&lt;/P&gt;&lt;P&gt;DATA: Begin of imara occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;mtart like mara-mtart,&lt;/P&gt;&lt;P&gt;end of imara.&lt;/P&gt;&lt;P&gt;DATA: wamas_con LIKE edidc,&lt;/P&gt;&lt;P&gt;imas_data LIKE edidd OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;icom_con LIKE edidc OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: e_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;e_msgtyp LIKE edidc-mestyp,&lt;/P&gt;&lt;P&gt;e_rcvprn LIKE edidc-rcvprn.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;retrive app. data from DB&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT matnr mtart FROM mara INTO TABLE imara WHERE&lt;/P&gt;&lt;P&gt;matnr = e_matnr.&lt;/P&gt;&lt;P&gt;*Master idoc control record&lt;/P&gt;&lt;P&gt;wamas_con-rcvprt = 'LS'.&lt;/P&gt;&lt;P&gt;wamas_con-rcvprn = e_rcvprn.&lt;/P&gt;&lt;P&gt;wamas_con-idoctp = 'ZAZHARIDOC'.&lt;/P&gt;&lt;P&gt;wamas_con-mestyp = e_msgtyp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;master idoc data records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT imara.&lt;/P&gt;&lt;P&gt;imas_data-segnam = 'ZAZHARSEG'.&lt;/P&gt;&lt;P&gt;move imara to imas_data-sdata .&lt;/P&gt;&lt;P&gt;APPEND imas_data.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;master_idoc_control = wamas_con&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;communication_idoc_control = icom_con&lt;/P&gt;&lt;P&gt;master_idoc_data = imas_data&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;6) Verifying Transfer of IDOCs Tcode - we05&lt;/P&gt;&lt;P&gt;ALE/IDOC Status Codes (outbound):&lt;/P&gt;&lt;P&gt;01    à IDoc Added&lt;/P&gt;&lt;P&gt;30 à IDoc ready for dispatch&lt;/P&gt;&lt;P&gt;29 à Error in ALE service Layer&lt;/P&gt;&lt;P&gt;12 à Dispatch ok&lt;/P&gt;&lt;P&gt;      03 à Data passed to port ok.&lt;/P&gt;&lt;P&gt;Inbound Process (Receiving System) Steps:&lt;/P&gt;&lt;P&gt;Do the same step as you did in sending system&lt;/P&gt;&lt;P&gt;ü      Creating IDoc&lt;/P&gt;&lt;P&gt;ü      Defining the Segment&lt;/P&gt;&lt;P&gt;ü      Creating Message Type&lt;/P&gt;&lt;P&gt;ü      Assigning the Message Type&lt;/P&gt;&lt;P&gt;ü      Defining the Logical System&lt;/P&gt;&lt;P&gt;ü      Assigning the Logical System&lt;/P&gt;&lt;P&gt;ü      Creating the Distribution Model&lt;/P&gt;&lt;P&gt;Goto Tcode - we57:&lt;/P&gt;&lt;P&gt;Assign function module to IDoc type&lt;/P&gt;&lt;P&gt;Module: Function module&lt;/P&gt;&lt;P&gt;Basic type:  &lt;/P&gt;&lt;P&gt;Message type:&lt;/P&gt;&lt;P&gt;Direction: 2 (inbound)&lt;/P&gt;&lt;P&gt;Creating Inbound process code - we42&lt;/P&gt;&lt;P&gt;Verifying Idoc List Tcode - we05&lt;/P&gt;&lt;P&gt;ALE/IDOC Status Codes (Inbound):&lt;/P&gt;&lt;P&gt;50 à IDoc Added&lt;/P&gt;&lt;P&gt;51 à Application Document not posted&lt;/P&gt;&lt;P&gt;64 à IDoc ready to be transferred to application&lt;/P&gt;&lt;P&gt;62 à IDoc passed to application&lt;/P&gt;&lt;P&gt;53 à Application Document posted&lt;/P&gt;&lt;P&gt;1. What is the difference Between IDOC type and Message type? How to link the IDOC type with Message type?&lt;/P&gt;&lt;P&gt;    Message type gives the meaning of the IDOC and IDOC type gives the structure of an IDOC.&lt;/P&gt;&lt;P&gt;    The linkage will happen in WE82.&lt;/P&gt;&lt;P&gt;In the OO(Object Oriented) approach, Message Type can be refferred to a Class and IDOC Type as an instance of the class Message Type&lt;/P&gt;&lt;P&gt;2. Where the IDOC information gets stored?&lt;/P&gt;&lt;P&gt;Table 	Description &lt;/P&gt;&lt;P&gt;EDIDC 	Stores the Control information an IDOC &lt;/P&gt;&lt;P&gt;EDID4 	Stores the Data Records from 4.0 onwards &lt;/P&gt;&lt;P&gt;EDIDS 	Stores the Status of an IDOC &lt;/P&gt;&lt;P&gt;3. What is process code? What  are type of process codes&lt;/P&gt;&lt;P&gt;Process code refers to an workflow or a function module which helps in reading or writing data from/to Idoc. Following are types of process code&lt;/P&gt;&lt;P&gt;Process Code 	Description &lt;/P&gt;&lt;P&gt;Outbound Process Code 	This will read application data and place data in Idoc  &lt;/P&gt;&lt;P&gt;Inbound Process Code 	This will Idoc and create corresponding application data &lt;/P&gt;&lt;P&gt;System Process Code 	This will create  work item in case some error occurs in idoc / application document processing &lt;/P&gt;&lt;P&gt;Status Proces Code 	This will handle error that occurs when a idoc is sent to some other system &lt;/P&gt;&lt;P&gt;4. How to reprocess an IDOC?&lt;/P&gt;&lt;P&gt;You can use the below Programs for IDocs Reprocessing:&lt;/P&gt;&lt;P&gt;·	RBDMANI2  : Reprocess Idocs manually&lt;/P&gt;&lt;P&gt;·	RBDMANIN  : Posting of IDocs with Status 51&lt;/P&gt;&lt;P&gt;·	RBDMOIND  : Outbound Idocs status 03-&amp;gt;12&lt;/P&gt;&lt;P&gt;·	RSEOUT00  : For Processing 30 Status IDocs&lt;/P&gt;&lt;P&gt;·	RBDAPP01  : For Processing 64 Status IDocs&lt;/P&gt;&lt;P&gt;·	RBDAGAIN : Reprocess Incorrect Outbound IDocs&lt;/P&gt;&lt;P&gt;·	RBDAGAI2 : Reprocessing of IDocs after ALE Input Error&lt;/P&gt;&lt;P&gt;5. How to trace the IDocs of the Receiving system from the Sending system?&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;·	Execute the transaction BD87&lt;/P&gt;&lt;P&gt;·	Give the Outbound IDocs in the IDoc Number field and execute or Just Note the Start time and End time when u execute the Master Data Transaction say for eg.BD10 and specify the same in the Time Created input field of BD87,also give the Message Type and the Receiving System Names and execute.&lt;/P&gt;&lt;P&gt;·	Select the Repective Message Type and Press the Trace IDoc Button.&lt;/P&gt;&lt;P&gt;6. How to trace IDocs based on the data .&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;·	  Execute Transaction WE09&lt;/P&gt;&lt;P&gt;·	  Put in the message type name in the field labeled 'Logical Message'   Ex -  DEBMAS&lt;/P&gt;&lt;P&gt;·	  Now we will move to the section 'Criteria for Search in Data Records '&lt;/P&gt;&lt;P&gt;·	  In this section we will put the Segment name in which we want to search the existance of data in the field labeled 'Search in Segment'  EX - E1KNA1M&lt;/P&gt;&lt;P&gt;·	  In the field labeled 'Search in Field' we will put the field name of the segment in which we want to search the existance of data. Ex - KUNNR for searching IDOCs for certain customer number.&lt;/P&gt;&lt;P&gt;·	  Now in the field labeled 'For Value' we will put the search value. Ex - Customer number as 100 .&lt;/P&gt;&lt;P&gt;·	  We will now execute the transaction.&lt;/P&gt;&lt;P&gt;·	  The result can be a single Idoc or a list of multiple IDOCS depending upon the Search Criteria entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 08:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153814#M750025</guid>
      <dc:creator>former_member189440</dc:creator>
      <dc:date>2007-12-20T08:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153815#M750026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ammu , check this material so that u can hav e an clear idea on IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Intermediate Document&lt;/P&gt;&lt;P&gt;An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data. IDoc is not a process.&lt;/P&gt;&lt;P&gt;-         IDocs are stored in the database.&lt;/P&gt;&lt;P&gt;-         In the SAP system, IDocs are stored in database tables.&lt;/P&gt;&lt;P&gt;-         IDocs are independent of the sending and receiving systems.&lt;/P&gt;&lt;P&gt;-         IDocs are independent of the direction of data exchange.&lt;/P&gt;&lt;P&gt;Creation of IDOCs&lt;/P&gt;&lt;P&gt;?         Transaction code: WE 30&lt;/P&gt;&lt;P&gt;Defining Segment:&lt;/P&gt;&lt;P&gt;Creating Segment : Tcode - WE31&lt;/P&gt;&lt;P&gt;Creating Message Type : Tcode - we81&lt;/P&gt;&lt;P&gt;Assigning Message type to Idoc type: Tcode - we82&lt;/P&gt;&lt;P&gt;Process&lt;/P&gt;&lt;P&gt;The two processes for IDoc are Outbound Process and Inbound Process.&lt;/P&gt;&lt;P&gt;  Outbound Process&lt;/P&gt;&lt;P&gt;When the data is sent out from the system, the process is called Outbound Process and the IDoc is known as Outbound IDoc.&lt;/P&gt;&lt;P&gt;Inbound Process&lt;/P&gt;&lt;P&gt;When the data is coming in, the process is called Inbound Process and the IDoc is known as Inbound IDoc.&lt;/P&gt;&lt;P&gt;Outbound Process (Sending System) Steps :&lt;/P&gt;&lt;P&gt;1) Goto Tcode SALE:&lt;/P&gt;&lt;P&gt;Click on Sending &amp;amp; Receiving Systems à Select Logical Systems&lt;/P&gt;&lt;P&gt;Here Define the Logical Systems à Click on Execute Button&lt;/P&gt;&lt;P&gt;Go for New Entries&lt;/P&gt;&lt;P&gt;1)       System Name : LOG1&lt;/P&gt;&lt;P&gt;Description: Sending System&lt;/P&gt;&lt;P&gt;2)       System Name : LOG2&lt;/P&gt;&lt;P&gt;Description: Receiving System&lt;/P&gt;&lt;P&gt;Press Enter &amp;amp; Save it will ask for Request if you want new request create new request or press continue for transferring the objects.&lt;/P&gt;&lt;P&gt;Assigning Client to the Logical System:&lt;/P&gt;&lt;P&gt;Select Assign Client to Logical Systems -à Execute&lt;/P&gt;&lt;P&gt;Ø      100 à Double click on this and give the following information&lt;/P&gt;&lt;P&gt;           Client                   : Sending System&lt;/P&gt;&lt;P&gt;           City                      : Chennai&lt;/P&gt;&lt;P&gt;           Logical System    : LOG1&lt;/P&gt;&lt;P&gt;            Currency                   :&lt;/P&gt;&lt;P&gt;            Client role                  :&lt;/P&gt;&lt;P&gt;Ø      250 à Double click on this and give the following information&lt;/P&gt;&lt;P&gt;Client                     : Receiving System&lt;/P&gt;&lt;P&gt;City                        :&lt;/P&gt;&lt;P&gt;Logical System    : LOG2&lt;/P&gt;&lt;P&gt;Save this Data.&lt;/P&gt;&lt;P&gt;Step 2) For RFC Creation:&lt;/P&gt;&lt;P&gt;-         Goto Tcode SM59 à Select R/3 Connects&lt;/P&gt;&lt;P&gt;Click on create Button&lt;/P&gt;&lt;P&gt;RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles&lt;/P&gt;&lt;P&gt;Give the information for required fields:&lt;/P&gt;&lt;P&gt;RFC Destination    : LOG2&lt;/P&gt;&lt;P&gt;Connection type     : 3&lt;/P&gt;&lt;P&gt;Target Host              : sappdc.wipro.com&lt;/P&gt;&lt;P&gt;System No              : 00&lt;/P&gt;&lt;P&gt;Client                       : 210&lt;/P&gt;&lt;P&gt;User                            : Login user name&lt;/P&gt;&lt;P&gt;Password                   :&lt;/P&gt;&lt;P&gt;Save this &amp;amp; Test it and Remote Login&lt;/P&gt;&lt;P&gt;Step 3) Goto Tcode BD64: - Click on the change button&lt;/P&gt;&lt;P&gt;Click on the create model view&lt;/P&gt;&lt;P&gt;Short Text: model view&lt;/P&gt;&lt;P&gt;Technical Name: LMOD&lt;/P&gt;&lt;P&gt;Save this &amp;amp; press ok&lt;/P&gt;&lt;P&gt;Select just created model view&lt;/P&gt;&lt;P&gt;Name: "LMOD"&lt;/P&gt;&lt;P&gt;Goto add message type&lt;/P&gt;&lt;P&gt;Model Name  : LMOD&lt;/P&gt;&lt;P&gt;Sender           : LOG1&lt;/P&gt;&lt;P&gt;Receiver          : LOG2&lt;/P&gt;&lt;P&gt;Message type: ZAZHARMESS&lt;/P&gt;&lt;P&gt;Save and press Enter.&lt;/P&gt;&lt;P&gt;4) Goto Tcode BD82:&lt;/P&gt;&lt;P&gt;Give Model View   : LMOD&lt;/P&gt;&lt;P&gt;Partner system      : LOG2&lt;/P&gt;&lt;P&gt;Execute this by pressing F8&lt;/P&gt;&lt;P&gt;It will gives you sending system port No:  A00000000089 (Like)&lt;/P&gt;&lt;P&gt;5) Goto Tcode BD64:&lt;/P&gt;&lt;P&gt;Select the model view&lt;/P&gt;&lt;P&gt;Goto à Edit à model view à Distribute&lt;/P&gt;&lt;P&gt;Press ok &amp;amp; Press Enter.&lt;/P&gt;&lt;P&gt;Run your Zprogram&lt;/P&gt;&lt;P&gt;REPORT  ZIDOC1                             .&lt;/P&gt;&lt;P&gt;DATA: Begin of imara occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;mtart like mara-mtart,&lt;/P&gt;&lt;P&gt;end of imara.&lt;/P&gt;&lt;P&gt;DATA: wamas_con LIKE edidc,&lt;/P&gt;&lt;P&gt;imas_data LIKE edidd OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;icom_con LIKE edidc OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: e_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;e_msgtyp LIKE edidc-mestyp,&lt;/P&gt;&lt;P&gt;e_rcvprn LIKE edidc-rcvprn.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;retrive app. data from DB&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT matnr mtart FROM mara INTO TABLE imara WHERE&lt;/P&gt;&lt;P&gt;matnr = e_matnr.&lt;/P&gt;&lt;P&gt;*Master idoc control record&lt;/P&gt;&lt;P&gt;wamas_con-rcvprt = 'LS'.&lt;/P&gt;&lt;P&gt;wamas_con-rcvprn = e_rcvprn.&lt;/P&gt;&lt;P&gt;wamas_con-idoctp = 'ZAZHARIDOC'.&lt;/P&gt;&lt;P&gt;wamas_con-mestyp = e_msgtyp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;master idoc data records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT imara.&lt;/P&gt;&lt;P&gt;imas_data-segnam = 'ZAZHARSEG'.&lt;/P&gt;&lt;P&gt;move imara to imas_data-sdata .&lt;/P&gt;&lt;P&gt;APPEND imas_data.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;master_idoc_control = wamas_con&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;communication_idoc_control = icom_con&lt;/P&gt;&lt;P&gt;master_idoc_data = imas_data&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;6) Verifying Transfer of IDOCs Tcode - we05&lt;/P&gt;&lt;P&gt;ALE/IDOC Status Codes (outbound):&lt;/P&gt;&lt;P&gt;01    à IDoc Added&lt;/P&gt;&lt;P&gt;30 à IDoc ready for dispatch&lt;/P&gt;&lt;P&gt;29 à Error in ALE service Layer&lt;/P&gt;&lt;P&gt;12 à Dispatch ok&lt;/P&gt;&lt;P&gt;      03 à Data passed to port ok.&lt;/P&gt;&lt;P&gt;Inbound Process (Receiving System) Steps:&lt;/P&gt;&lt;P&gt;Do the same step as you did in sending system&lt;/P&gt;&lt;P&gt;ü      Creating IDoc&lt;/P&gt;&lt;P&gt;ü      Defining the Segment&lt;/P&gt;&lt;P&gt;ü      Creating Message Type&lt;/P&gt;&lt;P&gt;ü      Assigning the Message Type&lt;/P&gt;&lt;P&gt;ü      Defining the Logical System&lt;/P&gt;&lt;P&gt;ü      Assigning the Logical System&lt;/P&gt;&lt;P&gt;ü      Creating the Distribution Model&lt;/P&gt;&lt;P&gt;Goto Tcode - we57:&lt;/P&gt;&lt;P&gt;Assign function module to IDoc type&lt;/P&gt;&lt;P&gt;Module: Function module&lt;/P&gt;&lt;P&gt;Basic type:  &lt;/P&gt;&lt;P&gt;Message type:&lt;/P&gt;&lt;P&gt;Direction: 2 (inbound)&lt;/P&gt;&lt;P&gt;Creating Inbound process code - we42&lt;/P&gt;&lt;P&gt;Verifying Idoc List Tcode - we05&lt;/P&gt;&lt;P&gt;ALE/IDOC Status Codes (Inbound):&lt;/P&gt;&lt;P&gt;50 à IDoc Added&lt;/P&gt;&lt;P&gt;51 à Application Document not posted&lt;/P&gt;&lt;P&gt;64 à IDoc ready to be transferred to application&lt;/P&gt;&lt;P&gt;62 à IDoc passed to application&lt;/P&gt;&lt;P&gt;53 à Application Document posted&lt;/P&gt;&lt;P&gt;1. What is the difference Between IDOC type and Message type? How to link the IDOC type with Message type?&lt;/P&gt;&lt;P&gt;    Message type gives the meaning of the IDOC and IDOC type gives the structure of an IDOC.&lt;/P&gt;&lt;P&gt;    The linkage will happen in WE82.&lt;/P&gt;&lt;P&gt;In the OO(Object Oriented) approach, Message Type can be refferred to a Class and IDOC Type as an instance of the class Message Type&lt;/P&gt;&lt;P&gt;2. Where the IDOC information gets stored?&lt;/P&gt;&lt;P&gt;Table 	Description &lt;/P&gt;&lt;P&gt;EDIDC 	Stores the Control information an IDOC &lt;/P&gt;&lt;P&gt;EDID4 	Stores the Data Records from 4.0 onwards &lt;/P&gt;&lt;P&gt;EDIDS 	Stores the Status of an IDOC &lt;/P&gt;&lt;P&gt;3. What is process code? What  are type of process codes&lt;/P&gt;&lt;P&gt;Process code refers to an workflow or a function module which helps in reading or writing data from/to Idoc. Following are types of process code&lt;/P&gt;&lt;P&gt;Process Code 	Description &lt;/P&gt;&lt;P&gt;Outbound Process Code 	This will read application data and place data in Idoc  &lt;/P&gt;&lt;P&gt;Inbound Process Code 	This will Idoc and create corresponding application data &lt;/P&gt;&lt;P&gt;System Process Code 	This will create  work item in case some error occurs in idoc / application document processing &lt;/P&gt;&lt;P&gt;Status Proces Code 	This will handle error that occurs when a idoc is sent to some other system &lt;/P&gt;&lt;P&gt;4. How to reprocess an IDOC?&lt;/P&gt;&lt;P&gt;You can use the below Programs for IDocs Reprocessing:&lt;/P&gt;&lt;P&gt;·	RBDMANI2  : Reprocess Idocs manually&lt;/P&gt;&lt;P&gt;·	RBDMANIN  : Posting of IDocs with Status 51&lt;/P&gt;&lt;P&gt;·	RBDMOIND  : Outbound Idocs status 03-&amp;gt;12&lt;/P&gt;&lt;P&gt;·	RSEOUT00  : For Processing 30 Status IDocs&lt;/P&gt;&lt;P&gt;·	RBDAPP01  : For Processing 64 Status IDocs&lt;/P&gt;&lt;P&gt;·	RBDAGAIN : Reprocess Incorrect Outbound IDocs&lt;/P&gt;&lt;P&gt;·	RBDAGAI2 : Reprocessing of IDocs after ALE Input Error&lt;/P&gt;&lt;P&gt;5. How to trace the IDocs of the Receiving system from the Sending system?&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;·	Execute the transaction BD87&lt;/P&gt;&lt;P&gt;·	Give the Outbound IDocs in the IDoc Number field and execute or Just Note the Start time and End time when u execute the Master Data Transaction say for eg.BD10 and specify the same in the Time Created input field of BD87,also give the Message Type and the Receiving System Names and execute.&lt;/P&gt;&lt;P&gt;·	Select the Repective Message Type and Press the Trace IDoc Button.&lt;/P&gt;&lt;P&gt;6. How to trace IDocs based on the data .&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;·	  Execute Transaction WE09&lt;/P&gt;&lt;P&gt;·	  Put in the message type name in the field labeled 'Logical Message'   Ex -  DEBMAS&lt;/P&gt;&lt;P&gt;·	  Now we will move to the section 'Criteria for Search in Data Records '&lt;/P&gt;&lt;P&gt;·	  In this section we will put the Segment name in which we want to search the existance of data in the field labeled 'Search in Segment'  EX - E1KNA1M&lt;/P&gt;&lt;P&gt;·	  In the field labeled 'Search in Field' we will put the field name of the segment in which we want to search the existance of data. Ex - KUNNR for searching IDOCs for certain customer number.&lt;/P&gt;&lt;P&gt;·	  Now in the field labeled 'For Value' we will put the search value. Ex - Customer number as 100 .&lt;/P&gt;&lt;P&gt;·	  We will now execute the transaction.&lt;/P&gt;&lt;P&gt;·	  The result can be a single Idoc or a list of multiple IDOCS depending upon the Search Criteria entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 08:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3153815#M750026</guid>
      <dc:creator>former_member189440</dc:creator>
      <dc:date>2007-12-20T08:52:48Z</dc:date>
    </item>
  </channel>
</rss>

