<?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: Help needed with bit &amp; unicode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690390#M1450998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an issue, see ABAP help:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In Unicode programs, the data type of operand1 must also be byte-like (x or xstring). Outside of Unicode programs, operand1 can be of any elementary data type or have a flat structure.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bit pattern tests (o, z, m) cause a syntax error if used on an INT or any other non-byte field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Mar 2010 09:02:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-16T09:02:32Z</dc:date>
    <item>
      <title>Help needed with bit &amp; unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690385#M1450993</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;I have an issue with the following code when setting the unicode flag for a Z program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check usr02-uflag o lock. &lt;/P&gt;&lt;P&gt;check usr02-uflag z lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field usr02-uflag has a data type of INT1and an output length of 3.&lt;/P&gt;&lt;P&gt;The field lock is defined as "lock(1) type x value '40'."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do I need to do to satisfy unicode? &lt;/P&gt;&lt;P&gt;Is it just a case of defining another variable as type X and copy usr02-uflag to it and then do the comparison. i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: new_var(1) type x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new_var = usr02-uflag.&lt;/P&gt;&lt;P&gt;check new_var o lock. &lt;/P&gt;&lt;P&gt;check new_var z lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help.&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 14:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690385#M1450993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T14:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with bit &amp; unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690386#M1450994</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;why you don't define LICK type USR02-UFLAG  with value '64'.  "Locked Locally By Administrator&lt;/P&gt;&lt;P&gt;Int 64 = hex 40 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 15:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690386#M1450994</guid>
      <dc:creator>StMou</dc:creator>
      <dc:date>2010-03-15T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with bit &amp; unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690387#M1450995</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;Use XSTRING as the type of your variable, i.e. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; DATA: new_var type XSTRING.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; new_var = usr02-uflag.&lt;/P&gt;&lt;P&gt;&amp;gt; check new_var o lock. &lt;/P&gt;&lt;P&gt;&amp;gt; check new_var z lock.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 15:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690387#M1450995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T15:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with bit &amp; unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690388#M1450996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do niot see the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;uflag has a data type of INT1&lt;/EM&gt; - No change in unicode&lt;/P&gt;&lt;P&gt;&lt;EM&gt;lock is defined as "lock(1) type x value '40'&lt;/EM&gt;  - No change in unicode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only fields of type C or STRING are affected by Unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work as it does now [Comparing Bit Sequences|http://help.sap.com/saphelp_webas620/helpdata/EN/fc/eb3523358411d1829f0000e829fbfe/content.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 19:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690388#M1450996</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-03-15T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with bit &amp; unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690389#M1450997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens, in response to your answer I was getting the following message when running transaction UCCHECK&lt;/P&gt;&lt;P&gt;"USR02-UFLAG" must be a byte-type field. (Typ X or XSTRING).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 07:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690389#M1450997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T07:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with bit &amp; unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690390#M1450998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an issue, see ABAP help:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In Unicode programs, the data type of operand1 must also be byte-like (x or xstring). Outside of Unicode programs, operand1 can be of any elementary data type or have a flat structure.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bit pattern tests (o, z, m) cause a syntax error if used on an INT or any other non-byte field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 09:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-with-bit-unicode/m-p/6690390#M1450998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T09:02:32Z</dc:date>
    </item>
  </channel>
</rss>

