<?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: About Sap Scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039273#M965422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the IF control command to specify that text lines should be output only when certain conditions are met.  If the logical expression contained within the IF command evaluates to be true, then the text lines enclosed by the IF ... ENDIF command pair will be output.  Otherwise they are ignored.&lt;/P&gt;&lt;P&gt;Syntax: &lt;/P&gt;&lt;P&gt;/: IF condition  &lt;/P&gt;&lt;P&gt;	:  &lt;/P&gt;&lt;P&gt;	: &lt;/P&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;The logical expression can use the following the comparison operators:&lt;/P&gt;&lt;P&gt;u2022	=   EQ 	  equal to&lt;/P&gt;&lt;P&gt;u2022	&amp;lt;   LT       less than&lt;/P&gt;&lt;P&gt;u2022	&amp;gt;   GT      greater than&lt;/P&gt;&lt;P&gt;u2022	&amp;lt;=  LE      less than or equal to&lt;/P&gt;&lt;P&gt;u2022	&amp;gt;=  GE     greater than or equal to&lt;/P&gt;&lt;P&gt;u2022	&amp;lt;&amp;gt;  NE      not equal to&lt;/P&gt;&lt;P&gt;The following logical connective operators can be used to combine conditions: &lt;/P&gt;&lt;P&gt;u2022	NOT &lt;/P&gt;&lt;P&gt;u2022	AND &lt;/P&gt;&lt;P&gt;u2022	OR&lt;/P&gt;&lt;P&gt;Evaluation of both the individual logical expressions and of the combinations of expressions is performed strictly from left to right.  There are no precedence rules.  Bracketed expressions are not supported.&lt;/P&gt;&lt;P&gt;The comparison is always performed on literal values, i.e. the symbols are formatted as character strings before being compared rather than using the internal form.  This is particularly significant in the case of program symbols, because the formatting of these may  depend on various parameters.  For example, the formatted form of a currency field employs a variable number of decimal places and a variable 'decimal point' symbol (e.g. a period or a comma) depending on the applicable currency key.&lt;/P&gt;&lt;P&gt;The IF command may be extended with the ELSE command to allow text lines to be specified which are to be output in the case that the condition evaluates to be false.  The text lines enclosed by the IF and ELSE commands are formatted if the condition is true; otherwise the text lines enclosed by the ELSE and ENDIF commands are formatted.&lt;/P&gt;&lt;P&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&lt;/P&gt;&lt;P&gt;The ELSEIF command allows multiple cases to be specified.&lt;/P&gt;&lt;P&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&lt;/P&gt;&lt;P&gt;You can use arbitrarily many ELSEIF commands within one compound IF .. ENDIF control command.  The use of an ELSE command is then optional.&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;u2022	A condition may not occupy several lines.  Both the IF or ELSEIF command and the attached condition must be completely contained within a single line.&lt;/P&gt;&lt;P&gt;u2022	IF commands may be nested.  &lt;/P&gt;&lt;P&gt;u2022	An IF command must be terminated with an ENDIF command.  If this is forgotten, then there will be no more output following the IF command if the condition evaluates to be false.&lt;/P&gt;&lt;P&gt;u2022	If a syntax error occurs in the interpretation of this command, then the command will not be executed.  This may have an unexpected effect on the subsequent text output.  For example if the IF statement is incorrect, then all following ELSEIF and ELSE commands will be ignored, since the opening IF command is 'missing'.  This will cause all the text lines attached to the ELSEIF and ELSE commands to be output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2008 07:36:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-11T07:36:33Z</dc:date>
    <item>
      <title>About Sap Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039270#M965419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use IF condition in  Script editor ?&lt;/P&gt;&lt;P&gt;If possible pls explain in detail .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;kaladhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 07:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039270#M965419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T07:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: About Sap Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039271#M965420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/: if &amp;lt;var1&amp;gt; eq &amp;lt;var2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:  end if.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if ,,,,&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;Anbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 07:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039271#M965420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T07:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: About Sap Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039272#M965421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kaladhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Formatting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL&amp;amp;                  No formatting&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL+4&amp;amp;                 Offset - Output begins here. Offset refers to formatted value&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL(5)&amp;amp;                 Length - Output data in the specified length&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL(I)&amp;amp;                 Suppress initial value - If the field has been initialized, nothing is output&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL(Z)&amp;amp;                 Suppress leading zeros  &lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL(C)&amp;amp;                 Compress blank spaces - Consecutice spaces are compressed into a single space. Leading spacesare suppressed.&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL(R)&amp;amp;                 Right align output&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL(S)&amp;amp;                 Operators are suppressed&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL(*)&amp;amp;                 Dictionary length - The data length is defined by the ABAP dictionary&lt;/P&gt;&lt;P&gt;&amp;amp;SYMBOL(8.2)&amp;amp;                  Decimal format. Length 8 decimals 2&lt;/P&gt;&lt;P&gt;&amp;amp;'text1'SYMBOL'text2'&amp;amp;         Text can be inserted before and after the symbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Control commands&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Control command are used to modify text output. Use format key /: in the format column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: INCLUDE&lt;/P&gt;&lt;P&gt;/: DEFINE&lt;/P&gt;&lt;P&gt;/: ADDRESS....ENDADDRESS&lt;/P&gt;&lt;P&gt;/: PROTECT.....ENDPROTECT&lt;/P&gt;&lt;P&gt;/: NEW-PAGE&lt;/P&gt;&lt;P&gt;/: IF....ENDIF&lt;/P&gt;&lt;P&gt;/: CASE...ENDCASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 07:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039272#M965421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T07:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: About Sap Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039273#M965422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the IF control command to specify that text lines should be output only when certain conditions are met.  If the logical expression contained within the IF command evaluates to be true, then the text lines enclosed by the IF ... ENDIF command pair will be output.  Otherwise they are ignored.&lt;/P&gt;&lt;P&gt;Syntax: &lt;/P&gt;&lt;P&gt;/: IF condition  &lt;/P&gt;&lt;P&gt;	:  &lt;/P&gt;&lt;P&gt;	: &lt;/P&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;The logical expression can use the following the comparison operators:&lt;/P&gt;&lt;P&gt;u2022	=   EQ 	  equal to&lt;/P&gt;&lt;P&gt;u2022	&amp;lt;   LT       less than&lt;/P&gt;&lt;P&gt;u2022	&amp;gt;   GT      greater than&lt;/P&gt;&lt;P&gt;u2022	&amp;lt;=  LE      less than or equal to&lt;/P&gt;&lt;P&gt;u2022	&amp;gt;=  GE     greater than or equal to&lt;/P&gt;&lt;P&gt;u2022	&amp;lt;&amp;gt;  NE      not equal to&lt;/P&gt;&lt;P&gt;The following logical connective operators can be used to combine conditions: &lt;/P&gt;&lt;P&gt;u2022	NOT &lt;/P&gt;&lt;P&gt;u2022	AND &lt;/P&gt;&lt;P&gt;u2022	OR&lt;/P&gt;&lt;P&gt;Evaluation of both the individual logical expressions and of the combinations of expressions is performed strictly from left to right.  There are no precedence rules.  Bracketed expressions are not supported.&lt;/P&gt;&lt;P&gt;The comparison is always performed on literal values, i.e. the symbols are formatted as character strings before being compared rather than using the internal form.  This is particularly significant in the case of program symbols, because the formatting of these may  depend on various parameters.  For example, the formatted form of a currency field employs a variable number of decimal places and a variable 'decimal point' symbol (e.g. a period or a comma) depending on the applicable currency key.&lt;/P&gt;&lt;P&gt;The IF command may be extended with the ELSE command to allow text lines to be specified which are to be output in the case that the condition evaluates to be false.  The text lines enclosed by the IF and ELSE commands are formatted if the condition is true; otherwise the text lines enclosed by the ELSE and ENDIF commands are formatted.&lt;/P&gt;&lt;P&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&lt;/P&gt;&lt;P&gt;The ELSEIF command allows multiple cases to be specified.&lt;/P&gt;&lt;P&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&lt;/P&gt;&lt;P&gt;You can use arbitrarily many ELSEIF commands within one compound IF .. ENDIF control command.  The use of an ELSE command is then optional.&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;u2022	A condition may not occupy several lines.  Both the IF or ELSEIF command and the attached condition must be completely contained within a single line.&lt;/P&gt;&lt;P&gt;u2022	IF commands may be nested.  &lt;/P&gt;&lt;P&gt;u2022	An IF command must be terminated with an ENDIF command.  If this is forgotten, then there will be no more output following the IF command if the condition evaluates to be false.&lt;/P&gt;&lt;P&gt;u2022	If a syntax error occurs in the interpretation of this command, then the command will not be executed.  This may have an unexpected effect on the subsequent text output.  For example if the IF statement is incorrect, then all following ELSEIF and ELSE commands will be ignored, since the opening IF command is 'missing'.  This will cause all the text lines attached to the ELSEIF and ELSE commands to be output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 07:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sap-scripts/m-p/4039273#M965422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T07:36:33Z</dc:date>
    </item>
  </channel>
</rss>

