<?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: logic in a internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653318#M1286190</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;Check this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT matnr
           sernr
           kunde
           objnr FROM equi
           INTO TABLE itab_equi  " i am getting 11 values here 
           WHERE kunde = kunde .
IF itab_equi[] IS NOT INITIAL.
      SELECT j_objnr
                   gwldt
                   gwlen FROM bgmkobj
                   INTO TABLE itab_bgmkobj " i am getting 4 values here 
                   FOR ALL ENTRIES IN itab_equi
                   WHERE j_objnr NE itab_equi-objnr .  "--&amp;gt; Check here

Or

Select all the data from bgmkobj into internal table  itab_bgmkobj.
Loop the  itab_bgmkobj and check the entry using entries in internal table itab_equi..if found delete ..the left entries are what you required

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 15:47:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-14T15:47:45Z</dc:date>
    <item>
      <title>logic in a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653316#M1286188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts , i need a logic &lt;/P&gt;&lt;P&gt;i have a internal table itab_equi in that i am getting 11 values when i pass this internal table to another table using for all entries i will get 4 values in int_bmgkobj . i need logic for how to get the deleted values  i.e 9 values deleted . i need that value 9 values .. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT matnr
           sernr
           kunde
           objnr FROM equi
           INTO TABLE itab_equi  " i am getting 11 values here 
           WHERE kunde = kunde .
IF itab_equi[] IS NOT INITIAL.
      SELECT j_objnr
                   gwldt
                   gwlen FROM bgmkobj
                   INTO TABLE itab_bgmkobj " i am getting 4 values here 
                   FOR ALL ENTRIES IN itab_equi
                   WHERE j_objnr = itab_equi-objnr .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i need the deleted 9 values in a seperate internal table ..&lt;/P&gt;&lt;P&gt;plz help me for this logic &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;chinnaiya P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 15:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653316#M1286188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T15:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: logic in a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653317#M1286189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select the whole second table into anothe internal table, loop on it and read itab_bgmkobj with the apropiate   key to locate a match. If found, delete that record from your new internal table. At the end of this loop you'll have the entries separated in the two tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also loop at itab_bgmkobj and read the new table, deleting there, this could work faster for this case, although with this ammount of data, it's almost non mesurable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 15:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653317#M1286189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T15:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: logic in a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653318#M1286190</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;Check this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT matnr
           sernr
           kunde
           objnr FROM equi
           INTO TABLE itab_equi  " i am getting 11 values here 
           WHERE kunde = kunde .
IF itab_equi[] IS NOT INITIAL.
      SELECT j_objnr
                   gwldt
                   gwlen FROM bgmkobj
                   INTO TABLE itab_bgmkobj " i am getting 4 values here 
                   FOR ALL ENTRIES IN itab_equi
                   WHERE j_objnr NE itab_equi-objnr .  "--&amp;gt; Check here

Or

Select all the data from bgmkobj into internal table  itab_bgmkobj.
Loop the  itab_bgmkobj and check the entry using entries in internal table itab_equi..if found delete ..the left entries are what you required

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 15:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653318#M1286190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: logic in a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653319#M1286191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's generally not a good idea to select all entries into an internal table and then filter them. This can cause performance problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, the problem is likely due to the fact that FOR ALL ENTRIES eliminates duplicates according to the fields used in the WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is documented in SELECT. Have a look at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 16:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-in-a-internal-table/m-p/5653319#M1286191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T16:06:08Z</dc:date>
    </item>
  </channel>
</rss>

