<?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 in method READ_CONTAINER_C when passing string to structure in Unicod in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-method-read-container-c-when-passing-string-to-structure-in-unicod/m-p/6508430#M1423073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are upgrading system from non-unicode to unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While passing a string to a structure ( MOVE RECEIVERS-RECEIVER TO RECEIVER_OBJECT, where &lt;/P&gt;&lt;P&gt;RECEIVERS_RECEIVER = string &lt;/P&gt;&lt;P&gt;RECEIVER_OBJECT = structure ) &lt;/P&gt;&lt;P&gt;following error is thrown : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"RECEIVER_OBJECT" and "RECEIVERS-RECEIVER" are not mutually convertible in a unicode program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve this error, I've used :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_ABAP_CONTAINER_UTILITIES=&amp;gt;READ_CONTAINER_C&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;IM_VALUE = RECEIVERS-RECEIVER&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;EX_CONTAINER = RECEIVER_OBJECT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ILLEGAL_PARAMETER_TYPE = 1&lt;/P&gt;&lt;P&gt;others = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I observed the problem of inccorect values for numeric fields. For example suppose the string contains the value 'abc1234' and we use CL_ABAP_CONTAINER_UTILITIES=&amp;gt;READ_CONTAINER_C to transfer this string to a structure suppose, S1 with 2 fields namely field1(3) type c and field2 type i. then field1 gets the correct value i.e. 'abc' but field2 gets incorrect value and not '1234'. Can anyone provide the resolution? Prompt reply will be highly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 08:03:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-19T08:03:56Z</dc:date>
    <item>
      <title>Error in method READ_CONTAINER_C when passing string to structure in Unicod</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-method-read-container-c-when-passing-string-to-structure-in-unicod/m-p/6508430#M1423073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are upgrading system from non-unicode to unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While passing a string to a structure ( MOVE RECEIVERS-RECEIVER TO RECEIVER_OBJECT, where &lt;/P&gt;&lt;P&gt;RECEIVERS_RECEIVER = string &lt;/P&gt;&lt;P&gt;RECEIVER_OBJECT = structure ) &lt;/P&gt;&lt;P&gt;following error is thrown : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"RECEIVER_OBJECT" and "RECEIVERS-RECEIVER" are not mutually convertible in a unicode program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve this error, I've used :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_ABAP_CONTAINER_UTILITIES=&amp;gt;READ_CONTAINER_C&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;IM_VALUE = RECEIVERS-RECEIVER&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;EX_CONTAINER = RECEIVER_OBJECT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ILLEGAL_PARAMETER_TYPE = 1&lt;/P&gt;&lt;P&gt;others = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I observed the problem of inccorect values for numeric fields. For example suppose the string contains the value 'abc1234' and we use CL_ABAP_CONTAINER_UTILITIES=&amp;gt;READ_CONTAINER_C to transfer this string to a structure suppose, S1 with 2 fields namely field1(3) type c and field2 type i. then field1 gets the correct value i.e. 'abc' but field2 gets incorrect value and not '1234'. Can anyone provide the resolution? Prompt reply will be highly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 08:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-method-read-container-c-when-passing-string-to-structure-in-unicod/m-p/6508430#M1423073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T08:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in method READ_CONTAINER_C when passing string to structure in Unicod</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-method-read-container-c-when-passing-string-to-structure-in-unicod/m-p/6508431#M1423074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;Instead of directly passing a string in container use character type object of same length as structure and then fill your structure with the container you have used , it will solve yoour issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 07:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-method-read-container-c-when-passing-string-to-structure-in-unicod/m-p/6508431#M1423074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T07:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error in method READ_CONTAINER_C when passing string to structure in Unicod</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-method-read-container-c-when-passing-string-to-structure-in-unicod/m-p/6508432#M1423075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no error in this method. The 'problem' is caused by the fact that you are combining character type and Type I in your parameter which has generic type CSEQEUNCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is advised that you  'copy' your data component by component in Unicode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 08:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-method-read-container-c-when-passing-string-to-structure-in-unicod/m-p/6508432#M1423075</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2010-01-20T08:15:14Z</dc:date>
    </item>
  </channel>
</rss>

