<?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 Generic Type for Import from Database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-type-for-import-from-database/m-p/6942617#M1487568</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;If i have an interanal table like below the code works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: lt_konhdb type konhdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT tab = lt_konhdb&lt;/P&gt;&lt;P&gt;           FROM   DATABASE indx(a1)&lt;/P&gt;&lt;P&gt;           TO     indxwa&lt;/P&gt;&lt;P&gt;           ID     'N_KONH' USING indx_form1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to have a static type cast like above but want to have the type returned from the cluster table.&lt;/P&gt;&lt;P&gt;Someting like this.&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs_wa&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT tab = &amp;lt;fs_wa&amp;gt;&lt;/P&gt;&lt;P&gt;           FROM   DATABASE indx(a1)&lt;/P&gt;&lt;P&gt;           TO     indxwa&lt;/P&gt;&lt;P&gt;           ID     'N_KONH' USING indx_form1.&lt;/P&gt;&lt;P&gt;So that i can find the field symbol type using the RTTI Framework and create the internal table using create data syntax on the type returned by the field symbol.&lt;/P&gt;&lt;P&gt;Basically i want to create the internal table on the type which is stored in the cluster table as i do not know the type which is stored in the cluster table.so that i can use this internal table for furthur processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? As when i use the field symbol it remains unassigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jun 2010 08:20:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-14T08:20:23Z</dc:date>
    <item>
      <title>Generic Type for Import from Database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-type-for-import-from-database/m-p/6942617#M1487568</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;If i have an interanal table like below the code works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: lt_konhdb type konhdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT tab = lt_konhdb&lt;/P&gt;&lt;P&gt;           FROM   DATABASE indx(a1)&lt;/P&gt;&lt;P&gt;           TO     indxwa&lt;/P&gt;&lt;P&gt;           ID     'N_KONH' USING indx_form1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to have a static type cast like above but want to have the type returned from the cluster table.&lt;/P&gt;&lt;P&gt;Someting like this.&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs_wa&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT tab = &amp;lt;fs_wa&amp;gt;&lt;/P&gt;&lt;P&gt;           FROM   DATABASE indx(a1)&lt;/P&gt;&lt;P&gt;           TO     indxwa&lt;/P&gt;&lt;P&gt;           ID     'N_KONH' USING indx_form1.&lt;/P&gt;&lt;P&gt;So that i can find the field symbol type using the RTTI Framework and create the internal table using create data syntax on the type returned by the field symbol.&lt;/P&gt;&lt;P&gt;Basically i want to create the internal table on the type which is stored in the cluster table as i do not know the type which is stored in the cluster table.so that i can use this internal table for furthur processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? As when i use the field symbol it remains unassigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jun 2010 08:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-type-for-import-from-database/m-p/6942617#M1487568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-14T08:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Type for Import from Database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-type-for-import-from-database/m-p/6942618#M1487569</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 wonder if you already found a solution for this. I'm facing the same problem and i would appraciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 13:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-type-for-import-from-database/m-p/6942618#M1487569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-14T13:15:14Z</dc:date>
    </item>
  </channel>
</rss>

