<?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 XML - Problem trying to use XSDBOOLEAN field with False value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-problem-trying-to-use-xsdboolean-field-with-false-value/m-p/12717753#M2019573</link>
    <description>&lt;P&gt;( This problem occurs after a version change (before that, it worked ok) ).&lt;BR /&gt;&lt;BR /&gt;We have a function module Z that consumes a web service from an external system. In the definition of the service, we send a field with a type of XSDBOOLEAN.&lt;BR /&gt;When we assign X to the variable it (correctly) sends the value True in the XML. Nevertheless, when we assign a space (FALSE) it does not send anything (it does not place any tag in the xml). We tried with ABAP_FALSE, same issue.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;/P&gt;
  &lt;P&gt;Luis&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 18:51:19 GMT</pubDate>
    <dc:creator>luis_rod</dc:creator>
    <dc:date>2022-12-28T18:51:19Z</dc:date>
    <item>
      <title>XML - Problem trying to use XSDBOOLEAN field with False value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-problem-trying-to-use-xsdboolean-field-with-false-value/m-p/12717753#M2019573</link>
      <description>&lt;P&gt;( This problem occurs after a version change (before that, it worked ok) ).&lt;BR /&gt;&lt;BR /&gt;We have a function module Z that consumes a web service from an external system. In the definition of the service, we send a field with a type of XSDBOOLEAN.&lt;BR /&gt;When we assign X to the variable it (correctly) sends the value True in the XML. Nevertheless, when we assign a space (FALSE) it does not send anything (it does not place any tag in the xml). We tried with ABAP_FALSE, same issue.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;/P&gt;
  &lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 18:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-problem-trying-to-use-xsdboolean-field-with-false-value/m-p/12717753#M2019573</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2022-12-28T18:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: XML - Problem trying to use XSDBOOLEAN field with False value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-problem-trying-to-use-xsdboolean-field-with-false-value/m-p/12717754#M2019574</link>
      <description>&lt;P&gt;Please, check the article  &lt;A href="https://help.sap.com/saphelp_snc700_ehp01/helpdata/en/73/3f5c3c3906b006e10000000a11402f/content.htm?no_cache=true"&gt;Activating Extended XML Handling&lt;/A&gt; describing the handling of initial values.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" create proxy
  CREATE OBJECT lo_proxy.

" get protocol
  DATA: lo_payload_protocol TYPE REF TO if_wsprotocol_payload.
  lo_payload_protocol ?= lo_proxy-&amp;gt;get_protocol( if_wsprotocol=&amp;gt;payload ).

" Set the extended XML handling
  lo_payload_protocol-&amp;gt;set_extended_xml_handling( extended_xml_handling = 'X' ).

" Populate values into respective field CONTROLLER. Set field FIELD with field name, 
" and field VALUE with sai_ctrl_initial from ABAP type pool SAI&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Dec 2022 14:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-problem-trying-to-use-xsdboolean-field-with-false-value/m-p/12717754#M2019574</guid>
      <dc:creator>touzik_itc</dc:creator>
      <dc:date>2022-12-29T14:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: XML - Problem trying to use XSDBOOLEAN field with False value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-problem-trying-to-use-xsdboolean-field-with-false-value/m-p/12717755#M2019575</link>
      <description>&lt;P&gt;Andrei:&lt;/P&gt;&lt;P&gt;Thanks for your post. We solved the problem changing the ABAP type from XSDBOOLEAN to char(05) and assigning directly the value to FALSE. &lt;/P&gt;&lt;P&gt;As stated before, this routine worked ok until the version change, so we suppose it now pertains to a differente interpretation of the XSDBOOLEAN type.&lt;/P&gt;&lt;P&gt;Also, we found a reference to a SAP Note (2543153) that suggests avoiding the use of XSD* domains, and using other domains instead (e.g. R_BOOL, ODQ_BOOLEAN).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 14:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-problem-trying-to-use-xsdboolean-field-with-false-value/m-p/12717755#M2019575</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2022-12-29T14:11:36Z</dc:date>
    </item>
  </channel>
</rss>

