<?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 Data Type Error Please help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-error-please-help/m-p/3597193#M866267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I have downloaded all the entries from a database table , When i try to upload , it tries only to upload the data with Only chars or Number i mean like if ti only "1422" or "abcd" but not "142Xahnd". The data element is of char type,. So u &lt;/P&gt;&lt;P&gt;The data Declaration was like this &lt;/P&gt;&lt;P&gt;DATA DATAREF TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;and i changed it to the below&lt;/P&gt;&lt;P&gt;DATA DATAREF TYPE REF TO STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IT_FIELDCATALOG           = IT_FIELDCATALOG&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      EP_TABLE                  = DATAREF&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      GENERATE_SUBPOOL_DIR_FULL = 1&lt;/P&gt;&lt;P&gt;      OTHERS                    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN DATAREF-&amp;gt;* TO &amp;lt;ROW&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i execute i get an error saying " Dataref not type comaptible para meter ep_table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can an body throw ligh light on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranjith Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Mar 2008 07:15:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-30T07:15:23Z</dc:date>
    <item>
      <title>Data Type Error Please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-error-please-help/m-p/3597193#M866267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I have downloaded all the entries from a database table , When i try to upload , it tries only to upload the data with Only chars or Number i mean like if ti only "1422" or "abcd" but not "142Xahnd". The data element is of char type,. So u &lt;/P&gt;&lt;P&gt;The data Declaration was like this &lt;/P&gt;&lt;P&gt;DATA DATAREF TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;and i changed it to the below&lt;/P&gt;&lt;P&gt;DATA DATAREF TYPE REF TO STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IT_FIELDCATALOG           = IT_FIELDCATALOG&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      EP_TABLE                  = DATAREF&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      GENERATE_SUBPOOL_DIR_FULL = 1&lt;/P&gt;&lt;P&gt;      OTHERS                    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN DATAREF-&amp;gt;* TO &amp;lt;ROW&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i execute i get an error saying " Dataref not type comaptible para meter ep_table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can an body throw ligh light on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranjith Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 07:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-error-please-help/m-p/3597193#M866267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-30T07:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data Type Error Please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-error-please-help/m-p/3597194#M866268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;possibly there are some misunderstandings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How have you "downloaded all the entries from a database table" ?. If it was using ABAP, I assume that prior to downloading you selected into an internal table with the structure of this database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for upload, you need this intrenal table to upload the data to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE is an obsolete method to create an internal table from a field catalog. So where did you get that field catalog and why did you change the parameters type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least you need something like&lt;/P&gt;&lt;P&gt;ASSIGN DATAREF-&amp;gt;* TO &amp;lt;F_FS&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you may &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOPP AT DATAREF-&amp;gt;* assigning &amp;lt;any&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still I do not understand why you go that way. Just declare&lt;/P&gt;&lt;P&gt;DATA ITAB TYPE TABLE OF &amp;lt;your database tables name&amp;gt;.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 14:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-error-please-help/m-p/3597194#M866268</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-03-30T14:12:11Z</dc:date>
    </item>
  </channel>
</rss>

