<?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: why the double space? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377551#M1993992</link>
    <description>&lt;P&gt;That should be a bug on platform you ran it (ADT?).&lt;/P&gt;&lt;P&gt;Same code on 7.52 SAPGUI Java actually produces this. Extra space isn't needed.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1886834-javagui.png" /&gt;&lt;/P&gt;&lt;P&gt;Try storing string template from OLD into a new string first, without extra space, and writing that variable value (also checking debug value).&lt;/P&gt;&lt;P&gt;WRITE statement is old, String Template is new, sometimes shift happens (pun intended).&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 20:37:02 GMT</pubDate>
    <dc:creator>thalesvb</dc:creator>
    <dc:date>2021-02-10T20:37:02Z</dc:date>
    <item>
      <title>string templates: why the double space?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377550#M1993991</link>
      <description>&lt;P&gt;Trying out an example from an &lt;A href="https://blogs.sap.com/2013/12/06/abap-mesh-in-740-connect-your-internal-table-as-bo-node-association/" target="_blank"&gt;old post&lt;/A&gt; I added a small twist, that is string templates.&lt;/P&gt;
  &lt;P&gt;The meshed approach:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;WRITE: / |Jerry manager name: { line-name }, Salary: { line-salary } (MESH)|.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The non-mesh write is:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;WRITE: / |Jerry manager name: { &amp;lt;manager&amp;gt;-name }, Salary:  { &amp;lt;manager&amp;gt;-salary } (OLD)|.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1888763-2021-02-10-20-47-45-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I noticed that to properly line up the two writes I had to add an &lt;A href="https://github.com/AndreaBorgia-Abo/ABAP-Examples/blob/main/src/blog/zabo_mesh.prog.abap" target="_blank"&gt;extra blank space.&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;How so?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 19:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377550#M1993991</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-02-10T19:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: string templates: why the double space?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377551#M1993992</link>
      <description>&lt;P&gt;That should be a bug on platform you ran it (ADT?).&lt;/P&gt;&lt;P&gt;Same code on 7.52 SAPGUI Java actually produces this. Extra space isn't needed.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1886834-javagui.png" /&gt;&lt;/P&gt;&lt;P&gt;Try storing string template from OLD into a new string first, without extra space, and writing that variable value (also checking debug value).&lt;/P&gt;&lt;P&gt;WRITE statement is old, String Template is new, sometimes shift happens (pun intended).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 20:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377551#M1993992</guid>
      <dc:creator>thalesvb</dc:creator>
      <dc:date>2021-02-10T20:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: string templates: why the double space?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377552#M1993993</link>
      <description>&lt;P&gt;Wow, I am really surprised! I had thought of the weirdest possible explanations involving odd interactions between field symbols and templates, anything but a platform issue! You're correct, it is just as you say, also with the embedded Windows GUI in Eclipse.&lt;/P&gt;&lt;P&gt;It gets weirder, though, with double space:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE: / |Jerry manager name: { line-name }, Salary: { line-salary } (MESH)|.
WRITE: / |Jerry manager name: { &amp;lt;manager&amp;gt;-name }, Salary:  { &amp;lt;manager&amp;gt;-salary } (OLD, ADT)|.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in ADT gives:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Jerry manager name: Jason, Salary: 3000 (MESH)&amp;lt;br&amp;gt;Jerry manager name: Jason, Salary: 3000 (OLD, ADT)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but &lt;A href="https://github.com/AndreaBorgia-Abo/ABAP-Examples/commit/630db0fdd98956e1d27afceeeb4acb12b6b34372" target="_blank"&gt;using it twice&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE: / |Jerry manager name: { line-name }, Salary: { line-salary } (MESH)|.
WRITE: / |Jerry manager name: { &amp;lt;manager&amp;gt;-name }, Salary:  { &amp;lt;manager&amp;gt;-salary } (OLD, ADT)|.
WRITE: / |Jerry manager name: { &amp;lt;manager&amp;gt;-name }, Salary: { &amp;lt;manager&amp;gt;-salary } (OLD, GUI)|.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;gives different results within ADT:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Jerry manager name: Jason, Salary: 3000 (MESH)
Jerry manager name: Jason, Salary: 3000 (OLD, ADT)
Jerry manager name: Jason, Salary: 3000 (OLD, GUI)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Of course in this case the GUI is misaligned:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1891456-2021-02-11-09-08-59-eclipse-workspace-npl-001-deve.png" /&gt;&lt;/P&gt;&lt;P&gt;If anyone knows the proper place for reporting this issue, I'm down for filing a report.&lt;/P&gt;&lt;P&gt;The pun is equally appreciated, thanks: a funny correct answer wins over a boring correct answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 08:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377552#M1993993</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-02-11T08:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: string templates: why the double space?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377553#M1993994</link>
      <description>&lt;P&gt;I think only by Support Incident under BC-DWB-AIE component tree (got it from KBA &lt;A href="https://launchpad.support.sap.com/#/notes/1856565"&gt;1856565&lt;/A&gt; mentioned in &lt;A href="https://blogs.sap.com/2019/04/15/important-changes-to-the-abap-development-tools-adt-release-cycle/" target="_blank"&gt;ADT release cycle blog&lt;/A&gt; + other &lt;A href="https://www.google.com/?q=BC-DWB-AIE%20site:blogs.sap.com" target="_blank"&gt;blogs mentioning to open file other ADT problems under that component&lt;/A&gt; root).&lt;/P&gt;&lt;P&gt;This deserves a question by itself (or a scavenger hunt through old questions, no ADT tag to help in that quest &lt;SPAN class="mention-scrubbed"&gt;c5e08e0478aa4727abc4482f5be390b2&lt;/SPAN&gt;).&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 20:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377553#M1993994</guid>
      <dc:creator>thalesvb</dc:creator>
      <dc:date>2021-02-15T20:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: string templates: why the double space?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377554#M1993995</link>
      <description>&lt;P&gt;Never mind: so far I could only reproduce this issue with ADT against my 7.52SP04 demo VM.&lt;/P&gt;&lt;P&gt;With both HANA on premise (S4CORE 104) and in cloud (Steampunk), the ADT output is consistent with the GUI and as expected. Weirdly amusing, but not worth the effort.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 14:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-templates-why-the-double-space/m-p/12377554#M1993995</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-02-16T14:27:17Z</dc:date>
    </item>
  </channel>
</rss>

