<?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 templates - missing functionalities? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947257#M1966112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say it's mainly the conversion routines. But since string formatting should not be mixed up with screen handling, that's OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And UNIT, well, well. Look at its documentation and forget it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, the string templates should have it all and more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2016 17:13:15 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2016-10-04T17:13:15Z</dc:date>
    <item>
      <title>String templates - missing functionalities?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947253#M1966108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ABAP documentation says that the "WRITE TO" statement can be replaced with "string templates" in most cases. So this means, that there are some cases that are not covered with "string templates".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the documentation does not clarify, which cases are left out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot find a "string template" equivalent to the following "WRITE TO" additions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;UNIT&lt;/LI&gt;&lt;LI&gt;LEFT-JUSTIFIED&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something, or is there no equivalent?&lt;BR /&gt;Does anyone know, if there are plans to make all functionalities of "WRITE TO" available for "string templates"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps. The string expression "ALIGN = LEFT" is not the same as "WRITE ... TO... LEFT JUSTIFIED".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 09:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947253#M1966108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-04T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: String templates - missing functionalities?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947254#M1966109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formatting option "align = left" will replace LEFT-JUSTIFIED, but for UNIT I can't find an option .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 12:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947254#M1966109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-04T12:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: String templates - missing functionalities?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947255#M1966110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Thanks for your reply. But "ALIGN = LEFT" has different behavior regarding leading zeros&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I have to correct that. You are right.&lt;/P&gt;&lt;P&gt;I made further tests and found out that "ALIGN = LEFT" is equivalent to LEFT-JUSTIFIED.&lt;/P&gt;&lt;P&gt;The difference, that a saw was coming from a conversion exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So thanks again &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 12:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947255#M1966110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-04T12:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: String templates - missing functionalities?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947256#M1966111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That brings me to another difference. "WRITE TO" does an implicit conversion (when the underlying domain is assigned to a conversion exit). "string templates" do not provide a functionality to call conversion exits (except ALPHA conversion).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 13:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947256#M1966111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-04T13:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: String templates - missing functionalities?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947257#M1966112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say it's mainly the conversion routines. But since string formatting should not be mixed up with screen handling, that's OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And UNIT, well, well. Look at its documentation and forget it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, the string templates should have it all and more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 17:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947257#M1966112</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2016-10-04T17:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: String templates - missing functionalities?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947258#M1966113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Horst Keller wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'd say it's mainly the conversion routines. But since string formatting should not be mixed up with screen handling, that's OK.&amp;nbsp; &lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Horst Keller wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And UNIT, well, well. Look at its documentation and forget it ...&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, after reading the documentation of UNIT carefully I think to understand what you mean.&lt;/P&gt;&lt;P&gt;Nobody can want to reimplement such a strange and implicit behavior for string templates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some functionalities and bad implicit behavior of WRITE TO that are not worth being covered by string templates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 18:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947258#M1966113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-04T18:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: String templates - missing functionalities?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947259#M1966114</link>
      <description>&lt;P&gt;So previously when you would output a quantity field (e.g. 99.000) with a unit of EA&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE qty UNIT 'EA'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which would output 99 instead of 99.000&lt;/P&gt;&lt;P&gt;To achieve the same in a String Template&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;|{ qty STYLE = SIMPLE }|.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which will retain any decimals if present, otherwise will just output the whole number.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 13:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-missing-functionalities/m-p/11947259#M1966114</guid>
      <dc:creator>peter_collins3</dc:creator>
      <dc:date>2020-09-23T13:32:42Z</dc:date>
    </item>
  </channel>
</rss>

