<?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: Conversion error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/5619916#M1280218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ECC 6 you need to use the class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call method cl_abap_container_utilities=&amp;gt;read_container_c
    exporting
      im_container           = variable  " Your character variable
    importing
      ex_value               = custom_table   "Your custom table type
    exceptions
      illegal_parameter_type = 1
      others                 = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2009 19:33:06 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2009-05-12T19:33:06Z</dc:date>
    <item>
      <title>Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/5619915#M1280217</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'm working on an upgrade project and we have a conversion error in relation to a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 4.6c we have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- A variable type c.&lt;/STRONG&gt; It has several values concatenated (including a dec type). The value included in the variable is obtained from a UNIX file. Following, an example of a value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable = 2000090010000600000000069999999###&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: ### is equal to 0.20. In hexadecimal = 02C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- A structure type customer table.&lt;/STRONG&gt; This customer table includes a dec field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 4.6c version, we can assign directly the value of the variable to the structure. &lt;/P&gt;&lt;P&gt;Most important, the system converts without problems the ### by 0.20 value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ECC 6.0 (new version) we can't make this assigment any more.Then, we use C147_CHARFIELD_TO_WORKAREA function module. However, the function can't resolve ### to 0.20 value any more. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows the way to resolve the ### to 0.20?&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;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 18:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/5619915#M1280217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T18:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/5619916#M1280218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ECC 6 you need to use the class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call method cl_abap_container_utilities=&amp;gt;read_container_c
    exporting
      im_container           = variable  " Your character variable
    importing
      ex_value               = custom_table   "Your custom table type
    exceptions
      illegal_parameter_type = 1
      others                 = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 19:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/5619916#M1280218</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-05-12T19:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/5619917#M1280219</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 tried with the method cl_abap_container_utilities=&amp;gt;read_container_c&lt;/P&gt;&lt;P&gt;However, the field type DEC is equal than 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT	                                   	310&lt;/P&gt;&lt;P&gt;BUKRS	                                   	0090&lt;/P&gt;&lt;P&gt;ZZ_RED_SOC_F	                                0100&lt;/P&gt;&lt;P&gt;VONKTO	                                   	0060000000&lt;/P&gt;&lt;P&gt;BISKTO	                                   	0069999999&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZZ_RED_PCOM	                                0.00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be equal than 0.20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my problem. All functions/method that i have used are no able to convert ### to 0.20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find the way to make this convertion: ### to 0.20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway for your answer.&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;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 19:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/5619917#M1280219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T19:54:44Z</dc:date>
    </item>
  </channel>
</rss>

