<?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: strings in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078659#M975209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz see my response below&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 14:48:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-30T14:48:05Z</dc:date>
    <item>
      <title>strings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078654#M975204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;I have some strings in an internal table and i am using concatenate to get the strings in the following format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format : Mr&lt;SUP&gt;firstname&lt;/SUP&gt;secondname&lt;SUP&gt;middlename&lt;/SUP&gt;age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now this middle name may not always exist for all records, and in that case i need a space in that section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : Mr&lt;SUP&gt;ABC&lt;/SUP&gt;DEFGH^ ^33&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present my output is  Mr&lt;SUP&gt;ABC&lt;/SUP&gt;DEFGH^^33, i want it the above way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i traverse through the string till the third ^ and insert a space there..the first name n second name lengths vary with each record..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 14:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078654#M975204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T14:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078655#M975205</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;You can Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate first two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before concatenating MiddleNAme write this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-middle is initial.&lt;/P&gt;&lt;P&gt;concatenate string itab-middle into string separated by space.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;concatenate string itab-middle into string.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will definately help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 14:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078655#M975205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078656#M975206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fiirst check is Middlename has any value, than CONCATENATE accordingly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Middlename IS INITIAL.&lt;/P&gt;&lt;P&gt;CONCATENATE Mr firstname secondname space age INTO string SEPARATED BY '^'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CONCATENATE Mr firstname secondname middlename age INTO string SEPARATED BY '^'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 14:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078656#M975206</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-06-30T14:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078657#M975207</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;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. concatenate field 1 and field 2 into resulting string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Check wheather exists or not by IF...ENDIF. block&lt;/P&gt;&lt;P&gt;   If it exists then concatenate it or else do nothing. DON'T CONCATENATE SPACE , AS TRAILING SPACE IS NOT CONCATENATED . SO TAKE A FLAG VARIABLE AND SET ITS VALUE 1 (INITIALY KEEP IT IN 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If FLAG = 0 ---&amp;gt; concatenate age&lt;/P&gt;&lt;P&gt;   elseif Flag = 1 --&amp;gt; concatenate space age to the resulting string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will defenitely work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert me for any doubt.&lt;/P&gt;&lt;P&gt;Reward if found  helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban Bhattacharjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 14:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078657#M975207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T14:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078658#M975208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;I am using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-middle is initial.&lt;/P&gt;&lt;P&gt;concatenate 'Mr' Firstname secname SPACE age into text.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;concatenate 'Mr' Firstname secname middlename age into text.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And guess what my output doesn still have the space!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried replacing SPACE by ' ', still no luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 14:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078658#M975208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T14:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078659#M975209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz see my response below&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 14:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078659#M975209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T14:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078660#M975210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahul,&lt;/P&gt;&lt;P&gt;you can try this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;concatenate 'Mr' Firstname secname into text.
concatenate text age into text seperated by space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works for you&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 16:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strings/m-p/4078660#M975210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T16:54:20Z</dc:date>
    </item>
  </channel>
</rss>

