<?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 Converting data to chars in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-data-to-chars/m-p/8523630#M1656045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting a run time error in my program and would appreciate any help.&lt;/P&gt;&lt;P&gt;I'm getting a table name from the user and then downloading that table's contents to whatever directory they pick.&lt;/P&gt;&lt;P&gt;It works fine on all my tables except EBAN. I've converted everything to text (so I can add a pipe delimiter) and then sent it to download, but EBAN is fighting me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the relevant code:&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;tb_converted(4096) TYPE c OCCURS 0,&lt;/P&gt;&lt;P&gt;itab1    TYPE STANDARD TABLE OF eban,      wa_eban TYPE eban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM eban INTO CORRESPONDING FIELDS OF TABLE itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CLEAR tb_converted.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'&lt;/P&gt;&lt;P&gt;           EXPORTING i_field_seperator = del_char &lt;/P&gt;&lt;P&gt;           TABLES i_tab_sap_data = itab1&lt;/P&gt;&lt;P&gt;           CHANGING i_tab_converted_data = tb_converted&lt;/P&gt;&lt;P&gt;           EXCEPTIONS CONVERSION_FAILED = 1 OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'GUI_DOWNLOAD' &lt;/P&gt;&lt;P&gt;          EXPORTING FILENAME = temp_str &lt;/P&gt;&lt;P&gt;          TABLES DATA_TAB = tb_converted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a similar cluster of code for all my other tables possible for Download and it works fine (examples are eine, ekko). I know the error is in the converting part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UC_OBJECTS_NOT_CHARLIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP program "SAPLTRUX" had to be terminated because it has come across a statement that cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the statement " IF ... op1 CO op2 ... " only character-type data objects are supported at the arguement position 'op1'.&lt;/P&gt;&lt;P&gt;In this case the operand 'op1' has the non-character-type 'I'. The current program is a Unicode program..... etc...etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;gilthan3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: gilthan3 on Feb 7, 2012 4:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2012 15:32:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-07T15:32:27Z</dc:date>
    <item>
      <title>Converting data to chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-data-to-chars/m-p/8523630#M1656045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting a run time error in my program and would appreciate any help.&lt;/P&gt;&lt;P&gt;I'm getting a table name from the user and then downloading that table's contents to whatever directory they pick.&lt;/P&gt;&lt;P&gt;It works fine on all my tables except EBAN. I've converted everything to text (so I can add a pipe delimiter) and then sent it to download, but EBAN is fighting me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the relevant code:&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;tb_converted(4096) TYPE c OCCURS 0,&lt;/P&gt;&lt;P&gt;itab1    TYPE STANDARD TABLE OF eban,      wa_eban TYPE eban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM eban INTO CORRESPONDING FIELDS OF TABLE itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CLEAR tb_converted.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'&lt;/P&gt;&lt;P&gt;           EXPORTING i_field_seperator = del_char &lt;/P&gt;&lt;P&gt;           TABLES i_tab_sap_data = itab1&lt;/P&gt;&lt;P&gt;           CHANGING i_tab_converted_data = tb_converted&lt;/P&gt;&lt;P&gt;           EXCEPTIONS CONVERSION_FAILED = 1 OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'GUI_DOWNLOAD' &lt;/P&gt;&lt;P&gt;          EXPORTING FILENAME = temp_str &lt;/P&gt;&lt;P&gt;          TABLES DATA_TAB = tb_converted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a similar cluster of code for all my other tables possible for Download and it works fine (examples are eine, ekko). I know the error is in the converting part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UC_OBJECTS_NOT_CHARLIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP program "SAPLTRUX" had to be terminated because it has come across a statement that cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the statement " IF ... op1 CO op2 ... " only character-type data objects are supported at the arguement position 'op1'.&lt;/P&gt;&lt;P&gt;In this case the operand 'op1' has the non-character-type 'I'. The current program is a Unicode program..... etc...etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;gilthan3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: gilthan3 on Feb 7, 2012 4:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 15:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-data-to-chars/m-p/8523630#M1656045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-07T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Converting data to chars</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-data-to-chars/m-p/8523631#M1656046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your best bet is to debug and see on which field he chokes. (or see if the dump list has more detailed information)&lt;/P&gt;&lt;P&gt;You may need to do some converting yourself before passing EBAN to the function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 15:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-data-to-chars/m-p/8523631#M1656046</guid>
      <dc:creator>Phillip_Morgan</dc:creator>
      <dc:date>2012-02-07T15:54:55Z</dc:date>
    </item>
  </channel>
</rss>

