<?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: Space Truncating when passing from string to character in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333737#M169757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lijo,&lt;/P&gt;&lt;P&gt;if u consider the length of the string 'Hello ', even that will be returned as 5. so the char variable picks up the 5 characters..&lt;/P&gt;&lt;P&gt;but if u consider ' Hello'. this returns 6 characters n hence will be passed to the char variable as such with the leading space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2006 11:19:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-18T11:19:33Z</dc:date>
    <item>
      <title>Space Truncating when passing from string to character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333733#M169753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i pass data from string variable to character varaible, space available in the string is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_string contains 'Hello '. when i pass this to lv_char, iam getting 'Hello'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way by which we can pass the space as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 08:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333733#M169753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T08:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Space Truncating when passing from string to character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333734#M169754</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;check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_sring message-id zz.

data: lv_char(10).
data: str type string.

str = 'Hello   '.

lv_char+0(10) = str.

write lv_char.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 08:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333734#M169754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T08:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Space Truncating when passing from string to character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333735#M169755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Blank characters at the end of strings are not taken into account so you get space traucated when you pass string to character field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 08:20:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333735#M169755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T08:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Space Truncating when passing from string to character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333736#M169756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code which you mention is giving length of the lv_char as 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not considering spaces...&lt;/P&gt;&lt;P&gt;below is the code.&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;data: lv_char(10).&lt;/P&gt;&lt;P&gt;data: str type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str = 'Hello   '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_char+0(10) = str.&lt;/P&gt;&lt;P&gt;lv_len = strlen( lv_char ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'Character Length',lv_len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there any other way by which we can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 08:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333736#M169756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Space Truncating when passing from string to character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333737#M169757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lijo,&lt;/P&gt;&lt;P&gt;if u consider the length of the string 'Hello ', even that will be returned as 5. so the char variable picks up the 5 characters..&lt;/P&gt;&lt;P&gt;but if u consider ' Hello'. this returns 6 characters n hence will be passed to the char variable as such with the leading space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 11:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-truncating-when-passing-from-string-to-character/m-p/1333737#M169757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T11:19:33Z</dc:date>
    </item>
  </channel>
</rss>

