<?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: SYNTAX FOR READING  INTERNALTABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687270#M621420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  U can use any key there. It need not be the primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;LIJO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2007 09:53:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-22T09:53:21Z</dc:date>
    <item>
      <title>SYNTAX FOR READING  INTERNALTABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687265#M621415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN WE READ AN INTERNAL TABLE  WITH THE FOLLOWING SYNTZX LIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB WITH KEY K1 = ' '.&lt;/P&gt;&lt;P&gt;SHOULD THE KEY K1 SHOULD NECCESARILY BE PRIMARY KEY ?&lt;/P&gt;&lt;P&gt; IN MY SCENARIO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE TKOMV WITH KEY KNUMV = GT_LIKP-KNUMV.&lt;/P&gt;&lt;P&gt;KNUMV IS NOT PRIMARY KEY.&lt;/P&gt;&lt;P&gt;TKOMV IS A TABLE OF TYPE KOMK WHICH IS A STRUCTURE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687265#M621415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T09:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX FOR READING  INTERNALTABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687266#M621416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The key with which you are reading the table need not be the primary key. In case there are multiple entries with the same value for the same field, then READ statement returns the first matching entry. If no entry is found, sy-subrc is set to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687266#M621416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T09:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX FOR READING  INTERNALTABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687267#M621417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It need not be a primary key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azhar&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687267#M621417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T09:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX FOR READING  INTERNALTABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687268#M621418</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;It need not be PRIMARY KEY , WITH KEY is similar to WHERE clause of SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to read using the KEY of the internal table then use WITH TABLE KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab into WA WITH TABLE KEY ... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687268#M621418</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-22T09:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX FOR READING  INTERNALTABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687269#M621419</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;No need to have primary key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687269#M621419</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-08-22T09:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX FOR READING  INTERNALTABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687270#M621420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  U can use any key there. It need not be the primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;LIJO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687270#M621420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T09:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX FOR READING  INTERNALTABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687271#M621421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pawan...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE is a statement to Read a Single line from internal Table.&lt;/P&gt;&lt;P&gt;Internal Table will not have any primary key. Only Database table will have it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So &lt;/P&gt;&lt;P&gt;Read Table &amp;lt;itab&amp;gt; With Key &amp;lt;field&amp;gt; = &amp;lt;value&amp;gt; .&lt;/P&gt;&lt;P&gt;Here the &amp;lt;field&amp;gt; can be any field in the ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can Check the Sy-subrc after this statement to know if the Read is successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste your code if have any problem still...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 09:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-reading-internaltable/m-p/2687271#M621421</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-22T09:54:48Z</dc:date>
    </item>
  </channel>
</rss>

