<?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: Need inbound procesing code  for an Idoc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-inbound-procesing-code-for-an-idoc/m-p/3299388#M789704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amruth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For inbound processing, you need to configure the partner profile (WE20) by adding/asisgning the message type to the inbound table control of the partner from which your SAP system receives the IDoc. Then when you double click on the message type, you have to enter the process code (which links to the inbound Idoc processing function module).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this will guide u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See thsi Blog : &lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/idoc%2bsteps" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/idoc%2bsteps&lt;/A&gt;&lt;/P&gt;&lt;P&gt;see this for FM : &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="390172"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the steps for custom idoc for outbound as well as inbound.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; WE30 - IDOC type creation&lt;/P&gt;&lt;P&gt;&amp;#149; WE31 - Create segment&lt;/P&gt;&lt;P&gt;&amp;#149; WE81 - Message type creation&lt;/P&gt;&lt;P&gt;&amp;#149; WE82 - Link IDOC type to Message type&lt;/P&gt;&lt;P&gt;&amp;#149; SE37 - Create Inbound Function Module&lt;/P&gt;&lt;P&gt;&amp;#149; BD51 - Maintain entry for Function Module&lt;/P&gt;&lt;P&gt;&amp;#149; WE57 - Maintain&lt;/P&gt;&lt;P&gt;&amp;#149; BD57 - Link Function Module, IDOC type and Message type&lt;/P&gt;&lt;P&gt;&amp;#149; WE42 &amp;#150; Create Inbound Process Code&lt;/P&gt;&lt;P&gt;&amp;#149; BD67 - Link Process code to Function Module&lt;/P&gt;&lt;P&gt;&amp;#149; WE20 - Create Partner Profile&lt;/P&gt;&lt;P&gt;&amp;#149; BD64 - Display Distribution Model&lt;/P&gt;&lt;P&gt;&amp;#149; WE02 - IDoc List, Display all Inbound/Outbound IDocs&lt;/P&gt;&lt;P&gt;&amp;#149; WE14 - Outbound Processing of IDoc&amp;#146;s&lt;/P&gt;&lt;P&gt;&amp;#149; BD20 - Inbound Processing of IDoc&amp;#146;s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Step: Create a Segment ( WE31)&lt;/P&gt;&lt;P&gt;Segment is a structure for passing data in IDoc. It actually contains the IDoc data, just like the DDIC table/structure. Segment is created with all the required fields. Then Save it. But, to actually use this Segment, you have to Release the Segment, otherwise u can&amp;#146;t use the Segment, by menu, EDIT--&amp;gt; Set Release.&lt;/P&gt;&lt;P&gt;Now, if you want to do some change to this Segment, u cant, unless &amp;amp; until u Cancel the Release, by Edit--&amp;gt; Cancel Release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Step: Create IDOC Type ( WE30 )&lt;/P&gt;&lt;P&gt;After creating the Segment, now we have to create the IDoc Type. IDOC Type is like an envelop of a letter, which contains the data inside it, &amp;amp; also some more information like address. IDoc type can be Basic Or Extended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic IDoc Type: Using some SAP existing IDOC type (ex. MATMAS) or Custom IDOC type.&lt;/P&gt;&lt;P&gt;Extension IDOC Type: When we need some fields extra to an existing IDOC type, then we can extend that Basic Idoc Type by another Segment. This is called Extended idoc type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd Step: Create Message Type (WE81)&lt;/P&gt;&lt;P&gt;Message Type is like the Postman for sending the Letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4th Step: Attach Message Type to the IDOC Type (WE82)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5th Step: Create a Function Module (SE37)&lt;/P&gt;&lt;P&gt;Write the Processing logic in a Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6th Step: Mention the IDOC Type, i.e, 0/1/2 (BD51)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7th Step: Assign the Message Type, IDOC Type &amp;amp; Function Module (WE57)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8th Step: Create a Custom Process Code (WE42)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9th Step: Attach the Function Module to the Process Code (BD67)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10th Step: Execute Inbound IDOC&amp;#146; s (WE19)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Function Module: IDOC_INPUT_ORDERS (Standard FM to create Sales Order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 14:17:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-05T14:17:46Z</dc:date>
    <item>
      <title>Need inbound procesing code  for an Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-inbound-procesing-code-for-an-idoc/m-p/3299387#M789703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   My requirement is that  to create a IDOC Structure which is having five fields ( PSPAR-PERNR,P2011-LDATE,P2011-LTIME,P2011-SATZA,P2011-TERID). Where the PSPAR &amp;amp; P2011 are the structures related to the HR. Can anyone provide sample inbound processing code related to this. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 05:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-inbound-procesing-code-for-an-idoc/m-p/3299387#M789703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T05:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need inbound procesing code  for an Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-inbound-procesing-code-for-an-idoc/m-p/3299388#M789704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amruth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For inbound processing, you need to configure the partner profile (WE20) by adding/asisgning the message type to the inbound table control of the partner from which your SAP system receives the IDoc. Then when you double click on the message type, you have to enter the process code (which links to the inbound Idoc processing function module).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this will guide u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See thsi Blog : &lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/idoc%2bsteps" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/idoc%2bsteps&lt;/A&gt;&lt;/P&gt;&lt;P&gt;see this for FM : &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="390172"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the steps for custom idoc for outbound as well as inbound.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; WE30 - IDOC type creation&lt;/P&gt;&lt;P&gt;&amp;#149; WE31 - Create segment&lt;/P&gt;&lt;P&gt;&amp;#149; WE81 - Message type creation&lt;/P&gt;&lt;P&gt;&amp;#149; WE82 - Link IDOC type to Message type&lt;/P&gt;&lt;P&gt;&amp;#149; SE37 - Create Inbound Function Module&lt;/P&gt;&lt;P&gt;&amp;#149; BD51 - Maintain entry for Function Module&lt;/P&gt;&lt;P&gt;&amp;#149; WE57 - Maintain&lt;/P&gt;&lt;P&gt;&amp;#149; BD57 - Link Function Module, IDOC type and Message type&lt;/P&gt;&lt;P&gt;&amp;#149; WE42 &amp;#150; Create Inbound Process Code&lt;/P&gt;&lt;P&gt;&amp;#149; BD67 - Link Process code to Function Module&lt;/P&gt;&lt;P&gt;&amp;#149; WE20 - Create Partner Profile&lt;/P&gt;&lt;P&gt;&amp;#149; BD64 - Display Distribution Model&lt;/P&gt;&lt;P&gt;&amp;#149; WE02 - IDoc List, Display all Inbound/Outbound IDocs&lt;/P&gt;&lt;P&gt;&amp;#149; WE14 - Outbound Processing of IDoc&amp;#146;s&lt;/P&gt;&lt;P&gt;&amp;#149; BD20 - Inbound Processing of IDoc&amp;#146;s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Step: Create a Segment ( WE31)&lt;/P&gt;&lt;P&gt;Segment is a structure for passing data in IDoc. It actually contains the IDoc data, just like the DDIC table/structure. Segment is created with all the required fields. Then Save it. But, to actually use this Segment, you have to Release the Segment, otherwise u can&amp;#146;t use the Segment, by menu, EDIT--&amp;gt; Set Release.&lt;/P&gt;&lt;P&gt;Now, if you want to do some change to this Segment, u cant, unless &amp;amp; until u Cancel the Release, by Edit--&amp;gt; Cancel Release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Step: Create IDOC Type ( WE30 )&lt;/P&gt;&lt;P&gt;After creating the Segment, now we have to create the IDoc Type. IDOC Type is like an envelop of a letter, which contains the data inside it, &amp;amp; also some more information like address. IDoc type can be Basic Or Extended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic IDoc Type: Using some SAP existing IDOC type (ex. MATMAS) or Custom IDOC type.&lt;/P&gt;&lt;P&gt;Extension IDOC Type: When we need some fields extra to an existing IDOC type, then we can extend that Basic Idoc Type by another Segment. This is called Extended idoc type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd Step: Create Message Type (WE81)&lt;/P&gt;&lt;P&gt;Message Type is like the Postman for sending the Letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4th Step: Attach Message Type to the IDOC Type (WE82)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5th Step: Create a Function Module (SE37)&lt;/P&gt;&lt;P&gt;Write the Processing logic in a Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6th Step: Mention the IDOC Type, i.e, 0/1/2 (BD51)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7th Step: Assign the Message Type, IDOC Type &amp;amp; Function Module (WE57)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8th Step: Create a Custom Process Code (WE42)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9th Step: Attach the Function Module to the Process Code (BD67)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10th Step: Execute Inbound IDOC&amp;#146; s (WE19)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Function Module: IDOC_INPUT_ORDERS (Standard FM to create Sales Order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 14:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-inbound-procesing-code-for-an-idoc/m-p/3299388#M789704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T14:17:46Z</dc:date>
    </item>
  </channel>
</rss>

