<?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: how to concate string variable? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689811#M888477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for help me out,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        but what is a4 will u let me know plz....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2008 05:37:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-07T05:37:53Z</dc:date>
    <item>
      <title>how to concate string variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689808#M888474</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         anyone help me out in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a prg. like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var1(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var2(2) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var3(2) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = 'abcd'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var2 = 'bp'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3 = 'bp'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want the output like.....   abcd                bpbp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it means i want to leave 16 spaces after abcd in this case. if var1 is having content like ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abcde than i want to leave 15 space after abcde because total length of var1 is 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i simply concate output would be abcdbpbp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if i count the no. of spaces i need to leave after abcd and create one date object of type c at runtime , it would work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how should i create.....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz let me know ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saurin shah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 04:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689808#M888474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T04:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to concate string variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689809#M888475</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;Please follow the steps below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a1 = 'abcd' (Total length is 20)&lt;/P&gt;&lt;P&gt;   a2 = 'de'&lt;/P&gt;&lt;P&gt;   a3 = 'fg'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   lv_strlenA = strlen(a1)&lt;/P&gt;&lt;P&gt;   lv_strlenA = 20 - lv_strlenA&lt;/P&gt;&lt;P&gt;   a4+lv_strlenA = a2.&lt;/P&gt;&lt;P&gt;   concatenate a1 a4 a3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps....Please check and let me know if this works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 05:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689809#M888475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T05:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to concate string variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689810#M888476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurin...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are 2 main keywords used with concatenate&lt;/P&gt;&lt;P&gt;(1) ...."SEPARATED BY"&lt;/P&gt;&lt;P&gt;(2) ...."RESPECTING BLANKS"&lt;/P&gt;&lt;P&gt;in this case if you do the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy the code into a test program......................&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;data: var1(20) type c.&lt;/P&gt;&lt;P&gt;data: var2(2) type c.&lt;/P&gt;&lt;P&gt;data: var3(2) type c.&lt;/P&gt;&lt;P&gt;data : var4(4) type c.&lt;/P&gt;&lt;P&gt;data: var type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = 'abcd'.&lt;/P&gt;&lt;P&gt;var2 = 'bp'.&lt;/P&gt;&lt;P&gt;var3 = 'bp'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate var2 var3 into var4.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to get bpbp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate var1 var4 into var separated by SPACE.&lt;/P&gt;&lt;P&gt;write var.&lt;/P&gt;&lt;P&gt;clear var.&lt;/P&gt;&lt;P&gt;concatenate var1 var4 into var respecting blanks.&lt;/P&gt;&lt;P&gt;write var.&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;keep changing the value of var1 in the code to see how you can use the 2 options to your advantage...and which one suits your requirement best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output1: " using separated by space"&lt;/P&gt;&lt;P&gt;abcd bpbp&lt;/P&gt;&lt;P&gt;here there will be 1 spacce after abcd&lt;/P&gt;&lt;P&gt;so it is abcde&lt;/P&gt;&lt;P&gt;it will be &lt;/P&gt;&lt;P&gt;abcde bpbp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output2: " using respecting blanks"&lt;/P&gt;&lt;P&gt;abcd                     bpbp&lt;/P&gt;&lt;P&gt;ie,after abcd there will be 16 more blank spaces since its total length is 16...&lt;/P&gt;&lt;P&gt;using this keyword the number of space is not condensed but kept intact&lt;/P&gt;&lt;P&gt;but if there are 20 characters in the var1 then there will be no space eg: abcdefghijklmnopqrsbpbp...for 19 characters it will be abcdefghijklmnopqr bpbp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can decide which layout you need once you write the code and see th output for yourself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check,revert and reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 05:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689810#M888476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T05:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to concate string variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689811#M888477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for help me out,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        but what is a4 will u let me know plz....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 05:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689811#M888477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T05:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to concate string variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689812#M888478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A4 is a new field which has the values of A2 with blank spaces prefixed to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 05:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concate-string-variable/m-p/3689812#M888478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T05:52:59Z</dc:date>
    </item>
  </channel>
</rss>

