<?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 internal table read in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824709#M660873</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;I am reading an internal table twice in a single go. I am getting the first and the second record as obvious while executing the perform once.&lt;/P&gt;&lt;P&gt;What I need to do is, if I read the table in the next go or I execute the perform again, I should get the record third and fourth as a result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do 2 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform ABC -&amp;gt; Reads table once and gets the first record.&lt;/P&gt;&lt;P&gt;Perform XYZ -&amp;gt;  Reads table once more and gets the second record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest logic for this.&lt;/P&gt;&lt;P&gt;Point will be rewarded for the correct logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 06:10:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T06:10:45Z</dc:date>
    <item>
      <title>internal table read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824709#M660873</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;I am reading an internal table twice in a single go. I am getting the first and the second record as obvious while executing the perform once.&lt;/P&gt;&lt;P&gt;What I need to do is, if I read the table in the next go or I execute the perform again, I should get the record third and fourth as a result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do 2 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform ABC -&amp;gt; Reads table once and gets the first record.&lt;/P&gt;&lt;P&gt;Perform XYZ -&amp;gt;  Reads table once more and gets the second record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest logic for this.&lt;/P&gt;&lt;P&gt;Point will be rewarded for the correct logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824709#M660873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: internal table read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824710#M660874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on what code you have written in Performs..Can you send the complete code so that I can help you out??&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, 01 Oct 2007 06:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824710#M660874</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2007-10-01T06:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal table read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824711#M660875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use sy-tabix to direct your READs..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824711#M660875</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2007-10-01T06:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: internal table read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824712#M660876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using a static var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statics: l_stat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table xyz index l_stat. " incrment l_stat &lt;/P&gt;&lt;P&gt;read table xyz index l_stat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824712#M660876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: internal table read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824713#M660877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not pretty clear with your requirement but here is a pseudo logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear l_counter.&lt;/P&gt;&lt;P&gt;Do 2 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_counter = l_counter + 1.&lt;/P&gt;&lt;P&gt;Perform ABC -&amp;gt; Reads table once and gets the first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_counter = l_counter + 1.&lt;/P&gt;&lt;P&gt;Perform XYZ -&amp;gt; Reads table once more and gets the second record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first DO Loop pass, L_COUTER will be 1, perform ABC will read first record, then counter will value will be 2 and XYZ will read second record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next loop pass, counter will become 3 and ABC will read third record. Then Counter will become 4 and XYZ will read 4th record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure in PERFORM ABC and XYZ you use COUNTER while reading internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824713#M660877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: internal table read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824714#M660878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make use of LOOP statement instead of READ statement&lt;/P&gt;&lt;P&gt;count = 0.&lt;/P&gt;&lt;P&gt;loop at itab where field = value.&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;if count = 3.&lt;/P&gt;&lt;P&gt;itab3 = itab.&lt;/P&gt;&lt;P&gt;elseif count = 4.&lt;/P&gt;&lt;P&gt;itab4 = itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824714#M660878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal table read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824715#M660879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But a read statement always returns first statement satisfying the criteria then its always going to return the same record for the same selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better keep a counter for the index no to be read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 06:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-read/m-p/2824715#M660879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T06:19:49Z</dc:date>
    </item>
  </channel>
</rss>

