<?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: Null Object Reference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413177#M198909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: sp type ref to if_srm_poid,&lt;/P&gt;&lt;P&gt;po type ref to if_srm_poid,&lt;/P&gt;&lt;P&gt;uo type ref to object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mycopypastedata-&amp;gt;set(&lt;/P&gt;&lt;P&gt;src_poid = sp&lt;/P&gt;&lt;P&gt;poid = po&lt;/P&gt;&lt;P&gt;text = ''&lt;/P&gt;&lt;P&gt;icon_id = ''&lt;/P&gt;&lt;P&gt;user_object = uo ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now within the set method you have to check whether &lt;/P&gt;&lt;P&gt;sp is initial or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you dont want to pass null then&lt;/P&gt;&lt;P&gt;sp = l_xml-&amp;gt;find_node(&lt;/P&gt;&lt;P&gt;    name   = 'CARRID'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ROOT   = ROOT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       ).&lt;/P&gt;&lt;P&gt;then pass sp to the set method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2006 12:16:33 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2006-06-19T12:16:33Z</dc:date>
    <item>
      <title>Null Object Reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413173#M198905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any expression in ABAP Objects like e.g. the "null" object reference in java?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean, a null-reference, that is compatible to all other objects and can be used e.g. in method calls?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't find anything, though I'd strongly expect it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 11:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413173#M198905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T11:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Null Object Reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413174#M198906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure i understood your question completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the equivalent of NULL in abap environment is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example to check whether a class instance is intantiated or not we do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;class var&amp;gt; is not INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 11:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413174#M198906</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-06-19T11:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Null Object Reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413175#M198907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just check it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var = ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  I think it will make the var as null value. var can be of any type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;TM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 11:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413175#M198907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T11:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Null Object Reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413176#M198908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your answer, but it's not really, what I wanted to know. Here is a short code snipplet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          data: sp type ref to if_srm_poid,&lt;/P&gt;&lt;P&gt;                po type ref to if_srm_poid,&lt;/P&gt;&lt;P&gt;                uo type ref to object.&lt;/P&gt;&lt;P&gt;          mycopypastedata-&amp;gt;set(&lt;/P&gt;&lt;P&gt;              src_poid    = sp&lt;/P&gt;&lt;P&gt;              poid        = po&lt;/P&gt;&lt;P&gt;              text        = ''&lt;/P&gt;&lt;P&gt;              icon_id     = ''&lt;/P&gt;&lt;P&gt;              user_object = uo ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that's what I like to have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          mycopypastedata-&amp;gt;set(&lt;/P&gt;&lt;P&gt;              src_poid    = NULL&lt;/P&gt;&lt;P&gt;              poid        = NULL&lt;/P&gt;&lt;P&gt;              text        = ''&lt;/P&gt;&lt;P&gt;              icon_id     = ''&lt;/P&gt;&lt;P&gt;              user_object = NULL ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it's clearer, now. '', space, initial or other things do not work (of course!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 11:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413176#M198908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T11:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Null Object Reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413177#M198909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: sp type ref to if_srm_poid,&lt;/P&gt;&lt;P&gt;po type ref to if_srm_poid,&lt;/P&gt;&lt;P&gt;uo type ref to object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mycopypastedata-&amp;gt;set(&lt;/P&gt;&lt;P&gt;src_poid = sp&lt;/P&gt;&lt;P&gt;poid = po&lt;/P&gt;&lt;P&gt;text = ''&lt;/P&gt;&lt;P&gt;icon_id = ''&lt;/P&gt;&lt;P&gt;user_object = uo ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now within the set method you have to check whether &lt;/P&gt;&lt;P&gt;sp is initial or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you dont want to pass null then&lt;/P&gt;&lt;P&gt;sp = l_xml-&amp;gt;find_node(&lt;/P&gt;&lt;P&gt;    name   = 'CARRID'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ROOT   = ROOT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       ).&lt;/P&gt;&lt;P&gt;then pass sp to the set method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 12:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-object-reference/m-p/1413177#M198909</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-06-19T12:16:33Z</dc:date>
    </item>
  </channel>
</rss>

