<?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 to positive amount in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820777#M350830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev , &lt;/P&gt;&lt;P&gt;  I have a doubt reagading this concept what is you have the values 100 and 200- , then you will get 100 as diffrence , but actually it must be 100-.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why dont you just add all the values to get the profit/loss details.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2007 12:12:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-11T12:12:59Z</dc:date>
    <item>
      <title>negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820769#M350822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got one scenario that i have got 2 amounts&lt;/P&gt;&lt;P&gt;one is with value  200.00 and other value 100.00-&lt;/P&gt;&lt;P&gt;so now i have to convert 100.00- to 100.00&lt;/P&gt;&lt;P&gt;and comapre that out of 200 &amp;amp; 100 which is greater.&lt;/P&gt;&lt;P&gt;then calculate the profit &amp;amp; loss by subtracting these amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u may be confused that why can't we comapre directly 200 &amp;amp; 100-&lt;/P&gt;&lt;P&gt;directly . but let me tell u that it will be problem bcoz if we will subtract 100- from 200 then we will get 300 which will be wrong.&lt;/P&gt;&lt;P&gt;so my requirement is to relace the neagtive sign from the amount &lt;/P&gt;&lt;P&gt;then only compare these two amounts and then only calculate profit &amp;amp; loss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 06:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820769#M350822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T06:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820770#M350823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if amount lt 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_amount = amount * ( -1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now compare with v_amount,&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>Thu, 11 Jan 2007 06:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820770#M350823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T06:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820771#M350824</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;you have two methods.&lt;/P&gt;&lt;P&gt;first one is add the variables. then 200 and 100- will become 100. that would give u a result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another method is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 contains '200'.&lt;/P&gt;&lt;P&gt;var2 contains '100-'.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if var2 LT 0.
  var2 = var2 * ( -1 ).
  if var1 LT var2.
  -- 
  --
  --
  endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 06:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820771#M350824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T06:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820772#M350825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         i think there is no need of comparing and then subtracting one value from the other. you just add both those values and if the sum is greater than '0' then it is profit else it means that its a loss. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if i've answered u right award points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 06:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820772#M350825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T06:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820773#M350826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u r using scripts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;symbol(s)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;amp;itcdp-tdulpos&amp;amp;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&amp;gt; 100-&lt;/P&gt;&lt;P&gt;&amp;amp;itcdp-tdulpos(s)&amp;amp;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&amp;gt; 100&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u r using reports,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose v_field1 contains 100- then,&lt;/P&gt;&lt;P&gt;v_field1 = v_field1 * (-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do u r comparision&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 06:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820773#M350826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T06:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820774#M350827</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;v1 =  abs( 100.00-).&lt;/P&gt;&lt;P&gt;Then compare.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 06:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820774#M350827</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-01-11T06:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820775#M350828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for solving my issue.&lt;/P&gt;&lt;P&gt;i have rewarded all ur efforts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 06:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820775#M350828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T06:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820776#M350829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are many ways of doing that. Suppose there are two variables v1 and v2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1 = 100-.&lt;/P&gt;&lt;P&gt;v2 = 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 1:  if abs(v1) gt abs(v2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2 : replace '-' in v2 with ''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v2 lt 0.&lt;/P&gt;&lt;P&gt; v2 = v2 * -1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 07:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820776#M350829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T07:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: negative to positive amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820777#M350830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev , &lt;/P&gt;&lt;P&gt;  I have a doubt reagading this concept what is you have the values 100 and 200- , then you will get 100 as diffrence , but actually it must be 100-.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why dont you just add all the values to get the profit/loss details.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 12:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-to-positive-amount/m-p/1820777#M350830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T12:12:59Z</dc:date>
    </item>
  </channel>
</rss>

