<?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 ABAP Objects Questions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-questions/m-p/4282705#M1021753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I hope someone could answer the following questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the below ABAP code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: zVar(30)                type c value 'ZTEST_CLASS',&lt;/P&gt;&lt;P&gt;        methodName(30)    type c value 'Test_Method'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question # 1:  Can I define the objVar as below or is there anyother way to accomplish this?&lt;/P&gt;&lt;P&gt;data:  objVar  TYPE REF TO  zVar.  (Please note that zVar is the variable that contains the name of the  &lt;/P&gt;&lt;P&gt;                                                       class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question # 2: Can I create the object objVar from the above question as below?&lt;/P&gt;&lt;P&gt;CREATE OBJECT objVar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question # 3: Can I call the method of objVar as below&lt;/P&gt;&lt;P&gt;CALL METHOD objVar-&amp;gt;Test_Method (please note that test method is a variable that contains the name &lt;/P&gt;&lt;P&gt;                                                         of the actual method)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Aug 2008 15:42:40 GMT</pubDate>
    <dc:creator>former_member445996</dc:creator>
    <dc:date>2008-08-10T15:42:40Z</dc:date>
    <item>
      <title>ABAP Objects Questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-questions/m-p/4282705#M1021753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I hope someone could answer the following questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the below ABAP code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: zVar(30)                type c value 'ZTEST_CLASS',&lt;/P&gt;&lt;P&gt;        methodName(30)    type c value 'Test_Method'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question # 1:  Can I define the objVar as below or is there anyother way to accomplish this?&lt;/P&gt;&lt;P&gt;data:  objVar  TYPE REF TO  zVar.  (Please note that zVar is the variable that contains the name of the  &lt;/P&gt;&lt;P&gt;                                                       class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question # 2: Can I create the object objVar from the above question as below?&lt;/P&gt;&lt;P&gt;CREATE OBJECT objVar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question # 3: Can I call the method of objVar as below&lt;/P&gt;&lt;P&gt;CALL METHOD objVar-&amp;gt;Test_Method (please note that test method is a variable that contains the name &lt;/P&gt;&lt;P&gt;                                                         of the actual method)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2008 15:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-questions/m-p/4282705#M1021753</guid>
      <dc:creator>former_member445996</dc:creator>
      <dc:date>2008-08-10T15:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects Questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-questions/m-p/4282706#M1021754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All these Can be done using Dynamic programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_CLASS.


data: zVar(30) type c value 'ZCL_TEST1',  "&amp;lt;--class name
methodName(30) type c value 'TEST'.   "&amp;lt;----Method name

data: obj type ref to object.

create object obj TYPE (zvar) .

call method obj-&amp;gt;(methodname).

break-point.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2008 15:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-questions/m-p/4282706#M1021754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-10T15:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects Questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-questions/m-p/4282707#M1021755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vijay. I appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Aug 2008 16:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-questions/m-p/4282707#M1021755</guid>
      <dc:creator>former_member445996</dc:creator>
      <dc:date>2008-08-10T16:13:26Z</dc:date>
    </item>
  </channel>
</rss>

