<?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: string template syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234784#M1912508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folker ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define a variable without using type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like; data string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will be 1 character variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can write like this ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data string value 'Hello World!'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but string actually contains only 'H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should write like this ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data lv_string type string value 'Hello World!'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 08:45:20 GMT</pubDate>
    <dc:creator>asim_isik</dc:creator>
    <dc:date>2015-08-12T08:45:20Z</dc:date>
    <item>
      <title>string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234782#M1912506</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;using string templates for the first time. Every example i found, seems very simple, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;DATA(string) = |Hello World!|.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But i always get a syntax error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Field "|HELLO" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what am i missing? System is running SAP NW 7.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Folker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234782#M1912506</guid>
      <dc:creator>folkernaumann</dc:creator>
      <dc:date>2015-08-12T08:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234783#M1912507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You didn't defined the variable which will be type string. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA variable &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S55"&gt; variable &lt;SPAN class="L0S55"&gt;= &lt;SPAN class="L0S33"&gt;'Hello World!'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234783#M1912507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-12T08:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234784#M1912508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folker ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define a variable without using type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like; data string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will be 1 character variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can write like this ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data string value 'Hello World!'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but string actually contains only 'H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should write like this ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data lv_string type string value 'Hello World!'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234784#M1912508</guid>
      <dc:creator>asim_isik</dc:creator>
      <dc:date>2015-08-12T08:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234785#M1912509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Folker.&lt;/P&gt;&lt;P&gt;I'm on 7.40 sp08, all works fine. Try to use backquotes for test.&lt;/P&gt;&lt;P&gt;data(string) = `some text`.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 08:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234785#M1912509</guid>
      <dc:creator>former_member210008</dc:creator>
      <dc:date>2015-08-12T08:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234786#M1912510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evgeniy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;DATA string1 TYPE string.&lt;/P&gt;
&lt;P&gt;DATA string2 TYPE string. &lt;/P&gt;
&lt;P&gt;string1 = |Hello World!|.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt; string2 = `Hello World!`.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;DATA(string3) = `Hello World!`.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string2 and string3 are working fine, string1 results in the same syntax error like described above. It just looks like pipes are not recognized as keywords.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234786#M1912510</guid>
      <dc:creator>folkernaumann</dc:creator>
      <dc:date>2015-08-12T09:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234787#M1912511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange, the following code is working for me :&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;string1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;string1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'|Hello world|'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am on NW 7.4 EHP7.&lt;/P&gt;&lt;P&gt;br,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234787#M1912511</guid>
      <dc:creator>christophe_hu2</dc:creator>
      <dc:date>2015-08-12T09:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234788#M1912512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christophe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for me too, but only because it has ' ' around the pipes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'|Hello world|'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Have you tried it without quotes?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;string1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;|Hello world|&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;btw what's the best way to determine your platform (NW, AS ABAP)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;br&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;Folker&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234788#M1912512</guid>
      <dc:creator>folkernaumann</dc:creator>
      <dc:date>2015-08-12T09:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234789#M1912513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I tried w/o quotes and it's working also.&lt;/P&gt;&lt;P&gt;To determine your plateform go to sytem&amp;gt;status&amp;gt;Product version and you click on the button to see the details.&lt;/P&gt;&lt;P&gt;Tks.&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;christophe &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234789#M1912513</guid>
      <dc:creator>christophe_hu2</dc:creator>
      <dc:date>2015-08-12T09:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234790#M1912514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that string pipes were implemented in 7.3 so it should work on any 7.40. Maybe you have old/broken sapgui?..&lt;/P&gt;&lt;P&gt;Try to run DEMO_STRING_TEMPLATE_ALIGN_PAD. Will it work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 10:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234790#M1912514</guid>
      <dc:creator>former_member210008</dc:creator>
      <dc:date>2015-08-12T10:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: string template syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234791#M1912515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the answer is: string templates only work in Unicode-programs. I am working on a non-Unicode System and Unicode checking was disabled in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;Folker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 10:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-template-syntax-error/m-p/11234791#M1912515</guid>
      <dc:creator>folkernaumann</dc:creator>
      <dc:date>2015-08-12T10:52:32Z</dc:date>
    </item>
  </channel>
</rss>

