<?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: restrict the length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598560#M866660</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;declare one more varible of type p with decilmals 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_dec type p with decilmals 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_dec = fgrand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise use Floor or round &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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 08:52:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T08:52:26Z</dc:date>
    <item>
      <title>restrict the length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598559#M866659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one value in my output in alv report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is fgrand total = 99.8765888% (variable declared in string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to restrict the lenth upto 2 decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex. 99.87%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do it ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give me solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598559#M866659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T08:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: restrict the length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598560#M866660</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;declare one more varible of type p with decilmals 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_dec type p with decilmals 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_dec = fgrand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise use Floor or round &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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598560#M866660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T08:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: restrict the length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598561#M866661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,  &lt;/P&gt;&lt;P&gt;      u can do that with command for  string  'REPLACE' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;paliwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598561#M866661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T08:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: restrict the length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598562#M866662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;    total TYPE string VALUE '99.8765888%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   REPLACE total+5(5) WITH ' ' into total.&lt;/P&gt;&lt;P&gt;   CONDENSE total  NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get the output as 99.87%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ur string has length as ur example &lt;STRONG&gt;or&lt;/STRONG&gt; of same pattern of it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 09:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598562#M866662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T09:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: restrict the length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598563#M866663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subhasis,&lt;/P&gt;&lt;P&gt;                     if you want to restrict and round off the number as well you can use the Function module "ROUND".&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 10:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598563#M866663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T10:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: restrict the length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598564#M866664</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;Add DECIMALS_OUT in the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 11:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-the-length/m-p/3598564#M866664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T11:00:30Z</dc:date>
    </item>
  </channel>
</rss>

