<?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: Difference Requirement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347437#M1035362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yogesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first select the data from database table ISEG into internal table (eg Itab) by using corresponding fields of keyword&lt;/P&gt;&lt;P&gt;then loop at internal table itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at Itab&lt;/P&gt;&lt;P&gt;diff = Itab-MSEG u2013 Itab-BUCHM.&lt;/P&gt;&lt;P&gt;modify itab transporting diff.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Diff is field in our internal table to hold the difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2008 11:23:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-22T11:23:12Z</dc:date>
    <item>
      <title>Difference Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347434#M1035359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;            I have a requirement that in an internal table field i want to select data from a standard sap table that is difference of two fields of that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;""Difference qty has to be calculated as the difference between the booked qty and Posted Qty(ISEG/MSEG u2013 ISEG/BUCHM)""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I write the SELECT statement that my this requirement is fulfilled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:10:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347434#M1035359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T11:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347435#M1035360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to select first and do calculations afterwards by looping through the result set.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347435#M1035360</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-08-22T11:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347436#M1035361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try to code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 with field qty1 and qty2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define itab2 with qty1 , qty2 and qty_diff (type of qty1 or qty2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fire select query.&lt;/P&gt;&lt;P&gt;selcect qty1  qty2 from 'sap table' into itab1 where 'Your condition'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab2-qty1 = itab1-qty1.&lt;/P&gt;&lt;P&gt;wa_itab2-qty2 = itab1-qty2.&lt;/P&gt;&lt;P&gt;wa_itab2-qty_diff = ( itab2-qty1 - itab2-qty2 ).&lt;/P&gt;&lt;P&gt;append wa_itab2 to itab2.&lt;/P&gt;&lt;P&gt;clear wa_itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u will get your required result in itab2. Pass itab2 to alv, will get the data and difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347436#M1035361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T11:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347437#M1035362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yogesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first select the data from database table ISEG into internal table (eg Itab) by using corresponding fields of keyword&lt;/P&gt;&lt;P&gt;then loop at internal table itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at Itab&lt;/P&gt;&lt;P&gt;diff = Itab-MSEG u2013 Itab-BUCHM.&lt;/P&gt;&lt;P&gt;modify itab transporting diff.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Diff is field in our internal table to hold the difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-requirement/m-p/4347437#M1035362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T11:23:12Z</dc:date>
    </item>
  </channel>
</rss>

