<?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: Processing on the numerical operations. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479827#M1744650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the output in the format as you mentioned. &lt;/P&gt;&lt;P&gt;Then treat the variable as a string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; string = 12.699999 &lt;/P&gt;&lt;P&gt;SPLIT string AT '.' INTO string1 string2. string3 = string2+0(2). &lt;/P&gt;&lt;P&gt;CONCATENATE string1 '.' string3 INTO string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Your output will be : string = 12.69&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think this is the only solution...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 06:01:56 GMT</pubDate>
    <dc:creator>bishwajit_das</dc:creator>
    <dc:date>2013-04-29T06:01:56Z</dc:date>
    <item>
      <title>Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479825#M1744648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After passing the material number into a customized function module&amp;nbsp; I am getting the output value in numerical format.&lt;/P&gt;&lt;P&gt;After getting that result I need to do the following operation on it &lt;/P&gt;&lt;P&gt;If the output has more than 2 decimal places then the value must be trimmed&lt;/P&gt;&lt;P&gt;If the output has 2 decimal places then the value must be showed alike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the samples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 4.6 % should be converted to 4.60 %&lt;/P&gt;&lt;P&gt; 43 % should be converted to 43.00 %&lt;/P&gt;&lt;P&gt;16.325 % should be converted to 16.32 %&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using below code.Let variable be lv_variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data: lv_var type p decimals 2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lv_var = lv_variable.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it worked only 1f we will pass the values like 12.22,3.65,2.5555&lt;/P&gt;&lt;P&gt;but if the value is 12.6999 means the value is we get the output as 12.70,But I need to get the value as 12.69 only but not 12.70&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 05:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479825#M1744648</guid>
      <dc:creator>Ranjith_D_Reddy</dc:creator>
      <dc:date>2013-04-29T05:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479826#M1744649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;but if the value is 12.6999 means the value is we get the output as 12.70&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;Really? Mathematically this makes no sense &lt;A href="https://en.wikipedia.org/wiki/0.999..."&gt;https://en.wikipedia.org/wiki/0.999...&lt;/A&gt;. Perhaps you should push back on this "requirement".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 05:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479826#M1744649</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-04-29T05:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479827#M1744650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the output in the format as you mentioned. &lt;/P&gt;&lt;P&gt;Then treat the variable as a string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; string = 12.699999 &lt;/P&gt;&lt;P&gt;SPLIT string AT '.' INTO string1 string2. string3 = string2+0(2). &lt;/P&gt;&lt;P&gt;CONCATENATE string1 '.' string3 INTO string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Your output will be : string = 12.69&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think this is the only solution...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 06:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479827#M1744650</guid>
      <dc:creator>bishwajit_das</dc:creator>
      <dc:date>2013-04-29T06:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479828#M1744651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;Hi Ranjith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;PARAMETERS&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;: &lt;/SPAN&gt;p_menge &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;TYPE &lt;/SPAN&gt;mara&lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;brgew&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;: &lt;/SPAN&gt;lv_var &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;p &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;decimals &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-style: inherit; font-family: inherit;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;lv_var &lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;p_menge&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;if &lt;/SPAN&gt;p_menge &amp;lt; lv_var&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; lv_var &lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;lv_var &lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;- &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;'0.01' &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;I tried it is working fine for both of your&amp;nbsp; requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 07:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479828#M1744651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-29T07:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479829#M1744652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="24079" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://community.sap.com/"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for exposing me to that Wikipedia link. That's really interesting. But, if I understand it correctly, it's applicable only in case of (infinitely) repeating decimals. In Ranjith's case, that may not be the case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 07:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479829#M1744652</guid>
      <dc:creator>kakshat</dc:creator>
      <dc:date>2013-04-29T07:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479830#M1744653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's true. But I'm doubtful of business logic that really requires trimming in this way!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 11:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479830#M1744653</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-04-29T11:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479831#M1744654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code will surely help to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_str&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE string,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_num1&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_num2&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_len&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**** Copy your value into lv_str here ****&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SPLIT &lt;/SPAN&gt;lv_str &lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'.' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_num1 lv_num2&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; lv_len &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRLEN&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;lv_num2 &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;CASE &lt;/SPAN&gt;lv_len&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHEN &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;lv_num1 &lt;SPAN class="L0S33"&gt;'.00' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_str&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHEN &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;lv_num1 &lt;SPAN class="L0S33"&gt;'.' &lt;/SPAN&gt;lv_num2 &lt;SPAN class="L0S33"&gt;'0' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_str&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OTHERS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_num2 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_num2+0&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;lv_num1 &lt;SPAN class="L0S33"&gt;'.' &lt;/SPAN&gt;lv_num2 &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_str&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDCASE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the above code first split the value and then get the length of decimal part. If the length is zero then concatenate two zero's to it. If length is one, concatenate single zero and if length is greater than one, get only two digit from the string and concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solved your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 15:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479831#M1744654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-29T15:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479832#M1744655</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;Please check the following code it will suffice your requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;offset &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_var1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;char10&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_var1 &lt;SPAN class="L0S55"&gt;= &lt;SPAN class="L0S33"&gt;'12.6999'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;IF lv_var1 &lt;SPAN class="L0S52"&gt;CA &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;',.'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; offset &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;fdpos + &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TRANSLATE &lt;/SPAN&gt;lv_var1+offset&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;USING &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;' 0'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;lv_var1&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;offset&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;lv_var1+offset&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_var1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;lv_var1 &lt;SPAN class="L0S33"&gt;'.' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_var1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;lv_var1 &lt;SPAN class="L0S52"&gt;CA &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;',.'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; offset &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;fdpos + &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TRANSLATE &lt;/SPAN&gt;lv_var1+offset&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;USING &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;' 0'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CONCATENATE &lt;/SPAN&gt;lv_var1&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;offset&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;lv_var1+offset&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;lv_var1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;The value of the &lt;/SPAN&gt;&lt;/SPAN&gt;lv_var1 is considered as &lt;SPAN class="L0S55"&gt; &lt;SPAN class="L0S33"&gt;'12.6999'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. please change this to test out the various cases as mentioned by you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Case 1: 4.6 % should be converted to 4.60 %&lt;/P&gt;&lt;P&gt;Case 2:43 % should be converted to 43.00 %&lt;/P&gt;&lt;P&gt;Case 3:16.325 % should be converted to 16.32 %&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 06:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479832#M1744655</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-04-30T06:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479833#M1744656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 06:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479833#M1744656</guid>
      <dc:creator>Ranjith_D_Reddy</dc:creator>
      <dc:date>2013-05-03T06:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Processing on the numerical operations.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479834#M1744657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SATISH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT WORKS FINE.THANKS FOR THE SUPPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;RANJITH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 06:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-on-the-numerical-operations/m-p/9479834#M1744657</guid>
      <dc:creator>Ranjith_D_Reddy</dc:creator>
      <dc:date>2013-05-03T06:25:29Z</dc:date>
    </item>
  </channel>
</rss>

