<?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: Assigning single quotation to variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953334#M696533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can use concatenate statement and add quotations to your variable&lt;/P&gt;&lt;P&gt;CONCATENATE  '"' v_kslnn'"'             &lt;/P&gt;&lt;P&gt;             INTO v_kslnn .&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;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2007 11:20:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-23T11:20:15Z</dc:date>
    <item>
      <title>Assigning single quotation to variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953332#M696531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to assign quotation to an character datatype variable? Give me an example statement..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 11:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953332#M696531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T11:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning single quotation to variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953333#M696532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just add ' ' with variable if it is char type&lt;/P&gt;&lt;P&gt;______________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you need to insert in the string veriable the special character '. &lt;/P&gt;&lt;P&gt;variable = '''.&lt;/P&gt;&lt;P&gt;Try as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: L_COM VALUE ''''.&lt;/P&gt;&lt;P&gt;__________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA A.&lt;/P&gt;&lt;P&gt;A = ''''.&lt;/P&gt;&lt;P&gt;WRITE:/ A. &lt;/P&gt;&lt;P&gt;___________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Declare a variable and assign the special character to that variable.&lt;/P&gt;&lt;P&gt;2)Then use the CONCATENATE option to get the value in the string variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just copy and execute this code.&lt;/P&gt;&lt;P&gt;REPORT zztest.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA : temp(1) VALUE ''''.&amp;lt;/b&amp;gt; Decalare your special character &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : variable TYPE string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;variable = 'SDNSAP'.&lt;/P&gt;&lt;P&gt;CONCATENATE temp variable temp INTO variable.&lt;/P&gt;&lt;P&gt;WRITE : / variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is&lt;/P&gt;&lt;P&gt;'SDNSAP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful........&lt;/P&gt;&lt;P&gt;        Minal Nampalliwar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 11:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953333#M696532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T11:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning single quotation to variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953334#M696533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can use concatenate statement and add quotations to your variable&lt;/P&gt;&lt;P&gt;CONCATENATE  '"' v_kslnn'"'             &lt;/P&gt;&lt;P&gt;             INTO v_kslnn .&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;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 11:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953334#M696533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T11:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning single quotation to variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953335#M696534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_prg5.

DATA: w_data TYPE char50.

DATA:  word1(15) TYPE c,
      c_comma       type c value ''''.


word1 = 'firstword'.

CONCATENATE c_comma word1 c_comma INTO w_data.

WRITE:/ w_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 11:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assigning-single-quotation-to-variable/m-p/2953335#M696534</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2007-10-23T11:32:07Z</dc:date>
    </item>
  </channel>
</rss>

