<?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 output.reg in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637367#M1665442</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 created a test program something like this:&lt;/P&gt;&lt;P&gt;i appended the values into table during debugging and its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: ITAB1 type STANDARD TABLE OF TLINE.
data: WA_ITAB1 type TLINE.

LOOP AT itab1 INTO wa_itab1.

  CONCATENATE lv_var wa_itab1-TDLINE INTO lv_var SEPARATED BY SPACE.
  condense LV_VAR.

ENDLOOP.

var2 = strlen( lv_var ).
write VAR2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 13:12:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-08T13:12:05Z</dc:date>
    <item>
      <title>read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637357#M1665432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using the function module READ_TEXT, to fetch the long text for my program, when i am fetching the same, into the internal table from the tables column in the function to a internal table tlinetab which has a include type of the structure tline.&lt;/P&gt;&lt;P&gt;i am able to get the values through the function module into the table tline tab, where the long text is of 325 characters. i am also aplying a loop on the table tlinetab in order to concatenate the tdline component into a variable of length 350 characters, but, i am not able to do so, the output of the function module shows 325 characters, but after concatenating the same i am able to see and show only 255 characters, on checking upon the debugger i am seeing that there is a index of the output of the function module as 6, also there is the full text available, on debugging the same step by step along the loop when it reaches sy-tabix = 5, and sy-tabix = 6 the text fails to get concatenated to the character that i defined to be of 350 characters, instead only 255 characters are visible. What do i do for it...as i am not able to find a suitable answer, please help me out for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for a positive reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 12:06:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637357#M1665432</guid>
      <dc:creator>sarath1988</dc:creator>
      <dc:date>2012-03-08T12:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637358#M1665433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are concerned about the length, don't rely on visible length....   declare a variable of type i and check the length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_len type i.

loop....
.....concatenate.....
endloop.

lv_len = strlen( 350-char-variable ).
write: / lv_len.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 12:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637358#M1665433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T12:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637359#M1665434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for the quick response, but my query was.....i am not able to get the full text of the 325 characters into my final variable which can hold 350 characters....it only holding 255 whereas i defined the variable as &lt;/P&gt;&lt;P&gt;data: lv_specs(350) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting the values in tlinetab which is a type of tline from the read text. the tdformat has a index value of 6 and the tdline has a text of 325 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i am doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tlinetab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate lv_specs tlinetab-tdline into lv_specs separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense lv_specs.&lt;/P&gt;&lt;P&gt;clear tlinetab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the variable lv_specs i am having the text as only 255 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my doubt is when i am having the table tlinetab with the complete value but why does it not concatenate all of it while i run the loop....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 12:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637359#M1665434</guid>
      <dc:creator>sarath1988</dc:creator>
      <dc:date>2012-03-08T12:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637360#M1665435</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;THE CHARACTER YOU DEFINED IS OF WHAT TYPE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;GAURAV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 12:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637360#M1665435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T12:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637361#M1665436</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;DECLARE IT OF TYPE STRING.&lt;/P&gt;&lt;P&gt;data: lv_specs type STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;GAURAV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 12:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637361#M1665436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T12:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637362#M1665437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have mentioned it above....it is  of type 'C' with length 350&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 12:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637362#M1665437</guid>
      <dc:creator>sarath1988</dc:creator>
      <dc:date>2012-03-08T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637363#M1665438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gaurav, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried using it, but in vain, i am obtaining the same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 12:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637363#M1665438</guid>
      <dc:creator>sarath1988</dc:creator>
      <dc:date>2012-03-08T12:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637364#M1665439</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;TYPE C CAN HOLD ONLY 255 CHARACTERS, THATS WHY THE VARIABLE SHOWS ONLY 255 CHARACTERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;GAURAV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 12:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637364#M1665439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637365#M1665440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but even we can define the variables like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_spec(350) type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right....i tried this after i tried string......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 13:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637365#M1665440</guid>
      <dc:creator>sarath1988</dc:creator>
      <dc:date>2012-03-08T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637366#M1665441</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 data element &lt;STRONG&gt;CHAR339&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope will work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pradeep Mohandass on Mar 8, 2012 2:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 13:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637366#M1665441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T13:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637367#M1665442</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 created a test program something like this:&lt;/P&gt;&lt;P&gt;i appended the values into table during debugging and its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: ITAB1 type STANDARD TABLE OF TLINE.
data: WA_ITAB1 type TLINE.

LOOP AT itab1 INTO wa_itab1.

  CONCATENATE lv_var wa_itab1-TDLINE INTO lv_var SEPARATED BY SPACE.
  condense LV_VAR.

ENDLOOP.

var2 = strlen( lv_var ).
write VAR2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 13:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637367#M1665442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T13:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637368#M1665443</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the variable lv_specs i am having the text as only 255 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do you actually check this? are you using write statement? Is it displayed in a ALV? are you only checking the value in debugger?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There shouldn't be any issue with your code, wether you use a string or char type ... the problem is probably on some other part...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 13:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637368#M1665443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T13:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637369#M1665444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NOT true...the widest type c is 65535.  try it....data: lv_c(65535) type c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 18:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637369#M1665444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: read_text output.reg</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637370#M1665445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will concatenate it all...the problem is the tool that you're viewing the 350-byte variable with!...  In fact, people routinely do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: my_string type string.
field-symbols &amp;lt;lfs_t&amp;gt; type tline.

loop at tlinetab assigning &amp;lt;lfs_t&amp;gt;.
  if &amp;lt;lfs_t&amp;gt; is assigned.
  if sy-tabix eq 1. 
      my_String = &amp;lt;lfs_t&amp;gt;-tdline.
else.
concatenate my_string &amp;lt;lfs_t&amp;gt;-tdline
   into my_String separated by space.
endif.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;to do this, we don't care how many rows are in tlinetab!  ALL will be concatenated, whether we can view them with some limited capability desktop tool or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you  do the step to look at the "real" length with the code I gave you?  What is in LV_LEN?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 18:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-output-reg/m-p/8637370#M1665445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T18:05:15Z</dc:date>
    </item>
  </channel>
</rss>

