<?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 statment using two fields. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856148#M926940</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;READ TABLE itab { table_key &lt;/P&gt;&lt;P&gt;                | free_key &lt;/P&gt;&lt;P&gt;                | index } result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement reads a row from internal table itab. You have to specify the row by either naming values table_key for the table key, a free condition free_key or an index index. The latter choice is possible only for index tables. The output result result determines when and where the row contents are read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the row to be read is not uniquely specified, the first suitable row is read. In the case of index tables, this row has the lowest table index of all matching rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System Fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement READ TABLE sets system fields sy-subrc and sy-tabix. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Relevance &lt;/P&gt;&lt;P&gt;0 Row found. sy-tabix is set to the table index of the entry for index tables, and to the value 0 for hashed-tables. &lt;/P&gt;&lt;P&gt;2 Like sy-subrc equals 0. Differentiates cases that use the addition COMPARING in result. &lt;/P&gt;&lt;P&gt;4 Row not found. If the entry was determined with a binary search, then sy-tabix is set to the table index of the entry before which it would have to be inserted with INSERT ... INDEX ..., if you want to keep the sorting order. This is the case if the addition table_key or free_key was specified for a beginning part of the table key of sorted tables, or if the addition BINARY SEARCH was specified explicitly. Otherwise, sy-tabix is undefined. &lt;/P&gt;&lt;P&gt;8 Like sy-subrc equals 4. If the entry was determined with a binary search, and the end of the table was reached, then sy-tabix is set to the number of rows + 1. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system fields sy-tfill and sy-tleng are also supplied with data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2008 10:00:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-09T10:00:02Z</dc:date>
    <item>
      <title>read statment using two fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856147#M926939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;      i need to read internal table using two fields,&lt;/P&gt;&lt;P&gt; for example -      &lt;EM&gt;*&lt;/EM&gt;READ TABLE lt_cepc_bukrs INTO lw_cepc_bukrs WITH KEY bukrs = l_bukrs prctr =lt_cepc-bukrs BINARY SEARCH&lt;EM&gt;*&lt;/EM&gt;...&lt;/P&gt;&lt;P&gt;Based on Bukrs and prctr i need to read my internal table .Can any one give me correct syntex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Veera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 09:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856147#M926939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: read statment using two fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856148#M926940</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;READ TABLE itab { table_key &lt;/P&gt;&lt;P&gt;                | free_key &lt;/P&gt;&lt;P&gt;                | index } result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement reads a row from internal table itab. You have to specify the row by either naming values table_key for the table key, a free condition free_key or an index index. The latter choice is possible only for index tables. The output result result determines when and where the row contents are read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the row to be read is not uniquely specified, the first suitable row is read. In the case of index tables, this row has the lowest table index of all matching rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System Fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement READ TABLE sets system fields sy-subrc and sy-tabix. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Relevance &lt;/P&gt;&lt;P&gt;0 Row found. sy-tabix is set to the table index of the entry for index tables, and to the value 0 for hashed-tables. &lt;/P&gt;&lt;P&gt;2 Like sy-subrc equals 0. Differentiates cases that use the addition COMPARING in result. &lt;/P&gt;&lt;P&gt;4 Row not found. If the entry was determined with a binary search, then sy-tabix is set to the table index of the entry before which it would have to be inserted with INSERT ... INDEX ..., if you want to keep the sorting order. This is the case if the addition table_key or free_key was specified for a beginning part of the table key of sorted tables, or if the addition BINARY SEARCH was specified explicitly. Otherwise, sy-tabix is undefined. &lt;/P&gt;&lt;P&gt;8 Like sy-subrc equals 4. If the entry was determined with a binary search, and the end of the table was reached, then sy-tabix is set to the number of rows + 1. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system fields sy-tfill and sy-tleng are also supplied with data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856148#M926940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T10:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: read statment using two fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856149#M926941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;prctr =lt_cepc-bukrs &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not possible. You need to define a variable for you BUKRS or a selection screen parameter for comparison with PRCTR from internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856149#M926941</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-09T10:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: read statment using two fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856150#M926942</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;use it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE IT_EKBE  WITH KEY &lt;/P&gt;&lt;P&gt; EBELN = IT_EKPO-EBELN&lt;/P&gt;&lt;P&gt; EBELP = IT_EKPO-EBELP&lt;/P&gt;&lt;P&gt;BEWTP = 'E' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont use binary search it is obselete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if hlpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856150#M926942</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-05-09T10:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: read statment using two fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856151#M926943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab with key matnr = itab1-matnr mtart = itab1-mtart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statment-using-two-fields/m-p/3856151#M926943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T10:02:55Z</dc:date>
    </item>
  </channel>
</rss>

