<?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: Replacing single quotes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517685#M238103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey , what if my character i 'subh'eer'?&lt;/P&gt;&lt;P&gt;and I want to get rid of ' in the middle.&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>Fri, 04 Aug 2006 18:57:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-04T18:57:33Z</dc:date>
    <item>
      <title>Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517682#M238100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get rid of single quotes ie, ', from my text field and replace it with blank, any idea how the code should look like, double quotes have no issues , '"', works but what to write anout  single quotes,''' doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry , if it sounds very easy, may be I am missing out soemthing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 18:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517682#M238100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T18:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517683#M238101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tina,  ABAP is a little funny when dealing with single quotes.  Check the following program, notice that for one single 'quote,  we need to use 2 and then of course wrap with quotes which give you a total of 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


data:  text type string.

text = 'This is a string with a '' in it, lets get rid of it'.


replace '''' with space into text.


write:/ text.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 18:38:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517683#M238101</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-04T18:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517684#M238102</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;see the below program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  Y_TEST.

data: text(10).
text =  'sudh''eer'.
write: text.

replace '''' with SPACE into text.

write:/ text.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 18:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517684#M238102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T18:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517685#M238103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey , what if my character i 'subh'eer'?&lt;/P&gt;&lt;P&gt;and I want to get rid of ' in the middle.&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>Fri, 04 Aug 2006 18:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517685#M238103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T18:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517686#M238104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to pass a string with single quote to a variable say 'text's' to v_data it considers the first occurence of ' after t as the end of the text and it gives u a syntax error.&lt;/P&gt;&lt;P&gt;data: v_data type string value 'text's'.&lt;/P&gt;&lt;P&gt;error: unable to interpret s after '.&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 18:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517686#M238104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T18:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517687#M238105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the ABAP command if you wish to use single quotes a single quote previous to it indicates that you wish to enter a single quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE l_string with ''' '.&lt;/P&gt;&lt;P&gt;means replacing the first occurence of single quote to space. Surely if you wish to replace mulitple occurence better use TRANSLATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517687#M238105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T19:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517688#M238106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi tina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using the Translate command with which u can replace all the occurences..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517688#M238106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T19:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517689#M238107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meant my work area is holding value like &lt;/P&gt;&lt;P&gt;wa = "ajsja"xaj'asa . These are all values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa-txt ca '"'.&lt;/P&gt;&lt;P&gt;    REPLACE all occurrences of '"' in wa-txt WITH space.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if wa-txt ca `'`.&lt;/P&gt;&lt;P&gt;    REPLACE all occurrences of `'` in wa-txt WITH space.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shoud this not work.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517689#M238107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T19:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517690#M238108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel the below would give syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa-txt ca `'`.&lt;/P&gt;&lt;P&gt;REPLACE all occurrences of `'` in wa-txt WITH space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using&lt;/P&gt;&lt;P&gt;if wa-txt ca `''`.&lt;/P&gt;&lt;P&gt;REPLACE all occurrences of `''` in wa-txt WITH space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517690#M238108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T19:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517691#M238109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the second statement will not work.  You must have a total of 4 quotes there.  The first one where you are looking for double quotes will work fine.  The second must be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if wa-txt ca ''''.
REPLACE all occurrences of '''' in wa-txt WITH space.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517691#M238109</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-04T19:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517692#M238110</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;This statement works, the second one is tild ` and not', also I ran in debug mode, one issue is it does not insert spaces , it remves the character just. I actually wanted aga'aah to aga aah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517692#M238110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517693#M238111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not use tild, you must code it like above with all quotes, 4 of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517693#M238111</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-04T19:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517694#M238112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anurag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to replace both " and ', so '"' is fine and for the other `'` should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517694#M238112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T19:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517695#M238113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use the following if you want to keep the space left vacant by the quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if wa-txt ca ''''.
translate wa-txt using ''' '.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517695#M238113</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-04T19:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517696#M238114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take this program for example, it remove both single quotes and double quotes and leaves the spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0002.

data: wa-txt type string.

wa-txt = '"This" aga''aah'.

if wa-txt ca '"'.
  translate wa-txt using '" '.
endif.


if wa-txt ca ''''.
  translate wa-txt using ''' '.
endif.

write:/ wa-txt.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517696#M238114</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-04T19:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517697#M238115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so tild doesn't work in 46c, but it definitly does work in a WebAS 7.0.  Just tested, it works.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0002.

data: wa-txt type string.

wa-txt = `"This" aga'aah`.

if wa-txt ca `"`.
  translate wa-txt using `" `.
endif.


if wa-txt ca `'`.
  translate wa-txt using `' `.
endif.

write:/ wa-txt.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517697#M238115</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-04T19:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517698#M238116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok...it is nice to understand that ur prb is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 20:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517698#M238116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T20:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517699#M238117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First one with out tild, if my character is '"This" aga'aah', its gives error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 20:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517699#M238117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T20:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517700#M238118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 20:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517700#M238118</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-04T20:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing single quotes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517701#M238119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  The literals can be assigned only &lt;/P&gt;&lt;P&gt;1)between 2 single Quotes or as you have explored &lt;/P&gt;&lt;P&gt;2)between 2 tildas,&lt;/P&gt;&lt;P&gt; eg: 'HIII SSSSS'.&lt;/P&gt;&lt;P&gt;     or &lt;SUB&gt;HIII SSSSS&lt;/SUB&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now When u r assigning a string which contains single qoutes &amp;lt;b&amp;gt;(but not a pair of consecutive single qoutes )&amp;lt;/b&amp;gt;say &amp;lt;HII' SS'&amp;gt; then the assignment is not possible by the first method as the compiler ont be able distinguish the actual end of the Assignment.It can be done by using the second method(As Rich had shown).&lt;/P&gt;&lt;P&gt;But When the string contains a pair of 2 consecutive single qoutes like &amp;lt;HI THIS IS ''SDN''&amp;gt;&lt;/P&gt;&lt;P&gt;then it can be done using the first Method.The actual data in the Variable will be then,&lt;/P&gt;&lt;P&gt;THIS IS 'SDN'.&lt;/P&gt;&lt;P&gt;If u use the second Method,the actual data will be  &lt;/P&gt;&lt;P&gt;THIS IS ''SDN''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The `` tells the compiler to consider the entire text as the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Samson Moses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 12:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-single-quotes/m-p/1517701#M238119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T12:37:29Z</dc:date>
    </item>
  </channel>
</rss>

