<?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: Regarding read table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999455#M708576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi niel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_cvn_tmp WITH KEY ZMTCLGR1 = wa_cvn-ZMTCLGR1&lt;/P&gt;&lt;P&gt;                              ZKEYSPEC = wa_cvn-ZKEYSPEC&lt;/P&gt;&lt;P&gt;                              ZBRGHTNS = wa_cvn-ZBRGHTNS&lt;/P&gt;&lt;P&gt;                              AGENTNO = wa_cvn-AGENTNO&lt;/P&gt;&lt;P&gt;                              BPARTNER IS NOT wa_cvn-BPARTNER&lt;/P&gt;&lt;P&gt;                              BP_ACTIVIT = wa_cvn-BP_ACTIVIT&lt;/P&gt;&lt;P&gt;                              ACTIVITYID &amp;lt;b&amp;gt;NE&amp;lt;/b&amp;gt; wa_cvn-activityid&lt;/P&gt;&lt;P&gt;                              ZFLAG &amp;lt;b&amp;gt;NE&amp;lt;/b&amp;gt; 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if useful.........&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2007 03:09:25 GMT</pubDate>
    <dc:creator>harimanjesh_an</dc:creator>
    <dc:date>2007-10-30T03:09:25Z</dc:date>
    <item>
      <title>Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999448#M708569</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;Could you suggest me regarding this please .. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i wanna have the condition for read table not equal .. How can i make it .. ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Read table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE it_cvn_tmp WITH KEY ZMTCLGR1 = wa_cvn-ZMTCLGR1
                              ZKEYSPEC = wa_cvn-ZKEYSPEC
                              ZBRGHTNS = wa_cvn-ZBRGHTNS
                              AGENTNO = wa_cvn-AGENTNO
                              BPARTNER IS NOT wa_cvn-BPARTNER
                              BP_ACTIVIT = wa_cvn-BP_ACTIVIT
                              ACTIVITYID &amp;lt;&amp;gt; wa_cvn-activityid
                              ZFLAG &amp;lt;&amp;gt; 'I'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run that code, i got an error. And it's caused by the operator/logic "&amp;lt;&amp;gt;". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you suggest me what i've to do .. if i wanna make the logic like that ?? &lt;/P&gt;&lt;P&gt;/ Is that any command beyond read table where i can read an internal table ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Niel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 02:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999448#M708569</guid>
      <dc:creator>former_member187400</dc:creator>
      <dc:date>2007-10-30T02:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999449#M708570</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;For this requirement, you can try LOOP statement -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_cvn_tmp WHERE ZMTCLGR1 = wa_cvn-ZMTCLGR1 AND&lt;/P&gt;&lt;P&gt;                              ZKEYSPEC = wa_cvn-ZKEYSPEC AND&lt;/P&gt;&lt;P&gt;                              ZBRGHTNS = wa_cvn-ZBRGHTNS AND&lt;/P&gt;&lt;P&gt;                              AGENTNO = wa_cvn-AGENTNO AND&lt;/P&gt;&lt;P&gt;                              BPARTNER IS NOT wa_cvn-BPARTNER AND&lt;/P&gt;&lt;P&gt;                              BP_ACTIVIT = wa_cvn-BP_ACTIVIT AND&lt;/P&gt;&lt;P&gt;                              ACTIVITYID &amp;lt;&amp;gt; wa_cvn-activityid AND&lt;/P&gt;&lt;P&gt;                              ZFLAG &amp;lt;&amp;gt; 'I'.&lt;/P&gt;&lt;P&gt;EXIT&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Your processing for successful records &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Your processing for failed records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashish Gundawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 02:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999449#M708570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T02:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999450#M708571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use &amp;lt;&amp;gt; in a read statement. But you can leave off the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ACTIVITYID &amp;lt;&amp;gt; wa_cvn-activityid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And do the READ without it. That will position the program at the first record that meets the rest of the criteria. Then you loop at the table from that index postion checking the &amp;lt;&amp;gt; condition and the key fields. When the key fields change, exit the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 02:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999450#M708571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T02:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999451#M708572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with IS NOT instead of using &amp;lt;&amp;gt; symbol....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 02:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999451#M708572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T02:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999452#M708573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ TABLE it_cvn_tmp WITH KEY ZMTCLGR1 = wa_cvn-ZMTCLGR1&lt;/P&gt;&lt;P&gt;                              ZKEYSPEC = wa_cvn-ZKEYSPEC&lt;/P&gt;&lt;P&gt;                              ZBRGHTNS = wa_cvn-ZBRGHTNS&lt;/P&gt;&lt;P&gt;                              AGENTNO = wa_cvn-AGENTNO&lt;/P&gt;&lt;P&gt;                              BPARTNER IS NOT wa_cvn-BPARTNER&lt;/P&gt;&lt;P&gt;                              BP_ACTIVIT = wa_cvn-BP_ACTIVIT&lt;/P&gt;&lt;P&gt;                              ACTIVITYID &amp;lt;&amp;gt; wa_cvn-activityid&lt;/P&gt;&lt;P&gt;                              where ZFLAG &amp;lt;&amp;gt; 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table can only be done with EQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to include NE do this way.&lt;/P&gt;&lt;P&gt;READ TABLE it_cvn_tmp WITH KEY ZMTCLGR1 = wa_cvn-ZMTCLGR1&lt;/P&gt;&lt;P&gt;                              ZKEYSPEC = wa_cvn-ZKEYSPEC&lt;/P&gt;&lt;P&gt;                              ZBRGHTNS = wa_cvn-ZBRGHTNS&lt;/P&gt;&lt;P&gt;                              AGENTNO = wa_cvn-AGENTNO&lt;/P&gt;&lt;P&gt;                              BPARTNER IS NOT wa_cvn-BPARTNER&lt;/P&gt;&lt;P&gt;                              BP_ACTIVIT = wa_cvn-BP_ACTIVIT.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      if it_cvn_tmp-ACTIVITYID &amp;lt;&amp;gt; wa_cvn-activityid and  it_cvn_tmp-ZFLAG &amp;lt;&amp;gt; 'I'.&lt;/P&gt;&lt;P&gt;           write ur code here.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull...:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 03:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999452#M708573</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-10-30T03:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999453#M708574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also include the bpartner in the if condition below....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 03:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999453#M708574</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-10-30T03:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999454#M708575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have You Checked ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_cvn_tmp WITH KEY ZMTCLGR1 = wa_cvn-ZMTCLGR1&lt;/P&gt;&lt;P&gt;                              ZKEYSPEC = wa_cvn-ZKEYSPEC&lt;/P&gt;&lt;P&gt;                              ZBRGHTNS = wa_cvn-ZBRGHTNS&lt;/P&gt;&lt;P&gt;                              AGENTNO = wa_cvn-AGENTNO&lt;/P&gt;&lt;P&gt;                              BPARTNER IS NOT wa_cvn-BPARTNER&lt;/P&gt;&lt;P&gt;                              BP_ACTIVIT = wa_cvn-BP_ACTIVIT&lt;/P&gt;&lt;P&gt;                              ACTIVITYID NE wa_cvn-activityid&lt;/P&gt;&lt;P&gt;                              ZFLAG NE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure give it a try ..&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 03:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999454#M708575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T03:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999455#M708576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi niel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_cvn_tmp WITH KEY ZMTCLGR1 = wa_cvn-ZMTCLGR1&lt;/P&gt;&lt;P&gt;                              ZKEYSPEC = wa_cvn-ZKEYSPEC&lt;/P&gt;&lt;P&gt;                              ZBRGHTNS = wa_cvn-ZBRGHTNS&lt;/P&gt;&lt;P&gt;                              AGENTNO = wa_cvn-AGENTNO&lt;/P&gt;&lt;P&gt;                              BPARTNER IS NOT wa_cvn-BPARTNER&lt;/P&gt;&lt;P&gt;                              BP_ACTIVIT = wa_cvn-BP_ACTIVIT&lt;/P&gt;&lt;P&gt;                              ACTIVITYID &amp;lt;b&amp;gt;NE&amp;lt;/b&amp;gt; wa_cvn-activityid&lt;/P&gt;&lt;P&gt;                              ZFLAG &amp;lt;b&amp;gt;NE&amp;lt;/b&amp;gt; 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if useful.........&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 03:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999455#M708576</guid>
      <dc:creator>harimanjesh_an</dc:creator>
      <dc:date>2007-10-30T03:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999456#M708577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tks all for all your response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Niel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 03:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999456#M708577</guid>
      <dc:creator>former_member187400</dc:creator>
      <dc:date>2007-10-30T03:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding read table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999457#M708578</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 would still suggest using LOOP AT...EXIT...ENDLOOP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of READ TABLE..Then comparing using IF statement..This solution may not work all the times..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 03:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-read-table/m-p/2999457#M708578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T03:27:49Z</dc:date>
    </item>
  </channel>
</rss>

