<?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: Trailing spaces after data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617957#M1279828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SIm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this example for leading spaces -- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT c BY n PLACES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This command Shifts the contents of c by n places to the left. This statement has the same semantics as repeating the simple SHIFT statement n times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: ALPHA1(10) TYPE C VALUE 'ABCDEFGHIJ', &lt;/P&gt;&lt;P&gt;      ALPHA2     TYPE STRING, &lt;/P&gt;&lt;P&gt;      FIVE       TYPE I  VALUE 5. &lt;/P&gt;&lt;P&gt;ALPHA2 = ALPHA1. &lt;/P&gt;&lt;P&gt;SHIFT ALPHA1 BY FIVE PLACES. &lt;/P&gt;&lt;P&gt;SHIFT ALPHA2 RIGHT BY 2 PLACES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALPHA1 now has the contents 'FGHIJ____ ' and ALPHA2 the contents '__ABCDEFGHIJ'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To delete the spaces before&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT c LEFT  DELETING LEADING  space.&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;Pankaj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pankaj Singh on May 16, 2009 11:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 May 2009 06:02:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-16T06:02:33Z</dc:date>
    <item>
      <title>Trailing spaces after data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617954#M1279825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement in my code where I need to keep trailing spaces after the value.&lt;/P&gt;&lt;P&gt;Say, the value is ABC with 2 spaces before ABC and 4 spaces after ABC.&lt;/P&gt;&lt;P&gt;'  ABC   '&lt;/P&gt;&lt;P&gt;I want to remove the spaces before ABC but want the spaces that exist after ABC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 05:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617954#M1279825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T05:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces after data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617955#M1279826</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;As per as ABAP goes simple Assignment operator or TRANSFER (to file) to truncate the spaces.&lt;/P&gt;&lt;P&gt;refer [this|&lt;A class="jive_macro jive_macro_community" href="https://community.sap.com/" __jive_macro_name="community" modifiedtitle="true" __default_attr="2015"&gt;&lt;/A&gt;; or you may need to WRITE EOL character Cl_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 05:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617955#M1279826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T05:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces after data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617956#M1279827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Refer [Link|http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c554d9b3dc11d5993800508b6b8b11/content.htm] on how to use CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF (CRLF Carrige Return + Line Feed). You have to write CRLF at the end of your string to retain the trailing spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 06:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617956#M1279827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T06:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces after data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617957#M1279828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SIm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this example for leading spaces -- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT c BY n PLACES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This command Shifts the contents of c by n places to the left. This statement has the same semantics as repeating the simple SHIFT statement n times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: ALPHA1(10) TYPE C VALUE 'ABCDEFGHIJ', &lt;/P&gt;&lt;P&gt;      ALPHA2     TYPE STRING, &lt;/P&gt;&lt;P&gt;      FIVE       TYPE I  VALUE 5. &lt;/P&gt;&lt;P&gt;ALPHA2 = ALPHA1. &lt;/P&gt;&lt;P&gt;SHIFT ALPHA1 BY FIVE PLACES. &lt;/P&gt;&lt;P&gt;SHIFT ALPHA2 RIGHT BY 2 PLACES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALPHA1 now has the contents 'FGHIJ____ ' and ALPHA2 the contents '__ABCDEFGHIJ'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To delete the spaces before&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT c LEFT  DELETING LEADING  space.&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;Pankaj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pankaj Singh on May 16, 2009 11:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 06:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617957#M1279828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T06:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces after data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617958#M1279829</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;You can use SHIFT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_var type char6 value '  ABC '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT v_var  LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output will be ABC .&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;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 06:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617958#M1279829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T06:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces after data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617959#M1279830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I remove both leading and training spaces from a statement. SHIFT LEFT is working fine....but SHIFT w_sameena LEFT DELETING LEADING '*'  does not seem to work in my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field value is ***&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;STRONG&gt;CDE&lt;/STRONG&gt;*&lt;STRONG&gt;FGHI&lt;/STRONG&gt;**&lt;STRONG&gt;JKL&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I want the o/p as ABC*&lt;STRONG&gt;CDE&lt;/STRONG&gt;*&lt;STRONG&gt;FGHI&lt;/STRONG&gt;***JKL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sameena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 06:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-after-data/m-p/5617959#M1279830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T06:40:08Z</dc:date>
    </item>
  </channel>
</rss>

