<?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: Reading LCHR from database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-lchr-from-database/m-p/6486234#M1419727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;You have a limitation of 255 characters on every alv that you use to show the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;So you have to export the data from the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Let's try to explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;You have a database table with 2 fields (e.g.)&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;LENT TYPE INT2 (2 Byte Integer (Signed)), this field itis used for save the length of the LCHR field&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;ERROR_MESSAGE TYPE SMO_1500 LCHR (character 1500), this field it's used for save the string value with 1500 character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;You can't read this data with the TCODE SE16 or SE16N or SE11, because exist a limitation of 255 character on ALV tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Create a report like that to export the data to a file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp; &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;SELECT &lt;/SPAN&gt;*&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;FROM &lt;/SPAN&gt;zsrm_wlu_004&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;INTO TABLE &lt;/SPAN&gt;lt_zsrm_wlu_004&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;WHERE &lt;/SPAN&gt;wi &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;s_wi &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;AND&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;s_ano &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;AND&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wi_aagent &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;s_agent &lt;SPAN class="s2" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-style: inherit; font-family: inherit;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN class="s3" style="font-style: inherit; font-family: inherit;"&gt;'GUI_DOWNLOAD'&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2" style="font-style: inherit; font-family: inherit;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s4" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;p_file_download&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filetype&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s4" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="s3" style="font-style: inherit; font-family: inherit;"&gt;'ASC'&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2" style="font-style: inherit; font-family: inherit;"&gt;TABLES&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_tab&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s4" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;lt_zsrm_wlu_004&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 22:05:46 GMT</pubDate>
    <dc:creator>miguel_silva3</dc:creator>
    <dc:date>2014-01-30T22:05:46Z</dc:date>
    <item>
      <title>Reading LCHR from database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-lchr-from-database/m-p/6486232#M1419725</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'm reading a LCHR field from my table with a SELECT statement.&lt;/P&gt;&lt;P&gt;The value i get seems to be truncated.&lt;/P&gt;&lt;P&gt;Is there any other way i could use to read the whole data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will READ_TEXT work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tabraiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 19:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-lchr-from-database/m-p/6486232#M1419725</guid>
      <dc:creator>tabraiz_khan</dc:creator>
      <dc:date>2010-01-07T19:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading LCHR from database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-lchr-from-database/m-p/6486233#M1419726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LCHR is a character string of any length ...&lt;/P&gt;&lt;P&gt;So you can try creating a text object and text id in se75 and try with read_text.&lt;/P&gt;&lt;P&gt;Im not sure about this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 19:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-lchr-from-database/m-p/6486233#M1419726</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-07T19:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading LCHR from database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-lchr-from-database/m-p/6486234#M1419727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;You have a limitation of 255 characters on every alv that you use to show the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;So you have to export the data from the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Let's try to explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;You have a database table with 2 fields (e.g.)&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;LENT TYPE INT2 (2 Byte Integer (Signed)), this field itis used for save the length of the LCHR field&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;ERROR_MESSAGE TYPE SMO_1500 LCHR (character 1500), this field it's used for save the string value with 1500 character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;You can't read this data with the TCODE SE16 or SE16N or SE11, because exist a limitation of 255 character on ALV tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Create a report like that to export the data to a file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp; &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;SELECT &lt;/SPAN&gt;*&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;FROM &lt;/SPAN&gt;zsrm_wlu_004&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;INTO TABLE &lt;/SPAN&gt;lt_zsrm_wlu_004&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;WHERE &lt;/SPAN&gt;wi &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;s_wi &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;AND&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;s_ano &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;AND&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wi_aagent &lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;s_agent &lt;SPAN class="s2" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-style: inherit; font-family: inherit;"&gt;CALL FUNCTION &lt;/SPAN&gt;&lt;SPAN class="s3" style="font-style: inherit; font-family: inherit;"&gt;'GUI_DOWNLOAD'&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2" style="font-style: inherit; font-family: inherit;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s4" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;p_file_download&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filetype&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s4" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="s3" style="font-style: inherit; font-family: inherit;"&gt;'ASC'&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2" style="font-style: inherit; font-family: inherit;"&gt;TABLES&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_tab&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s4" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-style: inherit; font-family: inherit;"&gt;lt_zsrm_wlu_004&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 22:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-lchr-from-database/m-p/6486234#M1419727</guid>
      <dc:creator>miguel_silva3</dc:creator>
      <dc:date>2014-01-30T22:05:46Z</dc:date>
    </item>
  </channel>
</rss>

