<?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 Dynamic type variables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712325#M1106874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a function module that receives a table name, in a character variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I create a variable, within the function, of the type of the parameter-passed table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying with field-symbols and create data, but without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone show me an example please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2008 09:40:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-29T09:40:48Z</dc:date>
    <item>
      <title>Dynamic type variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712325#M1106874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a function module that receives a table name, in a character variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I create a variable, within the function, of the type of the parameter-passed table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying with field-symbols and create data, but without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone show me an example please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 09:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712325#M1106874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T09:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic type variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712326#M1106875</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 think u need the data element to pass the table name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so try this&lt;/P&gt;&lt;P&gt;TABNAME16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the data element used for table names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 09:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712326#M1106875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T09:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic type variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712327#M1106876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I do receive the table name in a variable of type&lt;/P&gt;&lt;P&gt;DD02D-TABNAME, not in a char variable. How does it help me, anyways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 09:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712327#M1106876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T09:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic type variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712328#M1106877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lt_table type ref to data.

create data lt_table type standard table of ('SFLIGHT').&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With create data you can achieve what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then analyze the fields in the table and use it with that information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you will want to look at classes cl_abap_typedescr, cl_abap_tabledescr and cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lutz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lutz Morrien on Oct 29, 2008 11:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 10:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-type-variables/m-p/4712328#M1106877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T10:17:48Z</dc:date>
    </item>
  </channel>
</rss>

