<?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: Obscure CASE statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566207#M255817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;No, you can not use logical expression with WHEN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 05:03:31 GMT</pubDate>
    <dc:creator>Bema</dc:creator>
    <dc:date>2006-09-18T05:03:31Z</dc:date>
    <item>
      <title>Obscure CASE statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566201#M255811</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;Can CASE be used in the following manner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case true.&lt;/P&gt;&lt;P&gt;  when expression1.&lt;/P&gt;&lt;P&gt;  when expression2.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aside from functional methods can it be used for logical expressions? e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case 1.&lt;/P&gt;&lt;P&gt;  when a &amp;gt; b.&lt;/P&gt;&lt;P&gt;  when a &amp;lt; b.&lt;/P&gt;&lt;P&gt;  when a = b.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 04:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566201#M255811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T04:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Obscure CASE statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566202#M255812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess we can use for logical expressions also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 04:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566202#M255812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T04:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Obscure CASE statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566203#M255813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;U cant use logical expressions in the when statement.&lt;/P&gt;&lt;P&gt;The CASE Control Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This control structure is introduced with the CASE statement. The CASE control structure allows you to control which statement blocks are processed based on the contents of a data object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;  WHEN &amp;lt;f11&amp;gt; [OR &amp;lt;f 12&amp;gt; OR ...]. &lt;/P&gt;&lt;P&gt;       &amp;lt;Statement block&amp;gt;&lt;/P&gt;&lt;P&gt;  WHEN &amp;lt;f21&amp;gt;.[OR &amp;lt;f 22&amp;gt; OR ...] &lt;/P&gt;&lt;P&gt;       &amp;lt;Statement block&amp;gt;&lt;/P&gt;&lt;P&gt;  WHEN &amp;lt;f31&amp;gt; [OR &amp;lt;f 32&amp;gt; OR ...]. &lt;/P&gt;&lt;P&gt;       &amp;lt;statement block&amp;gt;&lt;/P&gt;&lt;P&gt;WHEN ...&lt;/P&gt;&lt;P&gt;  ......&lt;/P&gt;&lt;P&gt;  WHEN OTHERS.&lt;/P&gt;&lt;P&gt;       &amp;lt;statement block&amp;gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement block following a WHEN statement is executed if the contents of &amp;lt;f&amp;gt; are the same as those of one of the fields &amp;lt;f ij &amp;gt;. Afterwards, the program carries on processing after the ENDCASE statement. The statement block after the optional WHEN OTHERS statement is executed if the contents of &amp;lt;f&amp;gt; does not equal any of the &amp;lt;f ij &amp;gt; contents. The last statement block must be concluded with ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CASE control structure is a shortened form of the following IF structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;f&amp;gt; = &amp;lt;f11&amp;gt; OR &amp;lt;f&amp;gt; = &amp;lt;f 12&amp;gt; OR &amp;lt;f&amp;gt; = ... &lt;/P&gt;&lt;P&gt;  &amp;lt;Statement block&amp;gt;&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;f&amp;gt; = &amp;lt;f21&amp;gt; OR &amp;lt;f&amp;gt; = &amp;lt;f 22&amp;gt; OR &amp;lt;f&amp;gt; =... &lt;/P&gt;&lt;P&gt;  &amp;lt;Statement block&amp;gt;&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;f&amp;gt; = &amp;lt;f21&amp;gt; OR &amp;lt;f&amp;gt; = &amp;lt;f 22&amp;gt; OR &amp;lt;f&amp;gt; =... &lt;/P&gt;&lt;P&gt;  &amp;lt;statement block&amp;gt;&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;f&amp;gt; = ...&lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  &amp;lt;statement block&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can nest CASE control structures and also combine them with IF structures. However, they must always end with an ENDCASE statement within the current processing block. &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;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 04:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566203#M255813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T04:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Obscure CASE statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566204#M255814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;yes u can use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 04:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566204#M255814</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-09-18T04:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Obscure CASE statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566205#M255815</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;sure u can write like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 04:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566205#M255815</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-18T04:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Obscure CASE statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566206#M255816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No, CASE statement can not be used like that. WHEN statment can not have logical expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 04:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566206#M255816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T04:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Obscure CASE statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566207#M255817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;No, you can not use logical expression with WHEN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 05:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/obscure-case-statement/m-p/1566207#M255817</guid>
      <dc:creator>Bema</dc:creator>
      <dc:date>2006-09-18T05:03:31Z</dc:date>
    </item>
  </channel>
</rss>

