<?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>Question Re: Char1 in ABAP Side &amp; Boolean in Java Side in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573159#M3044966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Imane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Char1 field which you are seeing at SAP end is of type FLAG it accepts only 'X' and ' ' . So boolean cannot accept this so declare the field as char instead of boolean in java or else declare Char1 in both SAP and Java so compatabilty doesnt miss .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 10:09:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-23T10:09:45Z</dc:date>
    <item>
      <title>Char1 in ABAP Side &amp; Boolean in Java Side</title>
      <link>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaq-p/8573157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When importing a BAPI at Java side, I have a problem to deal with a field of type char1 (referenced to a domain with two fixed values : 'X' et ' ') which is becoming a boolean at Java Side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found posts talking about the same problems but I didn't find answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have anyone encountred this problem before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;ImaneA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 13:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaq-p/8573157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T13:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Char1 in ABAP Side &amp; Boolean in Java Side</title>
      <link>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573158#M3044965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what's your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 19:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573158#M3044965</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2012-01-20T19:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Char1 in ABAP Side &amp; Boolean in Java Side</title>
      <link>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573159#M3044966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Imane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Char1 field which you are seeing at SAP end is of type FLAG it accepts only 'X' and ' ' . So boolean cannot accept this so declare the field as char instead of boolean in java or else declare Char1 in both SAP and Java so compatabilty doesnt miss .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 10:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573159#M3044966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T10:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Char1 in ABAP Side &amp; Boolean in Java Side</title>
      <link>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573160#M3044967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John &amp;amp; Srikanth for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that the Java side doesn't recognize the 'X' or ' '. It means that for Java side, the field is always empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried a domain with no values instead of 'X' and ' ' but it still doesn't recognize the content of field even if it is a String now and no longer a boolean in java side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea how to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 14:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573160#M3044967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T14:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Char1 in ABAP Side &amp; Boolean in Java Side</title>
      <link>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573161#M3044968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, calculated attribute should solve this. Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
public boolean getCalculatedAttribute()
{
return "X".equals(&amp;lt;CODE_TO_GET_ATTRIBUTE_VALUE_FROM_RFC_MODEL_CLASS&amp;gt;);
}

public boolean setCalculatedAttribute(boolean value)
{
if(value)
{
&amp;lt;CODE_TO_SET_VALUE_FROM_RFC_MODEL_CLASS_TO_'X'&amp;gt;
}
else
{
&amp;lt;CODE_TO_SET_VALUE_FROM_RFC_MODEL_CLASS_TO_''&amp;gt;
}
}

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573161#M3044968</guid>
      <dc:creator>former_member182372</dc:creator>
      <dc:date>2012-01-23T15:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Char1 in ABAP Side &amp; Boolean in Java Side</title>
      <link>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573162#M3044969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, We had an issue with test values which made me think that the problem was in my coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 16:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/char1-in-abap-side-boolean-in-java-side/qaa-p/8573162#M3044969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T16:00:36Z</dc:date>
    </item>
  </channel>
</rss>

