<?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 SAP Script condition statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-condition-statements/m-p/885715#M52449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to put condition statements in SAP Script?&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;Dilip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2005 07:06:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-04-07T07:06:55Z</dc:date>
    <item>
      <title>SAP Script condition statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-condition-statements/m-p/885715#M52449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to put condition statements in SAP Script?&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;Dilip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2005 07:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-condition-statements/m-p/885715#M52449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-07T07:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script condition statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-condition-statements/m-p/885716#M52450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="25521"&gt;&lt;/A&gt; See if helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2005 07:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-condition-statements/m-p/885716#M52450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-07T07:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script condition statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-condition-statements/m-p/885717#M52451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are some helpful hints&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Conditional Text: IF&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;You can use the IF control command to specify that text lines should be printed only when certain&lt;/P&gt;&lt;P&gt;conditions are met. If the logical expression contained within the IF command is true, then the&lt;/P&gt;&lt;P&gt;text lines enclosed by the IF... ENDIF command pair are printed. Otherwise they are ignored.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Syntax:&lt;/P&gt;&lt;P&gt;/: IF condition&lt;/P&gt;&lt;P&gt;::&lt;/P&gt;&lt;P&gt;/: ENDIF&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The logical expression can use the following comparison operators:&lt;/P&gt;&lt;P&gt;= EQ equal to&lt;/P&gt;&lt;P&gt;&amp;lt; LT less than&lt;/P&gt;&lt;P&gt;&amp;gt; GT greater than&lt;/P&gt;&lt;P&gt;&amp;lt;= LE less than or equal to&lt;/P&gt;&lt;P&gt;&amp;gt;= GE greater than or equal to&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;gt; NE not equal to&lt;/P&gt;&lt;P&gt;The following logical operators can be used to combine conditions:&lt;/P&gt;&lt;P&gt;  NOT&lt;/P&gt;&lt;P&gt;  AND&lt;/P&gt;&lt;P&gt;  OR&lt;/P&gt;&lt;P&gt;Evaluation of both the individual logical expressions and of the combinations of expressions is&lt;/P&gt;&lt;P&gt;performed strictly from left to right. There are no precedence rules. Bracketed expressions are&lt;/P&gt;&lt;P&gt;not supported.&lt;/P&gt;&lt;P&gt;The comparison is always performed on literal values, that is, the symbols are formatted as&lt;/P&gt;&lt;P&gt;character strings before they are compared. This is particularly significant in the case of program&lt;/P&gt;&lt;P&gt;symbols, because the formatting of these may depend on various parameters. For example, the&lt;/P&gt;&lt;P&gt;formatted form of a currency field employs a variable number of decimal places and a variable&lt;/P&gt;&lt;P&gt;&amp;#145;decimal point&amp;#146; symbol (a period or a comma) depending on the applicable currency key.&lt;/P&gt;&lt;P&gt;You can extend the IF command with the ELSE command to allow text lines to be specified that&lt;/P&gt;&lt;P&gt;you want to print in case the condition is false. If the condition is true, the text lines enclosed by&lt;/P&gt;&lt;P&gt;the IF and ELSE commands are formatted; otherwise the text lines enclosed by the ELSE and&lt;/P&gt;&lt;P&gt;ENDIF commands are formatted.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Syntax:&lt;/P&gt;&lt;P&gt;/: IF condition&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ELSE&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ENDIF&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The ELSEIF command allows you to specify multiple cases.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Syntax:&lt;/P&gt;&lt;P&gt;/: IF condition&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ELSEIF condition&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ELSE&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ENDIF&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;You can use any number of ELSEIF commands within one compound IF.. ENDIF control&lt;/P&gt;&lt;P&gt;command. The use of an ELSE command is then optional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Finding a Match: CASE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The CASE command covers a special case of the multiple case IF command. Rather than&lt;/P&gt;&lt;P&gt;allowing an arbitrary condition to be tested in each of the individual cases (as in the general&lt;/P&gt;&lt;P&gt;multiple case IF command), the CASE command allows a given symbol to be tested against&lt;/P&gt;&lt;P&gt;specific values until a matching value is found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Syntax:&lt;/P&gt;&lt;P&gt;/: CASE symbol&lt;/P&gt;&lt;P&gt;/: WHEN value1&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: WHEN value2&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: WHEN valuen&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: WHEN OTHERS.&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ENDCASE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The symbol in the CASE line is formatted. If its value is found in one of the WHEN lines, then the&lt;/P&gt;&lt;P&gt;text lines following this WHEN line are printed. If no matching value is found then the text lines&lt;/P&gt;&lt;P&gt;enclosed by the WHEN OTHERS line and the ENDCASE command are printed. The WHEN&lt;/P&gt;&lt;P&gt;OTHERS section is optional.&lt;/P&gt;&lt;P&gt;As with the IF command, the comparison is always performed on literal values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2005 23:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-condition-statements/m-p/885717#M52451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-07T23:18:21Z</dc:date>
    </item>
  </channel>
</rss>

