<?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: downcasting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328160#M1729014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To your hint:&lt;/P&gt;&lt;P&gt;How do you know that I have not already done that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my posting again:&lt;/P&gt;&lt;P&gt;Which sense does it make to downcast an object in order to call always a method&lt;/P&gt;&lt;P&gt;of subclass. I will never understand that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Mar 2013 08:31:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-03-04T08:31:27Z</dc:date>
    <item>
      <title>downcasting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328158#M1729012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3310329"&gt;http://scn.sap.com/thread/3310329&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the above posting to understand especially downcasting (widening casting &lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px; background-color: #ffffff;"&gt;?=&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I need to understand it generally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial monospaced for SAP;"&gt;subclass ?= superclass.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;With widening casting (Downcasting)&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp; accesing/calling&amp;nbsp; the methods of subclass to runtime.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;Which method is called? Method of subclass or superclass?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, with the refrence "&lt;SPAN style="font-family: Arial monospaced for SAP;"&gt;subclass" it is anyway possible to access to its methods. Why this casting?? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With upcasting (Narrow Casting ) =&amp;nbsp;&amp;nbsp; accesing/calling&amp;nbsp; the methods of superclass&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial monospaced for SAP;"&gt;superclass&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial monospaced for SAP;"&gt; = subclass.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;With the refrence "&lt;SPAN style="font-family: Arial monospaced for SAP;"&gt;superclass&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial monospaced for SAP;"&gt;" I am calling the methods of superclass.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial monospaced for SAP;"&gt;Is that right? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Which method is called? Method of superclass or subclass&amp;nbsp; ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please correct me if I have misunderstood, it is very important to clarify me on this topic. I would be very grateful to everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2013 15:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328158#M1729012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-03T15:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: downcasting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328159#M1729013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMO - all these questions just lead to more questions that are similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the best thing for you to do is just to try it and see. Create a class with some public &amp;amp; protected methods that simply call write statements to show you when they execute. Then create one or more subclasses and redefine some of those methods to have their own write statements. Then have a play and see what works and what doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2013 23:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328159#M1729013</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2013-03-03T23:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: downcasting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328160#M1729014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To your hint:&lt;/P&gt;&lt;P&gt;How do you know that I have not already done that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my posting again:&lt;/P&gt;&lt;P&gt;Which sense does it make to downcast an object in order to call always a method&lt;/P&gt;&lt;P&gt;of subclass. I will never understand that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 08:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328160#M1729014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-04T08:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: downcasting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328161#M1729015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are general object oriented inheritance rules, that are also valid for ABAP.&lt;/P&gt;&lt;P&gt;To simplify: always method of runtime object (actual existing object) is executed, independent of what is the reference type in declaration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means that parent method will be called only in case of having pure parent in runtime:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA lo_super TYPE REF TO lcl_super.&lt;/P&gt;&lt;P&gt;CRATE OBJECT lo_super.&lt;/P&gt;&lt;P&gt;lo_super-&amp;gt;method( ).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If lcl_subclass has redefined method( ), then examples below will call subclass implementation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA lo_subclass_from_super TYPE REF TO lcl_super.&lt;/P&gt;&lt;P&gt;CREATE OBJECT lo_subclass_from_super TYPE lcl_subclass.&lt;/P&gt;&lt;P&gt;lo_subclass_from_super-&amp;gt;method( ).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " redefined implementation of lcl_subclass run&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lo_subclass_temp TYPE REF TO lcl_subclass.&lt;/P&gt;&lt;P&gt;DATA lo_subclass_from_casting TYPE REF TO lcl_subclass.&lt;/P&gt;&lt;P&gt;DATA lo_super TYPE REF TO lcl_super.&lt;/P&gt;&lt;P&gt;CREATE OBJECT lo_subclass_temp.&lt;/P&gt;&lt;P&gt;lo_super = lo_subclass_temp.&lt;/P&gt;&lt;P&gt;lo_super-&amp;gt;method( ).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " redefined implementation of lcl_subclass run&lt;/P&gt;&lt;P&gt;lo_subclass_from_casting ?= lo_super.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;lo_subclass_from_casting-&amp;gt;method( ).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " redefined implementation of lcl_subclass run&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this example will throw exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA lo_subclass TYPE REF TO lcl_subclass.&lt;/P&gt;&lt;P&gt;DATA lo_super TYPE lcl_super.&lt;/P&gt;&lt;P&gt;CREATE lo_super.&lt;/P&gt;&lt;P&gt;" Exception thrown because how would method lo_subclass-&amp;gt;subclass_method_only( ) run?&lt;/P&gt;&lt;P&gt;lo_subclass ?= lo_super. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type declaration is only used to limit methods that we can use at compilation level - if &lt;EM&gt;&lt;STRONG&gt;LCL_SUPER &lt;/STRONG&gt;&lt;/EM&gt;type is used, only methods that are in &lt;EM&gt;&lt;STRONG&gt;LO_SUPER &lt;/STRONG&gt;&lt;/EM&gt;(optionally redefined in subclasses) can be called in code. If you have subclass type defined, you can use all methods - redefined from &lt;EM&gt;&lt;STRONG&gt;LCL_SUPER &lt;/STRONG&gt;&lt;/EM&gt;and new from &lt;EM&gt;&lt;STRONG&gt;LCL_SUBCLASS&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general we use downcasting / widecasting if we have we parameter of type is &lt;EM&gt;&lt;STRONG&gt;LCL_SUPER &lt;/STRONG&gt;&lt;/EM&gt;but we know that &lt;EM&gt;&lt;STRONG&gt;LCL_SUBCLASS &lt;/STRONG&gt;&lt;/EM&gt;object is passed at runtime and we want to use additional method specific only to subclass. If we only operate on super class methods, there is no need of downcasting, just keep it mind that always methods of runtime object are run. Example: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We have method that requires parameter&lt;EM&gt;&lt;STRONG&gt; io_vehicle TYPE REF TO lcl_vehicle&lt;/STRONG&gt;&lt;/EM&gt; and executes&lt;EM&gt;&lt;STRONG&gt; lo_vehicle-&amp;gt;move( )&lt;/STRONG&gt;&lt;/EM&gt; inside it.&lt;/LI&gt;&lt;LI&gt;Lets call it &lt;EM&gt;&lt;STRONG&gt;lo_transport-&amp;gt;transport_person( IMPORTING io_vehicle TYPE REF TO lcl_vehicle )&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/LI&gt;&lt;LI&gt;If we pass object &lt;STRONG&gt;&lt;EM&gt;lo_car TYPE REF TO lcl_car &lt;/EM&gt;&lt;/STRONG&gt;that is subclass of &lt;EM&gt;&lt;STRONG&gt;lcl_vehicle&lt;/STRONG&gt;&lt;/EM&gt;, then actually &lt;EM&gt;&lt;STRONG&gt;lo_car-&amp;gt;move( )&lt;/STRONG&gt;&lt;/EM&gt; will be called even if parameter of method was lo_vehicle&lt;/LI&gt;&lt;LI&gt;If we pass another object &lt;EM&gt;&lt;STRONG&gt;lo_motor TYPE REF TO lcl_motor &lt;/STRONG&gt;&lt;/EM&gt;that is subclass of &lt;EM&gt;&lt;STRONG&gt;lcl_vehicle&lt;/STRONG&gt;&lt;/EM&gt;, then method &lt;EM&gt;&lt;STRONG&gt;lo_motor-&amp;gt;move( )&lt;/STRONG&gt;&lt;/EM&gt; will be called etc.&lt;/LI&gt;&lt;LI&gt;In this way you can program requirement that we have vehicle that can move (super class has move method) but how it will move depends on exact subclass object implementation.&lt;/LI&gt;&lt;LI&gt;Downcasting would be used&amp;nbsp; in case if we want to execute additional step only for motor in the &lt;EM&gt;&lt;STRONG&gt;lo_transport-&amp;gt;transport_person( )&lt;/STRONG&gt;&lt;/EM&gt;, that is only in &lt;EM&gt;&lt;STRONG&gt;LCL_MOTOR&lt;/STRONG&gt;&lt;/EM&gt; class like&lt;EM&gt;&lt;STRONG&gt; put_helmet( ). &lt;/STRONG&gt;&lt;/EM&gt;You cannot use &lt;EM&gt;&lt;STRONG&gt;lo_vehicle-&amp;gt;put_helment( )&lt;/STRONG&gt;&lt;/EM&gt; because it does not exists in vehicle. You need to do:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;DATA lo_motor TYPE REF TO lcl_motor.&lt;/P&gt;&lt;P&gt;lcl_motor ?= lo_vehicle.&lt;/P&gt;&lt;P&gt;lcl_motor-&amp;gt;put_helmet( ).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Of course this code should be run only if we know that &lt;EM&gt;&lt;STRONG&gt;lcl_motor &lt;/STRONG&gt;&lt;/EM&gt;runtime object can be passed. We can add IF statement or try casting with TRY CATCH statement.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not need to use upcasting at all, we can always pass lo_subclass wherever lo_super is expected. I never use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1245/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 08:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328161#M1729015</guid>
      <dc:creator>adam_krawczyk1</dc:creator>
      <dc:date>2013-03-04T08:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: downcasting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328162#M1729016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in addition to what Adam wrote below and hoping that I understood your question correctly: you need to distinguish between designtime and runtime when looking at "method of subclass or superclass is called".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will at runtime always execute the method that belongs to the instance you created, so the creating of the instance defines whether it is the super- or subclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A widening cast just helps you at design time: if for whatever reason you happen to have access to a superclass (interface restrictions for example), but you know that the caller might provide you with a subclass, you can use the widening cast to gain access to the functionality of the subclass at designtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I making sense? &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1245/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 08:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328162#M1729016</guid>
      <dc:creator>thorsten_hopf</dc:creator>
      <dc:date>2013-03-04T08:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: downcasting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328163#M1729017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;pls. can u check&amp;nbsp; if this coding is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_vehicle DEFINITION.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;METHODS: move,&lt;/P&gt;&lt;P&gt;transport_person IMPORTING io_vehicle TYPE REF TO lcl_vehicle.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_car DEFINITION INHERITING FROM lcl_vehicle.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;METHODS: move Redefinition,&lt;/P&gt;&lt;P&gt;transport_person Redefinition .&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_motor DEFINITION INHERITING FROM lcl_vehicle.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;METHODS: move Redefinition,&lt;/P&gt;&lt;P&gt;transport_person Redefinition .&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_vehicle IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD move.&lt;/P&gt;&lt;P&gt;WRITE: / 'Methode der vehicle'.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;METHOD transport_person.&lt;/P&gt;&lt;P&gt;WRITE: / 'transport_person der Vehicleklasse'.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_car IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD move.&lt;/P&gt;&lt;P&gt;WRITE: / 'Method of car'.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;METHOD transport_person.&lt;/P&gt;&lt;P&gt;WRITE: / 'transport_person der Carklasse'.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_motor IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD move.&lt;/P&gt;&lt;P&gt;WRITE: / 'Method of motor'.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;METHOD transport_person.&lt;/P&gt;&lt;P&gt;WRITE: / 'transport_person der Motorklasse'.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lo_vehicle TYPE REF TO lcl_vehicle.&lt;/P&gt;&lt;P&gt;DATA lo_car TYPE REF TO lcl_car.&lt;/P&gt;&lt;P&gt;DATA lo_motor TYPE REF TO lcl_motor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT lo_vehicle.&lt;/P&gt;&lt;P&gt;CREATE OBJECT lo_car.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD lo_car-&amp;gt;transport_person&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;io_vehicle = lo_vehicle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 10:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downcasting/m-p/9328163#M1729017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-04T10:12:50Z</dc:date>
    </item>
  </channel>
</rss>

