<?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 Need help in creating process codes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872650#M674018</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;I need to create some message type and assign it to some idoc type , and i need to create process code and inbound function module for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one please help me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Hem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2007 08:59:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-08T08:59:45Z</dc:date>
    <item>
      <title>Need help in creating process codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872650#M674018</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;I need to create some message type and assign it to some idoc type , and i need to create process code and inbound function module for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one please help me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Hem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 08:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872650#M674018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T08:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating process codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872651#M674019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go thru the below information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOCs:&lt;/P&gt;&lt;P&gt;- IDOC is an Intermediate Document'. It is simply a data container used to exchange information &lt;/P&gt;&lt;P&gt;between any two processes that can understand the syntax and semantics of the data.&lt;/P&gt;&lt;P&gt;An IDOC is created as a result of executing an Outbound ALE or EDI process.&lt;/P&gt;&lt;P&gt;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;-When an IDOC is created in the system , an unique number(16 Digits) is assigned to it. &lt;/P&gt;&lt;P&gt;This number is unique with in the client. &lt;/P&gt;&lt;P&gt;- IDOCs are independent of the sending and receiving systems. &lt;/P&gt;&lt;P&gt;- IDOCs are independent of the direction of data exchange. &lt;/P&gt;&lt;P&gt;- In the IDOCs, data is stored in text format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- IDOC will wait until the Remote System is Active. &lt;/P&gt;&lt;P&gt;*IDOC Definition Components&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;- Basic Idoc Type: Basic Idoc type defines the structure and format of the business document &lt;/P&gt;&lt;P&gt;that is to be exchanged between two systems. Basic Idoc type can refer to an SAP provided &lt;/P&gt;&lt;P&gt;basic IDOC type or a customer developed basic IDOC type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- A basic IDOC type has the following characteristics: &lt;/P&gt;&lt;P&gt;Name : A basic Idoc type can be assigned upto a thirty character name. &lt;/P&gt;&lt;P&gt;List of permitted segments: The segments make up the IDOC structure. &lt;/P&gt;&lt;P&gt;Hierarchy of segments : The hierarchy of segments specifies the physical sequence and &lt;/P&gt;&lt;P&gt;any parent - child relationship in the segments.&lt;/P&gt;&lt;P&gt;Mandatory Vs Optional Segments : When used in the IDOC type, each segment has &lt;/P&gt;&lt;P&gt;an attribute that defines whether the segment is option or mandatory. &lt;/P&gt;&lt;P&gt;Minimum/Maximum range for each segment: It defines the maximum and minimum &lt;/P&gt;&lt;P&gt;number of timesa data record corresponding to a segment cn exist in an IDOC.&lt;/P&gt;&lt;P&gt;- Segments : A segment defines the format and structure of a data record. &lt;/P&gt;&lt;P&gt;Segments are reusable componets. A segment consists of various fields that represent data&lt;/P&gt;&lt;P&gt;in data record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IDOC Run time components:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt;- A unique IDOC number 16 digits is allocated. &lt;/P&gt;&lt;P&gt;- One control record is attached to the IDOC.&lt;/P&gt;&lt;P&gt;- Segments translate into data records. &lt;/P&gt;&lt;P&gt;- Status records are attached. &lt;/P&gt;&lt;P&gt;- Sytax rules are checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IDOC Record Types:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;1. Control Record : The control record contains all of the control information about an IDOC, &lt;/P&gt;&lt;P&gt;this information basically includes the IDOC number, sender and receiver information, &lt;/P&gt;&lt;P&gt;and information such as the message type it represents and the IDOC type. &lt;/P&gt;&lt;P&gt;- there is only one control record per IDOC.&lt;/P&gt;&lt;P&gt;- The stucture of the control record is the same for all the IDOCs and is defined by SAP. &lt;/P&gt;&lt;P&gt;- The structure of the control record is defined by the data dictionary structure EDI_DC40. &lt;/P&gt;&lt;P&gt;- The control record is stored in the EDIDC table. &lt;/P&gt;&lt;P&gt;2. Data Record : Data records contain the application data. A data record has two sections &lt;/P&gt;&lt;P&gt;Administrative Section and a Data section.&lt;/P&gt;&lt;P&gt;- The Administrative section cotain the segment name, client, IDOC number, segment number, &lt;/P&gt;&lt;P&gt;hierarchy level information. &lt;/P&gt;&lt;P&gt;- The Data section of a data record is a stram of 1000 bytes where the actual data resides. &lt;/P&gt;&lt;P&gt;- The data record is defined by the data dictionary structure EDI_DD40. &lt;/P&gt;&lt;P&gt;- Data records for IDOCs stored in the EDID4 table. &lt;/P&gt;&lt;P&gt;3. Status Record : Status records are attaced to an IDOC throughout the process as &lt;/P&gt;&lt;P&gt;the IDOC achieves different milestones or encounters an error. At every milestone a statu code, &lt;/P&gt;&lt;P&gt;date and time are assigned. &lt;/P&gt;&lt;P&gt;- Status codes 01 to 49 are reserved for OUtbound process, 50 and above are reserved for &lt;/P&gt;&lt;P&gt;inbound processes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Message Type: Identifies what type of information transformed between logical systems or partners.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Message type is not a local object type , it is transportable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Port : A Port defines the medium in which data is exchanged between the two systems in &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;the ALE process, IDocs are transferred via memory.&lt;/P&gt;&lt;P&gt;1. TRFC ports are used for ALE communicaion.&lt;/P&gt;&lt;P&gt;2. File Ports used by EDI&lt;/P&gt;&lt;P&gt;3. CPI-C ports used to communicate with R/2 systems.&lt;/P&gt;&lt;P&gt;4. Internet ports used to connect with Internet Applications. &lt;/P&gt;&lt;P&gt;5. ABAP-PI ports used to process data via the ABAP programming interface. &lt;/P&gt;&lt;P&gt;6. XML ports used to process files in XML format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Partner Profiles:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;A partner profile has three views, which maintain different parameters for the partner. &lt;/P&gt;&lt;P&gt;1. The General Parameters View : Values are stored in table EDPP1. &lt;/P&gt;&lt;P&gt;2. The Outbound Parameters view : Values are stored in table EDP13, except for the &lt;/P&gt;&lt;P&gt;Message control parameter , which are stored in table EDP12.&lt;/P&gt;&lt;P&gt;3. The Inbound Parameters View: Values are stored in table EDP21. &lt;/P&gt;&lt;P&gt;&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;Transaction Codes :&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WE31- Segment Creation&lt;/P&gt;&lt;P&gt;WE30 - IDOC structure&lt;/P&gt;&lt;P&gt;WE81 - Message type creation&lt;/P&gt;&lt;P&gt;WE82 - Link between Message type and IDOC type. &lt;/P&gt;&lt;P&gt;WE21 - Creation of POrt&lt;/P&gt;&lt;P&gt;WE20 - Partner Profile creation&lt;/P&gt;&lt;P&gt;WE19 - Test tool for IDOC Processing. &lt;/P&gt;&lt;P&gt;SALE - ALE (Application Linking and Enabling) settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the link for basics related to IDOCs: &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6cdd507d11d18ee90000e8366fc2/plain.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6cdd507d11d18ee90000e8366fc2/plain.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check 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;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;Please check this PDF documents for ALE and IDoc.&lt;/P&gt;&lt;P&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://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;/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;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;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;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872651#M674019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating process codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872652#M674020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;CATSDB CUSTOM IDOC TRANSFERMATION BETWEEN 2 DIFFERENT APPLICATION SERVERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this scenario Client 800 of application server SAPADM is the Sender and client 800 of application server SAP-REMOTE is the Receiver&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1. Creating Logical Systems&lt;/P&gt;&lt;P&gt;o       Login using 800 client&lt;/P&gt;&lt;P&gt;o       Go to T. Code SALE&lt;/P&gt;&lt;P&gt;o       Expand Sending and Receiving Systems&lt;/P&gt;&lt;P&gt;o       Expand Logical Systems&lt;/P&gt;&lt;P&gt;o       Click on Define Logical System&lt;/P&gt;&lt;P&gt;o       Click on New Entries&lt;/P&gt;&lt;P&gt;o       Create CATSSENDER, ECC Logical Systems&lt;/P&gt;&lt;P&gt;o       Save and come back&lt;/P&gt;&lt;P&gt;o       Assign the CATSSENDER Logical System to client 800 of Application Server SAPADMAssign the ECC Logical System to client 800 of Application Server SAP-REMOTE&lt;/P&gt;&lt;P&gt;2. Creating the RFCs&lt;/P&gt;&lt;P&gt;o       Go to T. Code SM59&lt;/P&gt;&lt;P&gt;o       Expand R/3 Connections&lt;/P&gt;&lt;P&gt;o       Enter RFC Name as CATSSENDER&lt;/P&gt;&lt;P&gt;o       Connection Type as 3&lt;/P&gt;&lt;P&gt;o       Language as EN&lt;/P&gt;&lt;P&gt;o       Client as 800&lt;/P&gt;&lt;P&gt;o       User as SAPUSER&lt;/P&gt;&lt;P&gt;o       Password as YESV13&lt;/P&gt;&lt;P&gt;o       Target host as SAPADM&lt;/P&gt;&lt;P&gt;o       Click on Remote logon button to test the RFC&lt;/P&gt;&lt;P&gt;o       Enter RFC Name as ECC&lt;/P&gt;&lt;P&gt;o       Connection Type as 3&lt;/P&gt;&lt;P&gt;o       Language as EN&lt;/P&gt;&lt;P&gt;o       Client as 800&lt;/P&gt;&lt;P&gt;o       User as SAPUSER                &lt;/P&gt;&lt;P&gt;o       Password as YESV123&lt;/P&gt;&lt;P&gt;o       Target host as SAPADM                                                                                &lt;/P&gt;&lt;P&gt;o       Click on Remote logon button to test the RFC&lt;/P&gt;&lt;P&gt;3. Creating the Message Type&lt;/P&gt;&lt;P&gt;o       Go to T. Code WE81&lt;/P&gt;&lt;P&gt;o       Click on change, continue&lt;/P&gt;&lt;P&gt;o       Click on New Entries button&lt;/P&gt;&lt;P&gt;o       Give message type as ZCATSTIME and description&lt;/P&gt;&lt;P&gt;o       Save and back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Creating the Segment&lt;/P&gt;&lt;P&gt;o       Go to T. Code WE31&lt;/P&gt;&lt;P&gt;o       Give segment name as ZSEGMENTTIME&lt;/P&gt;&lt;P&gt;o       Enter Short Text&lt;/P&gt;&lt;P&gt;o       Enter the Field Name and Data Element in the text boxes&lt;/P&gt;&lt;P&gt;o       Save, continue,&lt;/P&gt;&lt;P&gt;o       Click on Edit -&amp;gt; Set Release&lt;/P&gt;&lt;P&gt;5. Creating the Basic IDOC Object&lt;/P&gt;&lt;P&gt;o       Go to T. code WE30&lt;/P&gt;&lt;P&gt;o       Give obj. name as ZTIMEIDOC&lt;/P&gt;&lt;P&gt;o       Click on create&lt;/P&gt;&lt;P&gt;o       Select create new radio button, give description and continue&lt;/P&gt;&lt;P&gt;o       Select the IDOC obj name and click on create button&lt;/P&gt;&lt;P&gt;o       Enter the segment name which is create earlier&lt;/P&gt;&lt;P&gt;o       Select the check box if you want to make the segment mandatory&lt;/P&gt;&lt;P&gt;o       Enter 1 in minimum number 99999 in maximum number, continue&lt;/P&gt;&lt;P&gt;o       Save and backo       Click on Edit -&amp;gt; Set Release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Creating Customer Distribution Model&lt;/P&gt;&lt;P&gt;o       Go to T. Code BD64&lt;/P&gt;&lt;P&gt;o       Click on change and Create model view button&lt;/P&gt;&lt;P&gt;o       Enter the short text and Technical name as CATSSENDER&lt;/P&gt;&lt;P&gt;o       Select the model and click on Add Message Type Button&lt;/P&gt;&lt;P&gt;o       Give the Sender as CATSSENDER,&lt;/P&gt;&lt;P&gt;o       Receiver as ECC,&lt;/P&gt;&lt;P&gt;o       Message Type as ZCATSTIME&lt;/P&gt;&lt;P&gt;o       Select the model view &amp;amp; click on Environment -&amp;gt; Generate Partner Profiles&lt;/P&gt;&lt;P&gt;o       Select Transfer IDOC Immediately and Trigger Immediately radio buttons&lt;/P&gt;&lt;P&gt;o       Click on Execute&lt;/P&gt;&lt;P&gt;o       You should get a list in green color which means it executed successfully.&lt;/P&gt;&lt;P&gt;o       Back to main screen, select the model view&lt;/P&gt;&lt;P&gt;o       Click Edit-&amp;gt;Model view-&amp;gt;Distribute&lt;/P&gt;&lt;P&gt;o       Click on continueo      &lt;/P&gt;&lt;P&gt;You should get a list saying model view is distributed successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Checking the Port&lt;/P&gt;&lt;P&gt;o       Go to T. Code WE21&lt;/P&gt;&lt;P&gt;o       Expand Transactional RFC&lt;/P&gt;&lt;P&gt;o       Find the port from the list which is created using BD64 for ECC (Receiving system) RFC Destination.&lt;/P&gt;&lt;P&gt;8. Checking the Partner Profiles.&lt;/P&gt;&lt;P&gt;o       Go to T. Code WE20&lt;/P&gt;&lt;P&gt;o       Expand Partner Type LS&lt;/P&gt;&lt;P&gt;o       Select the Partner profile ECC&lt;/P&gt;&lt;P&gt;o       Double click on Message Type ZCATSTIME in Outbound parmtrs.&lt;/P&gt;&lt;P&gt;o       Check Receiver Port is assigned correctlyo      &lt;/P&gt;&lt;P&gt;Check the Basic type as your Basic IDOC object.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;9. Assigning the Message Type to Basic IDOC Object&lt;/P&gt;&lt;P&gt;o       Go to T. Code WE82&lt;/P&gt;&lt;P&gt;o       Click on Change &amp;amp; continue, New Entries button&lt;/P&gt;&lt;P&gt;o       Give the Message type as ZCATSTIME&lt;/P&gt;&lt;P&gt;o       Give Basic Type as ZTIMEIDOC&lt;/P&gt;&lt;P&gt;o       Release as 4.6C&lt;/P&gt;&lt;P&gt;o       Save and back10. Creating Inbound Function Module (Posting Program)&lt;/P&gt;&lt;P&gt;o       Go to T. Code SE37&lt;/P&gt;&lt;P&gt;o       Create a function Module ZCATSDB_TIMESHEET_SURESH&lt;/P&gt;&lt;P&gt;o       Set the Processing type as Remote Enabled Module and mode as start immed, in Attributes Tab.    &lt;/P&gt;&lt;P&gt;o       Import Parameters&lt;/P&gt;&lt;P&gt;          P_WORKDATE                    LIKE               CATSDB-WORKDATE&lt;/P&gt;&lt;P&gt;          P_COUNTER                        LIKE               CATSDB-COUNTER&lt;/P&gt;&lt;P&gt;          P_LSTAR                               LIKE               CATSDB-LSTAR&lt;/P&gt;&lt;P&gt;o       Export Parameters&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; o       Tables  &lt;/P&gt;&lt;P&gt;             S_PERNR                      LIKE           ZCATSPERNR&lt;/P&gt;&lt;P&gt;[PERNR is select option parameters in ZCUSTOMIDOC report program so that it should be passed to function module ZCATSDB_TIMESHEET_SURESH in tables section&lt;STRONG&gt;.&lt;/STRONG&gt; And also in tables section we used ZCATSPERNR, which is a global structure, which contains four fields as&lt;/P&gt;&lt;P&gt;Ø     SIGN&lt;/P&gt;&lt;P&gt;Ø     OPTION&lt;/P&gt;&lt;P&gt;Ø     LOW&lt;/P&gt;&lt;P&gt;Ø     HIGH]&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;o       Exceptions&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;o       Source Code&lt;/P&gt;&lt;P&gt;FUNCTION zcatsdb_timesheet_suresh.&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(P_WORKDATE) LIKE  CATSDB-WORKDATE&lt;/P&gt;&lt;P&gt;*"     VALUE(P_COUNTER) LIKE  CATSDB-COUNTER&lt;/P&gt;&lt;P&gt;*"     VALUE(P_LSTAR) LIKE  CATSDB-LSTAR&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      S_PERNR STRUCTURE  ZCATSPERNR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;  TABLES: catsdb, edidc, edidd. " using structures of catsdb, edidc, edidd&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CONSTANTS: c_doctyp TYPE edidc-idoctp VALUE 'ZTIMEIDOC',  " idoc type&lt;/P&gt;&lt;P&gt;             c_segnam TYPE edidd-segnam VALUE 'ZSEGMENTTIME',   "segment type&lt;/P&gt;&lt;P&gt;             c_mestyp TYPE edidc-mestyp VALUE 'ZCATSTIME'.   " message type&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*001 comment begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     creating internal tables with out header lines for catsdb, edidc, edidd and also&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;-           work areas&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*001 comment end&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  DATA: it_edidc  TYPE edidc OCCURS 0,    "  control &lt;A href="https://community.sap.com/it_edidc"&gt;&lt;/A&gt; internal table with out header line&lt;/P&gt;&lt;P&gt;        it_edidd  TYPE edidd OCCURS 0, " data &lt;A href="https://community.sap.com/it_edidd"&gt;&lt;/A&gt; internal table with out header line&lt;/P&gt;&lt;P&gt;        wa_catsdb TYPE it_catsdb1,  " work area for it_catsdb internal table&lt;/P&gt;&lt;P&gt;        wa_edidc  TYPE edidc,  " work area for it_edidc internal table&lt;/P&gt;&lt;P&gt;        wa_edidd  TYPE edidd,  " work area for it_edidd internal table&lt;/P&gt;&lt;P&gt;        wa_zsegmenttime TYPE zsegmenttime, " work area for zsegment internal table&lt;/P&gt;&lt;P&gt;        v_occmax  TYPE idocsyn-occmax,&lt;/P&gt;&lt;P&gt;        v_nbseg   TYPE i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CLEAR wa_catsdb. " clears work area of catsdb&lt;/P&gt;&lt;P&gt;  CLEAR wa_edidc.  " clears edidc work area &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*002  comment begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Save the message type and the basic IDoc type in the control segment.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*002 comment end&lt;/P&gt;&lt;P&gt;  MOVE c_mestyp TO wa_edidc-mestyp. " assigning custom message type to edidc workarea&lt;/P&gt;&lt;P&gt;  MOVE c_doctyp TO wa_edidc-idoctp. " assigning custom idoc type to edidc workarea&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*003 comment begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve the maximum number of segments in the basic IDoc type.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*003 comment end&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  SELECT MIN( occmax ) FROM idocsyn INTO v_occmax WHERE idoctyp EQ c_doctyp AND segtyp EQ c_segnam.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*004 comment begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Save the whole CATSDB table content in the IT_ZCATSDB internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*004 comment end&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  SELECT pernr workdate lstar counter FROM catsdb INTO CORRESPONDING FIELDS OF TABLE it_catsdb WHERE pernr IN s_pernr AND workdate EQ p_workdate.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*005 comment begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create a data segment for each line of IT_ZCATSDB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*005 comment end&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    LOOP AT it_catsdb INTO wa_catsdb WHERE pernr IN s_pernr.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING wa_catsdb TO wa_zsegmenttime.&lt;/P&gt;&lt;P&gt;      CLEAR wa_edidd.&lt;/P&gt;&lt;P&gt;      MOVE c_segnam TO wa_edidd-segnam.&lt;/P&gt;&lt;P&gt;      MOVE wa_zsegmenttime TO wa_edidd-sdata.&lt;/P&gt;&lt;P&gt;      APPEND wa_edidd TO it_edidd.&lt;/P&gt;&lt;P&gt;      CLEAR wa_catsdb.&lt;/P&gt;&lt;P&gt;      CLEAR wa_zsegmenttime.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE 'NO DATA FOUND FOR GIVEN SELECTION' TYPE 'I'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*006 comment begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Count the number of data segments.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*006 comment end&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE it_edidd LINES v_nbseg.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*007 comment begin&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the number of data segments exceeds the maximum allowed number,then display an error message.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*007 comment end&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF v_nbseg GT v_occmax.&lt;/P&gt;&lt;P&gt;    MESSAGE  'IDOC ERROR Message' TYPE 'E000'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' " for creating an catsdb idoc&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  master_idoc_control = wa_edidc&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 = it_edidc&lt;/P&gt;&lt;P&gt;  master_idoc_data = it_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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDIF.&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;Save, check and activate&lt;/P&gt;&lt;P&gt;111. Assigning the Inbound Function Module to Basic Type &amp;amp; Message Type&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;o       Go to T. Code WE57&lt;/P&gt;&lt;P&gt;o       Click on change, continue, continue and New Entries Button&lt;/P&gt;&lt;P&gt;o       Enter the Module as ZCATSDB_TIMESHEET_SURESH Type as "F"&lt;/P&gt;&lt;P&gt;o       Basic Type as ZTIMEIDOC&lt;/P&gt;&lt;P&gt;o       Message Type as ZCATSTIME&lt;/P&gt;&lt;P&gt;o       Direction as 2&lt;/P&gt;&lt;P&gt;o       Save and back&lt;/P&gt;&lt;P&gt; Now Login in 800 client of Application Server SAP-REMOTE &lt;A href="Idoc Receiver"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;12. Assigning the Inbound Function Module in ALE Table&lt;/P&gt;&lt;P&gt;o       Go to T. Code BD51&lt;/P&gt;&lt;P&gt;o       Click on continue, New Entries button&lt;/P&gt;&lt;P&gt;o       Give the Inbound Function Module ZCATSDB_TIMESHEET_SURESH&lt;/P&gt;&lt;P&gt;o       Give Input t. as 0 (zero)&lt;/P&gt;&lt;P&gt;o       Save and back13. Creating Process Code&lt;/P&gt;&lt;P&gt;o       Go to T. Code WE42&lt;/P&gt;&lt;P&gt;o       Click on Change, New Entries Button&lt;/P&gt;&lt;P&gt;o       Give Process Code name as ZCATSDB, give Description &amp;amp; Save&lt;/P&gt;&lt;P&gt;o       Select Processing with ALE Services Radio button&lt;/P&gt;&lt;P&gt;o       Select Processing by Function Module Radio button&lt;/P&gt;&lt;P&gt;o       Click the ALE Table (arrow Icon) in Identification&lt;/P&gt;&lt;P&gt;o       Give the Function Module Name ZIDOC_INPUT_ZBAPI_STUD_MAS&lt;/P&gt;&lt;P&gt;o       Give maximum number of repeats 0&lt;/P&gt;&lt;P&gt;o       Save and back, back&lt;/P&gt;&lt;P&gt;o       Select the process code from the list &amp;amp; click on Logical Messages Icon&lt;/P&gt;&lt;P&gt;o       Give the Message Type as ZCATSTIME&lt;/P&gt;&lt;P&gt;o       Save &amp;amp; Back, Save &amp;amp; Back, Save &amp;amp; Back&lt;/P&gt;&lt;P&gt;14. Changing the Customer Distribution model in receiving system&lt;/P&gt;&lt;P&gt;o       Go to T. Code BD64&lt;/P&gt;&lt;P&gt;o       Click on change and Create model view button&lt;/P&gt;&lt;P&gt;o       Enter the short text and Technical name as CATSECC&lt;/P&gt;&lt;P&gt;o       Select the model view &amp;amp; click on Environment -&amp;gt; Generate Partner Profiles&lt;/P&gt;&lt;P&gt;o       Select Transfer IDOC Immediately and Trigger Immediately radio buttonso       Click on Execute You should get a list in green color which means it executed successfully.15. Assigning the Process Code to Message Type in Receiving System&lt;/P&gt;&lt;P&gt;o       Go to T. Code WE20&lt;/P&gt;&lt;P&gt;o       Expand Partner Type LS&lt;/P&gt;&lt;P&gt;o       Select the Partner Profile CATSSENDER&lt;/P&gt;&lt;P&gt;o       Double click on Message Type ZCATSTIME in Inbound parmtrs.&lt;/P&gt;&lt;P&gt;o       Give the Process Code as ZCATSDB&lt;/P&gt;&lt;P&gt;o       Click on Trigger Immediately Radio button&lt;/P&gt;&lt;P&gt;o       Save &amp;amp; Back&lt;/P&gt;&lt;P&gt;Save &amp;amp; Back&lt;/P&gt;&lt;P&gt;16. Creating the Selection Program (Outbound Program)&lt;/P&gt;&lt;P&gt;-         Login in client 800.&lt;/P&gt;&lt;P&gt;-         Go to T. Code SE38&lt;/P&gt;&lt;P&gt;-         Create a Report Program as ZCUSTOMIDOC with the following code&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;REPORT ZCUSTOMIDOC&lt;/P&gt;&lt;P&gt;       NO STANDARD PAGE HEADING. &lt;/P&gt;&lt;P&gt;TABLES:catsdb. " using structure of cats db table&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*000 comment begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     this selection screen contains one select option and one parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*000 comment end&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS pernr FOR catsdb-pernr.&lt;/P&gt;&lt;P&gt;PARAMETER: workdate LIKE catsdb-workdate,&lt;/P&gt;&lt;P&gt;          LSTAR like catsdb-LSTAR,&lt;/P&gt;&lt;P&gt;          COUNTER like catsdb-counter.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK b1 .&lt;/P&gt;&lt;P&gt;DATA: wa_val TYPE i.&lt;/P&gt;&lt;P&gt;wa_val = pernr-high - pernr-low.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*001 comment begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      calling custom function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*001 comment end&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZCATSDB_TIMESHEET_SURESH'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    p_workdate = workdate " passing workdate parameter&lt;/P&gt;&lt;P&gt;    p_LSTAR = LSTAR&lt;/P&gt;&lt;P&gt;    p_counter = counter&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    s_pernr    = pernr. " passing pernr select option&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  MESSAGE i000(zaluri) WITH 'IDOCS CREATED FOR EMPLOYEES BETWEEN' pernr-low ' AND ' pernr-high .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MESSAGE i000(zaluri) WITH   'IDOCS CREATED FOR EMPLOYEES BETWEEN' PERNR-LOW 'TO' PERNR-HIGH.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gives information message if idocs are created for given  employees&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  MESSAGE e000(zaluri) WITH 'NO IDOCS CREATED FOR EMPLOYEES' pernr-low  'TO' pernr-high. " gives error message&lt;/P&gt;&lt;P&gt;" if idoc is not created &lt;/P&gt;&lt;P&gt;17. Transferring the CATSDB records from sender Application Server SAPADM &lt;A href=" 800 client "&gt;&lt;/A&gt;  to  receiver Application Server SAP-REMOTE &lt;A href="800 client"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-         Execute Report Program ZCUSTOMIDOC&lt;/P&gt;&lt;P&gt;-         Give the Range of PERSONNEL NO'S, Date, Activity Type, Counter to Transfer&lt;/P&gt;&lt;P&gt;-         Give Message Type as ZCATSTIME&lt;/P&gt;&lt;P&gt;-         Give Receiver Logical system as ECC&lt;/P&gt;&lt;P&gt;-         Execute&lt;/P&gt;&lt;P&gt;-         You should get the IDOC Number&lt;/P&gt;&lt;P&gt;-         Take the IDOC Number and go to T. Code WE05 &amp;amp; Execute&lt;/P&gt;&lt;P&gt;-         In Outbox you can see the IDOC Status&lt;/P&gt;&lt;P&gt;-         Select the status record in left side window&lt;/P&gt;&lt;P&gt;-         Double click on the Status record in right side window-         You can see the Control Record, Data Record and Status Records for that IDOC &lt;/P&gt;&lt;P&gt;If the ICON is green and the status code is 3, it means the IDOC is passed to PORT Successfully&lt;/P&gt;&lt;P&gt;18. SENDING IDOCS FROM APPLICATION SERVER SAPADM&lt;/P&gt;&lt;P&gt; TO APPLICATION SERVER SAP-REMOTE USING WEDI&lt;/P&gt;&lt;P&gt;&lt;A href="TEST TOOL"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-         Go to T. Code WEDI &amp;amp; execute or T. Code WE19&lt;/P&gt;&lt;P&gt;-         Give idoc number it is generated recently&lt;/P&gt;&lt;P&gt;-         Continue &amp;amp; double click on segment to view data in segment&lt;/P&gt;&lt;P&gt;-         Click on EDIDC to give port, partner no, message type, partner&lt;/P&gt;&lt;P&gt;type of receiver. [For sender no need to give any port no leave it as&lt;/P&gt;&lt;P&gt;blank]&lt;/P&gt;&lt;P&gt;-         Click on Standard Outbound Processing button and click continue&lt;/P&gt;&lt;P&gt;-         You will get a message as idocs successfully transferred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Login in Receiver 800 client &lt;A href="Application Server SAP-REMOTE"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-         Go to T. Code WE05 &amp;amp; Execute&lt;/P&gt;&lt;P&gt;-         You can see the status record in left side window&lt;/P&gt;&lt;P&gt;-         If the status no is 53 and color is green, it means the IDOC is posted to Application successfully.&lt;/P&gt;&lt;P&gt;-         You can see the Log Information by double clicking on the status record in right side window.&lt;/P&gt;&lt;P&gt;-         Now in left side window, you can see the Control Record, Data Record &amp;amp; Status Record of the IDOC&lt;/P&gt;&lt;P&gt;-         Now go to T. Code SE16&lt;/P&gt;&lt;P&gt;-         Give the table name CATSDB &amp;amp; press F7&lt;/P&gt;&lt;P&gt;-         See the contents of the table&lt;/P&gt;&lt;P&gt;-         The table is updated with the catsdb records transferred from 800 client with our selection program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nagesh.Paruchuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872652#M674020</guid>
      <dc:creator>paruchuri_nagesh</dc:creator>
      <dc:date>2007-10-08T09:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating process codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872653#M674021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Data Creation in Idoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an &lt;/P&gt;&lt;P&gt;asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDoc is a intermediate document to exchange data between two SAP Systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*IDocs are structured ASCII files (or a virtual equivalent). &lt;/P&gt;&lt;P&gt;*Electronic Interchange Document&lt;/P&gt;&lt;P&gt;*They are the file format used by SAP R/3 to exchange data with foreign systems.&lt;/P&gt;&lt;P&gt;*Data Is transmitted in ASCII format, i.e. human readable form&lt;/P&gt;&lt;P&gt;*IDocs exchange messages&lt;/P&gt;&lt;P&gt;*IDocs are used like classical interface files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC types are templates for specific message types depending on what is the business document, you want to exchange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE30 - you can create a IDOC type.&lt;/P&gt;&lt;P&gt;An IDOC with data, will have to be triggered by the application that is trying to send out the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOr testing you can use WE19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create idoc?&lt;/P&gt;&lt;P&gt;*WE30 - you can create a IDOC type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information in details on the same along with the examples can be viewed on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/presentation.html" target="test_blank"&gt;http://www.sappoint.com/presentation.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_search.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_search.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.erpgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Create Idoc we need to follow these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Segment ( WE31)&lt;/P&gt;&lt;P&gt;Create Idoc Type ( WE30 )&lt;/P&gt;&lt;P&gt;Create Message Type ( WE81 )&lt;/P&gt;&lt;P&gt;Assign Idoc Type to Message Type ( WE82 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a Segment&lt;/P&gt;&lt;P&gt;Go to transaction code WE31&lt;/P&gt;&lt;P&gt;Enter the name for your segment type and click on the Create icon&lt;/P&gt;&lt;P&gt;Type the short text&lt;/P&gt;&lt;P&gt;Enter the variable names and data elements&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set Release&lt;/P&gt;&lt;P&gt;Follow steps to create more number of segments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create IDOC Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE30&lt;/P&gt;&lt;P&gt;Enter the Object Name, select Basic type and click Create icon&lt;/P&gt;&lt;P&gt;Select the create new option and enter a description for your basic IDOC type and press enter&lt;/P&gt;&lt;P&gt;Select the IDOC Name and click Create icon&lt;/P&gt;&lt;P&gt;The system prompts us to enter a segment type and its attributes&lt;/P&gt;&lt;P&gt;Choose the appropriate values and press Enter&lt;/P&gt;&lt;P&gt;The system transfers the name of the segment type to the IDOC editor.&lt;/P&gt;&lt;P&gt;Follow these steps to add more number of segments to Parent or as Parent-child relation&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Message Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE81&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign Message Type to IDoc Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE82&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter.&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type.&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these out..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2402859"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below link. It will give the step by step procedure for IDOC creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.supinfo-projects.com/cn/2005/idocs_en/2/" target="test_blank"&gt;http://www.supinfo-projects.com/cn/2005/idocs_en/2/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE/ IDOC&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale2.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale2.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap.html" target="test_blank"&gt;http://www.sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go trough these links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale2.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale2.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap.html" target="test_blank"&gt;http://www.sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.IDOCs are independent of the sending and receiving systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.IDOCs are independent of the direction of data exchange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two available process for IDOCs are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound Process&lt;/P&gt;&lt;P&gt;Inbound Process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND There are basically two types of IDOCs.&lt;/P&gt;&lt;P&gt;Basic IDOCs&lt;/P&gt;&lt;P&gt;Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extended IDOCs&lt;/P&gt;&lt;P&gt;Extending the functionality by adding more segments to existing Basic IDOCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Create Idoc we need to follow these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Segment ( WE31)&lt;/P&gt;&lt;P&gt;Create Idoc Type ( WE30)&lt;/P&gt;&lt;P&gt;Create Message Type ( WE81)&lt;/P&gt;&lt;P&gt;Assign Idoc Type to Message Type ( WE82)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imp links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sappoint.com" target="test_blank"&gt;www.sappoint.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;--here u can find the ppts and basic seetings for ALE&lt;/P&gt;&lt;P&gt;&lt;A href="http://sappoint.com/presentation.html" target="test_blank"&gt;http://sappoint.com/presentation.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sapgenie.com" target="test_blank"&gt;www.sapgenie.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/ale/index.htm" target="test_blank"&gt;http://www.sapgenie.com/ale/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound:&lt;/P&gt;&lt;P&gt;Step 1. Application document is created when transaction is saved.&lt;/P&gt;&lt;P&gt;2. Message control is invoked.&lt;/P&gt;&lt;P&gt;3. Messages are processed by system.&lt;/P&gt;&lt;P&gt;4. Messages are Edited (if desired).&lt;/P&gt;&lt;P&gt;5. Output (ALE / EDI) is checked&lt;/P&gt;&lt;P&gt;6. Validate against Message control record from Partner Profile&lt;/P&gt;&lt;P&gt;7. Application Document is saved.&lt;/P&gt;&lt;P&gt;8. Entry NAST table is created for every selected output program&lt;/P&gt;&lt;P&gt;along with Medium &amp;amp; Timing.&lt;/P&gt;&lt;P&gt;9. Check for Process Immediately .&lt;/P&gt;&lt;P&gt;If (yes)&lt;/P&gt;&lt;P&gt;Determine Processing Program from TNAPR Table.&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;Execute RSNASTED Program.&lt;/P&gt;&lt;P&gt;10. Read Partner Profile to determine Process Code.&lt;/P&gt;&lt;P&gt;11. Process Code points to the Function Module &amp;amp; Invoked.&lt;/P&gt;&lt;P&gt;12. IDoc is generated. &lt;/P&gt;&lt;P&gt;13. Check for ALE Request.&lt;/P&gt;&lt;P&gt;if (Yes)&lt;/P&gt;&lt;P&gt;Perform Filters, Conversions, Version Changes etc.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;IDoc is stored in DATABASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INBOUND:&lt;/P&gt;&lt;P&gt;Step 1. EDI Subsystem creates an IDoc file from EDI Messages&lt;/P&gt;&lt;P&gt;2. Subsystem calls Functional Module EDI_DATA_INCOMING from startRFC program.&lt;/P&gt;&lt;P&gt;3. Data in Control Record is validate against the Partner Profile.&lt;/P&gt;&lt;P&gt;4. IDoc is generated in Database and syntax check is carried out.&lt;/P&gt;&lt;P&gt;5. IDoc file is deleted once file read.&lt;/P&gt;&lt;P&gt;6. Event PROCESSSTATE REACHED is triggered in Idoc Object Workflow. &lt;/P&gt;&lt;P&gt;7. Check for Process Immediately.&lt;/P&gt;&lt;P&gt;If NO&lt;/P&gt;&lt;P&gt;Execute RBDAPP01 Program&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;Read Process Code from Partner Profile &lt;/P&gt;&lt;P&gt;Process Code Points to Function Module&lt;/P&gt;&lt;P&gt;Application Document Posted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;further help:&lt;/P&gt;&lt;P&gt;check url&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/ale/configuration.htm" target="test_blank"&gt;http://www.sapgenie.com/ale/configuration.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.sapdevelopment.co.uk/training" target="test_blank"&gt;http://www.sapdevelopment.co.uk/training&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also u can get lots of inof from the below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/ale/why_ale.htm" target="test_blank"&gt;http://www.sapgenie.com/ale/why_ale.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;P&gt;vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-creating-process-codes/m-p/2872653#M674021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:07:35Z</dc:date>
    </item>
  </channel>
</rss>

