<?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: Error (Data objects in Unicode programs cannot be converted.) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613883#M2012048</link>
    <description>&lt;P&gt;It works  &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; ! Thank you so much!&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2022 10:30:27 GMT</pubDate>
    <dc:creator>former_member1154847</dc:creator>
    <dc:date>2022-09-30T10:30:27Z</dc:date>
    <item>
      <title>Error (Data objects in Unicode programs cannot be converted.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613879#M2012044</link>
      <description>&lt;P&gt;I need to execute the COOIS transaction (PPIO_ENTRY program) using the SUBMIT statement, then get the data into an structure and join with other table data.&lt;/P&gt;
  &lt;P&gt;First I've created the type:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;TYPES:
  BEGIN OF t_1001,
    MANDT TYPE MANDT,
    AUFPL TYPE CO_AUFPL,
    APLZL TYPE CO_APLZL,
    PLNFL TYPE PLNFOLGE,
  END OF t_1001.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Then, the table to append the data and the extra DATA and FIELD-SYMBOLS:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA: 
  i_t001  TYPE STANDARD TABLE OF t_1001.

DATA: 
  l_selection     TYPE rsparams,
  li_selection    TYPE tt_selection,
  lr_pay_data     TYPE REF TO data.

FIELD-SYMBOLS: 
  &amp;lt;lt_pay_data&amp;gt;  TYPE ANY TABLE,
  &amp;lt;lt_test&amp;gt;      TYPE ANY,
  &amp;lt;l_fs_PP010&amp;gt;   TYPE t_1001.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;After that, call the program but not showing the data just storing it:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION.

  cl_salv_bs_runtime_info=&amp;gt;set(
    EXPORTING display   = abap_false
    metadata  = abap_false
    data      = abap_true ).

  SUBMIT PPIO_ENTRY
    USING SELECTION-SET 'xyz'
    AND RETURN.  

  TRY.
    cl_salv_bs_runtime_info=&amp;gt;get_data_ref( IMPORTING r_data = lr_pay_data ).      
    ASSIGN lr_pay_data-&amp;gt;* TO &amp;lt;lt_pay_data&amp;gt;.
  CATCH cx_salv_bs_sc_runtime_info.
    MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
  ENDTRY.

  LOOP AT &amp;lt;lt_pay_data&amp;gt; ASSIGNING &amp;lt;LT_TEST&amp;gt;.
    APPEND &amp;lt;LT_TEST&amp;gt; TO i_t001.
  ENDLOOP.

  cl_salv_bs_runtime_info=&amp;gt;set( 
    EXPORTING display   = abap_true
    metadata  = abap_true
    data      = abap_true ).

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If i comment the PLNFL line from the t_1001 type declaration all works correctly. &lt;/P&gt;
  &lt;P&gt;But if I remove the comment crash with this info:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;Data objects in Unicode programs cannot be converted.

Statement "MOVE src TO dst" requires operands "dst" and "src" to be convertible. Since this statement is in a Unicode program, the special conversion rules for Unicode programs apply. In the present case, these rules have been violated.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;What it's the mistake?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 06:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613879#M2012044</guid>
      <dc:creator>former_member1154847</dc:creator>
      <dc:date>2022-09-30T06:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error (Data objects in Unicode programs cannot be converted.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613880#M2012045</link>
      <description>&lt;P&gt;Could you please check the format of your coding in this thread?&lt;/P&gt;&lt;P&gt;It's impossible to understand it in the moment.&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 06:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613880#M2012045</guid>
      <dc:creator>Jeansy</dc:creator>
      <dc:date>2022-09-30T06:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error (Data objects in Unicode programs cannot be converted.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613881#M2012046</link>
      <description>&lt;P&gt;Sorry, I've updated!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 07:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613881#M2012046</guid>
      <dc:creator>former_member1154847</dc:creator>
      <dc:date>2022-09-30T07:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error (Data objects in Unicode programs cannot be converted.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613882#M2012047</link>
      <description>&lt;P&gt;Could you try to replace the code like this and test it ? :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  i_t001 = corresponding #( &amp;lt;lt_pay_data&amp;gt; ).&lt;BR /&gt;*  LOOP AT &amp;lt;lt_pay_data&amp;gt; ASSIGNING &amp;lt;LT_TEST&amp;gt;.&lt;BR /&gt;*    APPEND &amp;lt;LT_TEST&amp;gt; TO i_t001.&lt;BR /&gt;*  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Sep 2022 08:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613882#M2012047</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-09-30T08:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error (Data objects in Unicode programs cannot be converted.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613883#M2012048</link>
      <description>&lt;P&gt;It works  &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; ! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 10:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data-objects-in-unicode-programs-cannot-be-converted/m-p/12613883#M2012048</guid>
      <dc:creator>former_member1154847</dc:creator>
      <dc:date>2022-09-30T10:30:27Z</dc:date>
    </item>
  </channel>
</rss>

