<?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>Question Re: String conversion to Char in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353300#M586923</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;SPAN style="color: #333333; font-size: 12px;"&gt;Try to use FM &lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;CONVERT_STRING_TO_TABLE.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 14:10:42 GMT</pubDate>
    <dc:creator>pranay570708</dc:creator>
    <dc:date>2016-05-25T14:10:42Z</dc:date>
    <item>
      <title>String conversion to Char</title>
      <link>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaq-p/1353295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the particular requirement that I want to convert a String type to a char type. Are there any standard functions in ABAP for that?&lt;/P&gt;&lt;P&gt;Any help on the topic will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2006 09:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaq-p/1353295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-29T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: String conversion to Char</title>
      <link>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353296#M586919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you need to have a FUnction Module to convert string to char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code. This would work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: a type string,&lt;/P&gt;&lt;P&gt;      b(5) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      a = 'Hello'.&lt;/P&gt;&lt;P&gt;      b = a .&lt;/P&gt;&lt;P&gt;      write b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your exact requirement??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2006 09:21:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353296#M586919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-29T09:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: String conversion to Char</title>
      <link>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353297#M586920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My undersatnding is thats not supported in ABAP. &lt;/P&gt;&lt;P&gt; You can call a C program from ABAP and that can help you do that. In C and C++ you can convert a string into a char is very much possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Btw if you are going to convert a string into a char how would you define your Char variable? How will you come to know the length of the string and dynamically define your Char variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Rgds&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2006 09:27:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353297#M586920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-29T09:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: String conversion to Char</title>
      <link>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353298#M586921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pratibha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As String has no fixed length, your best bet is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAR_VAR = STRING_VAR+0(n).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n being the length of the CHAR Variable you have declared. There is a potential of data loss here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOte :Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2006 09:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353298#M586921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-29T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: String conversion to Char</title>
      <link>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353299#M586922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so&amp;nbsp; there is a need of calling of C or c++ program .&lt;/P&gt;&lt;P&gt;We can get string length using STRLEN. And declare char variable dynamically. &lt;/P&gt;&lt;P&gt;It will not result in loss of data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 13:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353299#M586922</guid>
      <dc:creator>deepanshu_malhotra</dc:creator>
      <dc:date>2016-05-25T13:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: String conversion to Char</title>
      <link>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353300#M586923</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;SPAN style="color: #333333; font-size: 12px;"&gt;Try to use FM &lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;CONVERT_STRING_TO_TABLE.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 14:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353300#M586923</guid>
      <dc:creator>pranay570708</dc:creator>
      <dc:date>2016-05-25T14:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: String conversion to Char</title>
      <link>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353301#M586924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha Gavurla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a simple move opration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;charvar = stringvar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the defined length of &lt;SPAN style="font-size: 13.3333px;"&gt;charvar TYPE C variable is less than actual length of &lt;SPAN style="font-size: 13.3333px;"&gt;stringvar TYPE STRING variable, then it gets truncated.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The story about the C program is complete nonsense. Maybe Vijayendra Rao has a different understanding of your requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Best way is give a small example with actual data and expected result.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 14:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-conversion-to-char/qaa-p/1353301#M586924</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-05-25T14:19:42Z</dc:date>
    </item>
  </channel>
</rss>

