<?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: remove negative sign in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-negative-sign/m-p/3720102#M895532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;negative amount x -1 = positive amount &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  gv_neg_amount  TYPE i,
  gv_pos_amount  TYPE i.

...

* i assume that your original amount is stored in GV_NEG_AMOUNT

MOVE gv_neg_amount TO gv_pos_amount.
IF gv_neg_amount LT 0.
* switch negative amount to positive amount
  gv_pos_amount = gv_pos_amount * -1.
ELSE.
* amount is already positive
ENDIF.

WRITE: / gv_pos_amount
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 06:23:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T06:23:05Z</dc:date>
    <item>
      <title>remove negative sign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-negative-sign/m-p/3720100#M895530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to remove negative sign from amount&lt;/P&gt;&lt;P&gt;e.g 18000.00- should display as 18000.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 06:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-negative-sign/m-p/3720100#M895530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T06:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: remove negative sign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-negative-sign/m-p/3720101#M895531</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 'NO-SIGN' when moving to the output...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&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;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better way is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output = input * - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 06:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-negative-sign/m-p/3720101#M895531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T06:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: remove negative sign</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-negative-sign/m-p/3720102#M895532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;negative amount x -1 = positive amount &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  gv_neg_amount  TYPE i,
  gv_pos_amount  TYPE i.

...

* i assume that your original amount is stored in GV_NEG_AMOUNT

MOVE gv_neg_amount TO gv_pos_amount.
IF gv_neg_amount LT 0.
* switch negative amount to positive amount
  gv_pos_amount = gv_pos_amount * -1.
ELSE.
* amount is already positive
ENDIF.

WRITE: / gv_pos_amount
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 06:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-negative-sign/m-p/3720102#M895532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T06:23:05Z</dc:date>
    </item>
  </channel>
</rss>

