<?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: Creating objects ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701374#M1104736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The object can be created without the START-OF-SELECTION event (I tried). I guess it was rather a period error, a dot was missing from the end of the line or something like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2008 07:15:25 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-10-29T07:15:25Z</dc:date>
    <item>
      <title>Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701370#M1104732</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;I have create a local class definition and its corresponding implementation in my custom program. When i tried to create a object of this class it gave a error "Statement is not accessible" line pointing to the the create object statement. But when i placed the create object statement under START-OF-SELECTION event, the error went away and the code executed successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know the reason behing this and generally under which event the local class definition and implementation should be placed and why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 06:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701370#M1104732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T06:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701371#M1104733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;copy&amp;amp;paste_from_SAPHelp_removed_by_moderator&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Oct 29, 2008 10:18 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you do this again, your user ID will be deleted. This is your first warning&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 07:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701371#M1104733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T07:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701372#M1104734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Generally, the Local Class definition &amp;amp; Implementation is an independant block of code that doesn't require to be placed under a specific event. For example, check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YVEN_LOCAL_CLASS no standard page heading.&lt;/P&gt;&lt;P&gt;class lcl_clas Definition.&lt;/P&gt;&lt;P&gt;Public Section.&lt;/P&gt;&lt;P&gt;         methods: Write_hello.&lt;/P&gt;&lt;P&gt;Endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_clas Implementation.&lt;/P&gt;&lt;P&gt;method Write_hello.&lt;/P&gt;&lt;P&gt;     write:/ 'Hello from Local Class'.&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;Data: ws_obj type ref to lcl_clas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;create object ws_obj.&lt;/P&gt;&lt;P&gt;Call method ws_obj-&amp;gt;Write_hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        A simple code in which the Create Object Statement is placed under the Start-of-Selection Event. If you place it outside the Start-of-Selection, then you'll get the same error what you've got in your Custom Program. The reason is that an Object is required to be created under any particular event rather than simply issuing the CREATE Object Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Copy &amp;amp; Paste the above code in your ABAP editor and see what happens when you comment out the Start-of-Selection Statement. Try the same code with the Create Object Statement being placed under Initialization Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it was clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Venkat Phani Prasad Konduri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 07:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701372#M1104734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T07:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701373#M1104735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Venkat, If i am not wrong if we dont specify any event in the program, by default system takes all the statements under 'START-OF-SELECTION' event. So why we need to put this event explicitly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 07:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701373#M1104735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T07:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701374#M1104736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The object can be created without the START-OF-SELECTION event (I tried). I guess it was rather a period error, a dot was missing from the end of the line or something like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 07:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701374#M1104736</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-29T07:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701375#M1104737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric, I assume object cannot be created unless it is placed in a event, Please paste a sample piece of code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 07:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701375#M1104737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T07:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701376#M1104738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;Spoonfeeding&amp;gt;&lt;/P&gt;&lt;P&gt;just create a test program and paste the following two lines, it works without any problem:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : gc TYPE REF TO cl_gui_frontend_services.
CREATE OBJECT gc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/Spoonfeeding&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 07:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701376#M1104738</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-29T07:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701377#M1104739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eric, I have created a a local class definition and implimentation, your source code relates to a standard SAP class. Please check out is it possible to create a object for a local class without any event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 09:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701377#M1104739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T09:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701378#M1104740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moved to ABAP Objects...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 09:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701378#M1104740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T09:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701379#M1104741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u move ur implementation part below the create statement it works...but dono y &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EX :&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Here it asks for a START-OF-SELECTION event.&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS xyz DEFINITION.
  PUBLIC SECTION.
    METHODS hi.
ENDCLASS.                    "xyz DEFINITION

CLASS xyz IMPLEMENTATION.
  METHOD hi.
  ENDMETHOD.                    "hi
ENDCLASS.                    "xyz IMPLEMENTATION

DATA abc TYPE REF TO xyz.

START-OF-SELECTION.
CREATE OBJECT abc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Here it working fine&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS xyz DEFINITION.
  PUBLIC SECTION.
    METHODS hi.
ENDCLASS.                    "xyz DEFINITION

DATA abc TYPE REF TO xyz.
CREATE OBJECT abc.

CLASS xyz IMPLEMENTATION.
  METHOD hi.
  ENDMETHOD.                    "hi
ENDCLASS.                    "xyz IMPLEMENTATION&lt;/CODE&gt;&lt;/PRE&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;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 09:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701379#M1104741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T09:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701380#M1104742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I gave it a try and realised the same... But I cannot explain... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 09:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701380#M1104742</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-29T09:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701381#M1104743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Navneeth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Irrespective of whether there is a coding solution for your problem with or without the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;statement EVERY DECENT report should contain this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;In my report this statement clearly separates the data definition parts from the main program, e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1104287"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thus, it is a &lt;STRONG&gt;structural&lt;/STRONG&gt; element of the report which enhances transparency and facilitates maintenance of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be of academic interest to find out under which conditions local classes can be instantiated without the&lt;/P&gt;&lt;P&gt;START-OF-SELECTION statement yet for me its absence is just a sign of poor software quality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 10:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701381#M1104743</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-10-29T10:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating objects ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701382#M1104744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Navneeth K,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please, place CLASS IMPLEMENTATION at the end of code. In this case you should get what you want without START-OF-SELECTION statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that the CLASS IMPLEMENTATION is the processing block. If you write another statement like CREATE OBJECT after this processing block you should assign it to another processign block, for instance, START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 10:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-objects/m-p/4701382#M1104744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T10:23:38Z</dc:date>
    </item>
  </channel>
</rss>

