<?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: negative value into positive value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-value-into-positive-value/m-p/6532412#M1426741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eliana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is pretty basic question could be done with a simple if condition.&lt;/P&gt;&lt;P&gt;This is one simple or simplest way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters : p_number type i.
data : p_newno(8) type n.

if p_number le 0.
    write:/ 'Before Conversion', p_number.
    write:/ 'After Conversion'.
    write p_number to p_newno no-sign.
    write:/ 'New number', p_newno.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ranjith Nambiar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 04:05:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-29T04:05:35Z</dc:date>
    <item>
      <title>negative value into positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-value-into-positive-value/m-p/6532410#M1426739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;may i know how to make the negative value to posiitive value?&lt;/P&gt;&lt;P&gt;when negative value, then in abap, i have to convert the value to positive value and assign the posting key as 50. &lt;/P&gt;&lt;P&gt;when positive value, then in abap, no conversion needed and assign posting key as 40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 03:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-value-into-positive-value/m-p/6532410#M1426739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T03:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: negative value into positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-value-into-positive-value/m-p/6532411#M1426740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;C'mon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 03:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-value-into-positive-value/m-p/6532411#M1426740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T03:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: negative value into positive value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-value-into-positive-value/m-p/6532412#M1426741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eliana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is pretty basic question could be done with a simple if condition.&lt;/P&gt;&lt;P&gt;This is one simple or simplest way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters : p_number type i.
data : p_newno(8) type n.

if p_number le 0.
    write:/ 'Before Conversion', p_number.
    write:/ 'After Conversion'.
    write p_number to p_newno no-sign.
    write:/ 'New number', p_newno.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ranjith Nambiar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 04:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-value-into-positive-value/m-p/6532412#M1426741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T04:05:35Z</dc:date>
    </item>
  </channel>
</rss>

