<?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/1833561#M355066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laxmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Read table u can mention non key fields (its not mandatory)&lt;/P&gt;&lt;P&gt;But then also Read Table will fetch only one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting more than one record use LOOP AT table WHERE conditions.&lt;/P&gt;&lt;P&gt;Here u can use any field in WHERE-clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Reward points for helpful Answers *********&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 04:28:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-16T04:28:42Z</dc:date>
    <item>
      <title>read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833558#M355063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one basic doubt . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have two internal tables itab1 and itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 has all records with duplicate entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2 is another table which has duplicate entries. key fields are same as above internal&lt;/P&gt;&lt;P&gt;table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then if we use read table we will get only one record at a time. but i have two check all entries .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to use read table the primary keys of table is compulsary or i can search with another field which is not primary key also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 04:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833558#M355063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T04:22: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/1833559#M355064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. Primary key is not compulsary. Read will retun you the first match it will hit with the condition you have mantioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Guru&lt;/P&gt;&lt;P&gt;Reward points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 04:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833559#M355064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T04:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833560#M355065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi laxmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   We can you non-primary key fields for Read statement.  But if there is more than one entry with the same key, the system returns the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Rewared helpful answers)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddhesh Sanghvi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 04:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833560#M355065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T04:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833561#M355066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laxmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Read table u can mention non key fields (its not mandatory)&lt;/P&gt;&lt;P&gt;But then also Read Table will fetch only one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting more than one record use LOOP AT table WHERE conditions.&lt;/P&gt;&lt;P&gt;Here u can use any field in WHERE-clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Reward points for helpful Answers *********&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 04:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833561#M355066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T04:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833562#M355067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use non key field also in your read command but the condition you are using it must be unique row identification other wise you will not get the result which you want. or you may do one thing loop inside loop but it will decrease the performance. so better to use read command if you can able to define your row uniqely.&lt;/P&gt;&lt;P&gt;&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>Tue, 16 Jan 2007 04:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833562#M355067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T04:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833563#M355068</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;Look for a field which is getting changed every time in the table. it does not matter whether it is a primary or non primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 04:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833563#M355068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T04:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833564#M355069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     if u want to read all the records in the internal table using READ statement then use INDEX method in the read stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 04:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833564#M355069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T04:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833565#M355070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laxmi,&lt;/P&gt;&lt;P&gt;            It is not compulsary to give key fields for read statements. You can give any field to check between two internal tables and then seperate it if you want. Loop at itab2 if you want all the records to be checked instead of doing it for a single record and use read statements to check for the duplicate entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more way is if you have duplicate entries in itab2 then just delete those entries using "delete adjacent duplicates" statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark all helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 05:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/1833565#M355070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T05:06:37Z</dc:date>
    </item>
  </channel>
</rss>

