<?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 With Key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241640#M773693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you sort your Internal table lt_e_t_rsnodes_lnk before reading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VInodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2008 18:49:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-07T18:49:32Z</dc:date>
    <item>
      <title>READ Table With Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241639#M773692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get the sy-tabix of a record in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key I am using is a field in the internal table that will be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get sy-sub = 4, so I assume I am not defining the key in full. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;CONCATENATE g_dimen i_bunit INTO l_nodename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE lt_e_t_rsnodes_lnk WITH KEY nodename = &lt;/P&gt;&lt;P&gt;                                                                 l_nodename&lt;/P&gt;&lt;P&gt;            BINARY SEARCH TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?    Thank-You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 18:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241639#M773692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T18:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: READ Table With Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241640#M773693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you sort your Internal table lt_e_t_rsnodes_lnk before reading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VInodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 18:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241640#M773693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T18:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: READ Table With Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241641#M773694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use binary search, you need to sort the internal table first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before read to the internal table you need to sort your internal table. lt_e_t_rsnodes_lnk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 18:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241641#M773694</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2008-01-07T18:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: READ Table With Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241642#M773695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the table sorted by nodename?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 18:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241642#M773695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T18:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: READ Table With Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241643#M773696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try without binary search and see if it works.&lt;/P&gt;&lt;P&gt;Also check if concatenate statement is populating the string same as in your internal table. Sometimes spaces may lead to different values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 18:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241643#M773696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T18:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: READ Table With Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241644#M773697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please check the values for the following&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;g_dimen &lt;/P&gt;&lt;P&gt;i_bunit&lt;/P&gt;&lt;P&gt;l_nodename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be try to use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONCATENATE g_dimen i_bunit INTO l_nodename.
condense l_nodename no-gaps.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also make sure your table lt_e_t_rsnodes_lnk will be sort properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 18:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241644#M773697</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-07T18:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: READ Table With Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241645#M773698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;       I am asuusming that table lt_e_t_rsnodes_lnk  have the value similar to that formed by concatenating g_dimen i_bunit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are doing a binary search you need to sort the table for sure..&lt;/P&gt;&lt;P&gt;sort lt_e_t_rsnodes_lnk by nodename.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;try the above if not...&lt;/P&gt;&lt;P&gt;becoz ur sy-subrc eq 4. looks like the table doesnt have a value similar to that formed by concatenating that fields. check ur data in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 18:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-with-key/m-p/3241645#M773698</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-07T18:53:05Z</dc:date>
    </item>
  </channel>
</rss>

