<?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 question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552443#M854722</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 cannot use NE with the read statement, you can use the loop ...endloop with where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram POnna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 17:22:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T17:22:29Z</dc:date>
    <item>
      <title>Read table question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552440#M854719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to read a table with below sytanx....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key k1 = x&lt;/P&gt;&lt;P&gt;                                  k2 = y&lt;/P&gt;&lt;P&gt;                                  k3 NE  z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this throws an error because we can only read table with mulitple key with = statement not with above statement........sooo how can i achieve this above requirement......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Younus Khan on Mar 25, 2008 6:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 17:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552440#M854719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read table question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552441#M854720</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;report ztest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:pa0002,pa0008,pa0021,pa0041.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      pernr like pa0002-pernr,&lt;/P&gt;&lt;P&gt;      vorna like pa0002-vorna,&lt;/P&gt;&lt;P&gt;      nachn like pa0002-nachn,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;      pernr like pa0008-pernr,&lt;/P&gt;&lt;P&gt;      begda like pa0008-begda,&lt;/P&gt;&lt;P&gt;      stvor like pa0008-stvor,&lt;/P&gt;&lt;P&gt;      ansal like pa0008-ansal,&lt;/P&gt;&lt;P&gt;      end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;      pernr like pa0021-pernr,&lt;/P&gt;&lt;P&gt;      favor like pa0021-favor,&lt;/P&gt;&lt;P&gt;      fanam like pa0021-fanam,&lt;/P&gt;&lt;P&gt;      end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab3 occurs 0,&lt;/P&gt;&lt;P&gt;     pernr like pa0041-pernr,&lt;/P&gt;&lt;P&gt;     dar01 like pa0041-dar01,&lt;/P&gt;&lt;P&gt;     dat01 like pa0041-dat01,&lt;/P&gt;&lt;P&gt;     end of itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of final occurs 0,&lt;/P&gt;&lt;P&gt;      pernr like pa0002-pernr,&lt;/P&gt;&lt;P&gt;      vorna like pa0002-vorna,&lt;/P&gt;&lt;P&gt;      nachn like pa0002-nachn,&lt;/P&gt;&lt;P&gt;      begda like pa0008-begda,&lt;/P&gt;&lt;P&gt;      stvor like pa0008-stvor,&lt;/P&gt;&lt;P&gt;      ansal like pa0008-ansal,&lt;/P&gt;&lt;P&gt;       favor like pa0021-favor,&lt;/P&gt;&lt;P&gt;      fanam like pa0021-fanam,&lt;/P&gt;&lt;P&gt;     dar01 like pa0041-dar01,&lt;/P&gt;&lt;P&gt;     dat01 like pa0041-dat01,&lt;/P&gt;&lt;P&gt;     end of final.&lt;/P&gt;&lt;P&gt;select-options:s_pernr for pa0002-pernr.&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       vorna&lt;/P&gt;&lt;P&gt;       nachn&lt;/P&gt;&lt;P&gt;       from pa0002&lt;/P&gt;&lt;P&gt;       into table itab&lt;/P&gt;&lt;P&gt;       where pernr in s_pernr.&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       begda&lt;/P&gt;&lt;P&gt;       stvor&lt;/P&gt;&lt;P&gt;       ansal&lt;/P&gt;&lt;P&gt;       from pa0008&lt;/P&gt;&lt;P&gt;       into table itab1&lt;/P&gt;&lt;P&gt;       for all entries in itab&lt;/P&gt;&lt;P&gt;       where pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       favor&lt;/P&gt;&lt;P&gt;       fanam&lt;/P&gt;&lt;P&gt;       from pa0021&lt;/P&gt;&lt;P&gt;       into table itab2&lt;/P&gt;&lt;P&gt;       for all entries in itab1&lt;/P&gt;&lt;P&gt;       where pernr = itab1-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       dar01&lt;/P&gt;&lt;P&gt;       dat01&lt;/P&gt;&lt;P&gt;       from pa0041&lt;/P&gt;&lt;P&gt;       into table itab3&lt;/P&gt;&lt;P&gt;       for all entries in itab2&lt;/P&gt;&lt;P&gt;       where pernr = itab2-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;final-pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;final-vorna = itab-vorna.&lt;/P&gt;&lt;P&gt;final-nachn = itab-nachn.&lt;/P&gt;&lt;P&gt;read table itab1 with key pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;final-begda = itab1-begda.&lt;/P&gt;&lt;P&gt;final-stvor = itab1-stvor.&lt;/P&gt;&lt;P&gt;final-ansal = itab1-ansal.&lt;/P&gt;&lt;P&gt;read table itab2 with key pernr = itab1-pernr.&lt;/P&gt;&lt;P&gt;final-favor = itab2-favor.&lt;/P&gt;&lt;P&gt;final-fanam = itab2-fanam.&lt;/P&gt;&lt;P&gt;read table itab3 with key pernr = itab2-pernr.&lt;/P&gt;&lt;P&gt;final-dar01 = itab3-dar01 .&lt;/P&gt;&lt;P&gt;final-dat01 = itab3-dat01.&lt;/P&gt;&lt;P&gt;append final.&lt;/P&gt;&lt;P&gt;clear final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   loop at final.&lt;/P&gt;&lt;P&gt;   write:final-pernr ,&lt;/P&gt;&lt;P&gt;final-vorna ,&lt;/P&gt;&lt;P&gt;final-nachn ,&lt;/P&gt;&lt;P&gt;final-begda ,&lt;/P&gt;&lt;P&gt;final-stvor ,&lt;/P&gt;&lt;P&gt;final-ansal ,&lt;/P&gt;&lt;P&gt;final-favor ,&lt;/P&gt;&lt;P&gt;final-fanam ,&lt;/P&gt;&lt;P&gt;final-dar01 ,&lt;/P&gt;&lt;P&gt;final-dat01 .&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 17:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552441#M854720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T17:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read table question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552442#M854721</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 have to use a loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP itab WHERE k1 = x AND k2 = y AND k3 NE z.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 17:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552442#M854721</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-03-25T17:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read table question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552443#M854722</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 cannot use NE with the read statement, you can use the loop ...endloop with where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram POnna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 17:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552443#M854722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T17:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read table question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552444#M854723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've resolved it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 06:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-question/m-p/3552444#M854723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-30T06:20:00Z</dc:date>
    </item>
  </channel>
</rss>

