<?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 replace apostrophe with space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921701#M1484391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rammi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi have tried with the below code and I am getting the proper output as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa_maktx(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_maktx = 'as"dfg'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '"' IN WA_MAKTX WITH SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/2 wa_maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  asdfg&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;Md Ziauddin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 May 2010 11:29:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-24T11:29:06Z</dc:date>
    <item>
      <title>How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921692#M1484382</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 need to replace the Apostrophe in Material description with space. I am getting a error as the text literal .....longer than 255.&lt;/P&gt;&lt;P&gt;highly appreciated for immediate response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ''' IN WA_MAKTX WITH ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;RRR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 10:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921692#M1484382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T10:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921693#M1484383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rammi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ''' IN WA_MAKTX WITH &lt;STRONG&gt;SPACE&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 10:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921693#M1484383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T10:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921694#M1484384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
REPLACE ALL OCCURRENCES OF ''' IN WA_MAKTX WITH ` `. "use backquotes and space character in b/w
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 10:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921694#M1484384</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-05-24T10:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921695#M1484385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pravin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not with Space it is coz of the single quotes open quote '''. This is causing the problem how to overcome this.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ''' IN WA_MAKTX WITH SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;rrr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 10:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921695#M1484385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T10:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921696#M1484386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you simply use doubled apostrophes as to suppress its special meaning&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: str_var type string VALUE 'some text with '' and another '' '.

write: 'Before:' , str_var.

replace all OCCURRENCES OF '''' in str_var with ` `.

write: / 'After:', str_var.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 10:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921696#M1484386</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-05-24T10:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921697#M1484387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pciak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried with 2 quotes of '''' syntax is fine but when i debug it is not replacing the apostrophe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;rrr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 11:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921697#M1484387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T11:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921698#M1484388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just curious if you tried the above? If you debug you would see that &lt;EM&gt;str_var&lt;/EM&gt; contains initially two apostrophes, after the &lt;EM&gt;replace&lt;/EM&gt; statement its not there anymore. I am missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 11:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921698#M1484388</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-05-24T11:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921699#M1484389</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;What MARCIN had suggested will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Still problem persists create a text element with the value of apostrophe ie. '&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;eg text element TEXT-001 = '&lt;/STRONG&gt;                                       " create the text element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPLACE ALL OCCURRENCES OF TEXT-001 IN &amp;lt;YOUR STRING&amp;gt; WITH SPACE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 11:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921699#M1484389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T11:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921700#M1484390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
replace all occurrences of `'` in lv_string with ` `.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 11:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921700#M1484390</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-05-24T11:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921701#M1484391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rammi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi have tried with the below code and I am getting the proper output as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa_maktx(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_maktx = 'as"dfg'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '"' IN WA_MAKTX WITH SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/2 wa_maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  asdfg&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;Md Ziauddin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 11:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921701#M1484391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T11:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace apostrophe with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921702#M1484392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rammi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LV_STRING TYPE STRING.&lt;/P&gt;&lt;P&gt;DATA: REP_STRING TYPE STRING .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REP_STRING = ''''.&lt;/P&gt;&lt;P&gt;LV_STRING = 'some'' text '' have replace  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;  SEARCH LV_STRING FOR REP_STRING.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    REPLACE REP_STRING WITH SPACE INTO LV_STRING.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nilay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 18:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-apostrophe-with-space/m-p/6921702#M1484392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T18:09:50Z</dc:date>
    </item>
  </channel>
</rss>

