<?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: Access via 'NULL' object reference not possible ERROR! Please Help! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270820#M493267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will like this, it is a private instanation, but simply accessing the  static attribute MANAGER will give you the object .  check this code.  Now MANAGER has all your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: manager type ref to cl_hr_pm_pw_start_manager.

manager = cl_hr_pm_pw_start_manager=&amp;gt;manager.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 18:47:04 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-05-22T18:47:04Z</dc:date>
    <item>
      <title>Access via 'NULL' object reference not possible ERROR! Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270817#M493264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Here is the code I have to declare object variable and call a method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       DATA: process TYPE REF TO cl_hr_pm_pw_start_manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD process-&amp;gt;start&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      processid       = my_pid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     STEPID          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     NO_DIALOG_BOXES =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      variant         = l_variant&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WAITING         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      error_occurred  = 1&lt;/P&gt;&lt;P&gt;      OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I cannot use "CREATE OBJECT" because class instantiation type is "private".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) I am getting the dump with the error when I execute theabove code:&lt;/P&gt;&lt;P&gt;Access via 'NULL' object reference not possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) I did research in this forum and found the articles but none of the solutions are working. I am working with version ECC6.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to SAP OO programming but coming from other programming world have concepts of OO programming. I am not sure how to fix this! Could anyone please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mithun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 18:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270817#M493264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T18:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible ERROR! Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270818#M493265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the problem is that you do not have an object reference for PROCESS.  The class in question has been designed not to allow instantiation, so this object must be instanitated by another class and it may not offer access to it directly.  This is the basic concepts and foundation of object oriented programming.  You must find the class which instaniates this object and maybe, there will be a method to retrieve the object from it.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 18:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270818#M493265</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-22T18:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible ERROR! Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270819#M493266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich. Could you please tell me how to find that class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 18:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270819#M493266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T18:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible ERROR! Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270820#M493267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will like this, it is a private instanation, but simply accessing the  static attribute MANAGER will give you the object .  check this code.  Now MANAGER has all your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: manager type ref to cl_hr_pm_pw_start_manager.

manager = cl_hr_pm_pw_start_manager=&amp;gt;manager.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 18:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270820#M493267</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-22T18:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible ERROR! Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270821#M493268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So for example, you can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: manager type ref to cl_hr_pm_pw_start_manager.

manager = cl_hr_pm_pw_start_manager=&amp;gt;manager.


CALL METHOD manager-&amp;gt;start
EXPORTING
processid = my_pid
* STEPID =
* NO_DIALOG_BOXES =
variant = l_variant
* WAITING =
EXCEPTIONS
error_occurred = 1
OTHERS = 2.

check sy-subrc = 0.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 18:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270821#M493268</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-22T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible ERROR! Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270822#M493269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich. I could get past that "NULL" obeject reference error now. I rewarded everyone with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 20:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible-error-please-help/m-p/2270822#M493269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T20:31:18Z</dc:date>
    </item>
  </channel>
</rss>

