<?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: moving transparent table to a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877951#M675690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Command "Move t510q to charstring." will give an error in Unicode system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these thread for more details -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3773178"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4165343"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="398341"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashish Gundawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 19:48:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-03T19:48:09Z</dc:date>
    <item>
      <title>moving transparent table to a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877950#M675689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there, ( I am new to abap and learning day by day &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are going through the process of changing to unicode standard.  I am getting following error message &lt;/P&gt;&lt;P&gt;"charstring" and "T510Q" are not mutually convertible in a Unicode	....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while trying to do the following:  Move t510q to charstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"charstring" is a field of 40 and is more than sufficient to get all the data (including c, i, p types etc) from t510q.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:  I tried to follow the following example...but abap can not find the class...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class CL_ABAP_CONTAINER_UTILITIES definition load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method CL_ABAP_CONTAINER_UTILITIES =&amp;gt;FILL_CONTAINER_C&lt;/P&gt;&lt;P&gt;  exporting  IM_VALUE               = STRUC&lt;/P&gt;&lt;P&gt;  importing  EX_CONTAINER           = CONTAINER&lt;/P&gt;&lt;P&gt;  exceptions ILLEGAL_PARAMETER_TYPE = 1&lt;/P&gt;&lt;P&gt;             others                 = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 19:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877950#M675689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T19:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: moving transparent table to a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877951#M675690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Command "Move t510q to charstring." will give an error in Unicode system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these thread for more details -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3773178"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4165343"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="398341"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashish Gundawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 19:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877951#M675690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T19:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: moving transparent table to a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877952#M675691</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;thanks for your input.  I will look into it now and let you know if it worked or not for me.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 19:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877952#M675691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T19:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: moving transparent table to a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877953#M675692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi J Are,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe not yet in your release - and I don't know what you are doing. You can not move t510q to charstring because T510 is  a structure containing not only pure character fields, but also a packed decimal curency field amount BETRG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because characters are represented as double-bytes under unicode and numeric values remain as they are, a simple move is not possible.&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;P&gt;&lt;/P&gt;&lt;P&gt;P.S:&lt;/P&gt;&lt;P&gt;Here is the method's source code, take it into your program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
method fill_container_c .

  class cl_abap_char_utilities definition load.

  data: l_type_value     type c,
        l_type_container type c,
        l_len_value      type i,
        l_len_container  type i,
        l_ref            type ref to data.

  field-symbols: &amp;lt;xvalue&amp;gt;     type x,
                 &amp;lt;xcontainer&amp;gt; type x,
                 &amp;lt;ccontainer&amp;gt; type c.

  describe field im_value type l_type_value.
  case l_type_value.
    when 'u'.
      describe field ex_container type l_type_container.
      case l_type_container.
        when 'C'.
          assign im_value     to &amp;lt;xvalue&amp;gt;     casting.
          assign ex_container to &amp;lt;xcontainer&amp;gt; casting.
          &amp;lt;xcontainer&amp;gt; = &amp;lt;xvalue&amp;gt;.
        when 'g'.
          describe field im_value length l_len_value in byte mode.
          l_len_container =
            l_len_value div cl_abap_char_utilities=&amp;gt;charsize +
            sign( l_len_value mod cl_abap_char_utilities=&amp;gt;charsize ).
          create data l_ref type c length l_len_container.
          assign l_ref-&amp;gt;* to &amp;lt;xcontainer&amp;gt; casting.
          assign im_value     to &amp;lt;xvalue&amp;gt;     casting.
          &amp;lt;xcontainer&amp;gt; = &amp;lt;xvalue&amp;gt;.
          assign l_ref-&amp;gt;* to &amp;lt;ccontainer&amp;gt;.
          concatenate space space into ex_container separated by &amp;lt;ccontainer&amp;gt;.
        when others.
          message x002(sy).
      endcase.
    when 'h' or 'v' or 'r' or 'l'. " table, deep struc, object
      " referenc, data reference
      raise illegal_parameter_type.
    when others.   " single field
      ex_container = im_value.
  endcase.



endmethod.                    "FILL_CONTAINER_C
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877953#M675692</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-10-03T20:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: moving transparent table to a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877954#M675693</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;Thanks to all.  The code seems to be working now.  I used the field symbols to solve the issue.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks very much for the guidance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 13:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-transparent-table-to-a-string/m-p/2877954#M675693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T13:26:19Z</dc:date>
    </item>
  </channel>
</rss>

