<?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 IDOCs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528392#M848845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one give me some information what is an IDOC.&lt;/P&gt;&lt;P&gt;Where and how can it be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravan Velamury&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2008 12:52:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-04T12:52:56Z</dc:date>
    <item>
      <title>IDOCs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528392#M848845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one give me some information what is an IDOC.&lt;/P&gt;&lt;P&gt;Where and how can it be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravan Velamury&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 12:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528392#M848845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T12:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: IDOCs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528393#M848846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idoc means Intermediate document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a standard data structure for electronic data interchange (EDI) between application programs written for the popular SAP business system or between an SAP application and an external program. IDocs serve as the vehicle for data transfer in SAP's Application Link Enabling (ALE) system. IDocs are used for asynchronous transactions: each IDoc generated exists as a self-contained text file that can then be transmitted to the requesting workstation without connecting to the central database. Another SAP mechanism, the Business Application Programming Interface (BAPI) is used for synchronous transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow the links where u can get some information about idocs:&lt;/P&gt;&lt;P&gt;[http://searchsap.techtarget.com/sDefinition/0,,sid21_gci852485,00.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.allsaplinks.com/idoc_sample.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.sapgenie.com/sapedi/idoc_abap.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreekar Kadiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 12:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528393#M848846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T12:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: IDOCs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528394#M848847</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 an intermediate document/container which holds data.&lt;/P&gt;&lt;P&gt;--&amp;gt;it is used for exchanging of data betwen R/3 or non R/3 systems.&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;&amp;gt;If both systems are R/3 systems ,then ALE&lt;/DEL&gt;Application LInk Enabling technology is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one is R/3 and other is non R/3 then EDI technology is used.&lt;/P&gt;&lt;P&gt;EDI&lt;DEL&gt;-Electronic Data Interchange&lt;/DEL&gt;-it is an subsystem which converts the data into required format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;vineela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 14:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528394#M848847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T14:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: IDOCs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528395#M848848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;IDocs:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDocs (Intermediate Documents) are the crux of ALE. These are the documents with the help of which data is exchanged between SAP R/3 and non-R/3 systems. As the name suggests, these documents act as intermediate storage of information, which can be sent bi-directionally. Message types are responsible for creation of Idocs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;An IDoc is made up of the following parts:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Control Record:&lt;/STRONG&gt; This section contains control information regarding the Idoc. Its constituents are Sender&amp;#146;s name, Receiver name, Message type and Idoc type .The format of the control record is similar for all IDoc types. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data Segment:&lt;/STRONG&gt; It consists of a header that contains the identity of the Idoc. Its constituents include, a sequential segment number, a segment type description and field containing the actual data of the segment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Status records&lt;/STRONG&gt;: The status record shows the information regarding the already processed stages and remaining processing stages of the Idoc. It has an identical format for each IDoc type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check thiese links for more.&lt;/P&gt;&lt;P&gt;&lt;A href="http://searchsap.techtarget.com/sDefinition/0,,sid21_gci852485,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/sDefinition/0,,sid21_gci852485,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/Articles/SAP_ALE_IDOCS.asp" target="test_blank"&gt;http://www.thespot4sap.com/Articles/SAP_ALE_IDOCS.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why We Use Idoc Instead of BDC&lt;/STRONG&gt;   &lt;/P&gt;&lt;P&gt;Check this thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="431048"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 19:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528395#M848848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: IDOCs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528396#M848849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Creation in Idoc&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;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;IDoc is a intermediate document to exchange data between two SAP Systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*IDocs are structured ASCII files (or a virtual equivalent). &lt;/P&gt;&lt;P&gt;*Electronic Interchange Document&lt;/P&gt;&lt;P&gt;*They are the file format used by SAP R/3 to exchange data with foreign systems.&lt;/P&gt;&lt;P&gt;*Data Is transmitted in ASCII format, i.e. human readable form&lt;/P&gt;&lt;P&gt;*IDocs exchange messages&lt;/P&gt;&lt;P&gt;*IDocs are used like classical interface files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC types are templates for specific message types depending on what is the business document, you want to exchange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE30 - you can create a IDOC type.&lt;/P&gt;&lt;P&gt;An IDOC with data, will have to be triggered by the application that is trying to send out the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOr testing you can use WE19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create idoc?&lt;/P&gt;&lt;P&gt;*WE30 - you can create a IDOC type&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;/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;&lt;/P&gt;&lt;P&gt;&lt;/P&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;Check these out..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2402859"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below link. It will give the step by step procedure for IDOC creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.supinfo-projects.com/cn/2005/idocs_en/2/" target="test_blank"&gt;http://www.supinfo-projects.com/cn/2005/idocs_en/2/&lt;/A&gt;&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;go trough these links.&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;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;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...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.IDOCs are independent of the sending and receiving systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.IDOCs are independent of the direction of data exchange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two available process for IDOCs are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound Process&lt;/P&gt;&lt;P&gt;Inbound Process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND There are basically two types of IDOCs.&lt;/P&gt;&lt;P&gt;Basic IDOCs&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;Extended IDOCs&lt;/P&gt;&lt;P&gt;Extending the functionality by adding more segments to existing Basic IDOCs.&lt;/P&gt;&lt;P&gt;&lt;/P&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;imp links&lt;/P&gt;&lt;P&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/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="https://community.sap.com/www.sappoint.com" target="test_blank"&gt;www.sappoint.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;--here u can find the ppts and basic seetings for ALE&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/presentation.html" target="test_blank"&gt;http://sappoint.com/presentation.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sapgenie.com" target="test_blank"&gt;www.sapgenie.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/ale/index.htm" target="test_blank"&gt;http://www.sapgenie.com/ale/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WE30 - you can create a IDOC type.&lt;/P&gt;&lt;P&gt;An IDOC with data, will have to be triggered by the application that is trying to send out the data.&lt;/P&gt;&lt;P&gt;Try this..Hope this will help.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; SAP ALE &amp;amp; IDOC&amp;lt;&amp;lt;&amp;lt;&amp;lt; &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;regards.&lt;/P&gt;&lt;P&gt;sowjanya.b&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 04:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528396#M848849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T04:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: IDOCs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528397#M848850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the execution of idoc's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extending a Basic Type &lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;You must have completed the required steps in Extending an IDoc Type .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can occur that you want to fill table fields which already have an equivalent in the basic type but which are not supplied in the standard system. You therefore do not need to extend the basic type, but rather only the function module that supplies the application fields. In this case, skip the procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;1. Choose SAP menu ® Tools ® IDoc Interface/ALE ® Development ® IDoc ® Generate ALE Interface ® IDoc Types (WE30). The IDoc type editor is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you have not already done so, create a transport request for your development objects (extension segments, extension, function exit and so on). You can access the Workbench Organizer from the editor by selecting Requests (Organizer). From there, select Request ® Create and reply to the questions which appear on screen. By selecting you can return to the IDoc type editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Name your extension in accordance with the customer namespace and choose Extension as the development object. Choose .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of your extension should be no more than 8 characters if you wish to use the extension to communicate with partners who are using SAP Releases prior to 4.0. You can only use extension names with more than 8 characters from Release 4.0 onwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Choose one of the following options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create New: Create the extension without a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Create copy,which you can then change if necessary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Create as successor: Note that only one successor is allowed per release for each extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Select the basic type which is to be combined with your extension. Confirm your entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic type is displayed as a tree structure. See the color legend (Utilities ® Color legend).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Position the cursor on the segment where you wish to append the extension segments (the reference segment). Choose . You must now assign attributes for these child segments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Mandatory segment (indicator): Must data be written to this segment in the IDoc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Maximum and minimum frequency of use: How often may/must a segment occur in the IDoc? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. You can add further children or &amp;#147;grandchildren&amp;#148; to this or any other reference segment in the basic type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. When the new extension is complete, you can save your entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should keep the following factors in mind when dealing with extensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Segments must not explicitly occur more than once in the IDoc type - this means that the extension cannot have any segments which already exist in the basic type. This also means that a successor must not have any segments which already exist in the predecessor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Parent segments of predecessors must remain parent segments in the case of successors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Extension segments cannot be created from reference segments using the Cut and Paste functions and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example call your extension Z1ORDERS. Append Z1TEST1 child segment to E1EDP19reference segment in ORDERS01 basic type. The child segment can be used only once&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segment Filtering:&lt;/P&gt;&lt;P&gt;Segment filtering can be achieved using T/Code BD56. Here you can suppress a whole segment irrespective of data inside it . You have to give Message Type / Sender Partner / Receiver Partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Filtering:&lt;/P&gt;&lt;P&gt;Data filtering can be done in distribution model where you can restrict whole IDOCS or partials IDOCS to be send based on data in fields inside IDOC depending on whether the segment in which you filter is at the highest level or at a lower level. For example in MATMAS if you put a filter of E1MARCM for a particular plant , only data for this plant will go and other plants will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls go thru this Link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message Type:&lt;/P&gt;&lt;P&gt;A message type represents the application message exchanged between R/3 systems and R/3 and an external system. A message type characterises the data sent across systems and relates to the structure of the data called an IDOC type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diff. with IDOC type&lt;/P&gt;&lt;P&gt;An IDoc type specifies the structure of the data. &lt;/P&gt;&lt;P&gt;A message type specifies the meaning of the data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diff. b/w IDOC type and IDOC&lt;/P&gt;&lt;P&gt;An IDoc type is the definition of a specific data structure.&lt;/P&gt;&lt;P&gt;An IDoc is an actual instance of data based on an IDoc type. Therefore, there can be many IDocs created from a single IDoc type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every idoc type will have Message Type.&lt;/P&gt;&lt;P&gt;It mean Idoc will be recognised By message type.&lt;/P&gt;&lt;P&gt;For ex : MATMAS03 is idoc type, and its message type MATAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are different message type for every master data. suppose for vendor master CREMAS is the message type, for customer mast DEBMAS like these there many message type for other type of master data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To recognise the particular idoc, we use message types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We82 is the TCode where IDoC type is attached to Mesage tYpe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this related thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS DIAGRAM for Outbound Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Analyse Hierarchy Levels&lt;/P&gt;&lt;P&gt;2. Create New segment&lt;/P&gt;&lt;P&gt;3. Create New IDoc Type&lt;/P&gt;&lt;P&gt;4. Create New Message Type&lt;/P&gt;&lt;P&gt;5. Link Message with IDoc Type&lt;/P&gt;&lt;P&gt;6. Create an entry in EDP13 via transactions WE20 and BD64&lt;/P&gt;&lt;P&gt;7. Populate the Custom IDoc via ABAP Program&lt;/P&gt;&lt;P&gt;7b Error Handling&lt;/P&gt;&lt;P&gt;7c. Send Status Email&lt;/P&gt;&lt;P&gt;8. Test the Population of the Custom IDoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1 &amp;#150; Analyse Hierarchy Levels:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyse the data relationships being processed in the interface. Define the appropriate hierarchical Parent-to-Child relationships. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navigate to transaction code WEDI&lt;/P&gt;&lt;P&gt;Transaction WEDI displays the IDOC main menu. This allows navigation around the various development and control areas to create a customised IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2 &amp;#150; Create a new segment:&lt;/P&gt;&lt;P&gt;via wedi : Development - IDOC Segments or Transaction code WE31.&lt;/P&gt;&lt;P&gt;&amp;#149; Enter segment name and click on Create.&lt;/P&gt;&lt;P&gt;? The name of the segment type must start with Z1 , and have a maximum of eight characters.&lt;/P&gt;&lt;P&gt;&amp;#149; Enter description and enter the relevant field names and data elements.&lt;/P&gt;&lt;P&gt;? The segment should represent a structure in the program so for each field in the segment a field name and a data element must be defined.&lt;/P&gt;&lt;P&gt;&amp;#149; Save the segment and enter Person Responsible and Processing Person .&lt;/P&gt;&lt;P&gt;&amp;#149; Go to Edit and Set Release. &lt;/P&gt;&lt;P&gt;&amp;#149; Repeat this procedure for each new Segment in the IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3 &amp;#150; Create a new IDOC Type&lt;/P&gt;&lt;P&gt;via wedi Development - IDOC Types or Transaction WE30.&lt;/P&gt;&lt;P&gt;&amp;#149; Enter segment name (starting with Z), click on Basic Type and then Create. &lt;/P&gt;&lt;P&gt;&amp;#149; Create as new, enter Person Responsible and Processing Person and enter description.&lt;/P&gt;&lt;P&gt;&amp;#149; On &amp;#145;Create Basic Type&amp;#146; screen decide where segments should be inserted and go to Edit/Create Segment.&lt;/P&gt;&lt;P&gt;&amp;#149; Complete relevant fields in the Maintain Attributes screen: &lt;/P&gt;&lt;P&gt;&amp;#149; From the relevant segments created in Step 2 enter the Segment type and if mandatory segment.&lt;/P&gt;&lt;P&gt;&amp;#149; The Minimum and Maximum number of segments to be allowed in the sequence. (One minimum and one maximum if segment is mandatory).&lt;/P&gt;&lt;P&gt;&amp;#149; The Parent Segment and Hierarchy Level will be automatically created depending on where in the IDOC tree you decided to create that particular segment.&lt;/P&gt;&lt;P&gt;&amp;#149; Repeat this process for each segment needed in the IDOC type, deciding whether to add the next segments at the same level or as a &amp;#145;Child&amp;#146;.&lt;/P&gt;&lt;P&gt;&amp;#149; When IDOC created return to initial screen. Go to Edit and Set Release.&lt;/P&gt;&lt;P&gt;&amp;#149; Go to Transaction WE60 to view the IDoc Type you have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4 &amp;#150; Create new Message Type&lt;/P&gt;&lt;P&gt;via wedi Development - Message Types or Transaction WE81.&lt;/P&gt;&lt;P&gt;&amp;#149; Display/Change and click on New Entries&lt;/P&gt;&lt;P&gt;&amp;#149; Create a new Message Type and Save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 5 &amp;#150; Link Message Type to IDOC Type&lt;/P&gt;&lt;P&gt;via wedi Development - IDOC Type/Message or Transaction WE82.&lt;/P&gt;&lt;P&gt;&amp;#149; Display/Change and then click on New Entries.&lt;/P&gt;&lt;P&gt;&amp;#149; Enter Message Type, Basic Type (IDOC Type) and Release (46C) and Save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 6 &amp;#150; Create an entry in EDP13 via transactions WE20 and BD64. &lt;/P&gt;&lt;P&gt;The partner profile for the Idoc must be set up and generated in the transaction BD64 and transaction WE20.&lt;/P&gt;&lt;P&gt;&amp;#149; WE20 &amp;#150; Add Message Type to appropriate Partner Type, Enter Message Type, Receiver Port and Idoc Type and Save.&lt;/P&gt;&lt;P&gt;&amp;#149; BD64 &amp;#150; Create a Model View, Enter Sender and Receiver Ports, Attach Message Type. Go to &amp;#145;Environment&amp;#146; on Menu and click on Generate Partner Profiles and generate (not save) profile. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 7 &amp;#150; Populate the custom IDOC via ABAP Program&lt;/P&gt;&lt;P&gt;See Test Program ZOUTBD_IDOC_TEMPLATE, Appendix IV.&lt;/P&gt;&lt;P&gt;&amp;#149; Create an Internal Table for each segment type, this should be exactly the same structure as the segment type.&lt;/P&gt;&lt;P&gt;&amp;#149; The control record is filled into a structure like EDIDC. The message type and the Idoc type for the Idoc must be populated into the eddic structure.&lt;/P&gt;&lt;P&gt;- PERFORM populate_Control_structure USING c_mestyp&lt;/P&gt;&lt;P&gt;c_SEGMENT_type1.&lt;/P&gt;&lt;P&gt;&amp;#149; The data segments are filled into a structure like edidd-sdata; sdata and the segment name are populated into the edidd structure. &lt;/P&gt;&lt;P&gt;- PERFORM transfer_Parent_data_to_seg.&lt;/P&gt;&lt;P&gt;&amp;#149; The standard SAP function module MASTER_IDOC_DISTRIBUTE is called to pass the populated IDOC to the ALE Layer.&lt;/P&gt;&lt;P&gt;- PERFORM master_idoc_distribute.&lt;/P&gt;&lt;P&gt;&amp;#149; NOTE: This function module is only called for stand alone programs and Shared Master Data programs (SMD). It is not called when using extensions or output determination.&lt;/P&gt;&lt;P&gt;&amp;#149; The ALE Layer handles the sending of the IDOC to the receiving system.&lt;/P&gt;&lt;P&gt;&amp;#149; Error Handling (see Step 7b).&lt;/P&gt;&lt;P&gt;&amp;#149; Commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Project Specific&lt;/P&gt;&lt;P&gt;Step 7b &amp;#150; Error Handling&amp;#149; Analyse which fields in the interface are mandatory for the receiving system and who needs to receive error notification.&lt;/P&gt;&lt;P&gt;&amp;#149; Declare a structure of type &amp;#145;MCMAILOBJ&amp;#146; for sending instructions.&lt;/P&gt;&lt;P&gt;&amp;#149; Enter values for the internal table based on structure &amp;#145;MCMAILOBJ&amp;#146; &lt;/P&gt;&lt;P&gt;&amp;#149; For selection processes, on SY-SUBRC checks and where fields are mandatory for the receiving system; insert Function Module &amp;#145;MC_SEND_MAIL&amp;#146;.&lt;/P&gt;&lt;P&gt;&amp;#149; Enter values in the following parameters: -&lt;/P&gt;&lt;P&gt;MS_MAIL_SENDMODE = &amp;#145;B&amp;#146; (Batch Mode)&lt;/P&gt;&lt;P&gt;MS_MAIL_TITLE = 'Mail Title'&lt;/P&gt;&lt;P&gt;MS_MAIL_DESCRIPTION = &amp;#145;Error description&amp;#146; (e.g. MATNR not given)&lt;/P&gt;&lt;P&gt;MS_MAIL_RECEIVER = &amp;#145;Name of Receiver&amp;#146; (To be determined)&lt;/P&gt;&lt;P&gt;MS_MAIL_EXPRESS = &amp;#145;E&amp;#146; (Express Delivery)&lt;/P&gt;&lt;P&gt;MS_MAIL_DLINAME = Leave Blank&lt;/P&gt;&lt;P&gt;MS_MAIL_LANGU = 'E' (Language)&lt;/P&gt;&lt;P&gt;MS_MAIL_FUNKOBJ_NAME = Leave Blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;MS_MAIL_CONT = I_MCMAILOBJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;It has to be determined separately for each interface how these errors and mail notifications are to be grouped &amp;#150; dependant upon the number of errors that are potentially likely. One possible approach is to send an email for each reason for rejection and include all the records that failed for that reason in the mail notification. Another possible approach is to send an email for every failure. &lt;/P&gt;&lt;P&gt;When error checking for mandatory fields it is common SAP practice to reject a record on its first failure (irrespective of subsequent errors in that record)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 7c &amp;#150; Send status mail&lt;/P&gt;&lt;P&gt;&amp;#149; Append to table I_MCMAILOBJ details of the time the interface was processed, how many Idocs were created and how many of these produced a status of 03.&lt;/P&gt;&lt;P&gt;&amp;#149; Select the user to receive the mail from ZINT_RECEIVER, using the name of the program as a key (SY-CPROG).&lt;/P&gt;&lt;P&gt;&amp;#149; Use function Module &amp;#145;MC_SEND_MAIL&amp;#146; to send a mail to the user containing the contents of I_MCMAILOBJ at the end of the interface processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 8 &amp;#150; Test the population of the custom IDOC&lt;/P&gt;&lt;P&gt;via wedi IDoc - Display IDoc or Transaction WE02.&lt;/P&gt;&lt;P&gt;&amp;#149; Enter your message type and execute.&lt;/P&gt;&lt;P&gt;&amp;#149; Status should be green, double click on one of the Idocs you have created to view its contents.&lt;/P&gt;&lt;P&gt;&amp;#149; If a problem has occurred click on Status which will give you a description of the error.&lt;/P&gt;&lt;P&gt;&amp;#149; Drop down Data Records arrow and this should list the data in the IDoc in the correct hierarchical structure.&lt;/P&gt;&lt;P&gt;&amp;#149; Click on each individual segment and view the content to check that the correct data has been read.&lt;/P&gt;&lt;P&gt;&amp;#149; If you have UNIX access by using AL11 you can view the file that you have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;For some interfaces it may be valid to send an empty file to SAP. This empty file is converted to the custom IDOC format expected by SAP. This custom IDOC will contain dummy information. In the inbound processing code, if the dummy information is identified then the processing of the IDOC is considered to be complete and the IDOC should then be assigned a successfully processed status of 53, even though it has not been processed at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC STATUS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE05 T CODE gives the status&lt;/P&gt;&lt;P&gt;Subject: Re: how to know the idocs which are under process&lt;/P&gt;&lt;P&gt;Message: Tcode: WE02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;outbound&lt;/P&gt;&lt;P&gt;if the status is 26,29,30 ..idoc is in waiting status&lt;/P&gt;&lt;P&gt;03,12,38     successfully transferres&lt;/P&gt;&lt;P&gt;2,4,5,25      processing error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inbound&lt;/P&gt;&lt;P&gt;53   successfully updated&lt;/P&gt;&lt;P&gt;64  waiting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is list you will get containing the various status and Idoc could be  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;00	Not used, only R/2&lt;/P&gt;&lt;P&gt;01	IDoc created&lt;/P&gt;&lt;P&gt;02	Error passing data to port&lt;/P&gt;&lt;P&gt;03	Data passed to port OK&lt;/P&gt;&lt;P&gt;04	Error within control information of EDI subsystem&lt;/P&gt;&lt;P&gt;05	Error during translation&lt;/P&gt;&lt;P&gt;06	Translation OK&lt;/P&gt;&lt;P&gt;07	Error during syntax check&lt;/P&gt;&lt;P&gt;08	Syntax check OK&lt;/P&gt;&lt;P&gt;09	Error during interchange handling&lt;/P&gt;&lt;P&gt;10	Interchange handling OK&lt;/P&gt;&lt;P&gt;11	Error during dispatch&lt;/P&gt;&lt;P&gt;12	Dispatch OK&lt;/P&gt;&lt;P&gt;13	Retransmission OK&lt;/P&gt;&lt;P&gt;14	Interchange Acknowledgement positive&lt;/P&gt;&lt;P&gt;15	Interchange Acknowledgement negative&lt;/P&gt;&lt;P&gt;16	Functional Acknowledgement positive&lt;/P&gt;&lt;P&gt;17	Functional Acknowledgement negative&lt;/P&gt;&lt;P&gt;18	Triggering EDI subsystem OK&lt;/P&gt;&lt;P&gt;19	Data transfer for test OK&lt;/P&gt;&lt;P&gt;20	Error triggering EDI subsystem&lt;/P&gt;&lt;P&gt;21	Error passing data for test&lt;/P&gt;&lt;P&gt;22	Dispatch OK, acknowledgement still due&lt;/P&gt;&lt;P&gt;23	Error during retransmission&lt;/P&gt;&lt;P&gt;24	Control information of EDI subsystem OK&lt;/P&gt;&lt;P&gt;25	Processing despite syntax error (outbound)&lt;/P&gt;&lt;P&gt;26	Error during syntax check of IDoc (outbound)&lt;/P&gt;&lt;P&gt;27	Error in dispatch level (ALE service)&lt;/P&gt;&lt;P&gt;28	Not used&lt;/P&gt;&lt;P&gt;29	Error in ALE service&lt;/P&gt;&lt;P&gt;30	IDoc ready for dispatch (ALE service)&lt;/P&gt;&lt;P&gt;31	Error - no further processing&lt;/P&gt;&lt;P&gt;32	IDoc was edited&lt;/P&gt;&lt;P&gt;33	Original of an IDoc which was edited&lt;/P&gt;&lt;P&gt;34	Error in control record of IDoc&lt;/P&gt;&lt;P&gt;35	IDoc reloaded from archive&lt;/P&gt;&lt;P&gt;36	Electronic signature not performed (timeout)&lt;/P&gt;&lt;P&gt;37	IDoc added incorrectly&lt;/P&gt;&lt;P&gt;38	IDoc archived&lt;/P&gt;&lt;P&gt;39	IDoc is in the receiving system (ALE service)&lt;/P&gt;&lt;P&gt;40	Application document not created in receiving system&lt;/P&gt;&lt;P&gt;41	Application document created in receiving system&lt;/P&gt;&lt;P&gt;42	IDoc was created by test transaction&lt;/P&gt;&lt;P&gt;50	IDoc added&lt;/P&gt;&lt;P&gt;51	Error: Application document not posted&lt;/P&gt;&lt;P&gt;52	Application document not fully posted&lt;/P&gt;&lt;P&gt;53	Application document posted&lt;/P&gt;&lt;P&gt;54	Error during formal application check&lt;/P&gt;&lt;P&gt;55	Formal application check OK&lt;/P&gt;&lt;P&gt;56	IDoc with errors added&lt;/P&gt;&lt;P&gt;57	Test IDoc: Error during application check&lt;/P&gt;&lt;P&gt;58	IDoc-Copy from an R/2 connection&lt;/P&gt;&lt;P&gt;59	Not used&lt;/P&gt;&lt;P&gt;60	Error during syntax check of IDoc (inbound)&lt;/P&gt;&lt;P&gt;61	Processing despite syntax error (inbound)&lt;/P&gt;&lt;P&gt;62	IDoc passed to application&lt;/P&gt;&lt;P&gt;63	Error passing IDoc to application&lt;/P&gt;&lt;P&gt;64	IDoc ready to be transferred to application&lt;/P&gt;&lt;P&gt;65	Error in ALE service&lt;/P&gt;&lt;P&gt;66	IDoc is waiting for predecessor IDoc (serialization)&lt;/P&gt;&lt;P&gt;67	Not used&lt;/P&gt;&lt;P&gt;68	Error - no further processing&lt;/P&gt;&lt;P&gt;69	IDoc was edited&lt;/P&gt;&lt;P&gt;70	Original of an IDoc which was edited&lt;/P&gt;&lt;P&gt;71	IDoc reloaded from archive&lt;/P&gt;&lt;P&gt;72	Not used, only R/2&lt;/P&gt;&lt;P&gt;73	IDoc archived&lt;/P&gt;&lt;P&gt;74	IDoc was created by test transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;sowjanya.b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 04:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idocs/m-p/3528397#M848850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T04:23:23Z</dc:date>
    </item>
  </channel>
</rss>

