<?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 forming the final internal table based on date range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/forming-the-final-internal-table-based-on-date-range/m-p/6971546#M1491357</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;My selection-screen contains the date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my output is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date                goodsreceived         goodsissued&lt;/P&gt;&lt;P&gt;01/05/10            100                             -&lt;/P&gt;&lt;P&gt;02/05/10            20                              40&lt;/P&gt;&lt;P&gt;03/05/10            -                                10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the goods received and goods issued data into two internal tables based on date range.&lt;/P&gt;&lt;P&gt;how can i form the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jun 2010 18:28:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-03T18:28:04Z</dc:date>
    <item>
      <title>forming the final internal table based on date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forming-the-final-internal-table-based-on-date-range/m-p/6971546#M1491357</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;My selection-screen contains the date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my output is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date                goodsreceived         goodsissued&lt;/P&gt;&lt;P&gt;01/05/10            100                             -&lt;/P&gt;&lt;P&gt;02/05/10            20                              40&lt;/P&gt;&lt;P&gt;03/05/10            -                                10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the goods received and goods issued data into two internal tables based on date range.&lt;/P&gt;&lt;P&gt;how can i form the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 18:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forming-the-final-internal-table-based-on-date-range/m-p/6971546#M1491357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-03T18:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: forming the final internal table based on date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forming-the-final-internal-table-based-on-date-range/m-p/6971547#M1491358</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;See:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* i_gr =&amp;gt; goods received 
* i_gi =&amp;gt; goods issued 

loop at i_gr.
  clear _final.
  i_final-date = i_gr-date.
  i_final-qtd_gr = i_gr-qtd.
  collect i_final
endloop.

loop at i_gi.
  clear _final.
  i_final-date = i_gi-date.
  i_final-qtd_gi = i_gi-qtd.
  collect i_final
endloop.

* i_final =&amp;gt; date, qtd_gr, qtd_gi
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 20:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forming-the-final-internal-table-based-on-date-range/m-p/6971547#M1491358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-03T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: forming the final internal table based on date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forming-the-final-internal-table-based-on-date-range/m-p/6971548#M1491359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;Please elaborate a little more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are 'goods received', 'goods issues' and 'date' part of the same standard table? if they are from different tables, you need to know the key fields which link the three fields required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of it_final occurs 0,
           date like sy-datum,
           r_qty(4) type n,
           i_qty(4) type n,
         end of it_final.

*if all the fields are from the same standard table use select as below.
select field1 field2 field3 from XXX(std table) into table it_final where 'date'(date field on std table) in s_date(selection screen date range). 
if sy-subrc = 0.
loop at it_final.
write:/ it_final-date, it_final-r_qty, it_final-i_qty.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this your requirement. If you can communicate it better, ppl on this forum will have a better chance to help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 23:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forming-the-final-internal-table-based-on-date-range/m-p/6971548#M1491359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-03T23:27:12Z</dc:date>
    </item>
  </channel>
</rss>

