<?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 Flipping a boolean return value from a method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975322#M1967295</link>
    <description>&lt;P&gt;I have a public static method in a class which has a returning variable of type BOOLE ('X' for true, ' ' for false). I want to store the negation of the value returned by this method into a variable lv_result (type c length 1). Is this possible without the use of a third variable? &lt;/P&gt;
  &lt;P&gt;Ideally I'm roughly looking for something as follows:&lt;/P&gt;
  &lt;P&gt;LV_RESULT = ( NOT cl_class_api=&amp;gt;method (EXPORTING iv_var = lv_var) ).&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 15:40:29 GMT</pubDate>
    <dc:creator>former_member333493</dc:creator>
    <dc:date>2019-07-18T15:40:29Z</dc:date>
    <item>
      <title>Flipping a boolean return value from a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975322#M1967295</link>
      <description>&lt;P&gt;I have a public static method in a class which has a returning variable of type BOOLE ('X' for true, ' ' for false). I want to store the negation of the value returned by this method into a variable lv_result (type c length 1). Is this possible without the use of a third variable? &lt;/P&gt;
  &lt;P&gt;Ideally I'm roughly looking for something as follows:&lt;/P&gt;
  &lt;P&gt;LV_RESULT = ( NOT cl_class_api=&amp;gt;method (EXPORTING iv_var = lv_var) ).&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 15:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975322#M1967295</guid>
      <dc:creator>former_member333493</dc:creator>
      <dc:date>2019-07-18T15:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a boolean return value from a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975323#M1967296</link>
      <description>&lt;P&gt;Use &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abenboole_functions.htm"&gt;boolc or xsdbool&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LV_RESULT = xsdbool( abap_false = cl_class_api=&amp;gt;method( EXPORTING iv_var = lv_var) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(if the method returns false then it gives true, and if the method returns true then it gives false)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 15:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975323#M1967296</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-07-18T15:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a boolean return value from a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975324#M1967297</link>
      <description>&lt;P&gt;Apart from abap_false in place of false, this seems perfect.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975324#M1967297</guid>
      <dc:creator>former_member333493</dc:creator>
      <dc:date>2019-07-18T16:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a boolean return value from a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975325#M1967298</link>
      <description>&lt;A href="https://answers.sap.com/users/129702/aveekbaruah.html"&gt;Aveek Kumar Baruah&lt;/A&gt; well seen, corrected!</description>
      <pubDate>Thu, 18 Jul 2019 17:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flipping-a-boolean-return-value-from-a-method/m-p/11975325#M1967298</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-07-18T17:21:38Z</dc:date>
    </item>
  </channel>
</rss>

