<?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: dynamic where condition in loop statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235754#M772113</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;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: cond(72) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: condtab TYPE TABLE OF cond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND  'CARRID = ' 'LH' '  AND'         TO condtab.&lt;/P&gt;&lt;P&gt;APPEND  'CITYTO = ' 'NEW YORK' '  .' TO condtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where (condtab). &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;otherwise u can use the FM 'RH_DYNAMIC_WHERE_BUILD' for building the dynamic where clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas Ch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2008 13:42:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-15T13:42:48Z</dc:date>
    <item>
      <title>dynamic where condition in loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235752#M772111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab where (condi).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;......&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;can i have a dynamic where clause for a loop statement and HOW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 13:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235752#M772111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T13:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic where condition in loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235753#M772112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you mean by &lt;STRONG&gt;dynamic where clause&lt;/STRONG&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 13:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235753#M772112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic where condition in loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235754#M772113</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;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: cond(72) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: condtab TYPE TABLE OF cond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND  'CARRID = ' 'LH' '  AND'         TO condtab.&lt;/P&gt;&lt;P&gt;APPEND  'CITYTO = ' 'NEW YORK' '  .' TO condtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where (condtab). &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;otherwise u can use the FM 'RH_DYNAMIC_WHERE_BUILD' for building the dynamic where clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas Ch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 13:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235754#M772113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic where condition in loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235755#M772114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 13:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235755#M772114</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-01-15T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic where condition in loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235756#M772115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Taken directly from F1 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Addition 3&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;... WHERE log_exp&lt;/EM&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Effect&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE can be specified with all table-types. After WHERE, you can specify any logical expression log_exp in which the first operand of any singular comparison is a component of the internal table. For this reason, all logical expressions are possible except for IS ASSIGNED, IS REQUESTED and IS SUPPLIED. &lt;STRONG&gt;Dynamic specification of a component through bracketed character-type data objects is not possible&lt;/STRONG&gt;. Loops at sorted tables must have compatible operands of the logical expression. All rows are read for which the logical expression is true.&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 13:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235756#M772115</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-15T13:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic where condition in loop statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235757#M772116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mate your question is your answer. You can have a syntax like what u specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at Itab where rec1 = 'xyz'.&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;So what this loop does is ..It will loop only records where the rec1 is 'XYZ'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 14:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-where-condition-in-loop-statement/m-p/3235757#M772116</guid>
      <dc:creator>former_member182354</dc:creator>
      <dc:date>2008-01-15T14:12:05Z</dc:date>
    </item>
  </channel>
</rss>

