<?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: OOPs ABAP question (2) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751888#M1875860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;FACTORY is static method.&lt;/P&gt;&lt;P&gt;DISPLAY is instance method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the syntax for method call&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 04:15:57 GMT</pubDate>
    <dc:creator>thokane</dc:creator>
    <dc:date>2014-11-21T04:15:57Z</dc:date>
    <item>
      <title>OOPs ABAP question (2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751885#M1875857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this simple code example. I would like to know why this line of code generates an error.&amp;nbsp; &lt;STRONG style="color: #ff0000;"&gt;CL_SALV_TABLE-&amp;gt;DISPLAY( ). &lt;/STRONG&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;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt; &lt;STRONG style="font-size: 14pt;"&gt;DATA&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt; : IT_MARA &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; MARA.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt; &lt;SPAN class="L1S52"&gt;DATA&lt;/SPAN&gt; : LR_ALV&amp;nbsp; &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;REF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; CL_SALV_TABLE.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt; &lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; * &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; MARA &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; IT_MARA &lt;SPAN class="L1S52"&gt;UP&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;50&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;ROWS&lt;/SPAN&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #99cc00;"&gt;CALL&lt;/SPAN&gt;&lt;SPAN style="color: #99cc00;"&gt; &lt;SPAN class="L1S52"&gt;METHOD&lt;/SPAN&gt; CL_SALV_TABLE=&amp;gt;FACTORY&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R_SALV_TABLE = LR_ALV&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CHANGING&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T_TABLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = IT_MARA.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt; &lt;SPAN class="L1S31"&gt;****&amp;nbsp; LR_ALV-&amp;gt;DISPLAY( ).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "correct&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&lt;SPAN class="L1S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp; CL_SALV_TABLE-&amp;gt;DISPLAY( ).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;********************************&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 19px;"&gt;Q : &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;Isn't&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; the last statement similar to this one : CALL METHOD CL_SALV_TABLE-&amp;gt;DISPLAY( )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #ff0000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #ff0000;"&gt;&lt;STRONG&gt;which is similar to &lt;STRONG style="font-size: 19px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;CALL&lt;/SPAN&gt;&lt;SPAN style="color: #99cc00;"&gt; &lt;SPAN class="L1S52"&gt;METHOD&lt;/SPAN&gt; CL_SALV_TABLE=&amp;gt;FACTORY&lt;/SPAN&gt; ?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #ff0000;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 19px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 10pt;"&gt;FACTORY &amp;amp; DISPALY are both methods of the class CL_SALV_TABLE, except that DISPLAY has no import or export parameters. why calling it,&amp;nbsp; is causing an issue ?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 10pt;"&gt;Thank you.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;STRONG style="font-size: 19px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 18:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751885#M1875857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-20T18:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: OOPs ABAP question (2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751886#M1875858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sami&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the difference is:&lt;/P&gt;&lt;P&gt;CL_SALV_TABLE=&amp;gt;FACTORY is a &lt;STRONG&gt;STATIC&lt;/STRONG&gt; Method, where&lt;/P&gt;&lt;P&gt;CL_SALV_TABLE-&amp;gt;DISPLAY is a &lt;STRONG&gt;INSTANCE&lt;/STRONG&gt; Method, so you cannot Access it over the Classname but you can use a REF TO variable (LR_ALV)&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/590162" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 20:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751886#M1875858</guid>
      <dc:creator>JK</dc:creator>
      <dc:date>2014-11-20T20:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: OOPs ABAP question (2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751887#M1875859</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;&lt;/P&gt;&lt;P&gt;You are missing basic OO knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See here &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/abapdocu_740/en/abenabap_objects_oview.htm"&gt;http://help.sap.com/abapdocu_740/en/abenabap_objects_oview.htm&lt;/A&gt;&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, 20 Nov 2014 20:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751887#M1875859</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-11-20T20:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: OOPs ABAP question (2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751888#M1875860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;FACTORY is static method.&lt;/P&gt;&lt;P&gt;DISPLAY is instance method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the syntax for method call&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 04:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-abap-question-2/m-p/10751888#M1875860</guid>
      <dc:creator>thokane</dc:creator>
      <dc:date>2014-11-21T04:15:57Z</dc:date>
    </item>
  </channel>
</rss>

