<?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: where condition on a dynamic table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031064#M963411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt; Thanks for the post .&lt;/P&gt;&lt;P&gt; I didnt find anything specific to my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;KK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 18:01:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-10T18:01:23Z</dc:date>
    <item>
      <title>where condition on a dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031060#M963407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; how to use a where condition on a dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; existing code as shown below is taking enormous processing time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;loop at dynamic_hased_tab in to &amp;lt;fs_dynamic_tab&amp;gt;&lt;/P&gt;&lt;P&gt; assign component 'field1' of structure &amp;lt;fs_dynamic_tab&amp;gt; to &amp;lt;fs_field1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if itab-field1 = &amp;lt;fs_field1&amp;gt;&lt;/P&gt;&lt;P&gt;****logic&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; loop at dynamic_hased_tab where...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;processing logic&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of above code i want something like this.is it possible. please let me know if you have any ideas on how to performance tune the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 18:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031060#M963407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: where condition on a dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031061#M963408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u can not directly write where conditon to the dynamic internal table u need to write the this way as u said &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
loop at dynamic_hased_tab in to &amp;lt;fs_dynamic_tab&amp;gt;
assign component 'field1' of structure &amp;lt;fs_dynamic_tab&amp;gt; to &amp;lt;fs_field1&amp;gt;

if itab-field1 = &amp;lt;fs_field1&amp;gt;
------
------
endif. 

endloop.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below blog:&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 18:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031061#M963408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T18:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: where condition on a dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031062#M963409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; thanks for your prompt response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if i'm looping and checking fields row by row, it will loop on all records in my dynamic table which means for every entry i will be looping 'n' number of times , n is the no. of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to avoid that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 19:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031062#M963409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T19:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: where condition on a dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031063#M963410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 20:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031063#M963410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T20:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: where condition on a dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031064#M963411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt; Thanks for the post .&lt;/P&gt;&lt;P&gt; I didnt find anything specific to my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;KK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 18:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031064#M963411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T18:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: where condition on a dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031065#M963412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried class cl_rs_where  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check following link:&lt;/P&gt;&lt;P&gt;/people/ravishankar.rajan/blog/2006/12/21/building-dynamic-sql-statements-using-the-clrswhere-class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 19:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-on-a-dynamic-table/m-p/4031065#M963412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T19:12:18Z</dc:date>
    </item>
  </channel>
</rss>

