<?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: Using Idocs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565858#M255658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are basically two types of IDOCs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic IDOCs &lt;/P&gt;&lt;P&gt;Extended IDOCs &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idoc Components &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic Idoc &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;&lt;/P&gt;&lt;P&gt;Extension Idoc &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;&lt;/P&gt;&lt;P&gt;Creation of IDoc &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;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a Segment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create IDOC Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create IDOC Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save it and go back &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set release &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Message Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign Message Type to IDoc Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;u can also check all these links related to idocs &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;/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;/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;A href="http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2006 10:22:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-13T10:22:37Z</dc:date>
    <item>
      <title>Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565853#M255653</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;Can you plz explain me the steps in creating an IDOC and using it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 07:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565853#M255653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T07:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565854#M255654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go thru these links&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;/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;ALE/ IDOC/ XML&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://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp" target="test_blank"&gt;http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_srm30/helpdata/en/72/0fe1385bed2815e10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_srm30/helpdata/en/72/0fe1385bed2815e10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC Convertion &lt;/P&gt;&lt;P&gt;/people/kevin.wilson2/blog/2005/12/07/changing-fields-in-an-idoc-segment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 07:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565854#M255654</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-09-13T07:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565855#M255655</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;Send me your mail id. Will send you some good docus on IDocs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarsd,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 07:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565855#M255655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T07:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565856#M255656</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;my mailid is srinureddy11@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 09:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565856#M255656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T09:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565857#M255657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Check you mail. I have sent you one document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raveendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565857#M255657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T10:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565858#M255658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are basically two types of IDOCs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic IDOCs &lt;/P&gt;&lt;P&gt;Extended IDOCs &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idoc Components &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic Idoc &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;&lt;/P&gt;&lt;P&gt;Extension Idoc &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;&lt;/P&gt;&lt;P&gt;Creation of IDoc &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;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a Segment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create IDOC Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create IDOC Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save it and go back &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set release &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Message Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign Message Type to IDoc Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;u can also check all these links related to idocs &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;/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;/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;A href="http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565858#M255658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T10:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565859#M255659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Reply is good. But, How Can I use the Idoc Type that was created using the steps you have provided? Can anyone please explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the creation of Segment type, Basic Idoc Type, assigning a message type and releasing. But, how can I use that in the applications?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Srinu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 06:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565859#M255659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-14T06:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565860#M255660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample program to Distribute IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This May Help You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:		C_INVREV_SEGNAME(7) TYPE C VALUE 'Z1INVRV',&lt;/P&gt;&lt;P&gt;		C_INVREV_MESTYPE(6) TYPE C VALUE 'ZINVRV',&lt;/P&gt;&lt;P&gt;		C_INVREV_IDOC_TYPE(8) TYPE C VALUE 'ZINVRV01', &lt;/P&gt;&lt;P&gt;		Z1INVRV LIKE Z1INVRV,&lt;/P&gt;&lt;P&gt;		C_INVREV_DOCTYPE LIKE BKPF-BLART VALUE 'YY',&lt;/P&gt;&lt;P&gt;		IDOC_CONTROL LIKE EDIDC,&lt;/P&gt;&lt;P&gt;		T_COMM_CONTROL LIKE EDIDC OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;		IDOC_DATA LIKE EDIDD OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Move the document header into a structure&lt;/P&gt;&lt;P&gt;LOOP AT DOC_HEAD_TAB INTO DOC_HEAD.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Move the document item data into a structure&lt;/P&gt;&lt;P&gt;LOOP AT DOC_ITEM_TAB INTO DOC_ITEM WHERE NOT ( LIFNR IS INITIAL ).&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Populate the IDoc segment&amp;#146;s field with the required data&lt;/P&gt;&lt;P&gt;CLEAR Z1INVRV.&lt;/P&gt;&lt;P&gt;Z1INVRV-LIFNR = DOC_ITEM-LIFNR.		&amp;#147;Store vendor number for filter&lt;/P&gt;&lt;P&gt;Z1INVRV-XBLNR = DOC_HEAD-XBLNR.		&amp;#147;Billing number&lt;/P&gt;&lt;P&gt;IDOC_DATA-SEGNAM = C_INVREV_SEGNAME.	&amp;#147;Segment name&lt;/P&gt;&lt;P&gt;IDOC_DATA-SDATA = Z1INVRV.			&amp;#147;Segment data&lt;/P&gt;&lt;P&gt;APPEND IDOC_DATA.				&amp;#147;Populate IDoc internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Move the control data info required for the distribution&lt;/P&gt;&lt;P&gt;IDOC_CONTROL-MESTYP = C_INVREV_MESTYPE.&lt;/P&gt;&lt;P&gt;IDOC_CONTROL-DOCTYP = C_INVREV_IDOC_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Call the distribute function with the required parameters&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;		EXPORTING&lt;/P&gt;&lt;P&gt;			MASTER_IDOC_CONTROL		= IDOC_CONTROL&lt;/P&gt;&lt;P&gt;		TABLES&lt;/P&gt;&lt;P&gt;			COMMUNICATION_IDOC_CONTROL	= T_COMM_CONTROL&lt;/P&gt;&lt;P&gt;			MASTER_IDOC_DATA			= IDOC_DATA&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 you are using standard transactions then you can use user_exit to place this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Raveendra Holla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2006 08:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565860#M255660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-15T08:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565861#M255661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the Example code to receive IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_IDOC_RECEIVE.&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;*"     REFERENCE(INPUT_METHOD) TYPE  BDWFAP_PAR-INPUTMETHD&lt;/P&gt;&lt;P&gt;*"     REFERENCE(MASS_PROCESSING) TYPE  BDWFAP_PAR-MASS_PROC&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(WORKFLOW_RESULT) TYPE  BDWFAP_PAR-RESULT&lt;/P&gt;&lt;P&gt;*"     REFERENCE(APPLICATION_VARIABLE) TYPE  BDWFAP_PAR-APPL_VAR&lt;/P&gt;&lt;P&gt;*"     REFERENCE(IN_UPDATE_TASK) TYPE  BDWFAP_PAR-UPDATETASK&lt;/P&gt;&lt;P&gt;*"     REFERENCE(CALL_TRANSACTION_DONE) TYPE  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;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Declaration of local variables&lt;/P&gt;&lt;P&gt;DATA: C_SEGNAM(10) TYPE C VALUE 'Z1B_SEG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: T_Z1B_SEG like Z1B_SEG.&lt;/P&gt;&lt;P&gt;data:  begin of t_zravtest OCCURS 0.&lt;/P&gt;&lt;P&gt;include structure zravtest.&lt;/P&gt;&lt;P&gt;data: end of t_zravtest.&lt;/P&gt;&lt;P&gt;*-Loop through the IDOCs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IDOC_CONTRL.&lt;/P&gt;&lt;P&gt;*---Loop through the data for the IDOC&lt;/P&gt;&lt;P&gt;	LOOP AT IDOC_DATA WHERE DOCNUM = IDOC_CONTRL-DOCNUM.&lt;/P&gt;&lt;P&gt;		CASE IDOC_DATA-SEGNAM.&lt;/P&gt;&lt;P&gt;			WHEN C_SEGNAM.&lt;/P&gt;&lt;P&gt;*				Here we get the info from the idoc table&lt;/P&gt;&lt;P&gt;				T_Z1B_SEG = IDOC_DATA-SDATA.&lt;/P&gt;&lt;P&gt;		ENDCASE.&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;              t_zravtest-val1 = t_Z1B_SEG-value1.&lt;/P&gt;&lt;P&gt;              t_zravtest-val2 = t_Z1B_SEG-value2.&lt;/P&gt;&lt;P&gt;              append  T_ZRAVTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	ENDLOOP.&lt;/P&gt;&lt;P&gt;		WORKFLOW_RESULT = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-DOCNUM = IDOC_CONTRL-DOCNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-STATUS = '53'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-UNAME = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-REPID = SY-REPID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-MSGTY = SY-MSGTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-MSGID = SY-MSGID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-MSGNO = SY-MSGNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-MSGV1 = SY-MSGV1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-MSGV2 = SY-MSGV2.&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-MSGV3 = SY-MSGV3.&lt;/P&gt;&lt;P&gt;		IDOC_STATUS-MSGV4 = SY-MSGV4.&lt;/P&gt;&lt;P&gt;		RETURN_VARIABLES-WF_PARAM = 'Processed_IDOCs'.&lt;/P&gt;&lt;P&gt;		RETURN_VARIABLES-DOC_NUMBER = IDOC_CONTRL-DOCNUM.&lt;/P&gt;&lt;P&gt;		APPEND RETURN_VARIABLES.&lt;/P&gt;&lt;P&gt;              append IDOC_STATUS.&lt;/P&gt;&lt;P&gt;	CLEAR IDOC_STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; t_zravtest contains the Data from IDOC. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do the following steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inbound function module needs to be linked to the message type and the message type needs to be linked to the appropriate inbound process code at the partner profile level before the scenario is enabled. These steps are described below in detail.&lt;/P&gt;&lt;P&gt;	Link Message Type to Function Module (WE57) Client independent&lt;/P&gt;&lt;P&gt;To link a message &amp;lt;MESSAGE&amp;gt; type to a function module &amp;lt;FUNCTION MODULE&amp;gt; follow these steps:&lt;/P&gt;&lt;P&gt;&amp;#149;	Enter transaction WE57 (ALE -&amp;gt; Extensions -&amp;gt; Inbound -&amp;gt; Allocate function module to logical message)&lt;/P&gt;&lt;P&gt;&amp;#149;	Select an entry (EG. IDOC_INPUT_ORDERS) and copy&lt;/P&gt;&lt;P&gt;&amp;#149;	Type in module name &amp;lt;FUNCTION Module NAME&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	Type in basic IDoc type as &amp;lt;IDOC TYPE&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	Type in message type as &amp;lt;MESSAGE TYPE&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	Type object type&lt;/P&gt;&lt;P&gt;&amp;#149;	Direction should be set to 2 for inbound&lt;/P&gt;&lt;P&gt;&amp;#149;	Enter and save&lt;/P&gt;&lt;P&gt;	Define FM settings (BD51) Client independent&lt;/P&gt;&lt;P&gt;&amp;#149;	Enter transaction BD51 (ALE -&amp;gt; Extensions -&amp;gt; Inbound -&amp;gt; Define settings for input modules)&lt;/P&gt;&lt;P&gt;&amp;#149;	Click on New entries&lt;/P&gt;&lt;P&gt;&amp;#149;	Type in the name of the new function module &amp;lt;FUNCTION MODULE&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	Enter 0 for mass processing in the output column&lt;/P&gt;&lt;P&gt;&amp;#149;	Save and Exit&lt;/P&gt;&lt;P&gt;Maintain process codes (WE42) Client dependent&lt;/P&gt;&lt;P&gt;A process code needs to be maintained on each client. It then needs to be linked to the message via the partner profiles on each client. This allows the various clients to use a unique function module for the same message type.&lt;/P&gt;&lt;P&gt;To maintain the process code follow these steps:&lt;/P&gt;&lt;P&gt;&amp;#149;	Log on to the appropriate receiving system client&lt;/P&gt;&lt;P&gt;&amp;#149;	Execute WE42 (ALE -&amp;gt; Extensions -&amp;gt; Inbound -&amp;gt; Maintaining process codes inbound)&lt;/P&gt;&lt;P&gt;&amp;#149;	Choose Inbound with ALE service&lt;/P&gt;&lt;P&gt;&amp;#149;	Choose Processing with function module&lt;/P&gt;&lt;P&gt;&amp;#149;	Click on Processing with function module and choose create icon&lt;/P&gt;&lt;P&gt;&amp;#149;	Click on New Entries&lt;/P&gt;&lt;P&gt;&amp;#149;	Type in process code name EX: ZINR and give it a description and save&lt;/P&gt;&lt;P&gt;&amp;#149;	Now you are asked to Please maintain codes added in ALE entry methods, enter and choose Z_IDOC_INPUT_FIRVSL and copy it. You should choose a FM similar to your one.&lt;/P&gt;&lt;P&gt;&amp;#149;	Enter your process code EX: ZINR&lt;/P&gt;&lt;P&gt;&amp;#149;	Enter your function module &amp;lt;FUNCTION MODULE&amp;gt;&lt;/P&gt;&lt;P&gt;	Create inbound partner profile&lt;/P&gt;&lt;P&gt;For each message type you need to maintain the inbound partner profiles.&lt;/P&gt;&lt;P&gt;Maintain receiving system partner profile (WE20) Client dependent&lt;/P&gt;&lt;P&gt;To maintain inbound partner profiles read the document ALE configuration procedure:&lt;/P&gt;&lt;P&gt;&amp;#149;	Add the message type &amp;lt;MESSAGE TYPE&amp;gt; with process code EX: ZINR.&lt;/P&gt;&lt;P&gt;&amp;#149;	Enter the output mode (background, immediately) for inbound processing and NO message code.&lt;/P&gt;&lt;P&gt;&amp;#149;	Enter the position S and choose the ALE administrator 50000085. This position will then receive all the technical ALE errors via workflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2006 08:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-idocs/m-p/1565861#M255661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-15T08:56:24Z</dc:date>
    </item>
  </channel>
</rss>

