<?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: if condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179061#M125182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;****&lt;STRONG&gt;try this snippet&lt;/STRONG&gt;*************&lt;/P&gt;&lt;P&gt;data: salary type i value 199990.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if salary &amp;lt; 200000.&lt;/P&gt;&lt;P&gt;  write 'salary must be increased'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;read the follwoing doc&lt;/STRONG&gt;*************&lt;/P&gt;&lt;P&gt;IF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;IF logexp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Used for case distinction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on whether the logical expression logexp is true or not, this statement triggers the execution of various sections of code enclosed by IF and ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three different types: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF logexp. &lt;/P&gt;&lt;P&gt;  processing1 &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the logical expression is true, processing1 is executed. Otherwise, the program resumes immediately after ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF logexp. &lt;/P&gt;&lt;P&gt;processing1 &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;processing2 &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the logical expression is true, processing1 is executed. Otherwise, processing2 is executed (see ELSE). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF logexp1. &lt;/P&gt;&lt;P&gt;processing1 &lt;/P&gt;&lt;P&gt;ELSEIF logexp2. &lt;/P&gt;&lt;P&gt;processing2 &lt;/P&gt;&lt;P&gt;ELSEIF ... &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;processingN &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the logexp1 is false, logexp2 is evaluated and so on. You can use any number of ELSEIF statements. If an ELSE statement exists, it always appears after all the ELSEIF statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;All IF statements must be concluded in the same processing block by ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF statements can be nested as many times as you like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IF statement does not directly affect the selection. For this purpose, you should use the CHECK statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2006 04:49:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-17T04:49:37Z</dc:date>
    <item>
      <title>if condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179059#M125180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u help to write an if conditoin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 04:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179059#M125180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T04:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179060#M125181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if var1 EQ val.&lt;/P&gt;&lt;P&gt;   [statements]&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data var type i value 10.&lt;/P&gt;&lt;P&gt;if var EQ 10.&lt;/P&gt;&lt;P&gt;   WRITE 'var is 10'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   WRITE 'var is not 10'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ps: Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 04:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179060#M125181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T04:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179061#M125182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;****&lt;STRONG&gt;try this snippet&lt;/STRONG&gt;*************&lt;/P&gt;&lt;P&gt;data: salary type i value 199990.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if salary &amp;lt; 200000.&lt;/P&gt;&lt;P&gt;  write 'salary must be increased'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;read the follwoing doc&lt;/STRONG&gt;*************&lt;/P&gt;&lt;P&gt;IF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;IF logexp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Used for case distinction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on whether the logical expression logexp is true or not, this statement triggers the execution of various sections of code enclosed by IF and ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three different types: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF logexp. &lt;/P&gt;&lt;P&gt;  processing1 &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the logical expression is true, processing1 is executed. Otherwise, the program resumes immediately after ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF logexp. &lt;/P&gt;&lt;P&gt;processing1 &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;processing2 &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the logical expression is true, processing1 is executed. Otherwise, processing2 is executed (see ELSE). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF logexp1. &lt;/P&gt;&lt;P&gt;processing1 &lt;/P&gt;&lt;P&gt;ELSEIF logexp2. &lt;/P&gt;&lt;P&gt;processing2 &lt;/P&gt;&lt;P&gt;ELSEIF ... &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;processingN &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the logexp1 is false, logexp2 is evaluated and so on. You can use any number of ELSEIF statements. If an ELSE statement exists, it always appears after all the ELSEIF statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;All IF statements must be concluded in the same processing block by ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF statements can be nested as many times as you like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IF statement does not directly affect the selection. For this purpose, you should use the CHECK statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 04:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179061#M125182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T04:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179062#M125183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: a(1) type c.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if a is initial .

"do some thing..
else.
"do something.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if a = ' '.

"do some thing..
else if a = 'X'.
"do something.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2006 04:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-condition/m-p/1179062#M125183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-17T04:49:48Z</dc:date>
    </item>
  </channel>
</rss>

