<?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: read_text  function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737830#M1111595</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>Mon, 16 Nov 2009 04:20:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-16T04:20:41Z</dc:date>
    <item>
      <title>read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737822#M1111587</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 have a prob. when i run read function, let say my data in header text is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we &amp;amp; you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then this function returns &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we &amp;lt;(&amp;gt;&amp;amp; &amp;lt;)&amp;gt; you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why this is happing and how can i got same text as i feed in header text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. it convert &amp;amp; char. to &amp;lt;(&amp;gt;&amp;amp; &amp;lt;)&amp;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;/P&gt;&lt;P&gt;mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 06:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737822#M1111587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T06:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737823#M1111588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukesh,&lt;/P&gt;&lt;P&gt;You can look at the sample code at this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will surely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.sap-img.com/abap/use-fm--read-text-to-read-the-various-text.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 06:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737823#M1111588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T06:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737824#M1111589</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;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data:       it_lines TYPE STANDARD TABLE OF tline.
DATA: c_tab TYPE tdtab_c132 WITH HEADER LINE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
     client                        = sy-mandt
      id                            = 'B01'
      language                      = sy-langu
      name                          = name
      object                        = 'EBANH'
*   ARCHIVE_HANDLE                = 0
*   LOCAL_CAT                     = ' '
* IMPORTING
*   HEADER                        =
    TABLES
      lines                         = it_lines
 EXCEPTIONS
   id                            = 1
   language                      = 2
   name                          = 3
   not_found                     = 4
   object                        = 5
   reference_check               = 6
   wrong_access_to_archive       = 7
   OTHERS                        = 8
            .
  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.
  ENDIF.

  REFRESH c_tab[].

  CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
   EXPORTING
*     CODEPAGE                = '0000'
     formatwidth             = 72
     language                = sy-langu
     tabletype               = 'ASC'
*     TAB_SUBSTITUTE          = ' '
*     LF_SUBSTITUTE           = ' '
     replace_symbols         = 'X'
     replace_sapchars        = 'X'
   IMPORTING
*     FORMATWIDTH_E           =
*     X_DATATAB               =
     c_datatab               = c_tab[]
*     X_SIZE                  =
    TABLES
      itf_lines               = it_lines
*   EXCEPTIONS
*     INVALID_TABLETYPE       = 1
*     OTHERS                  = 2
            .
  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.
  ENDIF.

  LOOP AT c_tab.
    CONCATENATE text c_tab INTO text  SEPARATED BY space.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 06:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737824#M1111589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T06:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737825#M1111590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the function module, use the following;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF '&amp;lt;(&amp;gt;'  IN TABLE itab_lines WITH '' .
REPLACE ALL OCCURRENCES OF '&amp;lt;)&amp;gt;'  IN TABLE itab_lines WITH '' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 06:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737825#M1111590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T06:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737826#M1111591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually this prob occurs for every special character...so it is not possible to write this line for every special character....so it is better to pass the final table through any perticular FM...i think it will be much more easier..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 06:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737826#M1111591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T06:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737827#M1111592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as i tested only special characters like $ and &amp;lt; are enclosed as mentioned by you that too all are enclosed by the same format &amp;lt;(&amp;gt; &amp;lt;)&amp;gt; So you can make use of my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 06:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737827#M1111592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T06:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737828#M1111593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No...it is for all special characters....and also for special styles...in the text if you underline or bold or something other style use..then also some unknown character will come in the output....so i have passed it in this FM....so all the formatting will be ok...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 06:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737828#M1111593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T06:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737829#M1111594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats ok, if you got the solution close the thread as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 07:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737829#M1111594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T07:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: read_text  function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737830#M1111595</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>Mon, 16 Nov 2009 04:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-function/m-p/4737830#M1111595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T04:20:41Z</dc:date>
    </item>
  </channel>
</rss>

