<?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: Howto span a constant string over multiple lines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678707#M1290965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's the other way round: I want to create one constant with over 100 characters in length. But I don't want do write all those 100+ characters into one single line in the ABAP editor. So I want to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS: lc_string TYPE string VALUE 
           'this is the first line of the constant' \
           'and this is the second line, but still the same constant'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2009 11:36:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-05T11:36:38Z</dc:date>
    <item>
      <title>Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678705#M1290963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to pre-define a constant string with over 100 characters, so I want to split and span it over multiple lines. In Java-like languages I can do so with a backslash as last character in the line. Is there any similar technique in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678705#M1290963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678706#M1290964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well i didnt understand your question .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a pre-defined constant and if your intention is to split it into multiple lines, why do you have to use one single constant for it? At the definition itself, can't you split it into multiple constants?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678706#M1290964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678707#M1290965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's the other way round: I want to create one constant with over 100 characters in length. But I don't want do write all those 100+ characters into one single line in the ABAP editor. So I want to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS: lc_string TYPE string VALUE 
           'this is the first line of the constant' \
           'and this is the second line, but still the same constant'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678707#M1290965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678708#M1290966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use a string table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678708#M1290966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678709#M1290967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I know about the string table. I could also just create two constants and then concatenate them.&lt;/P&gt;&lt;P&gt;But I would prefer the solution as I know it from other programming languages ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678709#M1290967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678710#M1290968</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 , use &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS: lc_string TYPE string VALUE
           'this is the first line of the constant' &amp;amp;
           'and this is the second line, but still the same constant'.

data var1 type string.

var1 = lc_string.

write var1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678710#M1290968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678711#M1290969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, that did the trick!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678711#M1290969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678712#M1290970</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;Please try like below: Each line ends with 70 char's so if u want to print from second line use Offset like below (71, 142)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: lc_string TYPE string VALUE&lt;/P&gt;&lt;P&gt;           'this is the first line of the constant&lt;/P&gt;&lt;P&gt;           and this is the second line, but still the same constant&lt;/P&gt;&lt;P&gt;           second line'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : lc_string+71(3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678712#M1290970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T11:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678713#M1290971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ravi ... its not working for me !!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678713#M1290971</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-06-05T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Howto span a constant string over multiple lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678714#M1290972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you can use &lt;/P&gt;&lt;P&gt;cl_abap_char_utilities=&amp;gt;newline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see other special characters...&lt;/P&gt;&lt;P&gt;&lt;A href="http://erpbuzz.com/abap-new-line-tab-space-backspace-characters-char-util-class.php" target="test_blank"&gt;http://erpbuzz.com/abap-new-line-tab-space-backspace-characters-char-util-class.php&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 04:22:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/howto-span-a-constant-string-over-multiple-lines/m-p/5678714#M1290972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T04:22:30Z</dc:date>
    </item>
  </channel>
</rss>

