<?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: Select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291930#M1023809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think any of the proposed solutions will work. You should build a range table using EQ and "E"xclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 13:12:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T13:12:07Z</dc:date>
    <item>
      <title>Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291923#M1023802</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 am having an internal table itab1 with 100 records(Purchase order numbers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write a select query to fetch all the records from the table ekpo into table itab2 other than the records in the internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means i should not select the records into internaltable  itab2 which r existing in the internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me the select query&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;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291923#M1023802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T13:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291924#M1023803</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;use for all entries statement, in the where statement use NE for all fields in itab1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:08:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291924#M1023803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T13:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291925#M1023804</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me the select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select **&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;from ekpo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;into itab2&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for all entries in table itab1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where &amp;lt;condition&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291925#M1023804</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-30T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291926#M1023805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;I would move the numbers from the itab into a range the following way:&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;sign option low&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;I NE number1&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;I NE number2&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;...&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;then the select would be:&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;SELECT ... FROM EKPO INTO ... WHERE ebeln IN range.&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;hope this helps&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;ec&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rubbish... scroll down to Rob Burbank's post...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291926#M1023805</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-30T13:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291927#M1023806</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; this might be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from ekpo into table itab2 for all entries in itab1 where ebeln ne itab1-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291927#M1023806</guid>
      <dc:creator>KalC</dc:creator>
      <dc:date>2008-07-30T13:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291928#M1023807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select ebeln &lt;/P&gt;&lt;P&gt;          from ekko&lt;/P&gt;&lt;P&gt;          into table itab&lt;/P&gt;&lt;P&gt;          where ebeln in s_ebeln .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;select ebeln&lt;/P&gt;&lt;P&gt;          ebelp &lt;/P&gt;&lt;P&gt;          from ekpo &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 ebeln = itab-ebeln.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291928#M1023807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T13:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291929#M1023808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;itab_100.&amp;lt;--100 records table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_final is the select from EKPO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from ekpo
 into table itab_final
 where condition.

loop at itab_final

 read table itab_100.
 if sy-subrc eq 0.
  delete itab_final.
 endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291929#M1023808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T13:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291930#M1023809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think any of the proposed solutions will work. You should build a range table using EQ and "E"xclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291930#M1023809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T13:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291931#M1023810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;Just give the &lt;STRONG&gt;WHERE clause conditions reverse in EKPO&lt;/STRONG&gt; &lt;STRONG&gt;select&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: If u r using some field EQ in ekko then use NE in ekpo.&lt;/P&gt;&lt;P&gt;But in this case the where clause fields should be common in ekko and ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also paste the code on how u r populating the data into itab1(Po numbers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 13:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4291931#M1023810</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-07-30T13:12:36Z</dc:date>
    </item>
  </channel>
</rss>

