<?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 Statement in ABAP. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579973#M861861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me what does this statement signify ?&lt;/P&gt;&lt;P&gt;os_ps ?= cl_xx_system=&amp;gt;get_xxxx_yyyy( ).&lt;/P&gt;&lt;P&gt;Please reply me in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Binay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 11:15:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-27T11:15:20Z</dc:date>
    <item>
      <title>Statement in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579973#M861861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me what does this statement signify ?&lt;/P&gt;&lt;P&gt;os_ps ?= cl_xx_system=&amp;gt;get_xxxx_yyyy( ).&lt;/P&gt;&lt;P&gt;Please reply me in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Binay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579973#M861861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T11:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Statement in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579974#M861862</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;PRE&gt;&lt;CODE&gt;
CLASS lcl_airplane DEFINITION.
PUBLIC SECTION.
METHODS: estimated_fuel_consumption
IMPORTING im_distance TYPE ty_distance
RETURNING VALUE(re_fuel) TYPE ty_fuel,
CLASS-METHODS: get_count RETURNING VALUE(re_count) TYPE i.
ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: plane1 TYPE REF TO lcl_airplane,
plane2 TYPE REF TO lcl_airplane,
fuel_consumption TYPE ty_fuel,
count_planes TYPE i.

* Instantiation omitted
* CALL METHOD plane1-&amp;gt;get_count RECEIVING re_count = *count_planes.
count_planes = lcl_airplane=&amp;gt;get_count( ).
fuel_consumption = plane1-&amp;gt;estimated_fuel_consumption( 1000 ) + plane2-&amp;gt;estimated_fuel_consumption( im_distance = 1500 ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax for instance methods (analogous to static methods) is as follows, depending on the number of&lt;/P&gt;&lt;P&gt;IMPORTING parameters :&lt;/P&gt;&lt;P&gt;no IMPORTING parameters: ref-&amp;gt;func_method( )&lt;/P&gt;&lt;P&gt;exactly 1 IMPORTING parameter : ref-&amp;gt;func_method( p1 ) oder&lt;/P&gt;&lt;P&gt;ref-&amp;gt;func_method( im_1 = p1 )&lt;/P&gt;&lt;P&gt;several IMPORTING parameters : ref-&amp;gt;func_method( im_1 = p1 im_2 = p2 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Runal Singh on Mar 27, 2008 4:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579974#M861862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T11:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Statement in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579975#M861863</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;Thans for your reply but my concern is the operator &lt;STRONG&gt;?=&lt;/STRONG&gt; in the statement.&lt;/P&gt;&lt;P&gt;what does &lt;STRONG&gt;?=&lt;/STRONG&gt; signify ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Binay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 12:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579975#M861863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T12:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Statement in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579976#M861864</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;If a static type check cannot take place when you make an assignment between two reference variables, you must use the casting assignment MOVE ... ?TO ... . If you are using the equivalent of this statement, the assignment operator '=', you must change this to '?='. The'?=' expression is not an ABAP Objects operator, but simply a way of writing the casting assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 13:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579976#M861864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T13:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Statement in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579977#M861865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai binay sankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ?= operator is called dynamic cast operator. This is espesicaially used in the following case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="info"&gt;&lt;/SPAN&gt; When you don't want to  perform the static type check and checks  when the object reference in the source  variable   points to the object referenced in the target variable or not at run time by the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the assignment is not possible, it gives &lt;/P&gt;&lt;P&gt;MOVE_CAST_ERROR error at runtime.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This casting is normally done as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objref1 ?= objref2 or MOVE  objref1 ?= objref2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type of casting is needed in downward casting in inheritance hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is useful , rewards points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;prasad g.v.k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the inheritance scenario,&lt;/P&gt;&lt;P&gt;when an object reference of specialized  interface referenced to a more generalized object reference , then this casting should be required to not getting any error from static checking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 14:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-in-abap/m-p/3579977#M861865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T14:04:59Z</dc:date>
    </item>
  </channel>
</rss>

