<?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: fetch data from READ_TEXT functn. modul.&amp; to update exist.Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174535#M1517718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you need to call read_text in each loop pass for each document number.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
* call function 'READ_TEXT'
* move the text field to itab.
modify itab transporting xline1.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 10:52:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-23T10:52:03Z</dc:date>
    <item>
      <title>fetch data from READ_TEXT functn. modul.&amp; to update exist.Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174533#M1517716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.)  I have one internal table where :- itemp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE1 | KUNNR |  VKORG |  SPART  | MATNR |  VBELN     | XTLINE1&lt;/P&gt;&lt;P&gt;1     | 23769 |  DSMK  |   GS    | 1213  |  6010002666|&lt;/P&gt;&lt;P&gt;2     | 23773 |  DSMK  |   GS    | 1231  |  6010002667|&lt;/P&gt;&lt;P&gt;3     | 23769 |  DSMK  |   GS    | 1213  |  6010002666|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;2.) Now within XTLINE we have following data :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XTLINE-TDLINE ( from READ_TEXT function module ) for VBELN = 6010002666&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QTY 10 DATE 30.02.2010&lt;/P&gt;&lt;P&gt;QTY 50 DATE 30.01.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XTLINE-TDLINE ( from READ_TEXT function module ) for VBELN = 6010002667&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QTY XX&lt;/P&gt;&lt;P&gt;QTY YY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This data needs to be updated in XTLINE1 in above internal table itemp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide me the logic to update the internal table itemp&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------------------------------------------" /&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;HR originaltext="---------------------------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 09:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174533#M1517716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T09:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from READ_TEXT functn. modul.&amp; to update exist.Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174534#M1517717</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 see a high level code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting you are calling read_text function module in a loop at itemp.&lt;/P&gt;&lt;P&gt;Put the below code in that loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itemp-xtline1[] = xtline[].&lt;/P&gt;&lt;P&gt;modify itemp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note the itemp-xtline1 is type table tline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 10:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174534#M1517717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T10:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from READ_TEXT functn. modul.&amp; to update exist.Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174535#M1517718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you need to call read_text in each loop pass for each document number.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
* call function 'READ_TEXT'
* move the text field to itab.
modify itab transporting xline1.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 10:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174535#M1517718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T10:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data from READ_TEXT functn. modul.&amp; to update exist.Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174536#M1517719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be this code will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : TLINES1 TYPE TLINE OCCURS 0,&lt;/P&gt;&lt;P&gt;             l_vbeln LIKE THEAD-TDNAME,&lt;/P&gt;&lt;P&gt;              WA_LINE1 TYPE TLINE,&lt;/P&gt;&lt;P&gt;              temp type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itemp.&lt;/P&gt;&lt;P&gt;REFRESH TLINES1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_vbeln = itemp-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      CLIENT                  = SY-MANDT&lt;/P&gt;&lt;P&gt;      ID                          = ' '&lt;/P&gt;&lt;P&gt;      LANGUAGE          = 'E'&lt;/P&gt;&lt;P&gt;      NAME                    = L_vbeln&lt;/P&gt;&lt;P&gt;      OBJECT                  = ' '&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      LINES                   = TLINES1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      ID                      = 1&lt;/P&gt;&lt;P&gt;      LANGUAGE                = 2&lt;/P&gt;&lt;P&gt;      NAME                    = 3&lt;/P&gt;&lt;P&gt;      NOT_FOUND               = 4&lt;/P&gt;&lt;P&gt;      OBJECT                  = 5&lt;/P&gt;&lt;P&gt;      REFERENCE_CHECK         = 6&lt;/P&gt;&lt;P&gt;      WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;P&gt;      OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    FLAG = 1.&lt;/P&gt;&lt;P&gt;  ELSEIF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    FLAG = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT TLINES1 INTO WA_LINE1.&lt;/P&gt;&lt;P&gt;           T_LONG_TEXT-TDLINE = WA_LINE1-TDLINE.&lt;/P&gt;&lt;P&gt;      APPEND T_LONG_TEXT.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear temp.&lt;/P&gt;&lt;P&gt;  APPEND LINES OF t_long_text to temp.&lt;/P&gt;&lt;P&gt;  itemp-txline1 = temp.&lt;/P&gt;&lt;P&gt;  modify itemp transproting txline1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 11:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-read-text-functn-modul-to-update-exist-internal-table/m-p/7174536#M1517719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T11:09:43Z</dc:date>
    </item>
  </channel>
</rss>

