<?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: Conversion .NET to ABAP Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333176#M513570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Anyway i still need a reference variable to return a object and add parameter in the function. But thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 03:13:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T03:13:13Z</dc:date>
    <item>
      <title>Conversion .NET to ABAP Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333174#M513568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hyyy guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to translate ABAP method in .net , if I make function and return of object class.&lt;/P&gt;&lt;P&gt;etc ;&lt;/P&gt;&lt;P&gt;public AbstractClass CreateSomething()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;              return new ClassA();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just know that ABAP use CREATE OBJECT &amp;lt;cref&amp;gt;, but that method require &lt;/P&gt;&lt;P&gt;reference variable. How can I solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 14:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333174#M513568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-03T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion .NET to ABAP Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333175#M513569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the following scenario..  In the class definition you specify what the return type is in exporting parameter (in this case we have some class defined as 'lcl_abstract' as an example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS lcl_test DEFINITION.
  PUBLIC SECTION.
    METHODS: createsomething
    EXPORTING my_obj TYPE REF TO lcl_abstract.
ENDCLASS.        

CLASS lcl_test IMPLEMENTATION.
  METHOD: createsomething.
    CREATE OBJECT my_obj.
  ENDMETHOD.                 
ENDCLASS.      

------------------------------

DATA: obj_ref TYPE REF TO lcl_abstract,
          test_ref TYPE REF TO lcl_test.

START-OF-SELECTION.

CREATE OBJECT test_ref.

test_ref-&amp;gt;createsomething( importing my_obj = obj_ref ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        DanielY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 15:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333175#M513569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-03T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion .NET to ABAP Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333176#M513570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Anyway i still need a reference variable to return a object and add parameter in the function. But thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 03:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333176#M513570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T03:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion .NET to ABAP Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333177#M513571</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;have a look at this code. The method createsomething now has a returning parameter + you can see how you to use the word TYPE to actually specify the concrete class which inherits from the abstract class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS lcl_test DEFINITION.
  PUBLIC SECTION.
    METHODS: createsomething RETURNING VALUE(my_obj) TYPE REF TO lcl_abstract.
ENDCLASS.        
 
CLASS lcl_test IMPLEMENTATION.
  METHOD: createsomething.
    CREATE OBJECT my_obj type ClassA.
  ENDMETHOD.                 
ENDCLASS.      &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-net-to-abap-object/m-p/2333177#M513571</guid>
      <dc:creator>thomasalexander_ritter</dc:creator>
      <dc:date>2007-06-05T03:37:11Z</dc:date>
    </item>
  </channel>
</rss>

