<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723922#M1109140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use READ_TEXT_INLINE to read a specific # of lines in a text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2008 18:30:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-07T18:30:11Z</dc:date>
    <item>
      <title>read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723918#M1109136</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;Can you please let me know how the output of the FM READ_TEXT is controlled!&lt;/P&gt;&lt;P&gt;eg: If we have TD = / , then the output is 132 char length!&lt;/P&gt;&lt;P&gt;If we have TD = * , then each line is not more than 72 I guess!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does it works based on the TD values?&lt;/P&gt;&lt;P&gt;Coz in our system, in SD users are entering Text in 5 lines each 132 in length, but the READ_TEXT is showing the ouput in 9-10 lines each line is 70-72 in length .&lt;/P&gt;&lt;P&gt;Instead i want to display in 5 lines as entered by the users! &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;We want to read the first 2 lines entered by the users using READ_TEXT. if there is any method to find the number of lines in READ_TEXT which corresponds to the 2 lines entered by the users, so that we can limit reading the text to 2 lines!&lt;/P&gt;&lt;P&gt;We are on ECC5.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 16:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723918#M1109136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T16:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723919#M1109137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at [Line Width|http://help.sap.com/saphelp_nw70/helpdata/EN/d6/0db600494511d182b70000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 17:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723919#M1109137</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-11-07T17:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723920#M1109138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was helpful and its 72 in our case. &lt;/P&gt;&lt;P&gt;Can you asnwer my 2nd question plz!&lt;/P&gt;&lt;P&gt;We want to read the first 2 lines entered by the users in SD Text using READ_TEXT. if there is any method to find the number of lines in READ_TEXT which corresponds to the 2 lines entered by the users, so that we can limit reading the text to 2 lines!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 18:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723920#M1109138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T18:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723921#M1109139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the table STXL ,it might help you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else use read_text Fm and the values will be returned in table LINES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using this FM:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*    CALL FUNCTION 'RKD_WORD_WRAP'
*      EXPORTING
*        textline  = ztext
*        delimiter = ' '
*        outputlen = 200
*      IMPORTING
*        out_line1 = zoutline1
*        out_line2 = zoutline2
*        out_line3 = zoutline3
*      TABLES
*        out_lines = zoutline.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at lines.

if sy-tabix LE 2.

move-- to table..

endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 18:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723921#M1109139</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-07T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723922#M1109140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use READ_TEXT_INLINE to read a specific # of lines in a text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 18:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723922#M1109140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723923#M1109141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We cant use just READ or LOOP in order to read 2 lines, Coz:&lt;/P&gt;&lt;P&gt;Suppose user entered 3 Lines of text while creating an order:&lt;/P&gt;&lt;P&gt;1st Line: 132 char length&lt;/P&gt;&lt;P&gt;2nd Line: 49 Char length&lt;/P&gt;&lt;P&gt;3rd Line: 120 Char length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to read only the first 2 lines into a internal table.&lt;/P&gt;&lt;P&gt;If we use READ_TEXT now, it splits the 1st line enetered by the user  into 2 lines  as the length of the Text is more than 72.2nd Line is displayed in 1 line as it is less than 72.&lt;/P&gt;&lt;P&gt;So totla number of lines to be read in this case would be 3. So we cant use Loop or READ int his case..and also READ_TEXT si not splitting at 72, instead its splitting at a logical position.&lt;/P&gt;&lt;P&gt;eg: if 72nd position is n in 'and' text, then its not splitting at n, instead its splittin before and starts so that the line looks logical to read. Hope you got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 18:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723923#M1109141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T18:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723924#M1109142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even though in the page window we specify as 72 characters, most of the times the window will accept near to 200 characters for text.. in a trail run, give a try to send a character of 200 characters and see if its printed fine...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 18:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723924#M1109142</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-07T18:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723925#M1109143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope..it doesnt accept more than 72 per line!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 18:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723925#M1109143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T18:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723926#M1109144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did yiu try READ_TEXT_INLINE instea dof READ_TEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 18:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723926#M1109144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T18:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723927#M1109145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at td_line into wa_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate  zoutline wa_line-tdline into zoutline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now Zoutline is a big string with all the text..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the FM i sent before split the zoutline string to max 3 lines of what so ever width you want and use that..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 18:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723927#M1109145</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-07T18:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723928#M1109146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This really doesnt help as we dont know into how many lines and at what position the FM READ_TEXT splits the incoming Text.&lt;/P&gt;&lt;P&gt;We may have to depend on TDFORMAT!&lt;/P&gt;&lt;P&gt;Even READ_TEXT_INLINE is not a solution.&lt;/P&gt;&lt;P&gt;Help wud be awarded!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 19:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723928#M1109146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T19:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: read_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723929#M1109147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Sorry, I know it's about 8 months late, but I just had basically this same problem and was searching SDN for a solution, and have just found that function FORMAT_TEXTLINES will sort it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just pass your table with 72 chars in as table LINES and set FORMATWIDTH to 132, and when you get the table back it will have put it in lengths of 132 but still use original formatting, so if the user has pressed enter you will get a new line for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have back your table formatted to 132 chars you can just read the first 2 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 13:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/4723929#M1109147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T13:23:27Z</dc:date>
    </item>
  </channel>
</rss>

