<?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: Object instance not getting created in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190276#M1374491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I deleted the tcode and created again, now its working fine, may be i have missed something previously, or may be i created it as dialog transaction(i dont remember exactly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now its fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2009 08:48:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-20T08:48:50Z</dc:date>
    <item>
      <title>Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190265#M1374480</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 have created a report using local classes entirely,&lt;/P&gt;&lt;P&gt;I created the object reference and instantiating it in INITIALIZATION event then i'm using one method of the class in AT SELECTION-SCREEN ON event.&lt;/P&gt;&lt;P&gt;now everything is fine except that in some rare cases a a short dump is coming that object is not assigned, this is happening for the same test case also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now can there be any case that INITIALIZATION doesnot get executed and directly AT SELECTION-SCREEN is called?&lt;/P&gt;&lt;P&gt;this is happening entirely randomly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 07:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190265#M1374480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-16T07:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190266#M1374481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kartik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK this is not possible. ABAP is an event-driven language &amp;amp; i donot believe that INITIALIZATION will be skipped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small question: Have you initialised the object instance after the program execution &amp;amp; tried to rerun the code? Are you getting the dump in that case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 07:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190266#M1374481</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-10-16T07:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190267#M1374482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya even i still dont believe that initialization could have skipped but some cases on random basis it did happen, i even had a break point after the initialization statement which was getting triggered but on one case it did not stop on breakpoint and gave dump.&lt;/P&gt;&lt;P&gt;This means the only reason that it could have happened is that initialization did not get triggered. this is happening once in a while say once in 10 or 20 times&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 08:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190267#M1374482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-16T08:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190268#M1374483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kartik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You did not answer my question? Is there any pattern which the errors are following? Or is it happening randomly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 08:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190268#M1374483</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-10-16T08:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190269#M1374484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No pattern.&lt;/P&gt;&lt;P&gt;entirely randomly, even while running the same variant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 08:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190269#M1374484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-16T08:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190270#M1374485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to reproduce this dump you are getting, but not able to do so. In my case, the INITIALIZATION event is triggered on every run(call). So also after executing the report and returning to the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have one remark on approach, or actually it is a question? Why are you using the initialization event for creating an object? This event is only meant for initializing screen fields and not for instantiating objects. One of the down sides of procedural programming events is that you have not influence on the moment of triggering. But this will not answer your question I know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: My first thought was that it has something to do with the Garbage collector, but that would not explain the fact that your INITIALIZATION event is not called.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 09:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190270#M1374485</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-10-16T09:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190271#M1374486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the object in 'AT SELECTION-SCREEN' START-OF-SELECTION as well as END-OF-SELECTION events thats why i chose to instantiate the object in INITIALISATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even I'm not able to reproduce the dump at will. Its weird that it happened at random and that too since past 2-3 i have not seen it, everything is running fine. only one day it gave trouble on a couple of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closing this thread now as it is neither a standard problem nor has any solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 07:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190271#M1374486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T07:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190272#M1374487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kartik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;too bad, I was quite curious on what could be causing this problem. Especially since it happens 'randomly'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 07:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190272#M1374487</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-10-20T07:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190273#M1374488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well here's the dump analysis, you might be interested to look at it, might be there's something i'm missing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION.
*  Too add movement types 101 &amp;amp; 261 as default movement types
  l_wa_bwart-sign = c_i.    "I
  l_wa_bwart-option = c_eq. "EQ
  l_wa_bwart-low = c_101.   "101
  APPEND l_wa_bwart TO s_bwart.
  l_wa_bwart-low = c_261.   "261
  APPEND l_wa_bwart TO s_bwart.

*  Instance Creation
  CREATE OBJECT: o_validate.
     IF sy-subrc IS NOT INITIAL.
       MESSAGE e999.
     ENDIF.

* Instance Creation
  CREATE OBJECT: o_alv.
    IF sy-subrc IS NOT INITIAL.
      MESSAGE e999.
    ENDIF.

***********************************************************************
*    SELECTION SCREEN VALIDATIONS
***********************************************************************
AT SELECTION-SCREEN ON s_plant.
  "To validate plant and check authorisation
  CALL METHOD o_validate-&amp;gt;validate_p_plant." &amp;lt;---Dump at this statement

AT SELECTION-SCREEN ON s_matnr.
 "To validate material
  CALL METHOD o_validate-&amp;gt;validate_p_matnr.

AT SELECTION-SCREEN ON s_bwart.
 "To validate movement type
  CALL METHOD o_validate-&amp;gt;validate_s_bwart.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Error          OBJECTS_OBJREF_NOT_ASSIGNED&lt;/P&gt;&lt;P&gt;Except.                CX_SY_REF_IS_INITIAL&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;    Error in ABAP application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The current ABAP program "/FIR/RRF2S_A042_001" had to be terminated because one&lt;/P&gt;&lt;P&gt;     of the&lt;/P&gt;&lt;P&gt;    statements could not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    This is probably due to an error in the ABAP program.&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    An exception occurred. This exception is dealt with in more detail below&lt;/P&gt;&lt;P&gt;    . The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL', was&lt;/P&gt;&lt;P&gt;     neither&lt;/P&gt;&lt;P&gt;    caught nor passed along using a RAISING clause, in the procedure&lt;/P&gt;&lt;P&gt;     "%_SEL_SCREEN_S_PLANT" "(FORM)"&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have expected this exception&lt;/P&gt;&lt;P&gt;     to occur, the running program was terminated.&lt;/P&gt;&lt;P&gt;    The reason for the exception is:&lt;/P&gt;&lt;P&gt;    Attempt to access a component using 'NULL' object reference (points&lt;/P&gt;&lt;P&gt;    to nothing).&lt;/P&gt;&lt;P&gt;    An object reference must point to an object (an instance of a class)&lt;/P&gt;&lt;P&gt;    before you can use it to access components (variable: "O_VALIDATE").&lt;/P&gt;&lt;P&gt;    Either the reference has not yet been set, or it has been reset to&lt;/P&gt;&lt;P&gt;    'NULL' by a CLEAR statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure where to move this create object statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kartik Tarla on Oct 20, 2009 1:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 07:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190273#M1374488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190274#M1374489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems i have got a pattern in what i thought was random occurance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 08:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190274#M1374489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T08:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190275#M1374490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I execute the report directly the initialization gets called, but when i run the transaction code assigned to the program, it doesnot go to the initialization and directly goes to at selection screen event and dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the transaction type is "program and selection screen" report transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 08:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190275#M1374490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T08:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Object instance not getting created</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190276#M1374491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I deleted the tcode and created again, now its working fine, may be i have missed something previously, or may be i created it as dialog transaction(i dont remember exactly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now its fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 08:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-instance-not-getting-created/m-p/6190276#M1374491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T08:48:50Z</dc:date>
    </item>
  </channel>
</rss>

