<?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: Concatenate with empty string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722467#M1672853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, I Tried that logic also, but it gives the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6038^2012^03^9000000200^000^100^^9900^0000000000010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vallamuthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Apr 2012 10:29:35 GMT</pubDate>
    <dc:creator>vallamuthu_madheswaran2</dc:creator>
    <dc:date>2012-04-21T10:29:35Z</dc:date>
    <item>
      <title>Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722463#M1672849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've concatenate around 10 strings,&amp;nbsp; if any one of the string is empty then it concatenate the space also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONCATENATE w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;bukrs&amp;nbsp; w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;month&amp;nbsp;&amp;nbsp; w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;matnr w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;orgcom&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;orggeo w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;destcom&amp;nbsp; w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;destgeo w_report&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;units &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;l_output &lt;SPAN class="L0S52"&gt;SEPARATED &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BY &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'^'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;Current Output is:&amp;nbsp; 6038^2012^03^9000000200^000^100^^9900^0000000000010&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;Expecting result is: 6038^2012^03^9000000200^000^100^&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^9900^0000000000010&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;Vallamuthu &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 09:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722463#M1672849</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2012-04-21T09:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722464#M1672850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vallamuthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's not possible with concatenate statement. But try with ASCII codes ie in place of 'space' use alt+32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 09:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722464#M1672850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-21T09:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722465#M1672851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide the example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vallamthu M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 09:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722465#M1672851</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2012-04-21T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722466#M1672852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vallamuthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you only concatenating numbers? If yes, maybe you can do this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Check the variables if any of them is initial. If yes, fill them with 'x'.&lt;/LI&gt;&lt;LI&gt;Concatenate the variables.&lt;/LI&gt;&lt;LI&gt;Replace 'x' with space using REPLACE.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 10:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722466#M1672852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-21T10:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722467#M1672853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, I Tried that logic also, but it gives the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6038^2012^03^9000000200^000^100^^9900^0000000000010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vallamuthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 10:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722467#M1672853</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2012-04-21T10:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722468#M1672854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vallamuthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use RESPECTING BLANKS&amp;nbsp; addition of concatenate statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Jitendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 10:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722468#M1672854</guid>
      <dc:creator>jitendra_it</dc:creator>
      <dc:date>2012-04-21T10:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722469#M1672855</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;if replacing blanks dont work, you can do the following things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all your strings before concatinate do&lt;/P&gt;&lt;P&gt;TRANSLATE ur string name USING ' #'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After concatinate do this for the reculted string,&lt;/P&gt;&lt;P&gt;TRANSLATE The Result String USING '# '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked for me.&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 11:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722469#M1672855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-21T11:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722470#M1672856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jitendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, RESPECTING BLANKS give space inbetween all the variables. I need to concatenate the blank variable as blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vallamuthu M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 11:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722470#M1672856</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2012-04-21T11:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722471#M1672857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1 type string value '001',&lt;/P&gt;&lt;P&gt;T2 type string value '002',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TR type string.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate t1 'perss alt button and hold press number 32(This will create spce)'&amp;nbsp; t2 into tr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*If it fails then take a dummy variable(extra) t3 type string value '&amp;nbsp;&amp;nbsp;&amp;nbsp; D'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " remember before D there should be spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate t1 t3 t2 into tr.&lt;/P&gt;&lt;P&gt;replace all occurances of 'D' in TR with space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 11:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722471#M1672857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-21T11:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate with empty string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722472#M1672858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;You would also have achieved this with a single assignment...&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;DIV&gt;DATA: l_output &lt;SPAN class="L0S52"&gt;TYPE string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;l_output &lt;SPAN class="L0S55"&gt;= w_report&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;l_output&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;In case a special separator is needed, you can add dummy fields in your w_report structure to hold that value.&lt;/DIV&gt;&lt;DIV&gt;e.g.&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;TYPES&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;ts_report&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bukrs&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy2 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;"...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;END OF ts_report.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;DATA: w_report type ts_report.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;w_report-dummy1 = w_report-dummy2 = ... = '^'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Cheers,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Manu.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 16:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-with-empty-string/m-p/8722472#M1672858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-21T16:02:25Z</dc:date>
    </item>
  </channel>
</rss>

