<?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: Re: oops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-oops/m-p/3199944#M762658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not syntax checking because you the statement &amp;lt;b&amp;gt;write h*j.&amp;lt;/b&amp;gt; is not a valid ABAP statement.  You need p = h * j.  write p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the program stands it doesn't do anything.  You've just got a local class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to put the "start-of-selection" bit after the ENDCLASS, and even then, the syntax is &amp;lt;b&amp;gt;  CREATE OBJECT  obj.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do all of this and you'll have a syntactically correct program, rather like Francisco Javier Carrillo Maldonado's above.  But it will only print out&amp;lt;b&amp;gt; 5 * 1 = 5&amp;lt;/b&amp;gt; 10 times.  Not the five times table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2007 15:42:55 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2007-12-13T15:42:55Z</dc:date>
    <item>
      <title>Re: oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-oops/m-p/3199942#M762656</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;i am new to oops , i want to print the table 5 in the output.&lt;/P&gt;&lt;P&gt;I have written the code under, &lt;/P&gt;&lt;P&gt;I cant understand why it is not executing.&lt;/P&gt;&lt;P&gt;I wil give u fuul points If u modify and make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class sasi definition..&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;methods ravi.&lt;/P&gt;&lt;P&gt;data: h type i,&lt;/P&gt;&lt;P&gt;      j type i value 1,&lt;/P&gt;&lt;P&gt;      res type i.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;class sasi implementation.&lt;/P&gt;&lt;P&gt;method ravi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 10 times.&lt;/P&gt;&lt;P&gt;data h type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move 5 to h.&lt;/P&gt;&lt;P&gt;write:/ h  , ' * '  , j  , '='  , h*j.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*start-of-selection.&lt;/P&gt;&lt;P&gt;*data obj type ref to sasi.&lt;/P&gt;&lt;P&gt;*create object type obj.&lt;/P&gt;&lt;P&gt;*call method obj-&amp;gt;ravi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endclass.&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;Sashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 15:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-oops/m-p/3199942#M762656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T15:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-oops/m-p/3199943#M762657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  Z_HOLA_MUNDO                                                *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  z_hola_mundo LINE-SIZE 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS sasi DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS sasi DEFINITION..&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS ravi.&lt;/P&gt;&lt;P&gt;    DATA: h TYPE i,&lt;/P&gt;&lt;P&gt;    j TYPE i VALUE 1,&lt;/P&gt;&lt;P&gt;    res TYPE i.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "sasi DEFINITION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS sasi IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS sasi IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD ravi.&lt;/P&gt;&lt;P&gt;    DATA: x TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO 10 TIMES.&lt;/P&gt;&lt;P&gt;      DATA h TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE 5 TO h.&lt;/P&gt;&lt;P&gt;      x = h * j.&lt;/P&gt;&lt;P&gt;      WRITE:/ h , ' * ' , j , '=' , x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "ravi&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "sasi IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  DATA obj TYPE REF TO sasi.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT obj.&lt;/P&gt;&lt;P&gt;  CALL METHOD obj-&amp;gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 15:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-oops/m-p/3199943#M762657</guid>
      <dc:creator>franciscojavier_carrillom</dc:creator>
      <dc:date>2007-12-13T15:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-oops/m-p/3199944#M762658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not syntax checking because you the statement &amp;lt;b&amp;gt;write h*j.&amp;lt;/b&amp;gt; is not a valid ABAP statement.  You need p = h * j.  write p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the program stands it doesn't do anything.  You've just got a local class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to put the "start-of-selection" bit after the ENDCLASS, and even then, the syntax is &amp;lt;b&amp;gt;  CREATE OBJECT  obj.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do all of this and you'll have a syntactically correct program, rather like Francisco Javier Carrillo Maldonado's above.  But it will only print out&amp;lt;b&amp;gt; 5 * 1 = 5&amp;lt;/b&amp;gt; 10 times.  Not the five times table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 15:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-oops/m-p/3199944#M762658</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-13T15:42:55Z</dc:date>
    </item>
  </channel>
</rss>

