<?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: how to include dynamic where clause in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735604#M635379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai the requierment is that i dont know the where clause till runtime i mean whcih fields i have to pass to select statment and what conditions like or and, so once i may get there fields and next time 4 fields and conditions may differ or and , so i want to build the where clause based on this&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;afzal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2007 10:39:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-17T10:39:56Z</dc:date>
    <item>
      <title>how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735601#M635376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai i want to write the dyanamic where clause to my select statments can any one suggest me how to do it&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;afzak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735601#M635376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735602#M635377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi... what do u want to do exactly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735602#M635377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735603#M635378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the below post&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="131518"&gt;&lt;/A&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="131518"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735603#M635378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735604#M635379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai the requierment is that i dont know the where clause till runtime i mean whcih fields i have to pass to select statment and what conditions like or and, so once i may get there fields and next time 4 fields and conditions may differ or and , so i want to build the where clause based on this&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;afzal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735604#M635379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735605#M635380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please go through this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=74847" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=74847&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735605#M635380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735606#M635381</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;u should create a screen in screen painter and put a button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where condition there and text boxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then u can create u r own&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is posibility in screen painter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735606#M635381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735607#M635382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * FROM &amp;lt;db table&amp;gt; into &amp;lt;wa&amp;gt; WHERE (&amp;lt;cond_syntax&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can build the cond_syntax programatically by using string operations like concatenate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735607#M635382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735608#M635383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi... u can select dynamic fields as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str type table of string.&lt;/P&gt;&lt;P&gt;data: st type string.&lt;/P&gt;&lt;P&gt;(here u can append ur fields' name into str which u want to..&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;st = 'carrid'.&lt;/P&gt;&lt;P&gt;append st to str.&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select (str) from spfli into corresponding fields of table it_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way u can select dynamic fields int select query..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735608#M635383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735609#M635384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Dynamic " where" can be achieved by the FM &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'AIBZ_FILL_WHERE_CLAUSE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;                i_tabname       = &lt;/P&gt;&lt;P&gt;                it_select       =  &lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                es_where_clause =       .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass all the exporting parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rvert back if any issues,&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 10:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735609#M635384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T10:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to include dynamic where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735610#M635385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Afzal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_select_dynamic_conditions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: cond(72) TYPE c,&lt;/P&gt;&lt;P&gt;      itab LIKE TABLE OF cond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: city1(10) TYPE c, city2(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa TYPE spfli-cityfrom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'CITYFROM = ''' city1 '''' INTO cond.&lt;/P&gt;&lt;P&gt;APPEND cond TO itab.&lt;/P&gt;&lt;P&gt;CONCATENATE 'OR CITYFROM = ''' city2 '''' INTO cond.&lt;/P&gt;&lt;P&gt;APPEND cond TO itab.&lt;/P&gt;&lt;P&gt;CONCATENATE 'OR CITYFROM = ''' 'BERLIN' '''' INTO cond.&lt;/P&gt;&lt;P&gt;APPEND cond TO itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO cond.&lt;/P&gt;&lt;P&gt;  WRITE cond.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  cityfrom&lt;/P&gt;&lt;P&gt;  INTO  wa&lt;/P&gt;&lt;P&gt;  FROM  spfli&lt;/P&gt;&lt;P&gt;  WHERE (itab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE / wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 11:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-dynamic-where-clause/m-p/2735610#M635385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T11:01:21Z</dc:date>
    </item>
  </channel>
</rss>

