<?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: Get variable type dynamically ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672829#M297177</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;The easiest way is to use class CL_ABAP_TYPEDESCR. It will return all the details of a variable (including complex types), allowing you to dynamically create another instance of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2006 09:19:33 GMT</pubDate>
    <dc:creator>michael-john_turner</dc:creator>
    <dc:date>2006-11-23T09:19:33Z</dc:date>
    <item>
      <title>Get variable type dynamically ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672827#M297175</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 want to get type of a variable dynamically, in ABAP. For example, the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: my_var type zmystruct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP i want to get 'zmystruct', and after i want to create dynamically a new variable with this type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps: I posted yesterday the same message but it was deleted, why ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 09:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672827#M297175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable type dynamically ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672828#M297176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following links should help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8fde9f90-0201-0010-a6b8-9779396d8857" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8fde9f90-0201-0010-a6b8-9779396d8857&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 09:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672828#M297176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T09:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable type dynamically ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672829#M297177</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;The easiest way is to use class CL_ABAP_TYPEDESCR. It will return all the details of a variable (including complex types), allowing you to dynamically create another instance of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 09:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672829#M297177</guid>
      <dc:creator>michael-john_turner</dc:creator>
      <dc:date>2006-11-23T09:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable type dynamically ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672830#M297178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: FLD(8) TYPE N, 
      F_TYPE. 
DESCRIBE FIELD FLD TYPE F_TYPE. 



Result: F_TYPE contains the value 'N'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful and close the thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        chandrasekhar jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 09:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-type-dynamically/m-p/1672830#M297178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T09:19:51Z</dc:date>
    </item>
  </channel>
</rss>

