<?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 Idoc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871146#M930435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me how may I get a complete reference of IDOC?So that there will be no problem to working with IDOC objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2008 10:39:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-26T10:39:32Z</dc:date>
    <item>
      <title>Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871146#M930435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me how may I get a complete reference of IDOC?So that there will be no problem to working with IDOC objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 10:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871146#M930435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T10:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871147#M930436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rajarshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/idoc_sample.html" target="test_blank"&gt;http://www.sapmaterial.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this link will help u&lt;/P&gt;&lt;P&gt; to get the overview of an idoc how to create&lt;/P&gt;&lt;P&gt;and the transcations which are used regularly are se18,se19,we18,we19,we30,we02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sindhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 10:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871147#M930436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T10:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871148#M930437</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;if u  want an example to follow.....the sequence is as follows.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Lets take an example to understand this:&lt;/P&gt;&lt;P&gt;u2022 Whenever a Purchase Order (PO) is created we want to send the IDOC to a vendor.&lt;/P&gt;&lt;P&gt;u2022 The PO is sent in the form of an IDOC to the vendor (partner). That partner has to be EDI enabled in that system.. SAP should realize that it could send doc to this vendor electronically. (Creating a vendor is not sufficient). Partner Profile should be EDI enabled i.e. A partner profile should exist in the sap system.&lt;/P&gt;&lt;P&gt;u2022 Quotation, RFQ, PO, SO, Invoice, delivery challan etc are some of the commonly exchanged documents through IDOCs&lt;/P&gt;&lt;P&gt;u2022 We create only one profile for both inbound and outbound IDOCs.&lt;/P&gt;&lt;P&gt;u2022 Partner profile should contain message typeu2026u2026to be able to exchange the IDOC.&lt;/P&gt;&lt;P&gt;u2022 We define partner type, partner function and message type (it distinguish if an IDOC is being sent to same person in same function for different reason e.g. SO)&lt;/P&gt;&lt;P&gt;Process Code&lt;/P&gt;&lt;P&gt;Creating Outbound Process Code (WE41)&lt;/P&gt;&lt;P&gt;u2022 What is Process Code?&lt;/P&gt;&lt;P&gt;Process of filling the IDOC with application data is done by Function Module. But, function module is not assigned to a Partner. It is encapsulated by a Process Code and this Process Code is assigned to a Partner in Partner Profile.&lt;/P&gt;&lt;P&gt;u2022 Assigning Function Module to Process Code&lt;/P&gt;&lt;P&gt;- Go to Transaction WE41.&lt;/P&gt;&lt;P&gt;- Switch to u201CChangeu201D Mode and click u201CNew Entriesu201D.&lt;/P&gt;&lt;P&gt;- Enter Process Code Name and assign the Function Module created.&lt;/P&gt;&lt;P&gt;Partner Profile&lt;/P&gt;&lt;P&gt;Creating Partner Profile (WE20)&lt;/P&gt;&lt;P&gt;u2022 What is Partner Profile?&lt;/P&gt;&lt;P&gt;We must maintain the business partners with whom we communicate via IDocs, in Partner Profiles.&lt;/P&gt;&lt;P&gt;u2022 Steps to create Partner Profile&lt;/P&gt;&lt;P&gt;- Goto Transaction WE20.&lt;/P&gt;&lt;P&gt;- Click on Create Button.&lt;/P&gt;&lt;P&gt;- Enter the Number of Vendor Created in Partner No. and u2018LIu2019 in Partner Type fields.&lt;/P&gt;&lt;P&gt;- Save the Data.&lt;/P&gt;&lt;P&gt;- For Outbound Partner Profile we have to create Outbound Parameters&lt;/P&gt;&lt;P&gt;- Specify Partner Function, Message type created, Port (create a port in WE21),Basic Type and Output Mode.&lt;/P&gt;&lt;P&gt;- Goto u201CMessage Controlu201D Tab and link the Message Type and Process Code created.&lt;/P&gt;&lt;P&gt;- Save.&lt;/P&gt;&lt;P&gt;Change Application Data to be transmitted&lt;/P&gt;&lt;P&gt;u2022 Change Purchase Order Created using transaction ME22n for the Vendor to which partner profile has been created.&lt;/P&gt;&lt;P&gt;u2022 Go to u201CMessagesu201D , add the new u201CMessage Typeu201D to the list and Save the Purchase Order.&lt;/P&gt;&lt;P&gt;u2022 An IDOC will be created for the purchase order and will be dispatched to PORT mentioned.&lt;/P&gt;&lt;P&gt;Check the status of IDOC (WE02)&lt;/P&gt;&lt;P&gt;u2022 The IDOC status can be checked using transaction WE02&lt;/P&gt;&lt;P&gt;u2022 If the status is u201903u2019, it implies that IDOC is passed to Port.&lt;/P&gt;&lt;P&gt;Summary: IDOC Workflow&lt;/P&gt;&lt;P&gt;The sequence:&lt;/P&gt;&lt;P&gt;1. Checks whether Partner profile exists or not&lt;/P&gt;&lt;P&gt;2. Whether that PP has a outbound parameter&lt;/P&gt;&lt;P&gt;3. Whether NEU message type is there or not (message control)&lt;/P&gt;&lt;P&gt;4. Checks the process code (gives the name of Function module)&lt;/P&gt;&lt;P&gt;5. Checks immediate transfer or batch transfer&lt;/P&gt;&lt;P&gt;6. Based on that it checks the receiver port&lt;/P&gt;&lt;P&gt;7. Then it will trigger the RFC destination&lt;/P&gt;&lt;P&gt;8. Then it triggers the event on subsystem/customer system&lt;/P&gt;&lt;P&gt;9. Transfer the IDOC to a port and transfer the Idoc in terms of file and it triggers the customer system&lt;/P&gt;&lt;P&gt;10. Customer knows from where it should pick up the file u2026.it picks up the file.&lt;/P&gt;&lt;P&gt;Extending an Existing IDOC Type&lt;/P&gt;&lt;P&gt;u2022 Used in cases where some additional information is required in addition to that supplied by the Standard IDOC Type.&lt;/P&gt;&lt;P&gt;u2022 In Transaction WE30 we create the IDOC as an Extension and specify the basic type for which it is an extension.&lt;/P&gt;&lt;P&gt;u2022 We add the segments needed as children to existing ones.&lt;/P&gt;&lt;P&gt;u2022 None of the Reference Segments can be deleted or changed.&lt;/P&gt;&lt;P&gt;Extension Child Segs&lt;/P&gt;&lt;P&gt;Basic Type (ORDERS01)&lt;/P&gt;&lt;P&gt;F1&lt;/P&gt;&lt;P&gt;F2&lt;/P&gt;&lt;P&gt;F3&lt;/P&gt;&lt;P&gt;F4&lt;/P&gt;&lt;P&gt;F5&lt;/P&gt;&lt;P&gt;Cannot be modified&lt;/P&gt;&lt;P&gt;IDOC Views&lt;/P&gt;&lt;P&gt;u2022 An IDOC type can be used for more than one message type, which results in IDOCs containing more fields than required for a particular message type.&lt;/P&gt;&lt;P&gt;u2022 IDOC views are used to improve performance in generating IDOCs to ensure only the relevant segments are filled with data.&lt;/P&gt;&lt;P&gt;u2022 IDOC Views are important only for Outbound Processing.&lt;/P&gt;&lt;P&gt;IDOC Type&lt;/P&gt;&lt;P&gt;F1&lt;/P&gt;&lt;P&gt;F2&lt;/P&gt;&lt;P&gt;F3&lt;/P&gt;&lt;P&gt;F4&lt;/P&gt;&lt;P&gt;F5&lt;/P&gt;&lt;P&gt;Processing Logic&lt;/P&gt;&lt;P&gt;u2022 The processing logic associated with the IDOC is the function module that is written to handle the inbound/outbound IDOC.&lt;/P&gt;&lt;P&gt;u2022 Its written just like any function module but has to follow a standard interface (i.e. Import, Export, Changing &amp;amp; Tables) parameters and it is should be RFC enabled.&lt;/P&gt;&lt;P&gt;u2022 In this function module we are effectively building up a table of type EDID4 (IDOC Data table) and change the control record.&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;regards,&lt;/P&gt;&lt;P&gt;praveena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 10:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871148#M930437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T10:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871149#M930438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajarshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This article gives you an overall view:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://articles.techrepublic.com.com/5100-10878_11-1051228.html" target="test_blank"&gt;http://articles.techrepublic.com.com/5100-10878_11-1051228.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What is IDOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOC = Intermediate Document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOC is simply a data container 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;u2022 When we execute an outbound ALE or EDI Process, an IDOC is created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 In an inbound ALE or EDI process, an IDOC serves as input to create an application document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 In the SAP System, IDOCs are stored in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Every IDOC has an unique number(within a client).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOCs are independent of the sending and receiving systems.(SAP-to-SAP as well as Non-SAP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOCs are based on EDI standards, ANSI ASC X12 and EDIFACT. In case of any conflict in data size, it adopts one with greater length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOCs are independent of the direction of data exchange e.g. ORDERS01: Purchasing module : Inbound and Outbound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOCs can be viewed in a text editor. Data is stored in character format instead of binary format.&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;Basic IDOC Type (we30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Basic IDOC Type defines the structure and format of the business document that is to be exchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOC Type has a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 specific name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 list of permitted segments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 hierarchy of segments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 mandatory/optional segments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 minimum/maximum range of each segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Segments&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Segment defines the format and structure of a data record. Segments are reusable components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 For each segment SAP creates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Segment Type (version independent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Segment Definition (version dependent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Segment Documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 The last 3 characters is the version of the segment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Definitions keep changing as per the version but the segment type remains the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC Run-Time Components&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 An IDOC is an instance of an IDOC Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 At run time the following events occur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 A unique IDOC no. is allocated by SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 One control record is attached to the IDOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Segments translate into data records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Status records are attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Syntax rules are checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Each IDOC has 3 parts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Control Record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Data Record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2013 Status Record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 We02 or We05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control Record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 All control record data is stored in EDIDC table. The key to this table is the IDOC Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 It contains information like IDOC number, sender, recipient information, channel it is using, which port it is using etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Data record contains application data like employee header info, weekly details, client details etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 All data record data is stored in EDI_DD40 table and EDI_DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status Record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Status record are attached to an IDOC at every milestone or when it encounter errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 All status record data is stored in EDID8 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where and How IDOC is created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where and How an IDOC is created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Lets take an example to understand this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Whenever a Purchase Order (PO) is created we want to send the IDOC to a vendor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 The PO is sent in the form of an IDOC to the vendor (partner). That partner has to be EDI enabled in that system.. SAP should realize that it could send doc to this vendor electronically. (Creating a vendor is not sufficient). Partner Profile should be EDI enabled i.e. A partner profile should exist in the sap system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Quotation, RFQ, PO, SO, Invoice, delivery challan etc are some of the commonly exchanged documents through IDOCs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 We create only one profile for both inbound and outbound IDOCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Partner profile should contain message typeu2026u2026to be able to exchange the IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 We define partner type, partner function and message type (it distinguish if an IDOC is being sent to same person in same function for different reason e.g. SO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Outbound Process Code (WE41)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 What is Process Code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process of filling the IDOC with application data is done by Function Module. But, function module is not assigned to a Partner. It is encapsulated by a Process Code and this Process Code is assigned to a Partner in Partner Profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Assigning Function Module to Process Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Go to Transaction WE41.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Switch to u201CChangeu201D Mode and click u201CNew Entriesu201D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enter Process Code Name and assign the Function Module created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Partner Profile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Partner Profile (WE20)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 What is Partner Profile?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We must maintain the business partners with whom we communicate via IDocs, in Partner Profiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Steps to create Partner Profile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Goto Transaction WE20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Click on Create Button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enter the Number of Vendor Created in Partner No. and u2018LIu2019 in Partner Type fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Save the Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- For Outbound Partner Profile we have to create Outbound Parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Specify Partner Function, Message type created, Port (create a port in WE21),Basic Type and Output Mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Goto u201CMessage Controlu201D Tab and link the Message Type and Process Code created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change Application Data to be transmitted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Change Purchase Order Created using transaction ME22n for the Vendor to which partner profile has been created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Go to u201CMessagesu201D , add the new u201CMessage Typeu201D to the list and Save the Purchase Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 An IDOC will be created for the purchase order and will be dispatched to PORT mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the status of IDOC (WE02)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 The IDOC status can be checked using transaction WE02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 If the status is u201903u2019, it implies that IDOC is passed to Port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Summary: IDOC Workflow&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The sequence:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Checks whether Partner profile exists or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Whether that PP has a outbound parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Whether NEU message type is there or not (message control)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Checks the process code (gives the name of Function module)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Checks immediate transfer or batch transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Based on that it checks the receiver port&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Then it will trigger the RFC destination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. Then it triggers the event on subsystem/customer system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. Transfer the IDOC to a port and transfer the Idoc in terms of file and it triggers the customer system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10. Customer knows from where it should pick up the file u2026.it picks up the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Extending an Existing IDOC Type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Used in cases where some additional information is required in addition to that supplied by the Standard IDOC Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 In Transaction WE30 we create the IDOC as an Extension and specify the basic type for which it is an extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 We add the segments needed as children to existing ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 None of the Reference Segments can be deleted or changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extension Child Segs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic Type (ORDERS01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cannot be modified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IDOC Views&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 An IDOC type can be used for more than one message type, which results in IDOCs containing more fields than required for a particular message type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOC views are used to improve performance in generating IDOCs to ensure only the relevant segments are filled with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 IDOC Views are important only for Outbound Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IDOC Type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Processing Logic&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 The processing logic associated with the IDOC is the function module that is written to handle the inbound/outbound IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 Its written just like any function module but has to follow a standard interface (i.e. Import, Export, Changing &amp;amp; Tables) parameters and it is should be RFC enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022 In this function module we are effectively building up a table of type EDID4 (IDOC Data table) and change the control record.&lt;/P&gt;&lt;P&gt;(The above article can be found at &lt;A href="http://sapsdforum.com/2007/12/02/idoc/)" target="test_blank"&gt;http://sapsdforum.com/2007/12/02/idoc/)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please go through the following link for code snippets:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sapedi/idoc_abap.htm#ALE%20Inbound%20Pre-Processing" target="test_blank"&gt;http://www.erpgenie.com/sapedi/idoc_abap.htm#ALE%20Inbound%20Pre-Processing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please Reward if Helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalyan Chakravarthy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kalyan Chakravarthy Misra on May 26, 2008 1:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 10:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871149#M930438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T10:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871150#M930439</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;Please check below link...&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.soacity.org/www7/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.soacity.org/www7/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;N M Poojari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 11:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/3871150#M930439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T11:06:37Z</dc:date>
    </item>
  </channel>
</rss>

