<?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 selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957719#M697732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation regarding internal tables. I have different records with the same order no in a internal table. There is a filed for completion which has possible values X or ' '. The values will be different  for this field for the records with the same oredr no. I need to move only those records which does not have 'an X' at all in the completion field for any of the record with the order no. I am not able figure out the logic. Plz help me in this regard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2007 18:07:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-24T18:07:08Z</dc:date>
    <item>
      <title>internal table selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957719#M697732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation regarding internal tables. I have different records with the same order no in a internal table. There is a filed for completion which has possible values X or ' '. The values will be different  for this field for the records with the same oredr no. I need to move only those records which does not have 'an X' at all in the completion field for any of the record with the order no. I am not able figure out the logic. Plz help me in this regard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 18:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957719#M697732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T18:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: internal table selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957720#M697733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anirvesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that the original internal table is ITAB1 and the fields are ORDNR, XFELD. Your intention is to get ITAB3 loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution could look like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB2[] = ITAB1[].&lt;/P&gt;&lt;P&gt;SORT ITAB2 BY ORDNR.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM ITAB2 COMPARING ORDNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2.&lt;/P&gt;&lt;P&gt;  LORDNR = ITAB2-ORDNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB1 WHERE ORDNR = LORDNR AND XFELD = ' '.&lt;/P&gt;&lt;P&gt;    ITAB3 = ITAB1.&lt;/P&gt;&lt;P&gt;    APPEND ITAB3.&lt;/P&gt;&lt;P&gt;   ENDLOOP. " ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP. " ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More inputs would be helpful to clearly understand your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chaps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 20:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957720#M697733</guid>
      <dc:creator>ci985642</dc:creator>
      <dc:date>2007-10-24T20:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: internal table selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957721#M697734</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Create another internal table which is the same structure your original internal 
*  table..Let's assume your original internal table is ITAB 
DATA: ITAB_FINAL LIKE TABLE OF ITAB.

* Move the values to the itab_final from itab.
itab_final[] = itab[].

* Delete the records that are not X
delete itab_final where completion_field &amp;lt;&amp;gt; 'X'. 

* Now the itab_final will have the records that do not have X

&lt;/CODE&gt;&lt;/PRE&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>Wed, 24 Oct 2007 20:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957721#M697734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T20:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: internal table selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957722#M697735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicate post &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="609695"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locking thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 22:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-selection/m-p/2957722#M697735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T22:32:46Z</dc:date>
    </item>
  </channel>
</rss>

