<?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 Dynamic Where clause in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712272#M311502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;I want to create the dynamic where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GI_WHERE(72) OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;INTO TABLE GI_VBAK&lt;/P&gt;&lt;P&gt;FROM VBAK&lt;/P&gt;&lt;P&gt;WHERE (GI_WHERE).&lt;/P&gt;&lt;P&gt;In that where clause contain ranges.&lt;/P&gt;&lt;P&gt;for eg.&lt;/P&gt;&lt;P&gt;GI_WHERE = 'VBELN IN S_VBELN'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2006 18:10:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-24T18:10:34Z</dc:date>
    <item>
      <title>Dynamic Where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712272#M311502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;I want to create the dynamic where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GI_WHERE(72) OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;INTO TABLE GI_VBAK&lt;/P&gt;&lt;P&gt;FROM VBAK&lt;/P&gt;&lt;P&gt;WHERE (GI_WHERE).&lt;/P&gt;&lt;P&gt;In that where clause contain ranges.&lt;/P&gt;&lt;P&gt;for eg.&lt;/P&gt;&lt;P&gt;GI_WHERE = 'VBELN IN S_VBELN'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 18:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712272#M311502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T18:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712273#M311503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     You can do this by building a String of what you want to put in the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;DATA: where_string type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate where_string 'VBELN IN S_VBELN' into where_string separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM table_name into table it_tab where ( where_string ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 07:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712273#M311503</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-10-25T07:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712274#M311504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;       follow below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data lv_str type string value 'GI_WHERE'.&lt;/P&gt;&lt;P&gt;       lv_str1 type string value 'VBELN IN S_VBELN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GI_WHERE(72) OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE lv_str ' = '''lv_str1'''' '.'&lt;/P&gt;&lt;P&gt;   INTO gi_where.&lt;/P&gt;&lt;P&gt;   APPEND gi_where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;INTO TABLE GI_VBAK&lt;/P&gt;&lt;P&gt;FROM VBAK&lt;/P&gt;&lt;P&gt;WHERE (GI_WHERE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 11:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712274#M311504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712275#M311505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can't use the "in" within a dynamic clause.&lt;/P&gt;&lt;P&gt;Please refer to ABAP-keyword documentation of dynamic logical condition.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Olaf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 08:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-clause/m-p/1712275#M311505</guid>
      <dc:creator>Olaf_B</dc:creator>
      <dc:date>2006-10-27T08:37:10Z</dc:date>
    </item>
  </channel>
</rss>

