<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IDOC Data Records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057866#M970016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjunath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From EDID4 table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you want to view the data records in IDOC u can use WE02 TCODE...&lt;/P&gt;&lt;P&gt;Double click on the IDOC number , and u get the DATA records of the IDOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin M M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 09:58:58 GMT</pubDate>
    <dc:creator>sachin_mathapati</dc:creator>
    <dc:date>2008-06-30T09:58:58Z</dc:date>
    <item>
      <title>IDOC Data Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057864#M970014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the IDOC Number with me. How to fetch the Data Records from that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 09:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057864#M970014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T09:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Data Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057865#M970015</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;You can achieve this from Tcode WE19 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward if helpfull..&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;sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 09:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057865#M970015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Data Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057866#M970016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjunath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From EDID4 table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you want to view the data records in IDOC u can use WE02 TCODE...&lt;/P&gt;&lt;P&gt;Double click on the IDOC number , and u get the DATA records of the IDOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin M M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 09:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057866#M970016</guid>
      <dc:creator>sachin_mathapati</dc:creator>
      <dc:date>2008-06-30T09:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Data Records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057867#M970017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to read the idoc records in your program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the folloing fms:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Sample code:
  CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_READ'
    EXPORTING
      document_number = p_docnum
    IMPORTING
      idoc_control    = f_idoc_control
    EXCEPTIONS
      OTHERS          = 01.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
            RAISING error_opening_idoc.
  ENDIF.

* Read IDOC data segments
  CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
    EXPORTING
      document_number = p_docnum
    TABLES
      idoc_containers = t_idoc_data
    EXCEPTIONS
      OTHERS          = 01.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
            RAISING error_reading_idoc.
  ENDIF.

* Close IDOC
  CALL FUNCTION 'EDI_DOCUMENT_CLOSE_READ'
    EXPORTING
      document_number = p_docnum
    IMPORTING
      idoc_control    = f_idoc_control
    EXCEPTIONS
      OTHERS          = 01.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
            RAISING error_closing_idoc.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-data-records/m-p/4057867#M970017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:06:43Z</dc:date>
    </item>
  </channel>
</rss>

