<?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 Long character in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009857#M78628</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;what is the data type to define long character where has more than 500 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type of char will only output 255 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Alia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2005 10:38:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-08T10:38:29Z</dc:date>
    <item>
      <title>Long character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009857#M78628</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;what is the data type to define long character where has more than 500 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type of char will only output 255 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Alia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 10:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009857#M78628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-08T10:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Long character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009858#M78629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working with WAS 6.4 you can use STRING data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward if you find the answers useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 10:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009858#M78629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-08T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Long character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009859#M78630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depend on what you should to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA STRING(LEN) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and LEN is the length which you need, for exalmple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA STRING(1000) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But remember when you print the string on screen, you can see only 255 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use the type STRING:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA STRING TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the length is automatically calculated by system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 10:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009859#M78630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-08T10:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Long character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009860#M78631</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 did the test with character and string. It is true that only the 255 first characters of the char is displayed, but the string is complete !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not forget to change the line-siez of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code for the example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST LINE-SIZE 1023.

DATA : w_char(1001) TYPE c.
DATA : w_string     TYPE string.

DO 1000 TIMES.
  w_char+sy-index = 'A'.
ENDDO.

w_string = w_char.


WRITE : 'Test'.

SKIP.

WRITE : / 'CHAR  ', w_char.
WRITE : / 'STRING', w_string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if I'm wrong.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 10:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-character/m-p/1009860#M78631</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2005-09-08T10:56:20Z</dc:date>
    </item>
  </channel>
</rss>

