<?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 statement in abap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762018#M1116544</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;You cant use "with key" &amp;amp; "index"...together....just check your requirement....and use according to the rule....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 06:16:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-13T06:16:29Z</dc:date>
    <item>
      <title>Read statement in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762016#M1116542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Can I use both index and key addition in READ statment like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab from index i with key id = 'XYZ'.&lt;/P&gt;&lt;P&gt;Actually I am using that but the read statement is not following both the addition.Is there any other way out in which I can do that.I dont want to use LOOP...ENDLOOP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762016#M1116542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762017#M1116543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Index fetch with read can be done...but i guess it reads only one index at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab index 1 into wa transporting all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead go for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa TO 6. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa from 1 TO 6. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762017#M1116543</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-11-13T06:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762018#M1116544</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;You cant use "with key" &amp;amp; "index"...together....just check your requirement....and use according to the rule....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762018#M1116544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762019#M1116545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can simply loop at internal table as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_TAB WHERE KEY = 'XYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This cade allows you to loop across table with key records that you want.&lt;/P&gt;&lt;P&gt;Then you can modisy the records in table one by one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762019#M1116545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762020#M1116546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use READ Statement either with KEY or From INDEX only...&lt;/P&gt;&lt;P&gt;You can use both in a single READ Statement but depending on your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762020#M1116546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762021#M1116547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can use both at the same time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have an internal table of the below format....&lt;/P&gt;&lt;P&gt;material     plant       zone&lt;/P&gt;&lt;P&gt;M1            P1          N&lt;/P&gt;&lt;P&gt;M2            P2          S&lt;/P&gt;&lt;P&gt;M3            P3          E&lt;/P&gt;&lt;P&gt;M4            P4          W&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you want a record with key material = M2 and also index = 4.&lt;/P&gt;&lt;P&gt;they are 2 different records...and there is no 1 particular record that satisfies the condition...&lt;/P&gt;&lt;P&gt;if you want both the records use a loop with where condition and both seperated by OR.&lt;/P&gt;&lt;P&gt;then you can get both the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read statement can give only 1 row....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think the above is the problem you are facing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762021#M1116547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762022#M1116548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi *priya singh *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are not able to use index and with key parley in read statement. you should use LOOP..END LOOP only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See following...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in your requirement you want i th record which is satisfied id = 'XYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab into wa where id = 'XYZ'.
  if sy-index eq = i.
     " Assign/take values here
   EXIT.      " --&amp;gt;  Immediately exit the loop after satisfied your condition
  exit.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762022#M1116548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762023#M1116549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;read table it [into wa] [index i | with key keyexp [binary search] ] [comparing cmpexp] [transporting texp].&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;either we can use index or with key we cannot use both&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-abap/m-p/4762023#M1116549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:30:35Z</dc:date>
    </item>
  </channel>
</rss>

