<?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: Reading data from IDOC segments programatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470794#M1417229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;IDOC_READ_COMPLETELY function does not get data inside segments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2010 08:26:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-14T08:26:04Z</dc:date>
    <item>
      <title>Reading data from IDOC segments programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470792#M1417227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I must read data from produced idoc.&lt;/P&gt;&lt;P&gt;For example: I have idoc number and i know message type of idoc, i need to read data from inside that idoc.&lt;/P&gt;&lt;P&gt;How can i do that programatically?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: cml_bzl on Jan 13, 2010 10:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 21:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470792#M1417227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-13T21:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from IDOC segments programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470793#M1417228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a custom program having IDOC number parameter on the selection screen. Inside the program call the below mentioned function module which read the idoc data from database into internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Read the IDoc detail from the database &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'IDOC_READ_COMPLETELY' &lt;/P&gt;&lt;P&gt;       EXPORTING &lt;/P&gt;&lt;P&gt;            document_number         = p_docnum &lt;/P&gt;&lt;P&gt;       IMPORTING &lt;/P&gt;&lt;P&gt;            idoc_control            = s_edidc &lt;/P&gt;&lt;P&gt;       TABLES &lt;/P&gt;&lt;P&gt;            int_edidd               = itab_edidd &lt;/P&gt;&lt;P&gt;       EXCEPTIONS &lt;/P&gt;&lt;P&gt;            document_not_exist      = 1 &lt;/P&gt;&lt;P&gt;            document_number_invalid = 2 &lt;/P&gt;&lt;P&gt;            OTHERS                  = 3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 21:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470793#M1417228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-13T21:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from IDOC segments programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470794#M1417229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;IDOC_READ_COMPLETELY function does not get data inside segments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 08:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470794#M1417229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-14T08:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from IDOC segments programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470795#M1417230</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;EDIDD does have the data in string format in field &lt;STRONG&gt;SDATA&lt;/STRONG&gt; You have to implement small coding after the FM call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: wa_e1edk01 TYPE eqedk01,
            wa_segment2 TYPe segment2,
            wa_segment3 TYPE segment3.

SORT ediddtab BY docnum.
LOOP AT ediddtab INTO wa.
CASE wa-segnam.
WHEN 'E1EDK01'.
MOVE wa-sdata TO wa_e1edk01.

WHEn..segment2
MOVE wa-sdata TO wa_segment2

WHEn...segment3
MOVE wa-sdata TO wa_segment3.

ENDCASE.

At END OF docnum.
*Here you have the data in respective work areas.*

ENDAT.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 08:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-idoc-segments-programatically/m-p/6470795#M1417230</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-01-14T08:52:29Z</dc:date>
    </item>
  </channel>
</rss>

