<?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: Read table probelm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660499#M1446219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are doing this with two itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1 into wa. "The matnr to be checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2 into wa2 from wk_tabix. "The records to be moved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa2-matnr ne wa-matnr.&lt;/P&gt;&lt;P&gt;wk_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding wa2 to wa3.&lt;/P&gt;&lt;P&gt;append wa3 to itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Feb 2010 10:13:49 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-02-28T10:13:49Z</dc:date>
    <item>
      <title>Read table probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660497#M1446217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have one internal  table  T_STAT  like that&lt;/P&gt;&lt;P&gt;vbeln     posnr  matnr  &lt;/P&gt;&lt;P&gt;111       10        abc&lt;/P&gt;&lt;P&gt;111        20       def&lt;/P&gt;&lt;P&gt;112       10        abc&lt;/P&gt;&lt;P&gt;112       20        abc&lt;/P&gt;&lt;P&gt;113      30        def&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using  read table compare only matnr. means the line items which contain matnr abc should move other internal table.&lt;/P&gt;&lt;P&gt;but it is moving only one record. is it possible without loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Feb 2010 02:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660497#M1446217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-28T02:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read table probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660498#M1446218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ TABLE reads just one record. So in your case, it will not work. You use&lt;/P&gt;&lt;P&gt; LOOP at ITAB WHERE MATNR eq 'abc'.&lt;/P&gt;&lt;P&gt;move the records to another internal table.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Feb 2010 07:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660498#M1446218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-28T07:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read table probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660499#M1446219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are doing this with two itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1 into wa. "The matnr to be checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2 into wa2 from wk_tabix. "The records to be moved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa2-matnr ne wa-matnr.&lt;/P&gt;&lt;P&gt;wk_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding wa2 to wa3.&lt;/P&gt;&lt;P&gt;append wa3 to itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Feb 2010 10:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660499#M1446219</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-28T10:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read table probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660500#M1446220</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data T_STAT_ABC  like T_STAT occurs 0.

T_STAT_ABC[] = T_STAT[].

delete T_STAT_QBC where MATNR NE 'ABC'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have in T_STAT_ABC entry with matnr = 'ABC' without used loop.  CQFD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Feb 2010 10:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660500#M1446220</guid>
      <dc:creator>StMou</dc:creator>
      <dc:date>2010-02-28T10:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read table probelm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660501#M1446221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyank,&lt;/P&gt;&lt;P&gt;Try with the below mentioned code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : begin of itab occurs 0,
        vbeln(3) type c,
        posnr(2) type c,
        matnr(3) type c ,
        end of itab.

*data : itab type table of ty_tab,
*       wa_itab like line of itab.
data : ind type i value 1.
data : it_final like itab occurs 0.
data : recs type i.

itab-vbeln = '111'.
itab-posnr = '10'.
itab-matnr = 'abc'.
append itab.
clear itab.

itab-vbeln = '111'.
itab-posnr = '20'.
itab-matnr = 'def'.
append itab.
clear itab.

itab-vbeln = '112'.
itab-posnr = '10'.
itab-matnr = 'abc'.
append itab.
clear itab.

itab-vbeln = '112'.
itab-posnr = '20'.
itab-matnr = 'abc'.
append itab.
clear itab.

itab-vbeln = '113'.
itab-posnr = '30'.
itab-matnr = 'def'.
append itab.
clear itab.


read table itab.

recs = sy-tfill.

while ind LE recs.
read table itab into itab index ind.
if itab-matnr = 'abc'.
append itab to it_final.
clear itab.
endif.
ind = ind + 1.
endwhile.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 07:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-probelm/m-p/6660501#M1446221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T07:47:58Z</dc:date>
    </item>
  </channel>
</rss>

