<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271573#M493460</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;Loop at vit_fil .&lt;/P&gt;&lt;P&gt;read table  vit_fil with key loc = vit_fil-loc.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;read table vit_tab with key matnr = vit_fil-matnr &lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;read table vit_tab with key matnr = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Delete vit_fil.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vinutha YV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vinutha YV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 10:24:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T10:24:16Z</dc:date>
    <item>
      <title>Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271566#M493453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to change loop with READ table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at vit_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at vit_tab where loc = vit_fil-loc AND &lt;/P&gt;&lt;P&gt;( matnr = vit_fil-mat OR  matnr = ' ' ).&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Delete vit_fil.&lt;/P&gt;&lt;P&gt;endif.&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;thanks in advance.&lt;/P&gt;&lt;P&gt;Bijal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271566#M493453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T10:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271567#M493454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at vit_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table vit_tab with key     loc = vit_tab-loc&lt;/P&gt;&lt;P&gt;                                        matnr = vit_tab-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Delete vit_fil index sy-tabix..&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271567#M493454</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-05-15T10:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271568#M493455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at vit_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table vit_tab with key loc = vit_fil-loc  matnr = vit_fil-mat binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;read table vit_tab with key loc = vit_fil-loc  matnr = ' ' binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Delete vit_fil.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271568#M493455</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-05-15T10:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271569#M493456</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;Loop at vit_fil.
read table vit_tab with key loc = vit_fil-loc 
 and  matnr = vit_fil-mat OR matnr = ' ' .

if sy-subrc &amp;lt;&amp;gt; 0.
Delete vit_fil.
endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271569#M493456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271570#M493457</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;Check thsi code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at vit_fil.
  lv_tabix = sy-tabix.
  clear vit_tab.
  read table vit_tab with key loc = vit_fil-loc.
  if sy-subrc ne 0.
    if not ( vit_tab-matnr eq vit_fil-mat or vit_tab-matnr = ' ' ).
      delete vit_fil index lv_tabix.
    endif.
  endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271570#M493457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T10:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271571#M493458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bijal,&lt;/P&gt;&lt;P&gt;              Read is used to retrieve the value from the internal table and DB taable..But read all the time will only retrieve one value at a time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table INT_Table into Workarea index 2.&lt;/P&gt;&lt;P&gt;--&amp;gt;It will take the second values from the table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we want to retrieve a name means&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table INT_Table into Workarea with key name = 'XXX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is more than one name we want to put in to loop which the first answer tells u..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271571#M493458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T10:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271572#M493459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;in read statement u are not able to put logical operations.by default it peforms AND.&lt;/P&gt;&lt;P&gt;Loop at vit_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table vit_tab with key loc = vit_fil-loc &lt;/P&gt;&lt;P&gt;matnr = vit_fil-mat &lt;/P&gt;&lt;P&gt; matnr = ' ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Delete vit_fil index sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271572#M493459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T10:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271573#M493460</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;Loop at vit_fil .&lt;/P&gt;&lt;P&gt;read table  vit_fil with key loc = vit_fil-loc.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;read table vit_tab with key matnr = vit_fil-matnr &lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;read table vit_tab with key matnr = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Delete vit_fil.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vinutha YV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vinutha YV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271573#M493460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T10:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271574#M493461</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;to make the whole thing faster do binary search on every read with key statement, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ TABLE vit_fil WITH KEY loc = vit_fil-loc BINARY SEARCH.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember to Sort vit_fil by loc before that:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SORT vit_fil BY loc.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points, if helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/2271574#M493461</guid>
      <dc:creator>former_member5350</dc:creator>
      <dc:date>2007-05-15T10:41:49Z</dc:date>
    </item>
  </channel>
</rss>

