<?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 Wrong logical expression in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799456#M913742</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;The following code is wrong and I want to know if it's possible to correct it without using another variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF var1 &amp;lt; ( sy-datum + 15 ).&lt;/P&gt;&lt;P&gt; var2 = 1.&lt;/P&gt;&lt;P&gt;ELSEIF var1 &amp;gt; ( sy-datum + 15 ) AND var1 &amp;lt; ( sy-datum + 30 ).&lt;/P&gt;&lt;P&gt; var2 = 2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP syntax checking doesn't allow the logical expression with the "+"... Is not possible or simply I don't know how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I can do something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3 = sy-datum + 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't want that solution if it's possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2008 14:06:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-19T14:06:05Z</dc:date>
    <item>
      <title>Wrong logical expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799456#M913742</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;The following code is wrong and I want to know if it's possible to correct it without using another variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF var1 &amp;lt; ( sy-datum + 15 ).&lt;/P&gt;&lt;P&gt; var2 = 1.&lt;/P&gt;&lt;P&gt;ELSEIF var1 &amp;gt; ( sy-datum + 15 ) AND var1 &amp;lt; ( sy-datum + 30 ).&lt;/P&gt;&lt;P&gt; var2 = 2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP syntax checking doesn't allow the logical expression with the "+"... Is not possible or simply I don't know how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I can do something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3 = sy-datum + 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't want that solution if it's possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 14:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799456#M913742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T14:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong logical expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799457#M913743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes ABAP sux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside an if statement, you can use only logical expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I expect my answer was "helpful"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 18:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799457#M913743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T18:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong logical expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799458#M913744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to store Sy-datum + 15 in a different variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use it in the logical expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For older version of SAP this is the only option. I thing the newest version of netweaver allows you to do what you want to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aparna Shekhar on May 19, 2008 1:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 18:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799458#M913744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T18:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong logical expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799459#M913745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sergi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, your answer is helpful, it confirmed my suspects about that's not possible in abap...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 07:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799459#M913745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong logical expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799460#M913746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm programming in a SAP 6.2 Version and it doesn't allow to do that yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 07:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-logical-expression/m-p/3799460#M913746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T07:33:34Z</dc:date>
    </item>
  </channel>
</rss>

