<?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: Problem in Select using for all entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542746#M1752161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankaranarayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check first there is no direct link between this two tables &lt;STRONG&gt;cgpl_entity&lt;/STRONG&gt; and&amp;nbsp; &lt;STRONG&gt;DPR_TASK.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check it SQVI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;due to that sy-subrc = 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 04:59:43 GMT</pubDate>
    <dc:creator>former_member209120</dc:creator>
    <dc:date>2013-06-27T04:59:43Z</dc:date>
    <item>
      <title>Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542740#M1752155</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;My second select statement from dpr_task is not working(sy-subrc 4) though there are entries, I am perplexed !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt; BEGIN OF st_pro_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; guid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LIKE cgpl_project-guid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; external_id LIKE cgpl_entity-external_id,&lt;/P&gt;&lt;P&gt; END OF st_pro_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gt_proj_guid TYPE standard table of&amp;nbsp; st_pro_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gt_dpr_task TYPE STANDARD TABLE OF dpr_task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT guid external_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM cgpl_entity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE gt_proj_guid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE version = space AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; external_id IN project AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object_type = 'DPO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; gt_proj_guid is not initial.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT * FROM dpr_task&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE gt_dpr_task&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN gt_proj_guid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE guid = gt_proj_guid-guid.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542740#M1752155</guid>
      <dc:creator>former_member188251</dc:creator>
      <dc:date>2013-06-26T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542741#M1752156</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 think sort your entries in table gt_proj_guid based on the field in where condition (guid) and delete duplicates in the internal table gt_proj_guid before using FOR ALL ENTRIES. Also try out JOINS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 01:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542741#M1752156</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-06-27T01:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542742#M1752157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; One reason for your problem may be because the statement is not getting executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check if entries are available in internal table gt_proj_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&amp;nbsp; gt_proj_guid[] is not initial. "This checks if whole internal table is empty&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT * FROM dpr_task INTO TABLE gt_dpr_task&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN gt_proj_guid&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE guid = gt_proj_guid-guid.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 03:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542742#M1752157</guid>
      <dc:creator>Arun_Prabhu_K</dc:creator>
      <dc:date>2013-06-27T03:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542743#M1752158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming your first Select is successful, just check whether any Conversion Exit is there on field guid in table dpr_task. If its there then use it before using FOR ALL ENTRIES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am away from SAP system so cannot execute and advice the exact cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 03:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542743#M1752158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T03:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542744#M1752159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the first query . If you are getting the entries there check whether those entries are there in second table. Am not seeing anything wrong in your second query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 04:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542744#M1752159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T04:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542745#M1752160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Definitely use an INNER JOIN. In most cases it is more efficient than FOR ALL ENTRIES; it also makes for more readable code which is cheaper and easier to maintain - and better programming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 04:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542745#M1752160</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-06-27T04:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542746#M1752161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankaranarayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check first there is no direct link between this two tables &lt;STRONG&gt;cgpl_entity&lt;/STRONG&gt; and&amp;nbsp; &lt;STRONG&gt;DPR_TASK.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check it SQVI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;due to that sy-subrc = 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 04:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542746#M1752161</guid>
      <dc:creator>former_member209120</dc:creator>
      <dc:date>2013-06-27T04:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542747#M1752162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankarnarayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the query is failing due to the field GUID in &lt;STRONG&gt;DPR_TASK &lt;/STRONG&gt;does not match to cgpl_project-guid in terms of data dictionary attribiutes like data element etc. May be sometimes the fields do not have internal conversion exits due to which sometimes zeros are not adjusted to the field value and due to which, it can be the case in this scenario one GUID in DPR_TASK can have zeros and the one in CGPL_PROJECT can't or vice versa as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Pranav agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 05:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542747#M1752162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T05:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542748#M1752163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked both the tables and they do have conversion exits for GUID but thats not the problem. There seems to be no corresponding data amongst the two tables. I checked in SE16 the data for both the tables and found no corresponding entry for GUID in DPR_TASK from GUID in CGPL_ENTITY. I advice you to check whether you have any corresponding entry first in SE16 of both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 05:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542748#M1752163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T05:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542749#M1752164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is either a type mismatch gt_dpr_task-guid &amp;amp; gt_proj_guid-guid fields or as Ankit said Conversion exit FM can be called and append zeros for gt_proj_guid-guid field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Adithi &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 06:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542749#M1752164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T06:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542750#M1752165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would request you to go thru the link:&lt;/P&gt;&lt;P&gt;cgpl_entity-&amp;gt;cgpl_hierarchy-&amp;gt; dpr_task&lt;/P&gt;&lt;P&gt;Hopefully this solves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Pranav Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 06:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542750#M1752165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T06:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542751#M1752166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shankarnarayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) sort the first table.&lt;/P&gt;&lt;P&gt;2) data in the first table might not contain data in the second table. so sy-subrc eq 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;STRONG&gt;here in the second select statement you are comparing the both RAW type fields in both tables.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actually during runtime, RAW type fields converted to binary values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here, In the first query values are converted as binary values. and this binary values are compared with the actual values in table &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; dpr_task. so it will always gives sy-subrc = 4.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 06:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542751#M1752166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T06:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542752#M1752167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As&amp;nbsp; &lt;SPAN class="j-post-author "&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/matthew.billingham" id="jive-2407927130531010833131"&gt;Matthew Billingham&lt;/A&gt; wrote you could use a JOIN and not a FOR ALL ENTRIES, but you could also use a &lt;A href="http://help.sap.com/abapdocu_731/en/abenwhere_logexp_subquery.htm"&gt;subquery&lt;/A&gt;, &lt;/SPAN&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;code&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would look something like&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the following statement.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;SELECT * &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;dpr_task&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;gt_dpr_task&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;EXISTS &lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;cgpl_entity&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;external_id &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gt_dpr_task&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;guid&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;version &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;space&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;external_id &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;project&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;object_type &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DPO' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT * &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;dpr_task&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;gt_dpr_task&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;guid &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;external_id&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;cgpl_entity&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;version &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;space&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;external_id &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;project&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;object_type &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DPO' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 08:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542752#M1752167</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-27T08:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542753#M1752168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, the entries were indeed not there in dpr_task . I should have checked it . Apologize for the same. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 13:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-using-for-all-entries/m-p/9542753#M1752168</guid>
      <dc:creator>former_member188251</dc:creator>
      <dc:date>2013-07-03T13:06:02Z</dc:date>
    </item>
  </channel>
</rss>

