<?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: replace the tabular space with a comma in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846247#M924725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       In our code, use the following Syntax,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPLACE ALL OCCURENCES OF ' ' WITH ',' RESPECTING BLANKS.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful to you. If you need further information, revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nagaraj T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 09:50:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-20T09:50:07Z</dc:date>
    <item>
      <title>replace the tabular space with a comma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846245#M924723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a string have values separated by tabular spaces eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;19    asd    23    adf    23    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to replace the string like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;19,asd,23,adf,23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 09:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846245#M924723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T09:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: replace the tabular space with a comma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846246#M924724</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;Use statement REPLACE ALL OCCURANCES OF ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 09:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846246#M924724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T09:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: replace the tabular space with a comma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846247#M924725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       In our code, use the following Syntax,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPLACE ALL OCCURENCES OF ' ' WITH ',' RESPECTING BLANKS.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful to you. If you need further information, revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nagaraj T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 09:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846247#M924725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T09:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: replace the tabular space with a comma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846248#M924726</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;use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: w_text TYPE char10.&lt;/P&gt;&lt;P&gt;  CONSTANTS: c_colon TYPE char1 VALUE ','.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURRENCES OF &lt;STRONG&gt;cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/STRONG&gt; IN w_text WITH c_colon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/STRONG&gt; takes tablular space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sriram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Srirama Murthy Maddirala on May 20, 2008 11:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 09:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846248#M924726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: replace the tabular space with a comma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846249#M924727</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;Kindly use the following sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: VAR1(10) VALUE 'sau rabh',&lt;/P&gt;&lt;P&gt;      LENGTH TYPE I,&lt;/P&gt;&lt;P&gt;      START TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LENGTH = STRLEN( VAR1 ).&lt;/P&gt;&lt;P&gt;DO LENGTH TIMES.&lt;/P&gt;&lt;P&gt;  IF VAR1+START(1) EQ SPACE.&lt;/P&gt;&lt;P&gt;    VAR1+START(1) = ','.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  START = START + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the logic to get the blank space is tedious but the problem is u cannot use REPLACE statement directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopefully it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 09:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846249#M924727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: replace the tabular space with a comma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846250#M924728</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 logic.&lt;/P&gt;&lt;P&gt;DATA: var1(80) VALUE '19  asd  23  adf  23',&lt;/P&gt;&lt;P&gt;length TYPE i,&lt;/P&gt;&lt;P&gt;start TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE var1.&lt;/P&gt;&lt;P&gt;length = strlen( var1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO length TIMES.&lt;/P&gt;&lt;P&gt;  IF var1+start(1) EQ space.&lt;/P&gt;&lt;P&gt;    var1+start(1) = ','.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  start = start + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: var1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;N M Poojari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 10:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-the-tabular-space-with-a-comma/m-p/3846250#M924728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T10:17:38Z</dc:date>
    </item>
  </channel>
</rss>

