<?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: remove space in value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348087#M1540313</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;Use the keyword condense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Oct 2010 09:27:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-08T09:27:59Z</dc:date>
    <item>
      <title>remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348085#M1540311</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;/P&gt;&lt;P&gt;I have a variable var1 type char18 ,Sometimes  It has value '111.80 ' where the last character is a space and becomes part of value , so when we do some calculation , it goes into error , kindly guide whenever there is a space as a part of value , it be deleted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348085#M1540311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348086#M1540312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the ABAP statement CONDENSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use transaction ABAPDOCU and the "Keyword Help" on CONDENSE to find out how to use this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348086#M1540312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348087#M1540313</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;Use the keyword condense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348087#M1540313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348088#M1540314</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;I have tried condense but it is not rem,oving the last space of the value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advise me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code is working &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SHIFT input-value RIGHT DELETING TRAILING space.&lt;/P&gt;&lt;P&gt;  SHIFT input-value RIGHT BY 1 PLACES.&lt;/P&gt;&lt;P&gt;  CONDENSE input-value NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i dont know when space will be last character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348088#M1540314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348089#M1540315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you take a look at how to use the CONDENSE statement in ABAPDOCU ?&lt;/P&gt;&lt;P&gt;Have a look at the example and especially how the variables are declared (type string !).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flat structure sentence contains only character-type components and can therefore be assigned to the string text. After the execution of the CONDENSE statement, text contains "She feeds you tea and oranges". Before the condense operation, the words in text are 30 characters apart from one another. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF sentence, &lt;/P&gt;&lt;P&gt;        word1 TYPE c LENGTH 30 VALUE 'She', &lt;/P&gt;&lt;P&gt;        word2 TYPE c LENGTH 30 VALUE 'feeds', &lt;/P&gt;&lt;P&gt;        word3 TYPE c LENGTH 30 VALUE 'you', &lt;/P&gt;&lt;P&gt;        word4 TYPE c LENGTH 30 VALUE 'tea', &lt;/P&gt;&lt;P&gt;        word5 TYPE c LENGTH 30 VALUE 'and', &lt;/P&gt;&lt;P&gt;        word6 TYPE c LENGTH 30 VALUE 'oranges', &lt;/P&gt;&lt;P&gt;      END OF sentence, &lt;/P&gt;&lt;P&gt;      text TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = sentence. &lt;/P&gt;&lt;P&gt;CONDENSE text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348089#M1540315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348090#M1540316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The space at the end of the value is not the problem for calculations as the last space will not be considered in the text. When you do claculations see to it that the value you are passing into will be integer or float.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: data: dat(18) type c,&lt;/P&gt;&lt;P&gt;                        dat1 type p decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               dat = '111.80 '.&lt;/P&gt;&lt;P&gt;               write:/ dat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              dat1 = dat + dat.&lt;/P&gt;&lt;P&gt;              write:/ dat, dat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result wil be &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;              111.80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              111.80            223.60&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348090#M1540316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348091#M1540317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the various data types of variables and the results they generated below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : var1 type char18 value '111.80 ', "space at the last&lt;/P&gt;&lt;P&gt;       var2 type c value '5',&lt;/P&gt;&lt;P&gt;       var3 type char20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3 = var1 + var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : var3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Var3 = 116.8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : var1 type char18 value '111.80 ', "space at the last&lt;/P&gt;&lt;P&gt;       var2 type i value '5',&lt;/P&gt;&lt;P&gt;       var3 type char20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3 = var1 + var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : var3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Var3 = 116.8&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : var1 type char18 value '111.80 ', "space at the last&lt;/P&gt;&lt;P&gt;       var2 type i value '5',&lt;/P&gt;&lt;P&gt;       var3 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3 = var1 + var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : var3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Var3 = 117&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : var1 type char18 value '111.80 ',&lt;/P&gt;&lt;P&gt;       var2 type c value '5',&lt;/P&gt;&lt;P&gt;       var3 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3 = var1 + var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : var3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Var3 = 117&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine even when there is a space in the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be specific on what type of calculation you perform for more clear solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sowbhagya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348091#M1540317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348092#M1540318</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 not perform arithmatic operations on char fields If variable declared by you always contains numeric value then transfer that value to any  TYPE P variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348092#M1540318</guid>
      <dc:creator>rajesh_akarte2</dc:creator>
      <dc:date>2010-10-08T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: remove space in value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348093#M1540319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please do not ask or answer basic questions - thread locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 13:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-space-in-value/m-p/7348093#M1540319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T13:46:35Z</dc:date>
    </item>
  </channel>
</rss>

