<?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 searching for corect data element in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/searching-for-corect-data-element/m-p/6512707#M1423776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to calculate beetween two coloumns and I don't find corect data element. The field which be calculated are dates (delivery date - posting GR date). I have choosen the data type NUMC_5, but this data type is also positive. I would like to have - (minus) if the gr is before the delivery date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which data element should I choose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Saso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Dec 2009 08:15:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-28T08:15:52Z</dc:date>
    <item>
      <title>searching for corect data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/searching-for-corect-data-element/m-p/6512707#M1423776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to calculate beetween two coloumns and I don't find corect data element. The field which be calculated are dates (delivery date - posting GR date). I have choosen the data type NUMC_5, but this data type is also positive. I would like to have - (minus) if the gr is before the delivery date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which data element should I choose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Saso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2009 08:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/searching-for-corect-data-element/m-p/6512707#M1423776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-28T08:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: searching for corect data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/searching-for-corect-data-element/m-p/6512708#M1423777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using floating point numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2009 08:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/searching-for-corect-data-element/m-p/6512708#M1423777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-28T08:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: searching for corect data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/searching-for-corect-data-element/m-p/6512709#M1423778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saso Poljansek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no dataelement with Sign &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve it as below.. multiply the value by -1 (Negative 1) based on condition. so the value becomes negative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if gr_date &amp;lt; delivery_date.

diff = delivery_date - gr_date.

diff = diff * -1 .

else.

diff = gr_date - delivery_date .

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2009 08:23:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/searching-for-corect-data-element/m-p/6512709#M1423778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-28T08:23:59Z</dc:date>
    </item>
  </channel>
</rss>

