<?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: create instance of the class dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-instance-of-the-class-dynamically/m-p/3729654#M897696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
classname TYPE seoclsname,
o_ref TYPE REF TO object.
...
CREATE OBJECT o_ref TYPE (classname) PARAMETER-TABLE it_par
EXCEPTION-TABLE it_exc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class name must be set in data object classname at runtime. The object reference, o_ref, must be compatible with this class, or typed to a shared superclass or with TYPE REF TO object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 14:57:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-28T14:57:35Z</dc:date>
    <item>
      <title>create instance of the class dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-instance-of-the-class-dynamically/m-p/3729653#M897695</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 receive the class name as a string whose instance has to be created.&lt;/P&gt;&lt;P&gt;and i need to return the instance of the importing class.&lt;/P&gt;&lt;P&gt;Could anybody tell me the Functiom module or the class to achieve this.&lt;/P&gt;&lt;P&gt;may be an appropiate example would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 28, 2008 1:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 14:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-instance-of-the-class-dynamically/m-p/3729653#M897695</guid>
      <dc:creator>i045323</dc:creator>
      <dc:date>2008-04-28T14:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: create instance of the class dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-instance-of-the-class-dynamically/m-p/3729654#M897696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
classname TYPE seoclsname,
o_ref TYPE REF TO object.
...
CREATE OBJECT o_ref TYPE (classname) PARAMETER-TABLE it_par
EXCEPTION-TABLE it_exc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class name must be set in data object classname at runtime. The object reference, o_ref, must be compatible with this class, or typed to a shared superclass or with TYPE REF TO object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 14:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-instance-of-the-class-dynamically/m-p/3729654#M897696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T14:57:35Z</dc:date>
    </item>
  </channel>
</rss>

