<?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. 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/m-p/692293#M31191</link>
    <description>&lt;P&gt;where are you calling screen?&lt;/P&gt;</description>
    <pubDate>Mon, 17 Dec 2018 08:51:10 GMT</pubDate>
    <dc:creator>DoanManhQuynh</dc:creator>
    <dc:date>2018-12-17T08:51:10Z</dc:date>
    <item>
      <title>Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692290#M31188</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;PROGRAM  ZNB_CLASS_MOD_POO_IMP.
  DATA LV_MESSAGE TYPE BAPIRET2.
  DATA OBJ TYPE REF TO ZCL_NB_CLASS.
  DATA TRANS_BALANCE TYPE DMBTR.
  DATA BAL TYPE DMBTR.
  DATA BALANCE_LEFT TYPE DMBTR.
  DATA ok_code TYPE sy-ucomm.
DATA  LT_MESSAGE TYPE TABLE OF BAPIRET2.
START-OF-SELECTION.
CREATE OBJECT OBJ ."TYPE ZCL_NB_CLASS.
INCLUDE ZNB_CLASS_MOD_POO_IMP_STATUO01.
INCLUDE ZNB_CLASS_MOD_PAI.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Hi Everyone,&lt;/P&gt;
  &lt;P&gt;I am getting the null object reference error while I have to declare the object globally. Please help,&lt;/P&gt;
  &lt;P&gt;I my class code would be required, I will post that.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 04:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692290#M31188</guid>
      <dc:creator>nbitish</dc:creator>
      <dc:date>2018-12-17T04:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692291#M31189</link>
      <description>&lt;P&gt;Hi Nitish,&lt;/P&gt;&lt;P&gt;I think, You are calling corresponding methods of your class ZCL_NB_CLASS without any instance. Kindly check in debugging wheather object has been instantiated ( OBJ ) when calling methods.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 05:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692291#M31189</guid>
      <dc:creator>Muthu_raja</dc:creator>
      <dc:date>2018-12-17T05:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692292#M31190</link>
      <description>&lt;P&gt;Thank-you for properly formatting your program code. Much easier to read.&lt;/P&gt;&lt;P&gt;At what line are you getting the dump? Is it in the code you've posted, or is it in one of the includes?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 08:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692292#M31190</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-12-17T08:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692293#M31191</link>
      <description>&lt;P&gt;where are you calling screen?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 08:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692293#M31191</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-12-17T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692294#M31192</link>
      <description>&lt;P&gt;Hi Mathew,&lt;/P&gt;&lt;P&gt;I am getting the error in the includes, ie., the place at which I am calling the method&lt;/P&gt;&lt;P&gt;in PAI.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 10:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692294#M31192</guid>
      <dc:creator>nbitish</dc:creator>
      <dc:date>2018-12-17T10:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692295#M31193</link>
      <description>&lt;P&gt;In the PAI you've got a bit of code like OBJ-&amp;gt;DO_PAI( ). But at this point, OBJ is not instantiated. The solution depends on what you are trying to achieve, and the structure of your program.&lt;/P&gt;&lt;P&gt;OBJ is a terrible name for an object reference. &lt;/P&gt;&lt;P&gt;ZCL_NB_CLASS is a terrible name for a class.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 11:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692295#M31193</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-12-17T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692296#M31194</link>
      <description>&lt;P&gt;Yeah, you are right. I was just practicing, that's why I did that.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 15:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692296#M31194</guid>
      <dc:creator>nbitish</dc:creator>
      <dc:date>2018-12-17T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692297#M31195</link>
      <description>&lt;P&gt;I just want to know, where should I declare the object globally for multiple screens?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 15:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692297#M31195</guid>
      <dc:creator>nbitish</dc:creator>
      <dc:date>2018-12-17T15:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692298#M31196</link>
      <description>&lt;P&gt;Use a function group&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692298#M31196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-12-17T16:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access via 'NULL' object reference not possible.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692299#M31197</link>
      <description>&lt;P&gt;I can't tell you as... "The solution depends on what you are trying to achieve, and the structure of your program."&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 18:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-via-null-object-reference-not-possible/m-p/692299#M31197</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-12-17T18:19:21Z</dc:date>
    </item>
  </channel>
</rss>

