<?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: Syntax in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690606#M622446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : lv_value1 type i,&lt;/P&gt;&lt;P&gt;lv_value2 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_value1 = v_low + v_high.&lt;/P&gt;&lt;P&gt;lv_value2 = v_low + v_med.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_value1 &amp;lt; lv_value2.&lt;/P&gt;&lt;P&gt;proceed.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;stop.&amp;lt;/b&amp;gt; " this will take you out or program&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 16:27:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-23T16:27:45Z</dc:date>
    <item>
      <title>Syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690605#M622445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a condition where I need to check if V_low&lt;EM&gt;v_high &amp;lt; v_low&lt;/EM&gt;v_med then don't proceed else &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write " we can proceed"&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;we need to stop processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me how to write the "else" part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tahnks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 16:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690605#M622445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T16:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690606#M622446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : lv_value1 type i,&lt;/P&gt;&lt;P&gt;lv_value2 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_value1 = v_low + v_high.&lt;/P&gt;&lt;P&gt;lv_value2 = v_low + v_med.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_value1 &amp;lt; lv_value2.&lt;/P&gt;&lt;P&gt;proceed.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;stop.&amp;lt;/b&amp;gt; " this will take you out or program&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 16:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690606#M622446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T16:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690607#M622447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt; if V_low+v_high &amp;lt; v_low+v_med.
  message e001(00) with 'Hey, you can't proceed'.
 else.
  write:/ 'You can proceed'.
 endif.&lt;/CODE&gt;&lt;/PRE&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>Thu, 23 Aug 2007 16:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690607#M622447</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-23T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690608#M622448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't use expressions in the conditions for IF...ENDIF. It only allows values to compare rather than expressions, so you need to get the value of expression and the have condition among values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  VALUE1 TYPE I,&lt;/P&gt;&lt;P&gt;   VALUE2 TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE1 = V_LOW + V_HIGH.&lt;/P&gt;&lt;P&gt;VALUE2 = V_LOW + V_MED.&lt;/P&gt;&lt;P&gt;write " we can proceed".&lt;/P&gt;&lt;P&gt;IF VALUE1 &amp;lt; VALUE2.&lt;/P&gt;&lt;P&gt;write " we can not proceed".&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case as you are adding V_LOW to both left hand and right hand, so you can this and write a simple conidtion as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_HIGH &amp;lt; V_MED.&lt;/P&gt;&lt;P&gt;write " we can proceed".&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;write " we can not proceed".&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 16:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax/m-p/2690608#M622448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T16:53:37Z</dc:date>
    </item>
  </channel>
</rss>

