<?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: how to split text reading using read_text function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552508#M1658303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;          Generally the READ_TEXT fm reads ASCII data, so if there is any TAB it uses the special character # to identify the same, I belive in your SO10 text you have used some TAB explecitly which can not be read,  try to give some paragraph formats and check it that doesn't solve your issue. Check the CL_GUI_FRONTEND_SERVICES class and it's attributes, there are certain attributes for horizonal_tab others. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of replace will be a good option as well. But it will read the entire paragraph and if that is too long/big you will recieve a performance issues. I suggest to loop at the itab and check for line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tapodipta Khan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2012 20:06:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-15T20:06:46Z</dc:date>
    <item>
      <title>how to split text reading using read_text function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552504#M1658299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam using FM read_text to read text (i.e PR and line item )using following code,but my requirement is it may contains 100 of PRs and line items.so my text is like this 0010000035,00## contract,00## 00100000028,02## like this.so for every PR i have to check the etatus of PR to create PO.how to split this total text .iam using string type c but iam unable to get proper data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   data:&lt;/P&gt;&lt;P&gt;        BEGIN OF header OCCURS 0,&lt;/P&gt;&lt;P&gt;          ld_t1(2000),&lt;/P&gt;&lt;P&gt;          ld_t2(163),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         ld_txt3(163),&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        END OF header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: li_lines LIKE STANDARD TABLE OF tline WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        ID like THEAD-TDID,&lt;/P&gt;&lt;P&gt;        TNAME LIKE THEAD-TDNAME,&lt;/P&gt;&lt;P&gt;        TDOBJECT like THEAD-TDOBJECT,&lt;/P&gt;&lt;P&gt;        string1(8) type c,&lt;/P&gt;&lt;P&gt;        string2(4) type c,&lt;/P&gt;&lt;P&gt;        string3(8) type c,&lt;/P&gt;&lt;P&gt;        string4(4) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ID = 'AT'.&lt;/P&gt;&lt;P&gt;        TNAME = wa_final-infnr.&lt;/P&gt;&lt;P&gt;  TDOBJECT = 'EINA'.&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;      id       = id&lt;/P&gt;&lt;P&gt;      language = sy-langu&lt;/P&gt;&lt;P&gt;      name     =  TNAME&lt;/P&gt;&lt;P&gt;      object   = TDOBJECT&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      lines    = li_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE li_lines INDEX 1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    header-ld_t1 = li_lines-tdline.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  READ TABLE LI_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CONDENSE li_lines. "NO-GAPS.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; split header-ld_t1 at ',' into : string1 string2 string3 string4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 11:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552504#M1658299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-15T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to split text reading using read_text function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552505#M1658300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If the text information is too long you can split it into a Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT li_lines.&lt;/P&gt;&lt;P&gt;  SPLIT AT ','  INTO TABLE my_table.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 11:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552505#M1658300</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2012-02-15T11:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to split text reading using read_text function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552506#M1658301</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;iam using the table type li_lines,but it iam not getting text properly into table.&lt;/P&gt;&lt;P&gt;my problem is if iam having text &lt;/P&gt;&lt;P&gt;0010000033,03,23243422&lt;/P&gt;&lt;P&gt;ammend,001&lt;/P&gt;&lt;P&gt;0012000000,2,232434343&lt;/P&gt;&lt;P&gt;0012223232,7&lt;/P&gt;&lt;P&gt;like this.&lt;/P&gt;&lt;P&gt;when iam using this FM,if iam splitting at ',' it is taking 23243422##amm,and also 4343430012 this is my problem &lt;/P&gt;&lt;P&gt;iam not able to get proper data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 14:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552506#M1658301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-15T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to split text reading using read_text function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552507#M1658302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Probably those ## characters are CHAR(10) and CHAR(13). So you can replace them using REPLACE statement to substitute them. And can use attribute CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF to use asd reference during replacement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 16:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552507#M1658302</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2012-02-15T16:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to split text reading using read_text function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552508#M1658303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;          Generally the READ_TEXT fm reads ASCII data, so if there is any TAB it uses the special character # to identify the same, I belive in your SO10 text you have used some TAB explecitly which can not be read,  try to give some paragraph formats and check it that doesn't solve your issue. Check the CL_GUI_FRONTEND_SERVICES class and it's attributes, there are certain attributes for horizonal_tab others. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of replace will be a good option as well. But it will read the entire paragraph and if that is too long/big you will recieve a performance issues. I suggest to loop at the itab and check for line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tapodipta Khan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 20:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552508#M1658303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-15T20:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to split text reading using read_text function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552509#M1658304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have tried with the two ways,but iam not able to condense the text .&lt;/P&gt;&lt;P&gt;i have writtne code as&lt;/P&gt;&lt;P&gt;data char1 type char1o value '##'.&lt;/P&gt;&lt;P&gt;loop at it_lines to wa_lines.&lt;/P&gt;&lt;P&gt;if wa_lines-tdline CA char1.&lt;/P&gt;&lt;P&gt;replace all occurences of char1 in wa_lines-tdline with space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;condense wa_lines-tdline.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i tested simple text type as string with above statement it is working properly.&lt;/P&gt;&lt;P&gt;but iam getting the same result and also i tried with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPALCE ALL OCCURENCES OF '##' WITH CR_LF &lt;/P&gt;&lt;P&gt;IN wa_lines-tdline .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any settings we can provide to get text without special chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 09:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552509#M1658304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T09:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to split text reading using read_text function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552510#M1658305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i got the ans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-text-reading-using-read-text-function-module/m-p/8552510#M1658305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T10:03:08Z</dc:date>
    </item>
  </channel>
</rss>

