<?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: Removing Zeros in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077517#M430766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first take the no to a char field..here i am taking text as an example.&lt;/P&gt;&lt;P&gt;data : bef(7),&lt;/P&gt;&lt;P&gt;         aft(7),&lt;/P&gt;&lt;P&gt;         text(14) type c value '66.66666667'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split text at '.' into bef aft.&lt;/P&gt;&lt;P&gt;shift aft right deleting trailing '0'.&lt;/P&gt;&lt;P&gt;shift aft left deleting leading space.&lt;/P&gt;&lt;P&gt;clear text.&lt;/P&gt;&lt;P&gt;concatenate bef aft into text separated by '.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 06:12:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T06:12:34Z</dc:date>
    <item>
      <title>Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077512#M430761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following numbers say for eg.&lt;/P&gt;&lt;P&gt;66.66666667&lt;/P&gt;&lt;P&gt;68.72000000&lt;/P&gt;&lt;P&gt;80.00000000&lt;/P&gt;&lt;P&gt;80.00000000&lt;/P&gt;&lt;P&gt;75.19055000&lt;/P&gt;&lt;P&gt;I want to output them like &lt;/P&gt;&lt;P&gt;66.66666667&lt;/P&gt;&lt;P&gt;68.72 &lt;/P&gt;&lt;P&gt;80 &lt;/P&gt;&lt;P&gt;80 &lt;/P&gt;&lt;P&gt;75.19055 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this. &lt;/P&gt;&lt;P&gt;Kind help is much appreciated.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2007 08:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077512#M430761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-15T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077513#M430762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;        Try the following funtion modules provided by SAP&lt;/P&gt;&lt;P&gt;         BKK_DELETE_LEADING_ZERO &lt;/P&gt;&lt;P&gt;         FTR_CORR_SWIFT_DELETE_ENDZERO&lt;/P&gt;&lt;P&gt;         Or make use of the following code :&lt;/P&gt;&lt;P&gt;          SHIFT &amp;lt;Variable name&amp;gt; RIGHT DELETING TRAILING '00'.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sowmya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2007 09:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077513#M430762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-15T09:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077514#M430763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a number of ways to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrich_0001.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: matnr type mara-matnr value '000000000000001111'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This is one way&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;shift matnr left deleting leading '0'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here is another&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;matnr = '000000000000001111'.&lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_MATN1_OUTPUT'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          input  = matnr&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          output = matnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 05:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077514#M430763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T05:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077515#M430764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To remove leading zeros and leading blanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external-&amp;gt;internal&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_OUTPUT Conversion exit ALPHA, internal-&amp;gt;external&lt;/P&gt;&lt;P&gt;For ex : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              input  = wf_version&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              output = wf_version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input = 123 &lt;/P&gt;&lt;P&gt;output = 0000000000000...000000000000123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 05:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077515#M430764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T05:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077516#M430765</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;&amp;lt;b&amp;gt;WRITE &amp;lt;variable having value with zeros&amp;gt; DECIMALS 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will solve ur problem&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 06:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077516#M430765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T06:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077517#M430766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first take the no to a char field..here i am taking text as an example.&lt;/P&gt;&lt;P&gt;data : bef(7),&lt;/P&gt;&lt;P&gt;         aft(7),&lt;/P&gt;&lt;P&gt;         text(14) type c value '66.66666667'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split text at '.' into bef aft.&lt;/P&gt;&lt;P&gt;shift aft right deleting trailing '0'.&lt;/P&gt;&lt;P&gt;shift aft left deleting leading space.&lt;/P&gt;&lt;P&gt;clear text.&lt;/P&gt;&lt;P&gt;concatenate bef aft into text separated by '.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 06:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077517#M430766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T06:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Zeros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077518#M430767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your support. &lt;/P&gt;&lt;P&gt;I want to share my experience. &lt;/P&gt;&lt;P&gt;there are two ways to achieve the above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;/P&gt;&lt;P&gt;data mipcnt1(12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   mipcnt1 = 75.19055000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONDENSE mipcnt1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FTR_CORR_SWIFT_DELETE_ENDZERO'&lt;/P&gt;&lt;P&gt;         CHANGING&lt;/P&gt;&lt;P&gt;              c_value = mipcnt1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR: f1, f2.&lt;/P&gt;&lt;P&gt;    SPLIT mipcnt1 AT '.' INTO f1 f2.&lt;/P&gt;&lt;P&gt;    IF f2 IS INITIAL.&lt;/P&gt;&lt;P&gt;     mipcnt1 = f1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.   &lt;/P&gt;&lt;P&gt;mipcnt1 = 75.19055000&lt;/P&gt;&lt;P&gt;mipcnt1 = abs( mipcnt1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 07:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-zeros/m-p/2077518#M430767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T07:03:18Z</dc:date>
    </item>
  </channel>
</rss>

