<?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: Convert Negative value to Positive value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377715#M527384</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 ABS function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T1(10),&lt;/P&gt;&lt;P&gt;T2(10) VALUE '-100'.&lt;/P&gt;&lt;P&gt;T1 = ABS( T2 ).&lt;/P&gt;&lt;P&gt;WRITE T1.&lt;/P&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;Two conversions are performed. First, the contents of field T2 (type C) are converted&lt;/P&gt;&lt;P&gt;to type P. Then the system processes the ABS function using the results of the&lt;/P&gt;&lt;P&gt;conversion. Then, during the assignment to the type C field T1, the result of the&lt;/P&gt;&lt;P&gt;function is converted back to type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2007 11:25:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-07T11:25:50Z</dc:date>
    <item>
      <title>Convert Negative value to Positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377709#M527378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to conver the negative sign to Positive sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: -2.00 to become 2.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377709#M527378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Negative value to Positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377710#M527379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use ABS function or multiple it with minus 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1 = ABS ( f1 ).&lt;/P&gt;&lt;P&gt;f1 = f1 * -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377710#M527379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Negative value to Positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377711#M527380</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 a variable type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try assigning the negative value to the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Tatvagna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377711#M527380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Negative value to Positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377712#M527381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamsi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move the amount to one charater field and use this FM&lt;/P&gt;&lt;P&gt;use this FM CLOI_PUT_SIGN_IN_FRONT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,'&lt;/P&gt;&lt;P&gt;Reward If helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377712#M527381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Negative value to Positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377713#M527382</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 &amp;lt;b&amp;gt;ABS&amp;lt;/b&amp;gt; Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = ABS( a ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377713#M527382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Negative value to Positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377714#M527383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vamsi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reverse the sign using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;value = - value.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove the sign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;value = abs( value ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377714#M527383</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-06-07T11:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Negative value to Positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377715#M527384</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 ABS function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T1(10),&lt;/P&gt;&lt;P&gt;T2(10) VALUE '-100'.&lt;/P&gt;&lt;P&gt;T1 = ABS( T2 ).&lt;/P&gt;&lt;P&gt;WRITE T1.&lt;/P&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;Two conversions are performed. First, the contents of field T2 (type C) are converted&lt;/P&gt;&lt;P&gt;to type P. Then the system processes the ABS function using the results of the&lt;/P&gt;&lt;P&gt;conversion. Then, during the assignment to the type C field T1, the result of the&lt;/P&gt;&lt;P&gt;function is converted back to type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-negative-value-to-positive-value/m-p/2377715#M527384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:25:50Z</dc:date>
    </item>
  </channel>
</rss>

