<?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 Error while copying Z program to another enviroment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-copying-z-program-to-another-enviroment/m-p/3804579#M915079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z program into one client's enviroment, which works fine. I tried copying this program into another client's enviroment, and i get the following error message, while syntax check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"RC_IN1 must be a byte-type field. (Typ X or XSTRING)."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this error is on the following form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*-----------------------------------------------------------------------
form xor using rc_in1 type c rc_in2 type c rc_out type c.

  data:
    li_abit type i,
    li_bbit type i.

  rc_out = space.
  if rc_in1 &amp;lt;&amp;gt; space.
    do 8 times.
      get bit sy-index of rc_in1 into li_abit.
      get bit sy-index of rc_in2 into li_bbit.
      if li_abit &amp;lt;&amp;gt; li_bbit.
        set bit sy-index of rc_out to 1.
      else.
        set bit sy-index of rc_out to 0.
      endif.
    enddo.
    if rc_out = space.
      rc_out = rc_in1.
    endif.
  endif.
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When I check into one client's enviroment, it does not gives error. Only in THAT client.&lt;/P&gt;&lt;P&gt;Why is this happening? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Brian Gonsales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 14:38:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-16T14:38:59Z</dc:date>
    <item>
      <title>Error while copying Z program to another enviroment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-copying-z-program-to-another-enviroment/m-p/3804579#M915079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z program into one client's enviroment, which works fine. I tried copying this program into another client's enviroment, and i get the following error message, while syntax check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"RC_IN1 must be a byte-type field. (Typ X or XSTRING)."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this error is on the following form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*-----------------------------------------------------------------------
form xor using rc_in1 type c rc_in2 type c rc_out type c.

  data:
    li_abit type i,
    li_bbit type i.

  rc_out = space.
  if rc_in1 &amp;lt;&amp;gt; space.
    do 8 times.
      get bit sy-index of rc_in1 into li_abit.
      get bit sy-index of rc_in2 into li_bbit.
      if li_abit &amp;lt;&amp;gt; li_bbit.
        set bit sy-index of rc_out to 1.
      else.
        set bit sy-index of rc_out to 0.
      endif.
    enddo.
    if rc_out = space.
      rc_out = rc_in1.
    endif.
  endif.
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When I check into one client's enviroment, it does not gives error. Only in THAT client.&lt;/P&gt;&lt;P&gt;Why is this happening? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Brian Gonsales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-copying-z-program-to-another-enviroment/m-p/3804579#M915079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error while copying Z program to another enviroment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-copying-z-program-to-another-enviroment/m-p/3804580#M915080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like a unicode check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De-check the checkbox 'Unicode checks active' in the program attributes and see if it works then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 15:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-copying-z-program-to-another-enviroment/m-p/3804580#M915080</guid>
      <dc:creator>b_deterd2</dc:creator>
      <dc:date>2008-05-16T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error while copying Z program to another enviroment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-copying-z-program-to-another-enviroment/m-p/3804581#M915081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are the both client environments hav same version (ECC 6).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ECC 6 version type X is not allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this problem, &lt;/P&gt;&lt;P&gt;you need to declare the field of TYPE C.&lt;/P&gt;&lt;P&gt;you need to get the value from Cl_ABAP_CHAR_UTILITIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 15:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-copying-z-program-to-another-enviroment/m-p/3804581#M915081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T15:15:22Z</dc:date>
    </item>
  </channel>
</rss>

