<?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 ABAP  Programing: String Concatenation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666593#M2016045</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;*Code for string concatenation.&lt;/P&gt;
  &lt;P&gt;DATA: S5, S6 TYPE STRING.&lt;/P&gt;
  &lt;P&gt;S5 = 'SAP'.&lt;BR /&gt;S6 = 'ABAP'.&lt;BR /&gt;WRITE / S5 &amp;amp;&amp;amp; S6. &lt;/P&gt;
  &lt;P&gt;OUTPUT: SABAP&lt;/P&gt;
  &lt;P&gt;WHY ONLY FIRST CHARACTER OF STRING 'S5' IS CONCATINATED WITH STRING 'S6' ?&lt;/P&gt;
  &lt;P&gt;PLEASE EXPLAIN.&lt;/P&gt;
  &lt;P&gt;THANK YOU.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 19:18:15 GMT</pubDate>
    <dc:creator>kk_india_2023</dc:creator>
    <dc:date>2023-02-14T19:18:15Z</dc:date>
    <item>
      <title>ABAP  Programing: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666593#M2016045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;*Code for string concatenation.&lt;/P&gt;
  &lt;P&gt;DATA: S5, S6 TYPE STRING.&lt;/P&gt;
  &lt;P&gt;S5 = 'SAP'.&lt;BR /&gt;S6 = 'ABAP'.&lt;BR /&gt;WRITE / S5 &amp;amp;&amp;amp; S6. &lt;/P&gt;
  &lt;P&gt;OUTPUT: SABAP&lt;/P&gt;
  &lt;P&gt;WHY ONLY FIRST CHARACTER OF STRING 'S5' IS CONCATINATED WITH STRING 'S6' ?&lt;/P&gt;
  &lt;P&gt;PLEASE EXPLAIN.&lt;/P&gt;
  &lt;P&gt;THANK YOU.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 19:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666593#M2016045</guid>
      <dc:creator>kk_india_2023</dc:creator>
      <dc:date>2023-02-14T19:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP  Programing: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666594#M2016046</link>
      <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions.&lt;/P&gt;&lt;P&gt;As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement &amp;amp; additional resources to your reference that can really benefit you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Profile &lt;A href="https://developers.sap.com/tutorials/community-profile.html"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Tips for Questions: &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Consider to take our Q&amp;amp;A tutorial at: &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope you find this advice useful, and we're happy to have you as part of SAP Community!&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 19:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666594#M2016046</guid>
      <dc:creator>AlexGourdet</dc:creator>
      <dc:date>2023-02-14T19:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP  Programing: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666595#M2016047</link>
      <description>&lt;P&gt;You'd better use the &lt;STRONG&gt;debugger&lt;/STRONG&gt;. You would see that the issue is not with &amp;amp;&amp;amp; but with DATA (how you used it).&lt;/P&gt;&lt;P&gt;You need to learn the effect of the &lt;STRONG&gt;comma&lt;/STRONG&gt; and the effect of declaring a variable without an explicit type (implicit typing):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: S5, S6 TYPE STRING.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenchained_statements.htm"&gt;ABAP Keyword Documentation: Chained Statements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapdata_simple.htm"&gt;ABAP Keyword Documentation: DATA, TYPE abap_type&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 19:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666595#M2016047</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-02-14T19:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP  Programing: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666596#M2016048</link>
      <description>&lt;P&gt;or use the good quote&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data(S5) = `SAP`.&amp;lt;br&amp;gt;data(S6) = `ABAP`.&amp;lt;br&amp;gt;WRITE / S5 &amp;amp;&amp;amp; S6.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2023 06:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666596#M2016048</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2023-02-15T06:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP  Programing: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666597#M2016049</link>
      <description>&lt;P&gt;Thank You Sandra Rossi...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 13:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666597#M2016049</guid>
      <dc:creator>kk_india_2023</dc:creator>
      <dc:date>2023-02-15T13:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP  Programing: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666598#M2016050</link>
      <description>&lt;P&gt;Hi Sandra Rossi,&lt;/P&gt;&lt;P&gt;DATA: S5, S6 TYPE STRING.&lt;/P&gt;&lt;P&gt;Here Object S5 is not a STRING data type.&lt;/P&gt;&lt;P&gt;By default S5 is declared as a Character data type and hence S5 can store only single character.&lt;/P&gt;&lt;P&gt;This was the reason why I was getting the Warning: The VALUE specification is longer than the corresponding field. The VALUE specification will only be passed to the field length! &lt;/P&gt;&lt;P&gt;I thought that, I must declare S5 as a character array by specifying its length to store multiple characters such as:&lt;/P&gt;&lt;P&gt;DATA: S5(5), S6 TYPE STRING.&lt;/P&gt;&lt;P&gt;I corrected my mistake by self learning. If my understanding is still wrong, please correct me.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 06:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666598#M2016050</guid>
      <dc:creator>kk_india_2023</dc:creator>
      <dc:date>2023-02-28T06:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP  Programing: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666599#M2016051</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;kk_india_2023&lt;/SPAN&gt; I'm glad to see that you have solved the issue. Yes you're right in everything you said. Congrats and thanks for the feedback &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For information, concerning S5(5), the trend is to avoid this short syntax form and to use the explicit longest one S5 TYPE C LENGTH 5.&lt;/P&gt;&lt;P&gt;(ABAP documentation says: "For reasons of legibility, it is best to include all information and always use the addition LENGTH instead of parentheses to specify the length len.")&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 12:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666599#M2016051</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-02-28T12:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP  Programing: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666600#M2016052</link>
      <description>&lt;P&gt;Hi Sandra Rossi,&lt;/P&gt;&lt;P&gt;Yes I will follow the explicit longest syntax. Thanks a lot for correcting my mistakes. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;KIRANKUMAR&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 13:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-programing-string-concatenation/m-p/12666600#M2016052</guid>
      <dc:creator>kk_india_2023</dc:creator>
      <dc:date>2023-02-28T13:55:23Z</dc:date>
    </item>
  </channel>
</rss>

