<?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: Extraneous Information coming from Function module READ_TEXT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846825#M666956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using  TDNAME = %000000000010001 (As this is the notification number while creating)&lt;/P&gt;&lt;P&gt;while using FM READ_TEXT.&lt;/P&gt;&lt;P&gt;It is fetching data from STXL table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i checked in STXL TABLE for this TDNAME i am getting a value for CLUSTD:&lt;/P&gt;&lt;P&gt;FF06010102028000343130320000000063010000121F9D0232663E060606461E20C1C0CA800D8430F8307832F831B8AE85A85C05166501538C1CEB2082FBA066&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to encode this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Oct 2007 11:20:59 GMT</pubDate>
    <dc:creator>former_member197703</dc:creator>
    <dc:date>2007-10-07T11:20:59Z</dc:date>
    <item>
      <title>Extraneous Information coming from Function module READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846821#M666952</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;I am Using READ_TEXT to read the long text of items in quality notification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no long text maintained for item in Quality notification even though it is showing some text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i correct this problem, as the values are coming from standard FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this FM control is going into an include "LSTXDFDB"&lt;/P&gt;&lt;P&gt;while importing it is picking some text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding rt_header to stxl_id.&lt;/P&gt;&lt;P&gt;if rt_header-tdtexttype is initial.              "SAPscript format&lt;/P&gt;&lt;P&gt;  import tline to rt_lines&lt;/P&gt;&lt;P&gt;    from database stxl(tx)&lt;/P&gt;&lt;P&gt;         client   rt_client&lt;/P&gt;&lt;P&gt;         id       stxl_id&lt;/P&gt;&lt;P&gt;         IGNORING CONVERSION ERRORS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vaibhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 07:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846821#M666952</guid>
      <dc:creator>former_member197703</dc:creator>
      <dc:date>2007-10-07T07:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extraneous Information coming from Function module READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846822#M666953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Read text function module will return subrc 0 only when the text extends more that 72 char.... so in the line item check if there are any blank lines appended...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the hint is useful&amp;#133; Say thanks by reward&amp;#133;.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 07:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846822#M666953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T07:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extraneous Information coming from Function module READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846823#M666954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying but my question is not resolved.&lt;/P&gt;&lt;P&gt;My question is: if i am not giving any long text while creating quality notification then why this FM is picking garbage text "test".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what is CLUSTR, CLUSTD in STXL table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 10:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846823#M666954</guid>
      <dc:creator>former_member197703</dc:creator>
      <dc:date>2007-10-07T10:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extraneous Information coming from Function module READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846824#M666955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check that you have cleared the internal table rt_lines (or whatever the table in your code is called that is passed to the Fuction Module) before calling the function module READ_TEXT.  If it does not find anything, then the text from previous calls may be still in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check the object key you are passing the function module - often you need to make sure the correct number of leading zeros is included to get the right result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 11:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846824#M666955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T11:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extraneous Information coming from Function module READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846825#M666956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using  TDNAME = %000000000010001 (As this is the notification number while creating)&lt;/P&gt;&lt;P&gt;while using FM READ_TEXT.&lt;/P&gt;&lt;P&gt;It is fetching data from STXL table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i checked in STXL TABLE for this TDNAME i am getting a value for CLUSTD:&lt;/P&gt;&lt;P&gt;FF06010102028000343130320000000063010000121F9D0232663E060606461E20C1C0CA800D8430F8307832F831B8AE85A85C05166501538C1CEB2082FBA066&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to encode this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 11:20:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846825#M666956</guid>
      <dc:creator>former_member197703</dc:creator>
      <dc:date>2007-10-07T11:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extraneous Information coming from Function module READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846826#M666957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should i clear CLUSTD value in STXL table after using FM READ_TEXT for TDNAME = %000000000010001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 11:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846826#M666957</guid>
      <dc:creator>former_member197703</dc:creator>
      <dc:date>2007-10-07T11:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extraneous Information coming from Function module READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846827#M666958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using function module READ_TEXT you need to pass 4 input variables and one table as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: l_id     LIKE  thead-tdid,
      l_lang   LIKE  thead-tdspras,
      l_name   LIKE  thead-tdname,
      l_object LIKE  thead-tdobject,
      lt_lines TYPE STANDARD TABLE OF  tline.

l_id     = '0001'.       "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; change to match desired text
l_lang   = sy-langu.     "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; change to match desired text
l_name   = 'BELEG'.      "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; change to match desired text
l_object = '0002500001'. "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; change to match desired text

CLEAR: lt_lines[].
CALL FUNCTION 'READ_TEXT'
  EXPORTING
    id       = l_id
    language = l_lang
    name     = l_name
    object   = l_object
  TABLES
    lines    = lt_lines.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need to do anything with STXL or its fields - that is what the function module is there for - it converts the text from the cluster table into a standard internal table and returns it to your program as LT_LINES in the above example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to find out the values that must be specified in the four fields I have listed to match the text you are trying to retrieve.  It is unlikely to start with '%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find the key values, edit a text using the online transaction and go to the full screen editor for it - then display the text header which should show the four values.  You may need to switch to the old style text editor to see the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 11:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846827#M666958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-07T11:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extraneous Information coming from Function module READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846828#M666959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 14:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extraneous-information-coming-from-function-module-read-text/m-p/2846828#M666959</guid>
      <dc:creator>former_member197703</dc:creator>
      <dc:date>2007-10-07T14:32:11Z</dc:date>
    </item>
  </channel>
</rss>

