<?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 an internal table using  range. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460786#M552065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take a itab like &lt;/P&gt;&lt;P&gt;data : begin of imatnr occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;end of imatnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr into table imatnr where matnr in so_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table imatnr with key matnr = it_mara-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;delete it_mara.&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;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2007 03:48:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-02T03:48:39Z</dc:date>
    <item>
      <title>Read an internal table using  range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460784#M552063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS  so_klart  for kssk-klart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have an internal table    it_kssk , which i want to filter by the selection range above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since it_kssk already populated with data with the previous SQL statements, and I dont want to execute another SQL statement for the filtering.   I am trying to avoid selecting it again using SQL  because this is a heavy table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like  to find a way to   read  it_kssk with  something like this &lt;/P&gt;&lt;P&gt; " read table it_kssk with key kssk-klart  &amp;lt;b&amp;gt;IN SO_KLART&amp;lt;/b&amp;gt;  "   ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or any function module to do this?&lt;/P&gt;&lt;P&gt;Or any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this way below  is kind of tiresome...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at so_klart .&lt;/P&gt;&lt;P&gt; IF so_klart -option = "EQ"&lt;/P&gt;&lt;P&gt;   read table  xxxxx.....&lt;/P&gt;&lt;P&gt; elseif  so_klart-option = "NE"&lt;/P&gt;&lt;P&gt;  read table  XXX...&lt;/P&gt;&lt;P&gt; else if ...&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;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kokwei Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kokwei Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kokwei Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460784#M552063</guid>
      <dc:creator>kowong</dc:creator>
      <dc:date>2007-07-02T03:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read an internal table using  range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460785#M552064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT YARRANGE. 
TABLES YTXLFA1. 
RANGES: VENDOR FOR YTXFLA1-LIFNR. 

- - - -  
- - - -- 
- - - -  

SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB  
WHERE LIFNR IN VENDOR. 

Here with RANGES  user has to design an internal table with fields -  
SIGN,OPTION,LOW and HIGH EXPLICITLY. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points  if it isuse full ...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460785#M552064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T03:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read an internal table using  range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460786#M552065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take a itab like &lt;/P&gt;&lt;P&gt;data : begin of imatnr occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;end of imatnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr into table imatnr where matnr in so_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table imatnr with key matnr = it_mara-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;delete it_mara.&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;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460786#M552065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T03:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read an internal table using  range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460787#M552066</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;delete it_kssk where not klart in so_klart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 04:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-an-internal-table-using-range/m-p/2460787#M552066</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-07-02T04:03:54Z</dc:date>
    </item>
  </channel>
</rss>

