<?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 negative values subtraction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686093#M1869470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its regarding ABAP arithmetic,In my input file I am getting 3 currency fields&amp;nbsp; name LM,PM, CM every time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to check the condition PM = LM - CM ,if it is not true needs to raise error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is all working fine , but when I am getting negative values in the file my calculation going wrong ,instead of subtraction it is doing addition.I am getting the below scenarios:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LM +&lt;/P&gt;&lt;P&gt;PM +&lt;/P&gt;&lt;P&gt;CM -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LM -&lt;/P&gt;&lt;P&gt;PM -&lt;/P&gt;&lt;P&gt;CM +&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body suggest how I can handle this in ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 14:00:55 GMT</pubDate>
    <dc:creator>former_member188791</dc:creator>
    <dc:date>2014-11-03T14:00:55Z</dc:date>
    <item>
      <title>negative values subtraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686093#M1869470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its regarding ABAP arithmetic,In my input file I am getting 3 currency fields&amp;nbsp; name LM,PM, CM every time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to check the condition PM = LM - CM ,if it is not true needs to raise error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is all working fine , but when I am getting negative values in the file my calculation going wrong ,instead of subtraction it is doing addition.I am getting the below scenarios:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LM +&lt;/P&gt;&lt;P&gt;PM +&lt;/P&gt;&lt;P&gt;CM -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LM -&lt;/P&gt;&lt;P&gt;PM -&lt;/P&gt;&lt;P&gt;CM +&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body suggest how I can handle this in ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 14:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686093#M1869470</guid>
      <dc:creator>former_member188791</dc:creator>
      <dc:date>2014-11-03T14:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: negative values subtraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686094#M1869471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajiv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is normal mathematic behaviour LM - (-CM) is the same as LM + CM...&lt;/P&gt;&lt;P&gt;If this behaviour is unwanted, check if the value is below 0 and then multiplicate with -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 14:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686094#M1869471</guid>
      <dc:creator>DominikKraemer</dc:creator>
      <dc:date>2014-11-03T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: negative values subtraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686095#M1869472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajiv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want to consider the sign of each currency you can use the abs(variable) mathematical function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vijeta Galani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 00:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686095#M1869472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-04T00:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: negative values subtraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686096#M1869473</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;PM = LM - CM is same as LM = PM + CM. This will solve the - sign problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 05:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686096#M1869473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-04T05:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: negative values subtraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686097#M1869474</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>Tue, 04 Nov 2014 05:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686097#M1869474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-04T05:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: negative values subtraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686098#M1869475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;Let's say:&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;LM = 5&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;CM = -3&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;LM-CM = 8. So PM must be 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;LM&amp;nbsp; = -5&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;CM = 3&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;LM-CM = -2. So PM must be -2.&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; color: #333333; background: #ffffff;"&gt;Why do you expect anything else? What are you actually trying to do? What is the business scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 06:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686098#M1869475</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-11-04T06:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: negative values subtraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686099#M1869476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess he wants to find difference of absolute values, ignoring sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686099#M1869476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T09:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: negative values subtraction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686100#M1869477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean another basic programming problem? &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1078/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 10:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/negative-values-subtraction/m-p/10686100#M1869477</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-11-05T10:59:18Z</dc:date>
    </item>
  </channel>
</rss>

