<?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/3246041#M774746</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;Check the links given below :&lt;/P&gt;&lt;P&gt;&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.allsaplinks.com/" target="test_blank"&gt;http://www.allsaplinks.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&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/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf&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;/P&gt;&lt;P&gt;&lt;A href="http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html" target="test_blank"&gt;http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points, if helpful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sandeep kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2007 09:52:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-31T09:52:12Z</dc:date>
    <item>
      <title>IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246040#M774745</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;I am new to IDOC and I want to learn IDOC.So pls send me some scenario and process with screen shots so that i can learn.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 09:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246040#M774745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T09:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246041#M774746</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;Check the links given below :&lt;/P&gt;&lt;P&gt;&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.allsaplinks.com/" target="test_blank"&gt;http://www.allsaplinks.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&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/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf&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;/P&gt;&lt;P&gt;&lt;A href="http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html" target="test_blank"&gt;http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points, if helpful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sandeep kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 09:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246041#M774746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246042#M774747</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;reward points, if it helpful&lt;/P&gt;&lt;P&gt;Aim: Transfer the data from one system to another using user customized IDOC. &lt;/P&gt;&lt;P&gt;Sender System:  &lt;/P&gt;&lt;P&gt;Server: 172.25.8.185 &lt;/P&gt;&lt;P&gt;Client: 200 &lt;/P&gt;&lt;P&gt;Data from Z table: zsach1  &lt;/P&gt;&lt;P&gt;ReceiverSystem: &lt;/P&gt;&lt;P&gt;Server: 172.25.9.198 &lt;/P&gt;&lt;P&gt;Client: 800 &lt;/P&gt;&lt;P&gt;Data from Z table: zsach1  &lt;/P&gt;&lt;P&gt;Data is fetched from Z table on the sender system and inserted it in the Z table of Receiver system using ALE/IDOC.  &lt;/P&gt;&lt;P&gt;Settings on the Sender End  &lt;/P&gt;&lt;P&gt;Table Creation T &amp;#150; Code SE11. The table contains data that is to be sent to Receiver.  &lt;/P&gt;&lt;P&gt;ALE Configuration  &lt;/P&gt;&lt;P&gt;T-Code &amp;#150; SALE  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defining Logical System  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;200 is our sender &lt;/P&gt;&lt;P&gt;800 is our receiver  &lt;/P&gt;&lt;P&gt;Assigning Client to Logical System  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;200 is our sender &lt;/P&gt;&lt;P&gt;800 is our receiver  &lt;/P&gt;&lt;P&gt;Defining Target System for RFC Calls (Tcode &amp;#150; SM59) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on R/3 Connections and then Create TAB  &lt;/P&gt;&lt;P&gt;Step 1  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and test the connection.  &lt;/P&gt;&lt;P&gt;Defining Port  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The sender system is connected to the receiver system through this Port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defining Partner Profiles  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The partner for client 200(Sender) is the client 800 (Receiver)  &lt;/P&gt;&lt;P&gt;Since this is a sender we have to define only Outbound Parameters in this case. &lt;/P&gt;&lt;P&gt;Here you can see the Message type is Z message type.   &lt;/P&gt;&lt;P&gt;2.                   Maintaining Distribution Model (TCode BD64 )  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create new Distribution Model  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Add Message Type  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Distribute this Model View   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distribute it from Edit à Model View à Distribute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defining the Z Segment type &lt;/P&gt;&lt;P&gt;Tcode &amp;#150; WE31  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Defining the Basic Type &lt;/P&gt;&lt;P&gt;T Code WE30  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on New  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will take you to next screen as follows  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you have connected the basic type to the segment type. &lt;/P&gt;&lt;P&gt; Enter again and this will take you to screen as follows   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows the relation between the basic and the segment types.  &lt;/P&gt;&lt;P&gt;Next you need to make the entry of the segment in the system table. &lt;/P&gt;&lt;P&gt;Tcode : WE81  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next is the following entry which is required.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you are specifying the message type and the basic type and the release version.  &lt;/P&gt;&lt;P&gt;This is all about the configuration you need to do on the sender side. &lt;/P&gt;&lt;P&gt;Now on the sender side you also need a program that will fetch the required data, couple it in the IDOC format and post it.  &lt;/P&gt;&lt;P&gt;Here is a small piece of code that could be useful.&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZSACH_CUST_IDOC                                             *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;report  zsach_cust_idoc                         .&lt;/P&gt;&lt;P&gt;parameters :            p_logsys like tbdlst-logsys.&lt;/P&gt;&lt;P&gt;data : gen_segment like edidd-segnam value 'ZSACH'.&lt;/P&gt;&lt;P&gt;data : control_dat like edidc,&lt;/P&gt;&lt;P&gt;      gen_data like z1hdr .&lt;/P&gt;&lt;P&gt;tables :zsach1.&lt;/P&gt;&lt;P&gt;data: begin of inttab occurs 0,&lt;/P&gt;&lt;P&gt;        lname type z1hdr-lname,&lt;/P&gt;&lt;P&gt;        fname type z1hdr-fname,&lt;/P&gt;&lt;P&gt;      end of inttab.&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;      int_edidd like edidd occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      int_edidc like edidc occurs 0 with header line.&lt;/P&gt;&lt;P&gt;select * from zsach1 into corresponding fields of table inttab.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  message 'no data' type 'I'.&lt;/P&gt;&lt;P&gt;  exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;control_dat-mestyp = 'ZSACH'.&lt;/P&gt;&lt;P&gt;control_dat-idoctp = 'ZSACH'.&lt;/P&gt;&lt;P&gt;control_dat-rcvprt = 'LS'.&lt;/P&gt;&lt;P&gt;control_dat-rcvprn =  p_logsys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at inttab.&lt;/P&gt;&lt;P&gt;  gen_data-lname = inttab-lname.&lt;/P&gt;&lt;P&gt;  gen_data-fname = inttab-fname.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; GEN_DATA-SSN = INTTAB-SSN.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; GEN_DATA-DOB = INTTAB-DOB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  int_edidd-segnam = gen_segment.&lt;/P&gt;&lt;P&gt;  int_edidd-sdata = gen_data.&lt;/P&gt;&lt;P&gt;  append int_edidd.&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                  = control_dat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJ_TYPE                             = ''&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHNUM                                = ''&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    communication_idoc_control           = int_edidc&lt;/P&gt;&lt;P&gt;    master_idoc_data                     = int_edidd&lt;/P&gt;&lt;P&gt; exceptions&lt;/P&gt;&lt;P&gt;   error_in_idoc_control                = 1&lt;/P&gt;&lt;P&gt;   error_writing_idoc_status            = 2&lt;/P&gt;&lt;P&gt;   error_in_idoc_data                   = 3&lt;/P&gt;&lt;P&gt;   sending_logical_system_unknown       = 4&lt;/P&gt;&lt;P&gt;   others                               = 5&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  message id sy-msgid type sy-msgty number sy-msgno.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  loop at int_edidc.&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'IDOC GENERATED',int_edidc-docnum.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  commit work.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings on the receiver side.  &lt;/P&gt;&lt;P&gt;The ALE configuration is same as we did it on the sender side. Please refer to earlier pages.  &lt;/P&gt;&lt;P&gt;The receiver specific differences are mentioned below.  &lt;/P&gt;&lt;P&gt;T-Code &amp;#150; SALE  &lt;/P&gt;&lt;P&gt;200 is our sender &lt;/P&gt;&lt;P&gt;800 is our receiver  &lt;/P&gt;&lt;P&gt;Steps   &lt;/P&gt;&lt;P&gt;Defining Logical System (Same as sender) &lt;/P&gt;&lt;P&gt;Assigning Client to Logical System (Same as sender) &lt;/P&gt;&lt;P&gt;Defining Target System for RFC Calls (Tcode &amp;#150; SM59) (Same as sender) &lt;/P&gt;&lt;P&gt;Defining Port(Same as sender)  &lt;/P&gt;&lt;P&gt;Defining Partner Profiles &amp;#150; Here we are accepting the data from Sender system. Hence we need to configure it as Inbound.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on the   sign above to go to next screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the message type is to be created again as it was created on the sender side. &lt;/P&gt;&lt;P&gt;The following steps are repeated, as done on the sender side, on the receiver end  &lt;/P&gt;&lt;P&gt;Tcode WE30 &lt;/P&gt;&lt;P&gt;Tcode WE31 &lt;/P&gt;&lt;P&gt;Tcode WE82 &lt;/P&gt;&lt;P&gt;Tcode WE81 &lt;/P&gt;&lt;P&gt;Here on the receiver end, we need to specify a process code at the time of defining the partner profile. &lt;/P&gt;&lt;P&gt;Process code is something that has the logic defined about what to be done after receiving the IDOC.  &lt;/P&gt;&lt;P&gt;In our case, on receipt of the IDOC, we are updating the Z Table. i.e Inserting the data from the IDOC into the Z Table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a Process Code &lt;/P&gt;&lt;P&gt;Tcode &amp;#150; WE42   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic associated is coded in the Function Module which is specified in the Identification Field above.  &lt;/P&gt;&lt;P&gt;Also the processing type is selected as Processing by Function Module as above.  &lt;/P&gt;&lt;P&gt;The function Module is specified in the following screen.  &lt;/P&gt;&lt;P&gt;To have your function Module in the above drop down list, the entry is to be made using the following transaction  &lt;/P&gt;&lt;P&gt;TCode &amp;#150; BD51  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the entry is done here, the function module appears in the drop down list in the previous stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it is important to make the following entry &lt;/P&gt;&lt;P&gt;Tcode WE57  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module will look something as below:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Source Code&lt;/P&gt;&lt;P&gt;function z_idoc_input_sach .&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(INPUT_METHOD) LIKE  BDWFAP_PAR-INPUTMETHD&lt;/P&gt;&lt;P&gt;*"     VALUE(MASS_PROCESSING) LIKE  BDWFAP_PAR-MASS_PROC&lt;/P&gt;&lt;P&gt;*"     VALUE(NO_APPLICATION_LOG) LIKE  SY-DATAR OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(MASSSAVEINFOS) LIKE  MASSSAVINF STRUCTURE  MASSSAVINF&lt;/P&gt;&lt;P&gt;*"       OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(WORKFLOW_RESULT) LIKE  BDWF_PARAM-RESULT&lt;/P&gt;&lt;P&gt;*"     VALUE(APPLICATION_VARIABLE) LIKE  BDWF_PARAM-APPL_VAR&lt;/P&gt;&lt;P&gt;*"     VALUE(IN_UPDATE_TASK) LIKE  BDWFAP_PAR-UPDATETASK&lt;/P&gt;&lt;P&gt;*"     VALUE(CALL_TRANSACTION_DONE) LIKE  BDWFAP_PAR-CALLTRANS&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      IDOC_CONTRL STRUCTURE  EDIDC&lt;/P&gt;&lt;P&gt;*"      IDOC_DATA STRUCTURE  EDIDD&lt;/P&gt;&lt;P&gt;*"      IDOC_STATUS STRUCTURE  BDIDOCSTAT&lt;/P&gt;&lt;P&gt;*"      RETURN_VARIABLES STRUCTURE  BDWFRETVAR&lt;/P&gt;&lt;P&gt;*"      SERIALIZATION_INFO STRUCTURE  BDI_SER&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      WRONG_FUNCTION_CALLED&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;  include mbdconwf.&lt;/P&gt;&lt;P&gt;  data : it_emp_data like zsach1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;  data : gen_data like zsach1 .&lt;/P&gt;&lt;P&gt;  workflow_result = c_wf_result_ok.&lt;/P&gt;&lt;P&gt;data : counter type int4.&lt;/P&gt;&lt;P&gt;select count( * ) from zsach1 into counter.&lt;/P&gt;&lt;P&gt;counter = counter + 1.&lt;/P&gt;&lt;P&gt;  loop at idoc_contrl.&lt;/P&gt;&lt;P&gt;    if idoc_contrl-mestyp ne 'ZSACH'.&lt;/P&gt;&lt;P&gt;      raise wrong_function_called.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    clear gen_data.&lt;/P&gt;&lt;P&gt;    refresh it_emp_data.&lt;/P&gt;&lt;P&gt;    loop at idoc_data where docnum eq idoc_contrl-docnum.&lt;/P&gt;&lt;P&gt;      if idoc_data-segnam = 'ZSACH'.&lt;/P&gt;&lt;P&gt;        gen_data = idoc_data-sdata.&lt;/P&gt;&lt;P&gt;          it_emp_data-mandt = counter.&lt;/P&gt;&lt;P&gt;          it_emp_data-lname = gen_data-lname.&lt;/P&gt;&lt;P&gt;          it_emp_data-fname = gen_data-fname.&lt;/P&gt;&lt;P&gt;          counter = counter + 1.&lt;/P&gt;&lt;P&gt;        append it_emp_data.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        message 'ERROR' type 'I'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;insert zsach1 from table it_emp_data.&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;call function 'EDI_DOCUMENT_OPEN_FOR_EDIT'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    document_number               = idoc_data-docnum&lt;/P&gt;&lt;P&gt;  importing&lt;/P&gt;&lt;P&gt;    idoc_control                  = idoc_contrl&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    idoc_data                     = idoc_data&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    document_foreign_lock         = 1&lt;/P&gt;&lt;P&gt;    document_not_exist            = 2&lt;/P&gt;&lt;P&gt;    document_not_open             = 3&lt;/P&gt;&lt;P&gt;    status_is_unable_for_changing = 4&lt;/P&gt;&lt;P&gt;    others                        = 5.&lt;/P&gt;&lt;P&gt;call function 'EDI_CHANGE_DATA_SEGMENTS'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    idoc_changed_data_range = idoc_data&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    idoc_not_open           = 1&lt;/P&gt;&lt;P&gt;    data_record_not_exist   = 2&lt;/P&gt;&lt;P&gt;    others                  = 3.&lt;/P&gt;&lt;P&gt;data t_itab_edids40 like edi_ds40 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;clear t_itab_edids40.&lt;/P&gt;&lt;P&gt;t_itab_edids40-docnum      = idoc_data-docnum.&lt;/P&gt;&lt;P&gt;t_itab_edids40-status      = '51'.&lt;/P&gt;&lt;P&gt;t_itab_edids40-repid       = sy-repid.&lt;/P&gt;&lt;P&gt;t_itab_edids40-tabnam      = 'EDI_DS'.&lt;/P&gt;&lt;P&gt;t_itab_edids40-mandt       = sy-mandt.&lt;/P&gt;&lt;P&gt;t_itab_edids40-stamqu      = 'SAP'.&lt;/P&gt;&lt;P&gt;t_itab_edids40-stamid      = 'B1'.&lt;/P&gt;&lt;P&gt;t_itab_edids40-stamno      = '999'.&lt;/P&gt;&lt;P&gt;t_itab_edids40-stapa1      = 'Sold to changed to '.&lt;/P&gt;&lt;P&gt;*t_itab_edids40-stapa2      = t_new_kunnr.&lt;/P&gt;&lt;P&gt;t_itab_edids40-logdat      = sy-datum.&lt;/P&gt;&lt;P&gt;t_itab_edids40-logtim      = sy-uzeit.&lt;/P&gt;&lt;P&gt;append t_itab_edids40.&lt;/P&gt;&lt;P&gt;call function 'EDI_DOCUMENT_CLOSE_EDIT'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    document_number  = idoc_data-docnum&lt;/P&gt;&lt;P&gt;    do_commit        = 'X'&lt;/P&gt;&lt;P&gt;    do_update        = 'X'&lt;/P&gt;&lt;P&gt;    write_all_status = 'X'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    status_records   = t_itab_edids40&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    idoc_not_open    = 1&lt;/P&gt;&lt;P&gt;    db_error         = 2&lt;/P&gt;&lt;P&gt;    others           = 3.&lt;/P&gt;&lt;P&gt;endfunction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the Application  &lt;/P&gt;&lt;P&gt;Sender system &lt;/P&gt;&lt;P&gt;Execute the program we created earlier  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking the IDOC  &lt;/P&gt;&lt;P&gt;T Code WE02  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking the data on the Receiver end  &lt;/P&gt;&lt;P&gt;Tcode: WE02  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The IDOC has arrived here  &lt;/P&gt;&lt;P&gt;Checking the Data   &lt;/P&gt;&lt;P&gt;Double click on the IDOC   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Checking the Database  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way, the data has come to the receiver end successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 09:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246042#M774747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246043#M774748</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;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 10:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246043#M774748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T10:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246044#M774749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sandeep,&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;&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>Mon, 31 Dec 2007 10:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3246044#M774749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T10:19:35Z</dc:date>
    </item>
  </channel>
</rss>

