<?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: Unicode Type Conversion Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146552#M748068</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;Refer to the following link below on conversion:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/c55473b3dc11d5993800508b6b8b11/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/c55473b3dc11d5993800508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2007 14:23:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-20T14:23:27Z</dc:date>
    <item>
      <title>Unicode Type Conversion Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146548#M748064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in UNICODE project,i need one help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one error .&lt;/P&gt;&lt;P&gt;Actually, im using one structure(Z0028) and passing values to internal table.&lt;/P&gt;&lt;P&gt;At that time i shows one error.&lt;/P&gt;&lt;P&gt;Actually,this error is due to type conversion problem.&lt;/P&gt;&lt;P&gt;In that structure,i ve one packed datatype ,so, if i select &lt;/P&gt;&lt;P&gt;unicode check it shows error.&lt;/P&gt;&lt;P&gt;I will sent example prg and error also.&lt;/P&gt;&lt;P&gt;Please give some solution to slove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT YPRG1 .&lt;/P&gt;&lt;P&gt;TABLES: Z0028.&lt;/P&gt;&lt;P&gt;DATA:I_Z0028 TYPE Z0028 OCCURS 0 WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;SELECT * FROM Z0028 INTO TABLE I_Z0028 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0 .&lt;/P&gt;&lt;P&gt;WRITE:/ ' NO DATA'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_Z0028.&lt;/P&gt;&lt;P&gt;WRITE:/ I_Z0028.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalidas.T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 13:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146548#M748064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-20T13:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Type Conversion Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146549#M748065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kalidas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a simple "smoke test". Try to see if the system accept the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" NOTE: Try to write the packed field only&lt;/P&gt;&lt;P&gt;WRITE: / i_z008-packed_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you receive an error you cannot WRITE packed values directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative solution: write your structure to a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  ls_z008  LIKE LINE OF i_z008,&lt;/P&gt;&lt;P&gt;  ld_string  TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_z008 INTO ls_z008.&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_abap_container_utilities=&amp;gt;fill_container_c&lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      im_value = ls_z008&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ex_container = ld_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / ld_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 13:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146549#M748065</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-12-20T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Type Conversion Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146550#M748066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont see any type conversion in your code...&lt;/P&gt;&lt;P&gt;If in that code you are getting this error, you can try creating an internal table without using occurs 0. and create a work area of the same type as of internal table.&lt;/P&gt;&lt;P&gt;Data: it_z0028 type standard table of Z0028,&lt;/P&gt;&lt;P&gt;         wa_z0028 type z0028.&lt;/P&gt;&lt;P&gt;Select * from Z0028 into table it_z0028.&lt;/P&gt;&lt;P&gt;Loop at it_z0028 into wa_z0028.&lt;/P&gt;&lt;P&gt;Write wa_z0028.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 14:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146550#M748066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-20T14:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Type Conversion Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146551#M748067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as per Uwe's suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT YPRG1 .
TABLES: Z0028.
DATA:I_Z0028 TYPE Z0028 OCCURS 0 WITH HEADER LINE .
SELECT * FROM Z0028 INTO TABLE I_Z0028 .

IF SY-SUBRC 0 .
WRITE:/ ' NO DATA'.
ENDIF.

LOOP AT I_Z0028.
WRITE:/ I_Z0028-MATNR.
WRITE: 20 I_Z0028-DESCR.
WRITE: 30 I_Z0028-QTY.

" .......... continue by field by field.

ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 14:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146551#M748067</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-12-20T14:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Type Conversion Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146552#M748068</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;Refer to the following link below on conversion:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/c55473b3dc11d5993800508b6b8b11/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/c55473b3dc11d5993800508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 14:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-type-conversion-error/m-p/3146552#M748068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-20T14:23:27Z</dc:date>
    </item>
  </channel>
</rss>

